/* Along's website. Same tokens as the app (src/lib/theme.ts): warm off-white ground, white
   surfaces, one orange accent with charcoal text on it, Space Grotesk + Space Mono, Doto for the
   one key number. Dark = the app's "warm charcoal". */

:root {
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --sunken: #E9E6DF;
  --text: #1F1E1C;
  --text-soft: #3D3A35;
  --muted: #6E6B65;
  --border: #E2DED6;
  --accent: #FF5C00;
  --accent-text: #1F1E1C;
  --accent-ink: #B03F00;
  --peach: #FFE3D3;
  --peach-light: #FFEFE6;
  --sage: #E6EDE4;
  --cloud: #E9E6DF;
  --hill: #E9E6DF;
  --frame: #2A2825;
  --phone-screen: #F3F1EC; /* the app's page colour, under the status bar */
  --phone-status: #1F1E1C;
  --phone-halo: rgba(255, 92, 0, 0.12);
  --ground: rgba(31, 30, 28, 0.28);
  --stage: #1F1E1C;
  --stage-edge: transparent;
  --shadow: 0 1px 2px rgba(31, 30, 28, 0.04), 0 12px 32px rgba(31, 30, 28, 0.06);
  --radius: 28px;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --dot: 'Doto', var(--mono);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --surface: #22211E;
    --sunken: #2C2A26;
    --text: #F3F1EC;
    --text-soft: #D9D5CD;
    --muted: #A39F97;
    --border: #34322E;
    --accent-ink: #FF8A4C;
    --peach: #3A2618;
    --peach-light: #2E2119;
    --sage: #232D27;
    --cloud: #34322E;
    --hill: #2C2A26;
    --frame: #45423C;
    --phone-screen: #161513;
    --phone-status: #F3F1EC;
    --phone-halo: rgba(255, 92, 0, 0.1);
    --ground: rgba(0, 0, 0, 0.6);
    --stage: #0E0D0C;
    --stage-edge: rgba(243, 241, 236, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513;
  --surface: #22211E;
  --sunken: #2C2A26;
  --text: #F3F1EC;
  --text-soft: #D9D5CD;
  --muted: #A39F97;
  --border: #34322E;
  --accent-ink: #FF8A4C;
  --peach: #3A2618;
  --peach-light: #2E2119;
  --sage: #232D27;
  --cloud: #34322E;
  --hill: #2C2A26;
  --frame: #45423C;
  --phone-screen: #161513;
  --phone-status: #F3F1EC;
  --phone-halo: rgba(255, 92, 0, 0.1);
  --ground: rgba(0, 0, 0, 0.6);
  --stage: #0E0D0C;
  --stage-edge: rgba(243, 241, 236, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip; /* the phones' glow may spread past the edge; never a sideways scroll */
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

.eyebrow {
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-soft); margin-top: 22px; max-width: 34em; }
.small { font-size: 15px; color: var(--muted); }
.fine { font: 400 12px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--muted); }

/* Buttons: orange with charcoal text, like the app */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 26px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font: 600 17px/1 var(--sans); text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 30, 28, 0.14); }
.btn:active { transform: scale(0.97); }
.btn-small { height: 42px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 34px 0 18px; }
.ctas.centered { justify-content: center; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 24%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
/* Play isn't public yet: the button reads "Coming soon" and does nothing (PLAY_LIVE in main.js) */
.btn.soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--border); cursor: default; pointer-events: none; }

/* Along for Windows */
.desk { padding-top: 24px; }
.desk-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius); background: var(--surface);
}
.desk .help { margin-top: 14px; max-width: 36em; font-size: 14px; line-height: 1.55; color: var(--text-soft); }
.desk .help b { font-weight: 600; color: var(--text); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.keys li {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 22px;
  border-radius: 20px; background: var(--bg); color: var(--text-soft); font-size: 15px;
}
.combo { display: flex; gap: 8px; }
kbd {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center;
  border-radius: 12px; background: var(--surface); color: var(--text);
  font: 600 15px/1 var(--sans); box-shadow: inset 0 0 0 1.5px var(--border), 0 3px 0 var(--border);
}
.not-yet { text-align: center; margin-top: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Side gutter: 16px on a phone, growing to 40px on a tablet or a narrow window (Naman, 26 Nov 2026:
   at ~890px the stacked sections sat 16px from the edge), then the centred 1160px column. */
main > section { padding: 0 max(clamp(16px, 4vw, 40px), calc((100vw - 1160px) / 2)); }

/* Hero: the whole top is Lon's land (like the desktop app's scenery): the sky from edge to edge, the
   nav on it, the land rising in one even curve, Lon on it (lon.js). */
:root { --nav-h: 70px; --land-h: clamp(110px, min(13vw, 22svh), 230px); --col: max(16px, calc((100vw - 1160px) / 2)); }
.nav { height: var(--nav-h); box-sizing: border-box; transition: background .3s; }
.nav.on-land { background: color-mix(in srgb, var(--surface) 78%, transparent); }
/* The words sit in the middle of the sky (between the nav and the land), on the page's column; the
   land meets the bottom of the first screen, so no flat band of ground follows it. */
.hero {
  position: relative; display: grid; align-content: center; overflow: hidden;
  margin-top: calc(-1 * var(--nav-h));
  min-height: max(620px, 100svh);
  padding-top: calc(var(--nav-h) + 24px) !important;
  padding-bottom: calc(var(--land-h) + 56px) !important;
  background: var(--surface);
}
.hero h1 { font-size: clamp(40px, 5.3vw, 92px); }
.land { position: absolute; inset: 0; pointer-events: none; }
.land-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--land-h); fill: var(--bg); display: block; }
.land-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero .sun { top: calc(var(--nav-h) + 7%); right: calc(var(--col) + 24px); width: clamp(54px, 5.5vw, 100px); }
.hero .c1 { width: clamp(120px, 13vw, 220px); top: calc(var(--nav-h) + 7%); left: 54%; animation-duration: 40s; }
.hero .c2 { width: clamp(90px, 10vw, 180px); top: 40%; right: calc(var(--col) - 40px); animation-duration: 52s; }
.sun { position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.cloud { position: absolute; aspect-ratio: 26 / 9; border-radius: 999px; background: var(--cloud); animation: drift 30s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 46%; aspect-ratio: 1; left: 16%; bottom: 30%; }
.cloud::after { width: 34%; aspect-ratio: 1; left: 48%; bottom: 40%; }
@keyframes drift { from { transform: translateX(-12%); } to { transform: translateX(16%); } }

/* Lon (lon.js): his box, the props behind him, his bubble */
.lon-box { position: absolute; transform-origin: 50% 94%; pointer-events: auto; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.lon-box:focus-visible { outline-offset: -6px; }
.lon-box.grab { cursor: grab; }
.lon-box.held { cursor: grabbing; }
.lon-props { position: absolute; inset: 0; pointer-events: none; }
.lon-still { position: absolute; }
.lon-say {
  position: absolute; z-index: 3; max-width: min(280px, 70vw); padding: 11px 16px;
  border-radius: 20px 20px 20px 6px; background: var(--bg); box-shadow: var(--shadow);
  font-weight: 500; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.3; pointer-events: none;
  opacity: 0; scale: .92; transform-origin: 0 100%;
  transition: opacity .35s, scale .45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.lon-say.flip { border-radius: 20px 20px 6px 20px; transform-origin: 100% 100%; }
.lon-say.show { opacity: 1; scale: 1; }

/* Meet Lon: his moods, each on its own little hill */
.lon-section, .play { margin: clamp(80px, 12vw, 150px) 0; }
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.mood { margin: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mood-sky { position: relative; height: 240px; overflow: hidden; }
.mood-sky::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -150px; height: 210px; border-radius: 50%; background: var(--hill); }
.mood-lon { position: absolute; left: 50%; bottom: 28px; width: 132px; aspect-ratio: 192 / 208; transform: translateX(-50%); z-index: 1; }
.mood-lon img { width: 100%; height: 100%; object-fit: contain; }
.mood figcaption { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 22px; }
.mood figcaption b { font-size: 19px; letter-spacing: -0.01em; }
.mood figcaption span { color: var(--text-soft); }
.lon-name { text-align: center; color: var(--text-soft); margin-top: 28px; }

/* Play with Lon */
.play-card { margin-top: 40px; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.play-sky { position: relative; height: clamp(320px, 34vw, 440px); --land-h: clamp(90px, 10vw, 130px); }
.play .sun { top: 12%; right: 8%; width: clamp(44px, 5vw, 70px); }
.play .c1 { width: clamp(100px, 13vw, 170px); top: 14%; left: 8%; }
.play .c2 { width: clamp(80px, 10vw, 140px); top: 30%; left: 56%; animation-direction: alternate-reverse; }
.play-count { position: absolute; left: 22px; top: 18px; margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.play-count b { font: 900 22px/1 var(--dot); color: var(--text); letter-spacing: 0; margin-left: 8px; vertical-align: -3px; }
.play-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 22px 24px; border-top: 1.5px solid var(--border); }
.play-btn {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font: 600 15px/1 var(--sans); cursor: pointer;
  transition: transform .2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .2s, border-color .2s;
}
.play-btn:hover:not(:disabled) { border-color: var(--text); }
.play-btn:active:not(:disabled) { transform: scale(.96); }
.play-btn:disabled { opacity: .45; cursor: default; }
.play-btn.main { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.play-still { display: none; padding: 0 22px 22px; margin: 0; color: var(--muted); font-size: 15px; }
.play.still .play-still, #play.still .play-still { display: block; }
#play.still .play-actions { display: none; }

/* Feature splits */
.split { display: grid; grid-template-columns: 0.8fr 1fr; align-items: center; gap: clamp(32px, 7vw, 110px); margin: clamp(80px, 12vw, 150px) 0; }
.split.flip .device { order: 2; }
.copy p:not(.eyebrow) { color: var(--text-soft); margin-top: 18px; max-width: 32em; }
.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.points li { padding: 16px 20px; background: var(--surface); border-radius: 20px; color: var(--text-soft); }
.points strong { color: var(--text); font-weight: 600; }
.quotes { display: grid; gap: 10px; margin: 26px 0 22px; }
.quote { margin: 0 !important; padding: 14px 20px; background: var(--peach); border-radius: 20px 20px 20px 6px; color: var(--text) !important; font-weight: 500; width: fit-content; max-width: 100%; }
.quote:nth-child(2) { margin-left: 28px !important; }

/* iPhone mockup (16 Pro proportions). Everything is in cqw of .device, so it scales as one piece.
   The screen = a 47 pt status bar + the 390 × 797 pt app capture (img/screens, 2×). */
.device { margin: 0; justify-self: center; width: min(100%, 340px); container-type: inline-size; position: relative; isolation: isolate; }
.device::before { /* halo: the phone sits in a little warm light */
  content: ''; position: absolute; z-index: -1; left: 50%; top: 48%; width: 190cqw; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--phone-halo), color-mix(in srgb, var(--phone-halo) 45%, transparent) 45%, transparent);
  filter: blur(8cqw); pointer-events: none;
}
.device::after { /* contact shadow on the "floor" */
  content: ''; position: absolute; z-index: 0; left: 50%; bottom: -5cqw; width: 78cqw; height: 9cqw; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, var(--ground), transparent); filter: blur(2cqw); pointer-events: none;
}
.iphone {
  position: relative; z-index: 1; padding: 1.15cqw; border-radius: 17.5cqw;
  background: linear-gradient(140deg, #8d8a84 0%, #4b4945 18%, #2b2a27 50%, #4b4945 82%, #8d8a84 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 18px 40px -8px rgba(31,30,28,.28), 0 50px 80px -30px rgba(31,30,28,.32);
}
.iphone::before { /* the black bezel */
  content: ''; position: absolute; inset: 1.15cqw; border-radius: 16.4cqw; background: #050505;
  box-shadow: inset 0 0 0 .25cqw rgba(255,255,255,.08);
}
.screen {
  position: relative; margin: 3.3cqw; border-radius: 13.2cqw; overflow: hidden;
  background: var(--phone-screen); aspect-ratio: 390 / 844; isolation: isolate;
}
.screen picture, .screen img { display: block; width: 100%; height: auto; }
/* Talk is a sheet over Today, which it dims: the status bar above it matches (same media query as the <picture>) */
.screen.dim { --phone-screen: #9A9A99; }
@media (prefers-color-scheme: dark) { .screen.dim { --phone-screen: #0F0F0E; } }
.status {
  height: 11.05cqw; display: flex; align-items: center; justify-content: space-between;
  padding: .6cqw 7.6cqw 0 9.4cqw; color: var(--phone-status); position: relative; z-index: 2;
}
.clock { font: 600 3.95cqw/1 -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.02em; }
.island { position: absolute; left: 50%; top: 2.6cqw; width: 29.4cqw; height: 8.6cqw; translate: -50% 0; border-radius: 99px; background: #000; }
.status-icons { width: 15.6cqw; height: auto; fill: currentColor; }
.home { position: absolute; left: 50%; bottom: 1.9cqw; width: 31.4cqw; height: 1.2cqw; translate: -50% 0; border-radius: 99px; background: var(--phone-status); opacity: .85; z-index: 2; }
.iphone > span { position: absolute; width: 1.1cqw; background: linear-gradient(90deg, #5d5a55, #8d8a84); border-radius: 1cqw; }
.btn-action { left: -.7cqw; top: 22%; height: 7%; }
.btn-vol-up { left: -.7cqw; top: 32%; height: 11%; }
.btn-vol-down { left: -.7cqw; top: 45.5%; height: 11%; }
.btn-power { right: -.7cqw; top: 33%; height: 16%; }

/* The buddy's check-ins: notification cards (one-line heading + one-line body) */
.buddy-section, .more, .data { margin: clamp(80px, 12vw, 150px) 0; }
.center { text-align: center; max-width: 760px; margin: 0 auto; }
.center .lede { margin-left: auto; margin-right: auto; }
.checkins { display: grid; gap: 14px; max-width: 520px; margin: 48px auto 0; }
.note {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
}
.note:nth-child(2) { margin-left: 24px; margin-right: -24px; }
.note-face { width: 40px; height: auto; }
.note-head { font-weight: 600; }
.note-body { color: var(--muted); font-size: 15px; }
.note-time { align-self: start; font: 400 12px/1.6 var(--mono); color: var(--muted); }


/* The rest of your day: two big iPhone cells + six small ones, each a little piece of the real app */
.day-grid {
  display: grid; gap: 16px; margin-top: 52px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "focus  focus  remind  habit"
    "focus  focus  meet    meet"
    "widget widget insight insight"
    "import theme  insight insight";
}
.cell { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cell h3 { font-size: 20px; }
.cell-copy { display: grid; gap: 6px; }
.cell-copy p { color: var(--muted); font-size: 15px; }
.cell-tag { font: 400 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink) !important; margin-bottom: 6px; }
.focus { grid-area: focus; }
.remind { grid-area: remind; justify-content: space-between; }
.habit { grid-area: habit; justify-content: space-between; }
.meet { grid-area: meet; justify-content: space-between; }
.widgets { grid-area: widget; justify-content: space-between; }
.insights { grid-area: insight; }
.imports { grid-area: import; justify-content: space-between; }
.theme { grid-area: theme; justify-content: space-between; }

/* Big cells: copy on top, the phone below with two floating cards for depth */
.big {
  padding: 34px 34px 44px; gap: 30px; color: #F3F1EC;
  background-color: var(--stage);
  background-image: radial-gradient(circle, rgba(243, 241, 236, 0.075) 1.1px, transparent 1.6px);
  background-size: 16px 16px; background-position: 8px 8px;
  box-shadow: inset 0 0 0 1px var(--stage-edge);
}
.big h3 { color: #F3F1EC; }
.big .cell-copy p:not(.cell-tag) { color: #A39F97; }
.big .cell-tag { color: #FF8A4C !important; }
.big .device::before { --phone-halo: rgba(255, 92, 0, 0.16); top: 52%; }
.big .device .iphone { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 30px 60px -12px rgba(0,0,0,.65); }
.big h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; }
.big .cell-copy p { font-size: 16px; max-width: 30em; }
.phone-wrap { position: relative; margin-top: auto; align-self: center; width: min(100%, 250px); }
.device.in-big { width: 100%; }
.chip {
  position: absolute; z-index: 4; display: block;
  width: max-content; max-width: 132px; white-space: normal; line-height: 1.3;
  padding: 10px 14px; border-radius: 16px; background: var(--accent); color: var(--accent-text);
  font-size: 13.5px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 18px -6px rgba(0,0,0,.28);
}
.chip strong { font-weight: 700; }
.chip-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--accent-text); }
.chip-a { right: calc(100% + 16px); top: 16%; }
.chip-b { left: calc(100% + 16px); top: 56%; }
.js .reveal.in .chip { animation: bob 6s ease-in-out infinite; }
.js .reveal.in .chip-b { animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Reminder: the alarm card */
.alarm { display: grid; justify-items: start; gap: 2px; }
.bell { width: 30px; height: 30px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transform-origin: 50% 10%; margin-bottom: 8px; }
.js .reveal.in .bell { animation: ring 4s ease-in-out 0.4s infinite; }
@keyframes ring { 0%, 18%, 100% { rotate: 0deg; } 3% { rotate: 16deg; } 6% { rotate: -14deg; } 9% { rotate: 10deg; } 12% { rotate: -7deg; } 15% { rotate: 3deg; } }
.alarm-time { font: 900 46px/1 var(--dot); color: var(--text); }
.alarm-time span { font: 400 14px var(--mono); color: var(--muted); margin-left: 6px; }
.alarm-title { font-weight: 600; margin: 6px 0 12px; }
.alarm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--sunken); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.solid { background: var(--accent); color: var(--accent-text); }

/* Habit: the week fills in */
.week-title { font-weight: 600; margin-bottom: 14px; }
.days { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.days li { display: grid; justify-items: center; gap: 6px; font: 400 11px/1 var(--mono); color: var(--muted); }
.days span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--text) 18%, transparent); }
.days svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.days .done span { border-color: transparent; background: color-mix(in srgb, var(--accent) 0%, transparent); transition: background .35s ease; }
.js .reveal.in .done span { background: var(--accent); }
.js .reveal.in .done svg { opacity: 1; transition: opacity .3s ease; }
.days li:nth-child(1) span, .days li:nth-child(1) svg { transition-delay: .2s; }
.days li:nth-child(2) span, .days li:nth-child(2) svg { transition-delay: .45s; }
.days li:nth-child(3) span, .days li:nth-child(3) svg { transition-delay: .7s; }
.days li:nth-child(4) span, .days li:nth-child(4) svg { transition-delay: .95s; }
.days .today span { border-style: dashed; border-color: var(--accent-ink); }
.js .reveal.in .today span { animation: breathe 2.4s ease-in-out 1.4s infinite; }
@keyframes breathe { 50% { scale: 1.12; } }
.week-count { margin-top: 14px; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--text-soft); }
.no-js .done span, html:not(.js) .done span { background: var(--accent); }
html:not(.js) .done svg { opacity: 1; }

/* Meetings: Today's schedule rows */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--border); }
.row-time { font: 400 13px/1.5 var(--mono); color: var(--accent-ink); border-right: 1.5px solid var(--border); }
.row-time span { display: block; color: var(--muted); }
.row-title { font-weight: 600; }
.row-sub { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.row.over { opacity: .5; }
.row.now { border-color: var(--accent); }
.js .reveal.in .row.now { animation: onnow 2.8s ease-in-out infinite; }
@keyframes onnow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); } }
.live { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }

/* Widgets: a little home screen */
.home-screen {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; padding: 20px; border-radius: 26px;
  background: var(--accent);
}
.w { background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 20px; padding: 12px 14px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.w-today { grid-row: span 2; display: grid; gap: 7px; align-content: start; }
.w-head { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; }
.w-head span { font: 400 11px var(--mono); color: var(--muted); }
.w-task { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); }
.w-task span { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--muted); }
.w-task.done { color: var(--muted); text-decoration: line-through; }
.w-task.done span { background: var(--accent); border-color: var(--accent); }
.w-buddy { display: grid; justify-items: center; gap: 4px; padding: 10px; }
.w-buddy img { width: 52px; }
.w-buddy p { font: 400 11px var(--mono); color: var(--text-soft); }
.w-add { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-soft); padding: 10px 12px; }
.w-add span { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }

/* Imports */
.import-flow { flex: 1; display: grid; justify-items: center; align-content: center; gap: 10px; }
.src { padding: 9px 14px; border-radius: 14px; background: var(--sunken); font-size: 14px; font-weight: 600; }
.arrow { color: var(--accent-ink); font-size: 20px; line-height: 1; }
.import-flow img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 1px 2px rgba(31,30,28,.1), 0 8px 18px -6px rgba(31,30,28,.25); }
.js .reveal.in .arrow { animation: drop 2.2s ease-in-out infinite; }
@keyframes drop { 50% { translate: 0 5px; } }

/* Light and dark */
.halves { flex: 1; display: flex; width: 100%; min-height: 120px; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--border); }
.half { flex: 1; display: grid; place-items: center; }
.half img { width: 58px; }
.half.light { background: #F3F1EC; }
.half.dark { background: #161513; }

/* Data promises */
.promises { list-style: none; padding: 0; margin: 48px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.promises li { padding: 24px 26px; border: 1.5px solid var(--border); border-radius: 24px; color: var(--muted); }
.promises strong { display: block; color: var(--text); font-size: 19px; font-weight: 600; margin-bottom: 6px; }

/* Last call */
.cta { text-align: center; padding-top: 40px !important; padding-bottom: 100px !important; }
.buddy { aspect-ratio: 192 / 208; cursor: pointer; }
.buddy img { width: 100%; height: 100%; object-fit: contain; }
/* The last call's Lon stands on a little hill of his own (Naman, 26 Nov 2026: "hanging in nowhere"). */
.cta-stage { position: relative; width: min(340px, 80vw); margin: 0 auto 30px; display: grid; justify-items: center; }
.cta-stage::after { content: ''; width: 100%; height: 56px; margin-top: -16px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--hill); -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); }
.buddy.small { position: relative; z-index: 1; width: 150px; margin: 0; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px max(16px, calc((100vw - 1160px) / 2)) 40px;
  border-top: 1px solid var(--border);
}
.foot nav { display: flex; gap: 24px; }
.foot nav a { text-decoration: none; color: var(--text-soft); font-size: 15px; }
.foot nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Reveal on scroll (only when JS runs and motion is fine) */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .device.reveal { translate: 0 48px; scale: 0.96; transition: opacity 0.9s ease, translate 1.1s cubic-bezier(0.16, 1, 0.3, 1), scale 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.js .device.reveal.in { translate: 0 0; scale: 1; }

@media (max-width: 960px) {
  .day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "focus focus" "remind habit" "meet meet" "insight insight" "widget widget" "import theme";
  }

  .nav nav { display: none; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .device, .split .device { order: 2; width: min(100%, 300px); }
  /* Stacked: the words in a centred column under the phone (left-aligned in it), not stretched to
     the left edge while the phone sits in the middle. */
  .split .copy { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 760px) {
  /* Phones: the words on top, Lon's land under them. */
  .hero { min-height: 0; align-content: start; padding-top: calc(var(--nav-h) + 40px) !important; padding-bottom: calc(var(--land-h) + 190px) !important; }
  .hero-copy { max-width: none; }
  .hero .c2 { display: none; }
  .hero .sun { top: auto; bottom: calc(var(--land-h) + 120px); right: 7%; }
  .hero .c1 { top: auto; bottom: calc(var(--land-h) + 70px); left: 6%; }
}
@media (max-width: 560px) {
  .moods { gap: 12px; }
  .mood-sky { height: 160px; }
  .mood-lon { width: 100px; bottom: 22px; }
  .mood figcaption { padding: 14px 16px 18px; }
  .mood figcaption b { font-size: 17px; }
  .play-btn { height: 40px; padding: 0 15px; font-size: 14px; }
  .play-btn.main { width: auto; }
  .day-grid { grid-template-columns: 1fr; grid-template-areas: "focus" "remind" "habit" "meet" "insight" "widget" "import" "theme"; }
  .big { padding: 28px 22px 36px; }
  .phone-wrap { width: min(78%, 260px); }
  .phone-wrap { text-align: center; }
  .chip { position: static; display: inline-block; max-width: none; margin: 18px 4px 0; font-size: 13px; }
  .js .reveal.in .chip { animation: none; }
  .row { grid-template-columns: 64px 1fr; } .row .pill { grid-column: 2; justify-self: start; }
  body { font-size: 16px; }
  .promises { grid-template-columns: 1fr; }
  .note:nth-child(2) { margin: 0; }
  .quote:nth-child(2) { margin-left: 0 !important; }
  .btn { width: 100%; justify-content: center; }
  .btn-small { width: auto; }
  .ctas { gap: 16px; }
  .ctas .link { width: 100%; text-align: center; }
  .desk-card { grid-template-columns: 1fr; gap: 28px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  .bubble, .btn, .js .reveal { transition: none; }
  .js .reveal, .js .device.reveal { opacity: 1; translate: 0 0; scale: 1; }
  .js .reveal.in .chip, .js .reveal.in .bell, .js .reveal.in .arrow, .js .reveal.in .today span, .js .reveal.in .row.now { animation: none; }
  .days span, .days svg { transition: none !important; }
}

/* ─── Try the swipe (Today section) ─────────────────────────────────────────────────────────── */
.try { margin-top: 26px; }
.try-label { font: 400 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.try-track { position: relative; border-radius: 24px; background: var(--sunken); overflow: hidden; user-select: none; }
.try-under { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 22px; gap: 10px; opacity: 0; }
.try-done { justify-content: flex-start; background: var(--accent); color: var(--accent-text); font-weight: 600; }
.try-tick { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-text); color: var(--accent); font-size: 16px; }
.try-more { justify-content: flex-end; }
.try-more button { font: 600 14px var(--sans); border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.try-more button[data-act="keep"] { background: var(--text); color: var(--surface); border-color: var(--text); }
/* In the flow (not absolute), so the track is as tall as the card's words, whatever the font. */
.try-card { position: relative; background: var(--surface); border-radius: 24px; padding: 20px 22px 22px; cursor: grab; touch-action: pan-y; box-shadow: var(--shadow); outline-offset: 3px; }
.try-card:active { cursor: grabbing; }
.try-card.anim { transition: transform .38s cubic-bezier(.22, 1, .36, 1); }
.try-meta { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.try-now { color: var(--accent-ink); text-transform: uppercase; }
.try-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E0A800; vertical-align: 1px; }
.try-title { margin: 12px 0 0; font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.try-why { margin: 10px 0 0; font-size: 14px; color: var(--accent-ink); font-weight: 500; }
.try-card.done .try-title { color: var(--muted); text-decoration: line-through; }
.try-card.done .try-why { color: var(--muted); }
.try-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .try-title { font-size: 20px; margin-top: 10px; } .try-why { font-size: 13px; } .try-more button { padding: 9px 11px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .try-card.anim { transition: none; } }

/* ─── The buddy's check-ins as real notifications (phone lock screen + Windows) ─────────────── */
.nudges { margin: 44px auto 0; max-width: 980px; }
.nudge-tabs { display: flex; gap: 6px; width: max-content; margin: 0 auto 34px; padding: 5px; border-radius: 999px; background: var(--sunken); }
.nudge-tabs button { font: 600 15px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.nudge-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nudge-stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.nudges figure { margin: 0; }
.nudges figcaption { margin-top: 18px; text-align: center; font: 400 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nudge-phone { width: 100%; }

/* Lock screen: a warm sky wallpaper, big clock, the notification under it. */
.screen.lock { aspect-ratio: 390 / 797; --phone-status: #fff; background: linear-gradient(180deg, #FFB37A 0%, #FF8A4C 38%, #6B4A8E 100%); color: #fff; }
.screen.lock.night { background: linear-gradient(180deg, #1B2340 0%, #2B2550 55%, #0E0F1A 100%); }
.screen.lock.noon { background: linear-gradient(180deg, #8EC5FF 0%, #BFD9F2 45%, #F3E1C4 100%); --phone-status: #1F1E1C; color: #1F1E1C; }
.lock-small { visibility: hidden; }
.lock-date { margin: 4cqw 0 0; text-align: center; font: 600 4.6cqw/1 -apple-system, 'SF Pro Text', system-ui, sans-serif; opacity: .9; }
.lock-time { margin: 1cqw 0 0; text-align: center; font: 700 24cqw/1 -apple-system, 'SF Pro Display', system-ui, sans-serif; letter-spacing: -.03em; }
.phone-note { position: absolute; left: 4.5cqw; right: 4.5cqw; top: 66cqw; font-size: 3.9cqw; }

/* One notification card, shared by the phone and Windows (frosted, elevated). */
.toast-card { background: rgba(250, 248, 244, .86); color: #1F1E1C; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-radius: 22px; padding: 12px 14px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transition: opacity .3s ease, translate .45s cubic-bezier(.22, 1, .36, 1); }
.toast-card.swap { opacity: 0; translate: 0 -10px; }
.toast-top { display: flex; align-items: center; gap: 7px; font: 500 12px/1 var(--sans); color: #6E6B65; }
.toast-top img { width: 18px; height: 18px; border-radius: 5px; }
.toast-when, .toast-x { margin-left: auto; }
.toast-main { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-top: 8px; }
.toast-face { width: 32px; height: auto; }
.toast-head { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.25; }
.toast-body { margin: 2px 0 0; font-size: 14px; color: #3D3A35; line-height: 1.3; }
.toast-replies { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.toast-replies button { font: 600 13px var(--sans); color: #1F1E1C; background: rgba(31, 30, 28, .08); border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.toast-replies button:hover { background: rgba(31, 30, 28, .14); }
.toast-replies button.picked { background: var(--accent); color: var(--accent-text); }
.phone-note .toast-head { font-size: 3.9cqw; } .phone-note .toast-body { font-size: 3.6cqw; }
.phone-note .toast-replies button { font-size: 3.4cqw; padding: 2cqw 3cqw; }
.phone-note .toast-face { width: 8.5cqw; }

/* Windows: a desktop with the taskbar, the toast bottom right like Windows 11. */
.win-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 8px solid var(--frame); background: radial-gradient(120% 90% at 20% 10%, #FFD2B0 0%, #F4A57A 35%, #7C6AA8 100%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
.win-toast { position: absolute; right: 14px; bottom: 58px; width: min(340px, 72%); border-radius: 10px; background: rgba(249, 249, 249, .9); padding: 12px 14px; }
.win-toast .toast-replies button { border-radius: 6px; background: rgba(0, 0, 0, .06); flex: 1; }
.win-toast .toast-replies button.picked { background: var(--accent); }
.win-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(243, 243, 243, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.win-icons { display: flex; gap: 10px; }
.win-icons i { width: 22px; height: 22px; border-radius: 6px; background: rgba(0, 0, 0, .14); }
.win-icons i.win-along { background: url(img/icon.png) center / cover; }
.win-clock { position: absolute; right: 14px; display: grid; justify-items: end; font: 400 11px/1.25 var(--sans); color: #1F1E1C; }
.win-clock b { font-weight: 500; }

.nudge-reply { margin: 30px auto 0; max-width: 560px; min-height: 52px; text-align: center; color: var(--muted); font-size: 16px; }
.nudge-reply strong { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .nudge-stage { grid-template-columns: 1fr; }
  .nudge-phone { width: min(100%, 290px); justify-self: center; }
  .win-screen { aspect-ratio: auto; height: 300px; }
  .win-toast { width: calc(100% - 28px); }
}
@media (prefers-color-scheme: dark) {
  .toast-card { background: rgba(40, 38, 35, .88); color: #F3F1EC; }
  .toast-body { color: #D9D5CD; } .toast-top { color: #A39F97; }
  .toast-replies button { color: #F3F1EC; background: rgba(255, 255, 255, .1); }
  .win-toast { background: rgba(32, 32, 32, .92); }
  .win-bar { background: rgba(32, 32, 32, .85); } .win-clock { color: #F3F1EC; } .win-icons i { background: rgba(255, 255, 255, .18); }
}
@media (prefers-reduced-motion: reduce) { .toast-card { transition: none; } }

/* ─── Guide page (guide.html) ───────────────────────────────────────────────────────────────── */
.guide { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }
.guide-head { max-width: 760px; margin: clamp(40px, 7vw, 80px) 0 40px; }
.guide-head h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 16px; }
span.soon { display: inline-block; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--peach-light); border-radius: 999px; padding: 4px 8px; vertical-align: 2px; }
.guide-body > * { min-width: 0; }
.guide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.guide-toc { position: sticky; top: 96px; display: grid; gap: 2px; }
.guide-toc a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 7px 12px; border-radius: 10px; }
.guide-toc a:hover { color: var(--text); background: var(--sunken); }
.guide-text { max-width: 720px; }
.guide-text section { padding: 6px 0 30px; scroll-margin-top: 90px; }
.guide-text h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; margin: 18px 0 12px; }
.guide-text p { color: var(--text-soft); }
.guide-text ul, .guide-text ol { padding-left: 22px; display: grid; gap: 10px; color: var(--text-soft); }
.guide-text li strong { color: var(--text); font-weight: 600; }
.guide-text a { color: var(--accent-ink); }
.guide-table { overflow-x: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-table th { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.guide-table tr:last-child td { border-bottom: 0; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .guide-body { grid-template-columns: 1fr; }
  .guide-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border-radius: 20px; padding: 10px; }
}

/* ─── Footer: brand + three short columns (25 Nov 2026) ──────────────────────────────────────── */
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.foot-brand { display: grid; gap: 14px; }
.foot .foot-col { display: grid; gap: 10px; justify-items: start; }
.foot-title { margin: 0 0 4px; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ─── What's new (whats-new.html) ────────────────────────────────────────────────────────────── */
.news-list { display: grid; gap: 22px; max-width: 760px; }
.news-item { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow); }
.news-date { margin: 0; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-item h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; margin: 10px 0 14px; }
.news-item ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-soft); }
.news-item li strong { color: var(--text); font-weight: 600; }
.news .lede a, .news-item a { color: var(--accent-ink); }

/* ─── Talk, playing (Talk section phone) ─────────────────────────────────────────────────────── */
.screen.talk-screen { aspect-ratio: 390 / 797; display: flex; flex-direction: column; }
.talk-demo { position: absolute; inset: 0; display: flex; flex-direction: column; }
.talk-date { margin: 13cqw 0 0 6cqw; font: 400 3.6cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(31, 30, 28, .55); }
/* The sheet's top is Lon's sky, edge to edge: white with drifting clouds, the land in the page
   colour as one even curve, Lon standing on it at the left (the app's ThreadSky, 26 Nov 2026). */
.talk-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 30cqw; background: var(--bg); border-radius: 7cqw 7cqw 0 0; overflow: hidden; display: flex; flex-direction: column; padding: 0 4.5cqw 6cqw; }
.talk-sky { position: relative; flex: none; height: 33cqw; margin: 0 -4.5cqw; background: var(--surface); overflow: hidden; }
.talk-grab { position: absolute; top: 2.4cqw; left: 50%; translate: -50% 0; width: 10cqw; height: 1.1cqw; border-radius: 9px; background: var(--border); }
.talk-cloud { position: absolute; fill: var(--bg); }
.talk-cloud.c1 { width: 13cqw; top: 6cqw; left: 3cqw; animation: talk-drift 18s ease-in-out infinite alternate; }
.talk-cloud.c2 { width: 17cqw; top: 13cqw; right: 6cqw; animation: talk-drift 23s ease-in-out infinite alternate-reverse; }
.talk-land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 12cqw; fill: var(--bg); }
.screen .talk-lon { position: absolute; left: 6.5cqw; bottom: 5.2cqw; width: 17cqw; }
.screen .talk-lon img { width: 100%; height: auto; }
.talk-who { position: absolute; left: 27cqw; right: 14cqw; top: 12.5cqw; }
.talk-name { margin: 0; font-weight: 600; font-size: 4.3cqw; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-sub { margin: .6cqw 0 0; font-size: 2.9cqw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-busy:empty { display: none; }
.talk-sheet.busy .talk-idle { display: none; }
.talk-more { position: absolute; right: 4.5cqw; top: 6.4cqw; display: flex; gap: .8cqw; }
.talk-more i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--text); }
.talk-thread { flex: 1; display: flex; flex-direction: column; gap: 2.6cqw; margin-top: 2cqw; overflow: hidden; justify-content: flex-end; }
.talk-msg { max-width: 80%; padding: 2.6cqw 3.4cqw; border-radius: 4.5cqw; font-size: 3.3cqw; line-height: 1.4; animation: talk-in .35s cubic-bezier(.22, 1, .36, 1) both; }
.talk-msg b { display: block; font-weight: 600; margin-bottom: .6cqw; }
.talk-msg.lon { position: relative; align-self: flex-start; margin-left: 4cqw; background: var(--surface); color: var(--text); border-bottom-left-radius: 1.4cqw; }
.talk-msg.lon::before, .talk-dots::before { content: ''; position: absolute; left: -4cqw; top: 3.8cqw; width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: var(--accent); }
.talk-msg.you { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 1.4cqw; }
.talk-msg.you.hearing::after { content: ''; display: inline-block; width: .5cqw; height: 3.4cqw; margin-left: .6cqw; background: currentColor; vertical-align: -.5cqw; animation: talk-caret .8s steps(2) infinite; }
.talk-dots { position: relative; margin-left: 4cqw; align-self: flex-start; display: flex; gap: 1.2cqw; padding: 3.2cqw 3.6cqw; background: var(--surface); border-radius: 4.5cqw; animation: talk-in .3s both; }
.talk-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--muted); animation: talk-dot 1s infinite; }
.talk-dots i:nth-child(2) { animation-delay: .15s; } .talk-dots i:nth-child(3) { animation-delay: .3s; }
.talk-cards { margin-left: 4cqw; align-self: stretch; background: var(--surface); border-radius: 4.5cqw; padding: 3cqw; display: grid; gap: 2.2cqw; animation: talk-in .4s cubic-bezier(.22, 1, .36, 1) both; }
.talk-card { display: grid; grid-template-columns: auto 1fr; gap: 2.4cqw; align-items: center; }
.talk-card .tick { width: 5cqw; height: 5cqw; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 3cqw; }
.talk-card p { margin: 0; font-size: 3.4cqw; font-weight: 600; color: var(--text); line-height: 1.25; }
.talk-card small { display: block; font-weight: 400; font-size: 2.8cqw; color: var(--muted); margin-top: .4cqw; }
.talk-apply { margin-top: .6cqw; height: 9cqw; border-radius: 99px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 3.4cqw; transition: transform .2s ease, filter .2s ease; }
.talk-apply.pressed { transform: scale(.96); filter: brightness(.92); }
.talk-done { align-self: center; padding: 2cqw 3.6cqw; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 3cqw; animation: talk-in .3s both; }
.talk-bar { display: flex; align-items: center; gap: 2.6cqw; margin-top: 3.4cqw; }
.talk-input { flex: 1; height: 11cqw; border-radius: 99px; background: var(--surface); display: flex; align-items: center; padding: 0 4cqw; font-size: 3.2cqw; color: var(--muted); overflow: hidden; white-space: nowrap; }
.talk-mic { width: 13cqw; height: 13cqw; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; flex: none; position: relative; }
.talk-mic svg { width: 6cqw; height: 6cqw; }
.talk-mic.on::before { content: ''; position: absolute; inset: -1.6cqw; border-radius: 50%; border: .6cqw solid var(--accent); opacity: .5; animation: talk-pulse 1.2s ease-out infinite; }
.talk-thread.fade { transition: opacity .35s ease; opacity: 0; }
.talk-hint { margin: 2.2cqw 0 0; text-align: center; font-size: 2.6cqw; color: var(--muted); visibility: hidden; }
.talk-sheet.listening .talk-hint { visibility: visible; }
@keyframes talk-drift { from { translate: 0 0; } to { translate: 4cqw 0; } }
@keyframes talk-in { from { opacity: 0; translate: 0 3cqw; } to { opacity: 1; translate: 0 0; } }
@keyframes talk-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes talk-caret { to { visibility: hidden; } }
@keyframes talk-pulse { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-color-scheme: dark) { .talk-date { color: rgba(243, 241, 236, .5); } }
@media (prefers-reduced-motion: reduce) {
  .talk-msg, .talk-dots, .talk-cards, .talk-done { animation: none; }
  .talk-mic.on::before { animation: none; }
  .talk-cloud { animation: none; }
}
/* The quotes are buttons now: tap one to play it in the phone. */
button.quote { font: inherit; text-align: left; border: 0; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
button.quote:hover { transform: translateY(-1px); }
button.quote[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

/* ─── Before → after (after the hero) ───────────────────────────────────────────────────────── */
.ba { margin: clamp(60px, 9vw, 120px) auto; max-width: 1160px; padding: 0 clamp(16px, 4vw, 40px); overflow-x: clip; }
.ba-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: stretch; margin-top: 44px; }
.ba-panel { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.ba-head { background: var(--sunken); box-shadow: none; }
.ba-label { margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ba-cap { margin: 0; font-size: 15px; color: var(--muted); }
.ba-pile { position: relative; flex: 1; min-height: 300px; }
.ba-note { position: absolute; max-width: 62%; padding: 10px 14px; border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.3; box-shadow: 0 6px 16px rgba(31, 30, 28, .1); will-change: transform, opacity; }
.ba-note:nth-child(1) { left: 4%; top: 4%; rotate: -4deg; }
.ba-note:nth-child(2) { left: 46%; top: 10%; rotate: 3deg; }
.ba-note:nth-child(3) { left: 12%; top: 28%; rotate: 6deg; background: var(--peach-light); }
.ba-note:nth-child(4) { left: 52%; top: 34%; rotate: -5deg; }
.ba-note:nth-child(5) { left: 2%; top: 52%; rotate: -2deg; background: var(--peach-light); }
.ba-note:nth-child(6) { left: 40%; top: 56%; rotate: 4deg; }
.ba-note:nth-child(7) { left: 8%; top: 76%; rotate: 3deg; background: var(--peach-light); }
.ba-note:nth-child(8) { left: 44%; top: 80%; rotate: -4deg; }
.ba-arrow { align-self: center; font-size: 28px; color: var(--muted); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(84px, auto); gap: 10px; flex: 1; }
.ba-card { border-radius: 18px; background: transparent; border: 1.5px dashed var(--border); padding: 14px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; transition: background .35s ease, border-color .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.ba-card > * { opacity: 0; transition: opacity .35s ease; }
.ba-card.in > * { opacity: 1; }
.ba-card.big { grid-column: 1 / -1; min-height: 130px; }
.ba-card.wide { grid-column: 1 / -1; }
.ba-card b { font-size: 18px; color: var(--text); }
.ba-card.big b { font-size: 24px; letter-spacing: -.01em; }
.ba-why { font-size: 13px; color: var(--accent-ink); font-weight: 500; }
.ba-now { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.ba-card.in { background: var(--bg); border-color: transparent; animation: ba-pop .45s cubic-bezier(.22, 1, .36, 1); }
@keyframes ba-pop { from { transform: scale(.94); } to { transform: none; } }
.ba-later { border: 1.5px dashed var(--border); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--muted); opacity: .45; transition: opacity .4s ease; }
.ba-later.in { opacity: 1; }
.ba-count { font-weight: 700; color: var(--text); }
.ba-controls { display: flex; justify-content: center; margin-top: 18px; }
.ba-btn { font: 600 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
@media (max-width: 860px) {
  .ba-stage { grid-template-columns: 1fr; }
  .ba-arrow { justify-self: center; rotate: 90deg; }
  .ba-pile { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .ba-card, .ba-card > * { transition: none; } .ba-card.in { animation: none; } }
