/* noa.betos.ai product page. Noa's own palette (mirrors NoaTheme.swift in noa-app) set in an
   Apple-style product layout: huge type, calm black canvas, glass, one idea per section. */
:root {
  --canvas: #0a090d;
  --canvas-2: #121017;
  --card: #1a1720;
  --card-2: #221e29;
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.72);
  --muted: rgba(245, 245, 247, 0.48);
  --violet: #ab85fa;
  --coral: #ff737a;
  --mint: #6be6b8;
  --peach: #ffb894;
  --sky: #73b8ff;
  --gold: #fac761;
  --bubble-user: #3d3550;
  --bubble: #211f26;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--coral) 55%, var(--peach) 100%);
  --radius: 28px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em; margin: 0 0 14px;
  color: var(--mint);
}
.headline {
  font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 700; margin: 0;
}
.subhead {
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--text-2);
  font-weight: 500; letter-spacing: -0.01em; max-width: 720px; margin: 22px auto 0;
}
.center { text-align: center; }
section { position: relative; padding: 120px 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 9, 13, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 52px; }
.nav .brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 650; font-size: 18px; }
.nav .brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav .brand:hover { text-decoration: none; }
.nav .links { display: flex; gap: 24px; margin-left: auto; }
.nav .links a { color: var(--text-2); font-size: 13px; }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--text); color: #0a090d; border: 0; cursor: pointer;
}
.pill-btn:hover { text-decoration: none; filter: brightness(0.92); }
.pill-btn.ghost { background: transparent; color: var(--sky); padding-left: 6px; }
.pill-btn.small { padding: 6px 14px; font-size: 13px; }
@media (max-width: 720px) { .nav .links { display: none; } .nav .wrap { justify-content: space-between; } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; overflow: hidden; }
.hero .glow {
  position: absolute; inset: -10% -20% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 30%, rgba(171, 133, 250, 0.35), transparent 70%),
    radial-gradient(35% 40% at 70% 25%, rgba(255, 115, 122, 0.25), transparent 70%),
    radial-gradient(40% 40% at 50% 80%, rgba(107, 230, 184, 0.12), transparent 70%);
  filter: blur(20px);
}
.hero .app-icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 18px 60px rgba(171, 133, 250, 0.45); }
.hero .headline { font-size: clamp(52px, 10vw, 112px); }
.hero .cta { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.phones { position: relative; height: 640px; margin-top: 70px; }
.phone {
  position: absolute; left: 50%; top: 0; width: 290px; aspect-ratio: 1170 / 2532;
  border-radius: 46px; padding: 9px; background: #1c1b20;
  box-shadow: 0 0 0 1.5px #3a3840 inset, 0 40px 90px rgba(0, 0, 0, 0.6);
}
.phone img, .phone .screen { width: 100%; height: 100%; border-radius: 38px; object-fit: cover; }
.phones .phone.center { transform: translateX(-50%); z-index: 3; }
.phones .phone.left { transform: translateX(-50%) translateX(-270px) translateY(60px) rotate(-6deg) scale(0.9); z-index: 2; opacity: 0.92; }
.phones .phone.right { transform: translateX(-50%) translateX(270px) translateY(60px) rotate(6deg) scale(0.9); z-index: 2; opacity: 0.92; }
@media (max-width: 720px) {
  .phones { height: 520px; }
  .phone { width: 230px; }
  .phones .phone.left { transform: translateX(-50%) translateX(-150px) translateY(50px) rotate(-7deg) scale(0.8); }
  .phones .phone.right { transform: translateX(-50%) translateX(150px) translateY(50px) rotate(7deg) scale(0.8); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- its own computer ---------- */
.computer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; margin-top: 70px; }
@media (max-width: 900px) { .computer { grid-template-columns: 1fr; } .computer .phone-solo { margin: 0 auto; } }
.browser {
  border-radius: 18px; overflow: hidden; background: #fff; color: #1d1d1f;
  box-shadow: 0 40px 120px rgba(115, 184, 255, 0.18), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative; font-size: 14px; text-align: left;
}
.browser .chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #eeedf1; border-bottom: 1px solid #dcdbe0; }
.browser .dots { display: flex; gap: 7px; }
.browser .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.browser .dots i:nth-child(1) { background: #ff5f57; } .browser .dots i:nth-child(2) { background: #febc2e; } .browser .dots i:nth-child(3) { background: #28c840; }
.browser .url { flex: 1; background: #fff; border-radius: 8px; padding: 6px 12px; color: #555; font-size: 13px; min-height: 28px; white-space: nowrap; overflow: hidden; }
.browser .url b { color: #1d1d1f; font-weight: 500; }
.browser .caret { display: inline-block; width: 1.5px; height: 14px; background: #1d1d1f; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.browser .page { height: 380px; padding: 22px 26px; position: relative; background: #fbfbfd; }
.browser .search { display: flex; gap: 10px; align-items: center; border: 1px solid #d2d2d7; border-radius: 12px; padding: 10px 14px; color: #6e6e73; background: #fff; }
.browser .search .typed { color: #1d1d1f; }
.browser .results { margin-top: 18px; display: grid; gap: 10px; }
.browser .result { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #ececf0; opacity: 0; transform: translateY(8px); transition: all .45s ease; }
.browser .result.show { opacity: 1; transform: none; }
.browser .result.pick { border-color: #ab85fa; box-shadow: 0 0 0 3px rgba(171,133,250,.25); }
.browser .result .logo { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.browser .result .t { font-weight: 600; font-size: 14px; }
.browser .result .s { font-size: 12px; color: #6e6e73; }
.browser .result .tag { margin-left: auto; font-size: 11px; font-weight: 600; color: #1a7f4b; background: #e3f6ec; padding: 3px 8px; border-radius: 999px; }
.browser .cursor { position: absolute; left: 60%; top: 70%; width: 22px; height: 22px; transition: left 1s cubic-bezier(.5,0,.2,1), top 1s cubic-bezier(.5,0,.2,1); z-index: 5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.browser .status {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(20, 18, 25, 0.86); color: #fff; font-size: 12px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; white-space: nowrap;
}
.browser .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.phone-solo { position: relative; width: 270px; aspect-ratio: 1170 / 2532; border-radius: 44px; padding: 9px; background: #1c1b20; box-shadow: 0 0 0 1.5px #3a3840 inset, 0 40px 90px rgba(0,0,0,.6); }
.phone-solo img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
@media (max-width: 800px) { .callouts { grid-template-columns: 1fr; } }
.callout { padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--stroke); }
.callout h3 { margin: 10px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.callout p { margin: 0; color: var(--text-2); font-size: 15px; }
.dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }

/* ---------- while you sleep ---------- */
.sleep { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .sleep { grid-template-columns: 1fr; } }
.lock {
  position: relative; margin: 0 auto; width: 320px; aspect-ratio: 9 / 19.5; border-radius: 50px; padding: 10px;
  background: #1c1b20; box-shadow: 0 0 0 1.5px #3a3840 inset, 0 40px 100px rgba(171,133,250,.25);
}
.lock .screen {
  border-radius: 41px; height: 100%; overflow: hidden; position: relative; padding: 40px 14px 20px;
  background:
    radial-gradient(70% 45% at 20% 10%, rgba(171,133,250,.55), transparent 70%),
    radial-gradient(60% 40% at 90% 40%, rgba(255,115,122,.35), transparent 70%),
    radial-gradient(70% 50% at 40% 100%, rgba(107,230,184,.25), transparent 70%), #151320;
}
.lock .date { text-align: center; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.8); }
.lock .clock { text-align: center; font-size: 76px; font-weight: 600; letter-spacing: -2px; line-height: 1; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.notif {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 20px; margin-top: 8px;
  background: rgba(40, 36, 50, 0.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-14px) scale(.97); transition: all .55s cubic-bezier(.2,.8,.2,1);
}
.notif.show { opacity: 1; transform: none; }
.notif img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.notif .top { display: flex; justify-content: space-between; font-size: 13px; }
.notif .top b { font-weight: 600; }
.notif .top span { color: rgba(255,255,255,.55); font-size: 12px; }
.notif .body { font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.35; }
.routines { display: grid; gap: 14px; }
.routine { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--stroke); }
.routine .when { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; min-width: 88px; color: var(--mint); }
.routine h4 { margin: 0 0 2px; font-size: 17px; }
.routine p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- chat demos ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.tabs button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: 15px;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--text); color: #0a090d; }
.demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; margin-top: 50px; text-align: left; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.demo .copy h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; }
.demo .copy p { color: var(--text-2); font-size: 18px; margin: 0 0 18px; }
.demo .copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.demo .copy li { display: flex; gap: 10px; color: var(--text-2); font-size: 16px; }
.demo .copy li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.chat-phone {
  justify-self: center; width: min(380px, 100%); height: 660px; border-radius: 48px; padding: 10px; background: #1c1b20;
  box-shadow: 0 0 0 1.5px #3a3840 inset, 0 40px 100px rgba(0,0,0,.55);
}
.chat-phone .screen {
  height: 100%; border-radius: 39px; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(80% 30% at 20% 0%, rgba(171,133,250,.22), transparent 70%), #0d0c11;
}
.chat-phone .head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0 10px; font-weight: 600; }
.chat-phone .head img { width: 28px; height: 28px; border-radius: 50%; }
.chat-phone .head .live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-left: -4px; margin-top: 16px; }
.thread { flex: 1; overflow: hidden; padding: 6px 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.42; animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.msg.user { align-self: flex-end; background: var(--bubble-user); border-bottom-right-radius: 8px; }
.msg.noa { align-self: flex-start; background: var(--bubble); border-bottom-left-radius: 8px; }
.msg strong { color: #fff; }
.msg .table { margin-top: 8px; display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.msg .row { display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 6px; padding: 7px 9px; background: #1a1820; }
.msg .row.h { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.msg .flag { color: var(--coral); font-weight: 600; }
.msg .ok { color: var(--mint); font-weight: 600; }
.chip { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 12px; border-radius: 14px; background: #2a2632; border: 1px solid var(--stroke); font-size: 13px; }
.chip .ext { font-size: 10px; font-weight: 800; padding: 3px 5px; border-radius: 5px; color: #0a090d; }
.activity { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text-2); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); animation: pop .3s ease; }
.activity .spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--violet); animation: spin .8s linear infinite; }
.activity.done .spin { border: 0; animation: none; }
.activity.done .spin::before { content: "✓"; font-size: 12px; color: var(--mint); position: relative; top: -4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 16px; border-radius: 20px; background: var(--bubble); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: bob 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 50% { transform: translateY(-4px); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.composer { margin: 0 12px 14px; padding: 12px 16px; border-radius: 999px; background: #1c1a22; color: var(--muted); font-size: 14px; border: 1px solid var(--stroke); }

/* ---------- connectors ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 54px; }
.logo-tile {
  width: 132px; height: 112px; border-radius: 24px; background: var(--card); border: 1px solid var(--stroke);
  display: grid; place-items: center; align-content: center; gap: 10px; font-size: 13px; color: var(--text-2);
}
.logo-tile img { width: 44px; height: 44px; border-radius: 10px; }
.logo-tile .mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #0a090d; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 60px; }
.tile { border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); padding: 30px; overflow: hidden; position: relative; min-height: 260px; }
.tile h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
.tile p { color: var(--text-2); margin: 0; font-size: 16px; }
.tile .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4 { grid-column: auto; } }
.avatars { display: flex; margin-top: 26px; }
.avatars img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--card); margin-left: -12px; background: #fff; }
.avatars img:first-child { margin-left: 0; }
.wave { display: flex; gap: 5px; align-items: center; height: 60px; margin-top: 26px; }
.wave i { width: 6px; border-radius: 3px; background: var(--grad); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.share-sheet { margin-top: 24px; display: flex; gap: 14px; }
.share-sheet div { text-align: center; font-size: 12px; color: var(--text-2); }
.share-sheet .ic { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 6px; display: grid; place-items: center; font-size: 26px; background: var(--card-2); }
.share-sheet img { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 6px; box-shadow: 0 0 0 2px var(--violet), 0 10px 30px rgba(171,133,250,.45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--card-2); border: 1px solid var(--stroke); }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; text-align: left; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-grid > div { padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--stroke); }
.privacy-grid h4 { margin: 14px 0 6px; font-size: 18px; }
.privacy-grid p { margin: 0; color: var(--text-2); font-size: 15px; }
.privacy-grid .ico { font-size: 26px; }

/* ---------- final ---------- */
.final { text-align: center; padding: 140px 0 120px; }
.final img { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 30px; box-shadow: 0 24px 80px rgba(255,115,122,.35); }
footer { border-top: 1px solid var(--stroke); padding: 30px 0 50px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* ---------- Apple Watch & widgets ---------- */
.devices { display: flex; justify-content: center; align-items: center; gap: 70px; margin-top: 70px; flex-wrap: wrap; }
.devices figure { margin: 0; display: grid; justify-items: center; gap: 22px; }
.devices figcaption { color: var(--muted); font-size: 14px; font-weight: 600; }

/* The watch: case, crown and band drawn in CSS; the screen is the real Charm artwork. */
.watch { position: relative; }
.watch-band { width: 150px; height: 70px; background: linear-gradient(90deg, #2a2733, #3a3645 50%, #2a2733); }
.watch-band.top { border-radius: 26px 26px 6px 6px; margin-bottom: -8px; }
.watch-band.bottom { border-radius: 6px 6px 26px 26px; margin-top: -8px; }
.watch figcaption { margin-top: -6px; }
.watch-case {
  position: relative; width: 236px; height: 284px; border-radius: 62px; padding: 13px;
  background: linear-gradient(145deg, #4a4655, #1d1b22 60%, #34313c);
  box-shadow: 0 0 0 1.5px #5a5666 inset, 0 40px 90px rgba(171,133,250,.28);
}
.watch-case .crown { position: absolute; right: -9px; top: 70px; width: 12px; height: 44px; border-radius: 5px; background: linear-gradient(90deg, #6d6978, #3b3844); }
.watch-case .side-button { position: absolute; right: -5px; top: 142px; width: 7px; height: 52px; border-radius: 4px; background: #3b3844; }
.watch-screen {
  position: relative; height: 100%; border-radius: 50px; overflow: hidden; color: #121016;
  /* Noa's wallpaper colour, a touch lighter at the top (CharmPalette.wallpaper). */
  background: linear-gradient(180deg, #d6cae9, #c0aede);
}
.w-time { position: absolute; right: 22px; top: 12px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-dots { position: absolute; right: 9px; top: 104px; display: grid; gap: 3px; }
.w-dots i { width: 5px; height: 5px; border-radius: 50%; background: #121016; }
.w-dots i + i { opacity: .35; }
.w-charm { position: absolute; left: 12px; top: 26px; width: 172px; height: 172px; }
.w-face {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 5px #fff, 0 8px 22px rgba(18,16,22,.18); opacity: 0; transition: opacity .6s ease;
}
.w-face.on { opacity: 1; }
.w-ring { position: absolute; inset: -9px; border-radius: 50%; border: 3px solid transparent; pointer-events: none; }
.watch[data-mood="listening"] .w-ring { border-color: rgba(18,16,22,.45); animation: ring 1.3s ease-out infinite; }
.watch[data-mood="working"] .w-ring { border-color: #121016 transparent transparent transparent; animation: spin 1.6s linear infinite; }
@keyframes ring { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.12); opacity: 0; } }
.w-pill {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap;
  display: flex; align-items: center; gap: 7px; padding: 5px 13px 5px 5px; border-radius: 999px;
  background: rgba(18,16,22,.88); color: #fff; font-size: 14px; font-weight: 700;
}
.w-badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--badge, #2973ed); transition: background .4s ease; }
.w-badge svg { width: 14px; height: 14px; fill: #fff; }

/* The Home Screen: two widget sizes in each avatar's own colour, the avatar looping in its circle. */
.home-screen {
  width: 330px; border-radius: 48px; padding: 22px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: radial-gradient(60% 40% at 20% 10%, rgba(171,133,250,.45), transparent 70%),
              radial-gradient(60% 40% at 90% 90%, rgba(107,230,184,.25), transparent 70%), #17151f;
  box-shadow: 0 0 0 10px #1c1b20, 0 0 0 11.5px #3a3840, 0 40px 100px rgba(0,0,0,.5);
}
.wg {
  position: relative; overflow: hidden; border-radius: 22px; color: #121016; text-align: left; aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), rgb(var(--wp));
}
.wg.medium { grid-column: span 2; aspect-ratio: 2.1; }
.wg-copy { position: relative; z-index: 2; height: 100%; padding: 12px 13px; display: flex; flex-direction: column; gap: 2px; }
.wg-name { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
.wg small { font-size: 10px; font-weight: 700; opacity: .6; display: block; }
.wg-row { font-size: 13px; font-weight: 600; line-height: 1.2; margin-bottom: 3px; max-width: 150px; }
.wg-time { font-size: 21px; font-weight: 700; line-height: 1.05; }
.wg-what { font-size: 11.5px; font-weight: 600; max-width: 80px; line-height: 1.2; }
.wg-big { font-size: 15px; font-weight: 700; line-height: 1.15; }
.wg-ask { margin-top: auto; align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: #121016; padding: 4px 9px; border-radius: 999px; }
.wg-portrait { position: absolute; right: -9%; bottom: -7%; width: 64%; aspect-ratio: 1; }
.wg.medium .wg-portrait { width: 44%; right: -3%; bottom: -10%; }
.wg-portrait span { position: absolute; inset: 13% 5% -3%; border-radius: 50%; background: rgba(255,255,255,.32); box-shadow: 0 0 0 1.5px rgba(255,255,255,.5) inset; }
.wg-portrait img { position: relative; width: 100%; height: 100%; transition: opacity .5s ease; }
.apps { grid-column: span 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; padding: 4px 6px; }
.apps i, .apps img { width: 100%; aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.10); }
.apps i:nth-child(1) { background: rgba(115,184,255,.30); } .apps i:nth-child(5) { background: rgba(255,184,148,.30); } .apps i:nth-child(7) { background: rgba(107,230,184,.25); }
@media (max-width: 720px) { .devices { gap: 50px; } .home-screen { width: 300px; } }

/* ---------- new feature tiles ---------- */
.pick { display: grid; gap: 8px; margin-top: 20px; }
.pick div { padding: 10px 12px; border-radius: 14px; background: rgba(171,133,250,.12); border: 1px solid rgba(171,133,250,.35); }
.pick b { display: block; font-size: 14px; }
.pick span { font-size: 12px; color: var(--text-2); }
.quote { margin-top: 20px; align-self: flex-end; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--bubble-user); font-size: 14px; }
.quote span { display: block; font-size: 12px; color: var(--text-2); border-left: 2px solid var(--violet); padding-left: 8px; margin-bottom: 6px; }

/* ---------- WhatsApp ---------- */
.routine .when.icon { min-width: 0; font-size: 22px; line-height: 1.1; }
.wa-phone { justify-self: center; width: min(360px, 100%); height: 640px; border-radius: 48px; padding: 10px; background: #1c1b20; box-shadow: 0 0 0 1.5px #3a3840 inset, 0 40px 100px rgba(0,0,0,.55); }
.wa-screen { height: 100%; border-radius: 39px; overflow: hidden; display: flex; flex-direction: column; background: #0b141a; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #1f2c34; }
.wa-head img { width: 34px; height: 34px; border-radius: 50%; }
.wa-head b { display: block; font-size: 15px; }
.wa-head span { font-size: 12px; color: rgba(233,237,239,.6); }
.wa-thread { flex: 1; overflow: hidden; padding: 12px 12px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.wa-msg { position: relative; max-width: 84%; padding: 7px 10px 18px; border-radius: 10px; font-size: 14px; line-height: 1.38; color: #e9edef; }
.wa-msg i { position: absolute; right: 8px; bottom: 3px; font-style: normal; font-size: 10.5px; color: rgba(233,237,239,.6); }
.wa-msg.in { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.wa-msg.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.wa-msg b { color: #fff; }
.wa-msg.voice { display: flex; align-items: center; gap: 8px; min-width: 200px; padding-bottom: 20px; margin-bottom: 10px; }
.wa-play { font-size: 13px; }
.wa-wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.wa-wave i { position: static; width: 3px; border-radius: 2px; background: rgba(233,237,239,.7); }
.wa-len { font-size: 11px; color: rgba(233,237,239,.7); }
.wa-react { position: absolute; left: 10px; bottom: -12px; font-style: normal; font-size: 13px; background: #202c33; border-radius: 999px; padding: 1px 5px; border: 1px solid #0b141a; }
.wa-day { align-self: center; font-size: 11.5px; color: rgba(233,237,239,.7); background: #182229; padding: 4px 10px; border-radius: 8px; margin: 6px 0; }
.wa-composer { margin: 8px 10px 14px; padding: 10px 16px; border-radius: 999px; background: #1f2c34; color: rgba(233,237,239,.5); font-size: 14px; }

/* ---------- Passwords & phone tiles ---------- */
.ask-card { margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--stroke); max-width: 360px; }
.ask-card b { display: block; font-size: 15px; }
.ask-card span { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ask-card div { display: flex; gap: 8px; margin-top: 12px; }
.ask-card em { flex: 1; text-align: center; font-style: normal; font-weight: 600; font-size: 14px; padding: 8px 0; border-radius: 999px; background: rgba(255,255,255,.08); }
.ask-card em.yes { background: var(--text); color: #0a090d; }
.soon { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; color: var(--text); background: rgba(255,115,122,.18); }
