/* ==========================================================================
   INTIMATE — marketing site stylesheet
   One shared file, no build step. Derived from the app's own globals.css:
   same warm palette, Fraunces + Inter, 24px "soft card" radius, thread/orb/sky motifs.

   Contents
    1. Fonts
    2. Design tokens (colour, type, space, radius, shadow, motion) + dark mode
    3. Sky (time-of-day colours, same idea as the app's <html data-daypart>)
    4. Reset & base
    5. Layout primitives (container, section, stack, cluster, grid, split)
    6. Typography helpers
    7. Header / nav / mobile menu
    8. Buttons, store badges, chips, tags
    9. Cards, icon bubbles, feature rows, scenes
   10. Phone frame + recreated app UI (the product, drawn in CSS)
   11. Hero
   12. Steps, stats, quotes, checklists, scope lists, veil
   12b. Site-wide & page components (announcement, sticky CTA, tables, tabs, timeline, copybox)
   12c. Product mockups, phase 2 (recap, forecast, cycle, cards, lock screen)
   12d. Animation, demos, showcase
   12f. Round 3: rotator, tilt, drift chips, glow borders, marquee, weave
   13. FAQ accordion
   14. Forms (email capture)
   15. CTA band, footer
   16. Night section (always-dark sky)
   17. Prose (legal / long-form pages)
   18. Utilities
   19. Motion (only when the visitor hasn't asked for less)
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------- */
/* The exact variable fonts the app ships (Fraunces display, Inter text), self-hosted, Latin subset. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}
/* Metric-matched fallbacks so text doesn't jump when the fonts arrive */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Times New Roman");
  ascent-override: 84.71%;
  descent-override: 22.09%;
  line-gap-override: 0%;
  size-adjust: 115.45%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

/* 2. DESIGN TOKENS -------------------------------------------------------- */
@property --sync-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light dark;

  /* Surfaces & ink (app: --bg, --surface, --surface-2, --ink, --muted, --line) */
  --bg: #f7f3ee;
  --surface: #fffdfa;
  --surface-2: #f1ebe4;
  --ink: #2e2a27;
  --ink-2: #4d4640; /* secondary text over nebula glows (muted is too light there) */
  --muted: #6b625b; /* >=5:1 on every light surface */
  --line: #e9e1d8;
  --line-strong: #cfc4b8;
  --glass: rgba(255, 253, 250, 0.66);

  /* Accent: terracotta. --accent is the app's; --accent-ink / --btn are deeper steps that pass AA for text and buttons. */
  --accent: #c07a6b;
  --accent-soft: #f3e2dc;
  --accent-ink: #94483a; /* text/links/eyebrows: 5.9:1 on --bg, 5.2:1 on --accent-soft */
  --accent-ink-sky: #7f3b2f; /* the same role over nebula glows (4.6:1 at the strongest point) */
  --btn: #ad5e4d; /* button fill: 4.7:1 with white */
  --btn-hover: #964c3c;
  --on-btn: #ffffff;

  /* Secondary: sage + dusk */
  --sage: #7f9a7a;
  --sage-soft: #e3ebe0;
  --sage-ink: #4a6a45;
  --dusk: #a597c4;

  /* The two people. Each person in the app picks a colour; rose + violet is the default pair. */
  --me: #c0654f;
  --partner: #6f6bb8;

  /* "Met and loved" glow + day colours (bright, never brown) */
  --loved-1: #ff5e9a;
  --loved-2: #ff9a6b;
  --day-great: #3fae5f;
  --day-hard: #5b9be0;

  --star: rgba(110, 88, 78, 0.55);

  /* Type */
  --font-display: "Fraunces", "Fraunces Fallback", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.3rem;
  --fs-2xl: clamp(1.45rem, 1.2rem + 1.1vw, 1.85rem);
  --fs-3xl: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
  --fs-4xl: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem);
  --fs-hero: clamp(2.55rem, 1.5rem + 4.8vw, 4.9rem);

  /* Space (4pt-ish, rem) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;
  --section-y: clamp(3.75rem, 8vw, 7rem);

  /* Radius: cards are 24px like the app; controls are pills */
  --r-xs: 0.5rem;
  --r-sm: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 999px;

  /* Shadows: always soft, tinted by dusk, never grey-black slabs */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 10px 30px -18px color-mix(in srgb, var(--dusk) 45%, transparent);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 22px 44px -22px color-mix(in srgb, var(--dusk) 70%, transparent);
  --shadow-phone: 0 50px 90px -40px rgba(70, 45, 80, 0.55), 0 14px 28px -14px rgba(30, 20, 30, 0.35);
  --bezel: #211d1b;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 320ms;

  /* Layout */
  --container: 70rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4.25rem;

  /* Sky (see section 3) */
  --glow-1: #eaa77c;
  --glow-2: #8fb6e3;
  --glow-3: #9cc58f;
  --stars: 0.5;
  /* How strongly each glow shows. Lower in dark mode so text stays AA over the brightest dayparts. */
  --gs1: 46%; --gs2: 38%; --gs3: 36%;
}

/* Dark: the app's soft dark, not pure black. Follows the visitor's system setting; [data-theme] can force either. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161413;
    --surface: #201d1b;
    --surface-2: #2a2623;
    --ink: #ede6df;
    --ink-2: #cfc6be;
    --muted: #aaa19a; /* >=5.9:1 on every dark surface */
    --line: #322d2a;
    --line-strong: #4a423d;
    --glass: rgba(32, 29, 27, 0.62);
    --accent: #d9978a;
    --accent-soft: #3a2824;
    --accent-ink: #e8a597;
    --accent-ink-sky: #f0b3a6;
    --gs1: 30%; --gs2: 26%; --gs3: 24%;
    --btn: #d9978a;
    --btn-hover: #e5aa9e;
    --on-btn: #1d1513;
    --sage: #9db298;
    --sage-soft: #26302a;
    --sage-ink: #b4c8af;
    --dusk: #6f5f96;
    --me: #d47462;
    --partner: #8f90e0;
    --star: rgba(255, 244, 230, 0.75);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px color-mix(in srgb, var(--dusk) 70%, transparent);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 44px -22px color-mix(in srgb, var(--dusk) 90%, transparent);
    --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 14px 28px -14px rgba(0, 0, 0, 0.6);
    --bezel: #3b3531;
  }
}
:root[data-theme="dark"] {
  --bg: #161413;
  --surface: #201d1b;
  --surface-2: #2a2623;
  --ink: #ede6df;
  --ink-2: #cfc6be;
  --muted: #aaa19a;
  --line: #322d2a;
  --line-strong: #4a423d;
  --glass: rgba(32, 29, 27, 0.62);
  --accent: #d9978a;
  --accent-soft: #3a2824;
  --accent-ink: #e8a597;
  --accent-ink-sky: #f0b3a6;
  --gs1: 30%; --gs2: 26%; --gs3: 24%;
  --btn: #d9978a;
  --btn-hover: #e5aa9e;
  --on-btn: #1d1513;
  --sage: #9db298;
  --sage-soft: #26302a;
  --sage-ink: #b4c8af;
  --dusk: #6f5f96;
  --me: #d47462;
  --partner: #8f90e0;
  --star: rgba(255, 244, 230, 0.75);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px color-mix(in srgb, var(--dusk) 70%, transparent);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 44px -22px color-mix(in srgb, var(--dusk) 90%, transparent);
  --shadow-phone: 0 50px 90px -40px rgba(0, 0, 0, 0.8), 0 14px 28px -14px rgba(0, 0, 0, 0.6);
  --bezel: #3b3531;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}

/* 3. SKY ------------------------------------------------------------------ */
/* Same five dayparts and colours as the app. site.js sets <html data-daypart> from the visitor's clock;
   without JS the page stays on the "day" palette above. */
:root[data-daypart="dawn"] { --glow-1: #f0a27c; --glow-2: #f2c784; --glow-3: #d993a8; --stars: 0.55; }
:root[data-daypart="day"] { --glow-1: #eaa77c; --glow-2: #8fb6e3; --glow-3: #9cc58f; --stars: 0.5; }
:root[data-daypart="golden"] { --glow-1: #e8955a; --glow-2: #d9786b; --glow-3: #c29ad0; --stars: 0.6; }
:root[data-daypart="evening"] { --glow-1: #cc7390; --glow-2: #7e6bb8; --glow-3: #5d7fb5; --stars: 0.7; }
:root[data-daypart="night"] { --glow-1: #6a5fb8; --glow-2: #3f4d9a; --glow-3: #2f7488; --stars: 1; }

/* A "sky" is any container that paints the nebula behind its content */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Over glows, accent text steps up a shade, and secondary text should be --ink-2 (not --muted). */
  --accent-ink: var(--accent-ink-sky);
}
.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sky::before {
  inset: -8%;
  background:
    radial-gradient(70% 60% at 88% -5%, color-mix(in srgb, var(--glow-1) var(--gs1), transparent), transparent 75%),
    radial-gradient(65% 55% at -8% 42%, color-mix(in srgb, var(--glow-2) var(--gs2), transparent), transparent 75%),
    radial-gradient(70% 60% at 100% 105%, color-mix(in srgb, var(--glow-3) var(--gs3), transparent), transparent 75%),
    radial-gradient(40% 30% at 42% 80%, color-mix(in srgb, var(--glow-1) calc(var(--gs1) * 0.4), transparent), transparent 70%);
}
.sky::after {
  opacity: var(--stars);
  background-image:
    radial-gradient(1px 1px at 20px 30px, var(--star), transparent),
    radial-gradient(1px 1px at 90px 140px, var(--star), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, var(--star), transparent),
    radial-gradient(1px 1px at 230px 190px, var(--star), transparent),
    radial-gradient(1px 1px at 60px 220px, var(--star), transparent),
    radial-gradient(1.5px 1.5px at 280px 20px, var(--star), transparent),
    radial-gradient(1px 1px at 190px 260px, var(--star), transparent),
    radial-gradient(2px 2px at 120px 80px, var(--star), transparent);
  background-size: 300px 300px;
}

/* 4. RESET & BASE --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  /* One step above the browser default, same as the app: every rem here is 17px */
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* never scroll sideways on phones */
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  stroke: currentColor;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 5. LAYOUT PRIMITIVES ---------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--soft { background: var(--surface-2); }
.section--flush-top { padding-top: 0; }

/* Vertical rhythm: children are spaced by --stack (default 1rem) */
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.stack--sm { --stack: var(--s-2); }
.stack--lg { --stack: var(--s-5); }
.stack--xl { --stack: var(--s-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--s-3));
}
.cluster--center { justify-content: center; }
.cluster--between { justify-content: space-between; }

/* Responsive grids. Columns collapse on their own: no breakpoints to remember. */
.grid { display: grid; gap: var(--gap, var(--s-5)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }

/* Rail: a row that scrolls sideways on phones (snap to each item) and becomes a grid from 52rem. For phone galleries. */
.rail {
  display: flex;
  gap: var(--s-5);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--s-2) var(--gutter) var(--s-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; width: 13.5rem; scroll-snap-align: start; }
@media (min-width: 52rem) {
  .rail { display: grid; grid-template-columns: repeat(4, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; align-items: start; }
  .rail > * { width: auto; }
}

/* Two-column "text beside picture". Stacks under 52rem. Picture goes first on --flip at desktop only. */
.split {
  display: grid;
  gap: var(--s-6) var(--s-8);
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}

.center { text-align: center; margin-inline: auto; }
.measure { max-width: 38rem; }
.measure--narrow { max-width: 30rem; }

/* 6. TYPOGRAPHY HELPERS --------------------------------------------------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 400; }
.display { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -0.025em; }
.h1 { font-size: var(--fs-4xl); line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-3xl); line-height: 1.12; }
.h3 { font-size: var(--fs-2xl); line-height: 1.2; }
.h4 { font-size: var(--fs-xl); line-height: 1.25; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
@media (min-width: 40rem) { .lead { font-size: var(--fs-xl); } }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); line-height: 1.4; }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }
.nowrap { white-space: nowrap; }
/* Small label above headings: the app's "✦ Section" header */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: "✦"; font-size: 1.15em; letter-spacing: 0; }
.section-head { max-width: 40rem; margin-bottom: var(--s-7); }
.section-head.center { text-align: center; }
.section-head > * + * { margin-top: var(--s-3); }

/* 7. HEADER / NAV --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark { width: 2.15rem; height: 2.15rem; border-radius: 0.6rem; }
.logo__word { white-space: nowrap; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1; }
.logo__word i { font-style: normal; font-size: 0.65em; color: var(--accent-ink); margin-left: 0.15em; vertical-align: 0.25em; }
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink);
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__list {
  display: grid;
  gap: 0.25rem;
  padding: var(--s-3) var(--gutter) var(--s-5);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: absolute;
  left: 0; right: 0; top: 100%;
}
/* No JS: the menu is simply always visible under the header on phones. */
.js .nav__list[hidden] { display: none; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
@media (max-width: 26rem) {
  .site-header .hide-lg { display: none !important; } /* the hero carries the CTA; keeps the wordmark whole at 360px */
}
@media (max-width: 23rem) {
  .logo__word i { display: none; }
  .site-header__inner { gap: var(--s-2); }
}
@media (min-width: 56rem) {
  .nav__toggle { display: none; }
  .nav__list,
  .js .nav__list[hidden] {
    display: flex;
    position: static;
    padding: 0;
    gap: 0.15rem;
    background: none;
    border: 0;
  }
  .nav__link { min-height: 2.5rem; padding: 0 0.85rem; font-size: var(--fs-sm); }
  .logo { margin-right: 0; }
  .site-header__inner { gap: var(--s-5); }
  .site-header__inner .nav { margin-left: auto; }
}

/* 8. BUTTONS, STORE BADGES, CHIPS, TAGS ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--r-full);
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 550;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--btn) 80%, transparent);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--btn-hover); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--lg { min-height: 3.5rem; padding: 0.9rem 1.9rem; font-size: var(--fs-lg); }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: var(--fs-sm); white-space: nowrap; }
.btn--block { display: flex; width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--soft { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--soft:hover { background: var(--accent-soft); }
.btn .icon { width: 1.25em; height: 1.25em; }

/* Store / install badge. Generic on purpose: swap in the official App Store / Google Play artwork
   (unaltered, per their brand rules) once native listings exist. Until then: "Add to Home Screen". */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.55rem 1.3rem 0.55rem 1rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  text-align: left;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.5);
}
.store:hover { transform: translateY(-1px); text-decoration: none; }
.store .icon { width: 1.7rem; height: 1.7rem; }
.store small { display: block; font-size: 0.7rem; letter-spacing: 0.03em; opacity: 0.85; line-height: 1.2; }
.store strong { display: block; font-size: 1.08rem; font-weight: 600; line-height: 1.2; }

/* Chips: the app's rounded selectable pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.3;
  box-shadow: 0 0 0 1px var(--line);
  white-space: nowrap;
}
.chip--on { background: var(--btn); color: var(--on-btn); box-shadow: none; }
.chip--line { background: transparent; box-shadow: 0 0 0 1px var(--line-strong); }
button.chip { border: 0; cursor: pointer; min-height: 2.5rem; transition: box-shadow var(--t-fast), transform var(--t-fast); }
button.chip:hover { box-shadow: 0 0 0 1px var(--accent); }
button.chip:active { transform: scale(0.96); }
/* Tags: tiny status labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.tag .icon { width: 1em; height: 1em; }
.tag--private { background: color-mix(in srgb, var(--dusk) 22%, var(--surface)); color: var(--ink); }
.tag--shared { background: var(--sage-soft); color: var(--sage-ink); }

/* 9. CARDS, ICON BUBBLES, FEATURE ROWS, SCENES ---------------------------- */
.card {
  position: relative;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card--solid { background: var(--surface); }
.card--soft { background: var(--accent-soft); box-shadow: none; }
.card--sage { background: var(--sage-soft); box-shadow: none; }
.card--flat { background: var(--surface-2); box-shadow: none; }
.card--lift { transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.card--lift:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); }
.card > * + * { margin-top: var(--s-3); }
.card h3 { font-size: var(--fs-xl); }

.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.icon-bubble .icon { width: 1.5rem; height: 1.5rem; }
.icon-bubble--sage { background: var(--sage-soft); color: var(--sage-ink); }
.icon-bubble--dusk { background: color-mix(in srgb, var(--dusk) 24%, var(--surface)); color: var(--ink); }

/* A feature row = .split with copy + .scene. List of small points goes in .checklist */
.feature + .feature { margin-top: var(--s-8); }
.feature__copy > * + * { margin-top: var(--s-4); }

/* Scene: a soft tinted panel that holds a phone (cropped at the bottom, App-Store style) or an illustration. */
.scene {
  --scene-a: var(--glow-1);
  --scene-b: var(--glow-2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-items: end;
  min-height: 26rem;
  padding: var(--s-6) var(--s-5) 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 20% 0%, color-mix(in srgb, var(--scene-a) calc(var(--gs1) * 0.9), transparent), transparent 70%),
    radial-gradient(80% 70% at 100% 100%, color-mix(in srgb, var(--scene-b) calc(var(--gs2) * 1), transparent), transparent 72%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scene--rose { --scene-a: #e8955a; --scene-b: #d9786b; }
.scene--dusk { --scene-a: #a597c4; --scene-b: #7e6bb8; }
.scene--sage { --scene-a: #9cc58f; --scene-b: #8fb6e3; }
.scene--center { align-items: center; padding-bottom: var(--s-6); }
.scene .phone { margin-bottom: -22%; }
.scene--center .phone { margin-bottom: 0; }

/* 10. PHONE FRAME + RECREATED APP UI -------------------------------------- */
/* .phone sets the scale: everything inside is in `em`, and 1em = width / 24, so one --phone-w resizes the lot. */
.phone {
  --phone-w: 17rem;
  position: relative;
  width: var(--phone-w);
  max-width: 100%;
  aspect-ratio: 9 / 19;
  font-size: calc(var(--phone-w) / 24);
  margin-inline: auto;
}
.phone--lg { --phone-w: 19rem; }
.phone--md { --phone-w: 16rem; }
.phone__body {
  position: absolute;
  inset: 0;
  border-radius: 3.4em;
  background: var(--bezel);
  padding: 0.5em;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2.95em;
  background: var(--bg);
}
/* A faint nebula inside the screen: the app's own look */
.phone__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 45% at 90% 0%, color-mix(in srgb, var(--glow-1) calc(var(--gs1) * 0.8), transparent), transparent 75%),
    radial-gradient(70% 40% at 0% 40%, color-mix(in srgb, var(--glow-2) calc(var(--gs2) * 0.8), transparent), transparent 75%);
  pointer-events: none;
}
.phone__island {
  position: absolute;
  top: 0.9em;
  left: 50%;
  z-index: 3;
  width: 6.6em;
  height: 1.85em;
  transform: translateX(-50%);
  border-radius: var(--r-full);
  background: #000;
}
.phone--fade .phone__screen::after,
.phone--crop:not(.phone--nofade) .phone__screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--bg) 90%);
  pointer-events: none;
}
.phone--sm { --phone-w: 13.5rem; }
/* Cropped: the bottom of the phone is cut off, App-Store style. Good for galleries where content is short. */
.phone--crop { aspect-ratio: 9 / 14.5; }
.phone--crop .phone__body { border-radius: 3.4em 3.4em 0 0; padding-bottom: 0; }
.phone--crop .phone__screen { border-radius: 2.95em 2.95em 0 0; }
.phone--tilt-l { transform: rotate(-4deg); }
.phone--tilt-r { transform: rotate(4deg); }

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 3.4em 1.15em 0;
  display: grid;
  align-content: start;
  gap: 0.85em;
  font-family: var(--font-sans);
  font-size: 1em;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
}
.app-status {
  position: absolute;
  top: 0.95em;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2em;
  font-size: 0.82em;
  font-weight: 600;
}
.app-date { font-size: 0.82em; color: var(--muted); }
.app-h1 { font-family: var(--font-display); font-size: 1.75em; line-height: 1.1; letter-spacing: -0.01em; }
.app-h1 b { font-weight: 400; color: var(--me); }
.app-sub { font-size: 0.8em; color: var(--muted); }
.app-label { font-size: 0.88em; font-weight: 550; color: var(--muted); }
.app-card {
  padding: 0.95em;
  border-radius: 1.4em;
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line), 0 0.6em 1.8em -1.2em color-mix(in srgb, var(--dusk) 55%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.app-card > * + * { margin-top: 0.6em; }
.app-chips { display: flex; flex-wrap: wrap; gap: 0.4em; }
.app-chip {
  padding: 0.32em 0.7em;
  border-radius: var(--r-full);
  background: var(--surface-2);
  font-size: 0.82em;
  white-space: nowrap;
}
.app-chip.is-on { background: var(--btn); color: var(--on-btn); }
.app-note {
  padding: 0.7em 0.8em;
  border-radius: 1em;
  background: var(--accent-soft);
  font-size: 0.82em;
}
.app-note--quote { font-family: var(--font-display); font-size: 1.02em; line-height: 1.3; background: var(--surface-2); }
.app-lock { font-size: 0.74em; color: var(--muted); text-align: center; }

/* "You're in sync": a ring of light in both people's colours */
.app-sync {
  padding: 0.22em;
  border-radius: 1.5em;
  background: conic-gradient(from var(--sync-angle), var(--me) 0%, var(--partner) 38%, color-mix(in oklab, var(--partner) 30%, white) 46%, white 50%, color-mix(in oklab, var(--me) 30%, white) 54%, var(--me) 62%, var(--partner) 85%, var(--me) 100%);
  box-shadow: -0.5em 0 1.6em -0.6em color-mix(in oklab, var(--me) 60%, transparent), 0.5em 0 1.6em -0.6em color-mix(in oklab, var(--partner) 60%, transparent);
}
.app-sync__in {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.85em;
  border-radius: 1.28em;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.app-faces { display: flex; flex: none; }
.app-faces span {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: var(--r-full);
  font-size: 1.1em;
  box-shadow: 0 0 0 0.12em var(--surface);
}
.app-faces span:first-child { background: color-mix(in srgb, var(--me) 22%, var(--surface)); }
.app-faces span + span { margin-left: -0.5em; background: color-mix(in srgb, var(--partner) 22%, var(--surface)); }
.app-sync__title { font-family: var(--font-display); font-size: 1.1em; line-height: 1.15; }
.app-sync__line { font-size: 0.78em; color: var(--muted); margin-top: 0.15em; }

/* Mood grid + five-icon scale (the check-in) */
.app-moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }
.app-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3em; }
.app-opt {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  padding: 0.5em 0.1em 0.4em;
  border-radius: 1em;
  background: var(--surface-2);
  font-size: 0.7em;
  color: var(--muted);
  line-height: 1.15;
  text-align: center;
}
.app-opt span:first-child { font-size: 1.9em; line-height: 1.1; }
.app-opt.is-on { background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 0.16em var(--accent); }
.app-hearts { letter-spacing: 0.08em; color: var(--accent); font-size: 1.1em; }
.app-hearts .off { color: var(--muted); opacity: 0.4; }
.app-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }

/* Connection bubbles (Home) */
.app-bubbles { display: flex; flex-wrap: wrap; gap: 0.4em; }
.app-bubble {
  padding: 0.38em 0.75em;
  border-radius: var(--r-full);
  background: var(--surface-2);
  font-size: 0.8em;
}
.app-bubble.is-on {
  background: linear-gradient(135deg, color-mix(in oklab, var(--loved-1) 26%, var(--surface)), color-mix(in oklab, var(--loved-2) 40%, var(--surface)));
  box-shadow: 0 0 0.9em -0.2em color-mix(in srgb, var(--loved-1) 55%, transparent);
}

/* Tab bar at the bottom of a screen */
.app-tabs {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  padding: 0.7em 0.6em 1.15em;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.app-tabs span { display: grid; justify-items: center; gap: 0.15em; font-size: 0.62em; color: var(--muted); }
.app-tabs span.is-on { color: var(--accent-ink); }
.app-tabs .icon { width: 2.1em; height: 2.1em; }

/* A full-bleed dusk "share card" (the Share studio's story format) */
.app--bleed { padding: 0; grid-template-rows: 1fr; }
.app-story {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1em;
  height: 100%;
  padding: 3.6em 1.4em 1.8em;
  color: #f8f1ea;
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(192, 122, 107, 0.55), transparent 70%),
    radial-gradient(70% 50% at 0% 60%, rgba(111, 107, 184, 0.5), transparent 70%),
    linear-gradient(180deg, #1c1633, #1a1426 55%, #14161f);
}
.app-story h4 { font-size: 1.5em; line-height: 1.15; }
.app-story__stat { font-family: var(--font-display); font-size: 3.4em; line-height: 1; }
.app-story__stat small { display: block; margin-top: 0.3em; font-family: var(--font-sans); font-size: 0.3em; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; }
.app-story .rings { width: 5em; opacity: 0.9; }

/* The threads map sits straight in a phone (it's already a dark card) */
.app-threads { margin-inline: -0.2em; border-radius: 1.5em; overflow: hidden; }

/* 11. HERO ---------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(7rem, 16vw, 13rem); }
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.hero__copy > * + * { margin-top: var(--s-4); }
.hero__copy .display { margin-top: var(--s-3); }
.hero__cta { margin-top: var(--s-5); }
.hero__fine { font-size: var(--fs-sm); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: var(--s-4); }
.hero__fine span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__fine .icon { width: 1.1em; height: 1.1em; color: var(--sage-ink); }
.hero__stage { position: relative; display: grid; place-items: center; }
/* The braid of threads between two orbs, behind everything */
.hero__threads {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: clamp(8rem, 30vw, 22rem);
  opacity: 0.8;
  pointer-events: none;
}
.hero__threads svg { width: 100%; height: 100%; }
/* Little cards that float beside the phone: what each person sees of the other */
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lift);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
}
.float-chip .icon { width: 1.15em; height: 1.15em; color: var(--accent-ink); }
/* On wide screens the phone sits left in its column and the chips float to its right, overlapping the edge by a hair
   (app content is left-aligned, so that edge is mostly empty). Hidden below that: no room beside the phone. */
.float-chip { display: none; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-6); }
}
@media (min-width: 70rem) {
  .hero__stage { justify-items: start; }
  .float-chip { display: inline-flex; }
  .float-chip--a { top: 22%; right: 0; }
  .float-chip--b { bottom: 20%; right: 0.5rem; }
}
/* Inner-page hero: smaller, no phone */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero > .container > * + * { margin-top: var(--s-4); }

/* 12. STEPS, STATS, QUOTES, CHECKLISTS, SCOPE LISTS, VEIL ------------------ */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
.step { position: relative; padding-left: 4rem; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-card);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-ink);
}
/* the thread that joins the steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3.3rem;
  bottom: calc(-1 * var(--s-6) - 0.3rem);
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 10px);
  opacity: 0.6;
}
.step h3 { font-size: var(--fs-xl); margin-bottom: 0.3rem; }
@media (min-width: 52rem) {
  .steps--row { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .steps--row .step { padding: 4.4rem 0 0 0; }
  .steps--row .step:not(:last-child)::after {
    left: 3.6rem; right: calc(-1 * var(--s-6) + 0.6rem);
    top: 1.5rem; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--accent) 0 5px, transparent 5px 10px);
  }
}

.stat__num { font-family: var(--font-display); font-size: var(--fs-4xl); line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin-top: 0.4rem; font-size: var(--fs-sm); color: var(--muted); }

.quote {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.quote .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); margin-bottom: var(--s-3); }
.quote p { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.3; letter-spacing: -0.01em; }
.quote footer { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }

.checklist > li {
  position: relative;
  padding-left: 2rem;
}
.checklist > li + li { margin-top: var(--s-3); }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em;
  width: 1.25rem; height: 1.25rem;
  border-radius: var(--r-full);
  background: var(--sage-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sage) 50%, transparent);
}
.checklist > li::after {
  content: "";
  position: absolute;
  left: 0.42rem; top: 0.5em;
  width: 0.4rem; height: 0.65rem;
  border: solid var(--sage-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.checklist--no > li::before { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
/* a small cross, drawn from two hairlines */
.checklist--no > li::after {
  left: 0.36rem; top: calc(0.28em + 0.36rem);
  width: 0.53rem; height: 0.53rem;
  border: 0; transform: none;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--accent-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--accent-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

/* "Who sees what": each row says what a thing is and whether it stays private or is shared */
.scope { display: grid; gap: 0.6rem; }
.scope__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.scope__row > span:first-child { display: flex; align-items: center; gap: 0.6rem; }
.scope__row .icon { color: var(--muted); }

/* The veil: private content, softly blurred, with a small lock. Shows "it's here, and it's yours" without showing anything. */
.veil { position: relative; overflow: hidden; border-radius: var(--r-md); }
.veil__text { filter: blur(5px); opacity: 0.8; user-select: none; }
.veil__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.veil__lock span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-card);
  font-size: var(--fs-sm);
  font-weight: 550;
}
.veil__lock .icon { width: 1.05em; height: 1.05em; color: var(--accent-ink); }

/* In-sync mini demo (site.js): pick how you each feel; within one step and the ring lights up */
.syncdemo { display: grid; gap: var(--s-4); }
.syncdemo__row { display: grid; gap: 0.5rem; }
.syncdemo__who { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; }
.syncdemo__who i { width: 0.7rem; height: 0.7rem; border-radius: var(--r-full); background: var(--c, var(--me)); }
.syncdemo__opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.syncdemo__opt {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-height: 4rem;
  padding: 0.5rem 0.1rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--fs-xs);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.syncdemo__opt span:first-child { font-size: 1.5rem; line-height: 1.2; }
.syncdemo__opt[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 2px var(--c, var(--accent)); }
.syncdemo__result { min-height: 6.25rem; }
.syncdemo__result .app-sync { transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.syncdemo__result[data-state="idle"] .app-sync { opacity: 0.35; transform: scale(0.98); filter: grayscale(1); }
.syncdemo__result .app-sync__title { font-size: 1.25rem; }
.syncdemo__result .app-sync__line { font-size: var(--fs-sm); }
.syncdemo__result .app-faces span { width: 3rem; height: 3rem; font-size: 1.4rem; }

/* Colour pair picker (each person chooses their colour in the app; pairs below never clash) */
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--r-full);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.swatch i { width: 1.1rem; height: 1.1rem; border-radius: var(--r-full); background: var(--a); }
.swatch i + i { margin-left: -0.5rem; background: var(--b); box-shadow: 0 0 0 2px var(--surface-2); }
.swatch span { margin-left: 0.25rem; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent-ink); }

/* 12b. SITE-WIDE & PAGE COMPONENTS (from the sitemap: announcement, sticky CTA, tables, tabs, copybox ...) */

/* global.announcement: one dismissible line above the header */
.announcement {
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-sm);
}
.announcement__inner { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 2.75rem; padding-block: 0.35rem; text-align: center; }
.announcement a { color: inherit; font-weight: 550; }
.announcement__close {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -0.75rem;
  border: 0; background: none; color: inherit; border-radius: var(--r-full);
}
.announcement[hidden] { display: none; }

/* global.sticky-cta: mobile only, slides up after the first screen, hides again near the final CTA */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t-med) var(--ease);
}
.sticky-cta.is-visible { transform: none; }
/* No JS: no sticky bar. Desktop: never. */
.sticky-cta { display: none; }
.js .sticky-cta { display: block; }
@media (min-width: 52rem) { .js .sticky-cta { display: none; } }
.sticky-cta:not(.is-visible) { visibility: hidden; }

/* Breadcrumb + "next feature" link for feature pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.crumbs ol { display: flex; flex-wrap: wrap; }
.card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--s-3); font-weight: 550; font-size: var(--fs-sm); color: var(--accent-ink); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.card__link .icon { width: 1.1em; height: 1.1em; transition: transform var(--t-fast); }
.card:hover .card__link .icon { transform: translateX(3px); }

/* Two-sides panel ("what you see / what stays with you") */
.sides { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .sides { grid-template-columns: 1fr 1fr; } }
.sides h3 { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; }
.sides .icon { color: var(--accent-ink); }

/* Who-sees-what table (privacy page). A real <table>; stacks into labelled rows on phones. */
.table-wrap { border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); background: var(--surface); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); text-align: left; }
.table caption { text-align: left; padding: var(--s-4) var(--s-4) 0; font-size: var(--fs-sm); color: var(--muted); }
.table th, .table td { padding: 0.85rem var(--s-4); vertical-align: top; }
.table thead th { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.table tbody tr + tr > * { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 550; }
@media (max-width: 39.99rem) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table tr { padding: var(--s-3) var(--s-4); }
  .table tbody tr + tr > *, .table th, .table td { border: 0 !important; padding: 0.15rem 0; }
  .table tbody tr + tr { border-top: 1px solid var(--line); }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* "Gets better with use" timeline (how.unlocks) */
.timeline { position: relative; display: grid; gap: var(--s-5); padding-left: 0; }
.timeline__item { position: relative; padding-left: 5rem; min-height: 3.2rem; }
.timeline__item::before { /* the thread */
  content: ""; position: absolute; left: 1.7rem; top: 3.2rem; bottom: calc(-1 * var(--s-5) - 0.2rem); width: 2px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 10px); opacity: 0.55;
}
.timeline__item:last-child::before { display: none; }
.timeline__day {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 650; line-height: 1.1; text-align: center;
}
.timeline__day b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.timeline__item h3 { font-size: var(--fs-xl); margin-bottom: 0.2rem; }

/* Mirror: lines of recognition on the persona pages. Large, quiet, one thread running down the side. */
.mirror { position: relative; display: grid; gap: var(--s-4); padding-left: var(--s-5); max-width: 36rem; }
.mirror::before { content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--me), var(--partner)); opacity: 0.75; }
.mirror p { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.25; letter-spacing: -0.01em; }

/* Install steps with a device picker (get-the-app). No JS: all three panels show. JS: tabs + device detection. */
.tabs__list { display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-full); background: var(--surface-2); width: fit-content; max-width: 100%; }
.tabs__tab { min-height: 2.75rem; padding: 0.4rem 1.1rem; border: 0; border-radius: var(--r-full); background: transparent; color: var(--muted); font-weight: 550; font-size: var(--fs-sm); white-space: nowrap; }
.tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tabs__panel { margin-top: var(--s-5); }
.tabs__panel[hidden] { display: none; }
.tabs__list { display: none; }
.js .tabs__list { display: flex; }
.js [data-tabs] .tabs__panel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* heading only needed when all panels show */

/* Copy-ready message to send to your person (get-the-app, thanks, join) */
.copybox { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.copybox__text { font-size: var(--fs-base); line-height: 1.5; color: var(--ink); white-space: pre-line; }
@media (min-width: 40rem) { .copybox { grid-template-columns: 1fr auto; align-items: center; } }

/* The big dark threads moment on Home (home.threads): the wide map, full container width */
.threads-wide { max-width: 46rem; margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(30, 20, 60, 0.45)); }
.threads-wide img, .threads-wide svg { width: 100%; height: auto; border-radius: var(--r-xl); }
.threads-wide .phone-version { display: none; }
@media (max-width: 39.99rem) { .threads-wide .wide-version { display: none; } .threads-wide .phone-version { display: block; } }

/* Short facts in a row (home.proof-strip) */
.proof { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem var(--s-3); align-items: start; }
.proof .icon-bubble { grid-row: span 2; width: 2.6rem; height: 2.6rem; }
.proof .icon-bubble .icon { width: 1.3rem; height: 1.3rem; }
.proof strong { font-weight: 600; font-size: var(--fs-base); line-height: 1.3; }
.proof span.body { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

/* Placeholder slots for real testimonials (hidden until real: add [hidden] or remove the section) */
.slot { padding: var(--s-5); border-radius: var(--r-lg); border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: var(--fs-sm); }

/* 12c. PRODUCT MOCKUPS, PHASE 2 (recap, forecast, cycle, share cards, lock screen, answers, code) */

/* Answer buttons: Yes / Later / Not today */
.app-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }
.app-answer { padding: 0.65em 0.2em; border-radius: 1em; background: var(--surface-2); text-align: center; font-size: 0.86em; font-weight: 550; }
.app-answer.is-on { background: var(--btn); color: var(--on-btn); }
/* Heart row with labelled ends */
.app-heartrow { display: flex; justify-content: space-between; font-size: 1.9em; line-height: 1; color: var(--accent); }
.app-heartrow .off { color: var(--muted); opacity: 0.4; }
.app-heartends { display: flex; justify-content: space-between; font-size: 0.74em; color: var(--muted); }
.app-list { display: grid; gap: 0.4em; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.55em 0.75em; border-radius: 1em; background: var(--surface-2); font-size: 0.86em; }
.app-row small { color: var(--muted); font-size: 0.85em; }

/* Day tiles: weekly recap, forecast, cycle strip */
.app-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3em; }
.app-days--14 { grid-template-columns: repeat(7, 1fr); }
.app-day {
  display: grid; justify-items: center; align-content: center; gap: 0.1em;
  padding: 0.45em 0; border-radius: 0.9em; background: var(--surface-2);
  font-size: 0.68em; line-height: 1.15; color: var(--muted); text-align: center; min-height: 3.6em;
}
.app-day b { font-weight: 500; font-size: 1.5em; line-height: 1.1; color: var(--ink); }
.app-day.is-sync {
  color: #fff;
  background: linear-gradient(135deg, var(--me), var(--partner));
  box-shadow: 0 0 0.9em -0.2em color-mix(in srgb, var(--partner) 60%, transparent);
}
.app-day.is-sync b { color: #fff; }
.app-day.is-today { background: var(--accent-soft); box-shadow: 0 0 0 0.16em var(--accent); color: var(--ink); }
.app-day.great { background: color-mix(in srgb, var(--day-great) 30%, var(--surface)); }
.app-day.hard { background: color-mix(in srgb, var(--day-hard) 28%, var(--surface)); }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; }
.app-tile { padding: 0.7em; border-radius: 1.1em; background: var(--surface-2); }
.app-tile .num { font-family: var(--font-display); font-size: 1.7em; line-height: 1.1; }
.app-tile small { display: block; font-size: 0.74em; color: var(--muted); line-height: 1.25; }
.app-orbs { width: 100%; height: auto; }
.app-orbs circle:first-of-type { fill: var(--me); }

/* Share cards: story format, fanned */
.sharecard {
  --w: 10.5rem;
  position: relative; display: grid; align-content: space-between; gap: 0.8rem;
  width: var(--w); aspect-ratio: 9 / 16; padding: 1.1rem 0.95rem 0.9rem; border-radius: 1.1rem;
  font-size: 0.8rem; line-height: 1.3; color: #f8f1ea;
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(192, 122, 107, 0.55), transparent 70%),
    radial-gradient(70% 50% at 0% 60%, rgba(111, 107, 184, 0.5), transparent 70%),
    linear-gradient(180deg, #1c1633, #1a1426 55%, #14161f);
  box-shadow: 0 24px 40px -22px rgba(30, 20, 60, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sharecard--cream { color: #2e2a27; background: linear-gradient(180deg, #fffdfa, #f7f3ee); box-shadow: 0 24px 40px -22px rgba(70, 45, 80, 0.4), inset 0 0 0 1px #e4dacf; }
.sharecard__label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.78; }
.sharecard__big { font-family: var(--font-display); font-size: 3.1rem; line-height: 1; }
.sharecard__big small { display: block; margin-top: 0.4rem; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.78; }
.sharecard__foot { font-size: 0.6rem; opacity: 0.75; }
.sharecard svg { width: 100%; height: auto; }
.sharecard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sharecard__grid b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; line-height: 1.1; }
.fan { display: flex; justify-content: center; padding: var(--s-5) 0 var(--s-6); }
.fan > * { margin-inline: -1.4rem; transition: transform var(--t-med) var(--ease); }
.fan > :nth-child(1) { transform: rotate(-9deg) translateY(1rem); }
.fan > :nth-child(2) { transform: translateY(-0.4rem); z-index: 1; }
.fan > :nth-child(3) { transform: rotate(9deg) translateY(1rem); }
@media (max-width: 30rem) { .sharecard { --w: 8.6rem; font-size: 0.7rem; } .sharecard__big { font-size: 2.4rem; } .fan > * { margin-inline: -1.8rem; } }
.looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--s-4); }
.look { height: 5.5rem; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-items: end; padding: 0.6rem 0.75rem; font-size: var(--fs-sm); font-weight: 550; }
.look--dusk { color: #f8f1ea; background: linear-gradient(180deg, #1c1633, #14161f); }
.look--cream { background: linear-gradient(180deg, #fffdfa, #f1ebe4); }
.look--clear { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 1rem 1rem; }
.look--photo { color: #fff; background: linear-gradient(160deg, #6a5fb8, #e8955a 70%, #2f7488); }

/* Lock screen with a discreet notification */
.lockscreen {
  position: absolute; inset: 0; z-index: 1; display: grid; align-content: start; justify-items: center; gap: 0.4em; padding: 5.2em 1em 0; text-align: center; color: #fff;
  background:
    radial-gradient(80% 50% at 85% 0%, rgba(232, 149, 90, 0.55), transparent 70%),
    radial-gradient(70% 50% at 0% 60%, rgba(111, 107, 184, 0.6), transparent 70%),
    linear-gradient(180deg, #2b2142, #1a1426 60%, #14161f);
}
.lockscreen__date { font-size: 0.95em; opacity: 0.85; }
.lockscreen__time { font-size: 4.4em; font-weight: 300; line-height: 1; letter-spacing: -0.02em; margin-bottom: 1.6em; }
.notif {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2em 0.7em; width: 100%; padding: 0.8em 0.9em; border-radius: 1.4em; text-align: left;
  background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.notif + .notif { margin-top: 0.4em; }
.notif img { grid-row: span 2; width: 2.5em; height: 2.5em; border-radius: 0.6em; }
.notif b { font-size: 0.86em; font-weight: 600; display: flex; justify-content: space-between; }
.notif b small { font-weight: 400; opacity: 0.75; }
.notif span { font-size: 0.86em; }

/* Onboarding code (monospace, tracked) */
.code { display: inline-flex; gap: 0.35em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code b { display: grid; place-items: center; width: 1.7em; height: 2.1em; border-radius: 0.5em; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 1.15em; letter-spacing: 0; }
.app-btn { display: block; padding: 0.8em; border-radius: var(--r-full); text-align: center; background: var(--btn); color: var(--on-btn); font-weight: 550; font-size: 0.95em; }
.app-btn--ghost { background: var(--surface-2); color: var(--ink); }

/* Month in dots (felt-connected) and month strips (reports) */
.dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(0.8rem, 1fr)); gap: 0.35rem; max-width: min(100%, 30rem); }
.dots i { aspect-ratio: 1; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dots i.a { background: var(--me); box-shadow: none; }
.dots i.b { background: var(--partner); box-shadow: none; }
.dots-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-3); }
.dots-key span::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.4rem; border-radius: 50%; background: var(--c); }
.strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 0.18rem; }
.strip i { aspect-ratio: 1; border-radius: 0.2rem; background: color-mix(in srgb, var(--c, var(--me)) calc(var(--l, 0.2) * 100%), var(--surface-2)); }
.strip-label { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin: var(--s-3) 0 0.3rem; }

/* Diagrams */
.diagram { padding: var(--s-5); border-radius: var(--r-xl); color: #f4eef9; background: radial-gradient(circle at 50% 30%, #272036, #100d18 85%); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: var(--s-3); font-size: var(--fs-sm); color: #bfb4cf; }

/* Page-level extras */
.beforeafter { display: grid; gap: var(--s-4); }
@media (min-width: 52rem) { .beforeafter { grid-template-columns: 1fr 1fr; } }
.beforeafter .tag { margin-bottom: var(--s-3); }
.beforeafter time { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.beats { display: grid; gap: var(--s-4); counter-reset: beat; }
@media (min-width: 52rem) { .beats { grid-template-columns: repeat(4, 1fr); } }
.beat { counter-increment: beat; }
.beat::before { content: counter(beat); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: var(--s-3); border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-size: 1.25rem; }
.next-card { display: grid; gap: 0.25rem; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform var(--t-med) var(--ease); }
.next-card:hover { transform: translateY(-2px); text-decoration: none; }
.next-card span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.next-card strong { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); color: var(--accent-ink); }
.qr-slot { display: grid; place-items: center; width: 9.5rem; aspect-ratio: 1; padding: 0.75rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); font-size: var(--fs-xs); text-align: center; }
.ph { background: color-mix(in srgb, var(--dusk) 22%, transparent); border-radius: 0.25em; padding: 0 0.2em; box-decoration-break: clone; }
.banner { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--accent-soft); color: var(--ink); }
.pill-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.5rem; scrollbar-width: none; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav a { flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; box-shadow: inset 0 0 0 1px var(--line); }
.pill-nav a:hover { background: var(--accent-soft); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.faq-group + .faq-group { margin-top: var(--s-7); }
.faq-group > h2 { margin-bottom: var(--s-4); }
.page-hero--night { color: var(--ink); }
.cols-2 { display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .cols-2 { grid-template-columns: 1fr 1fr; } }
.centered-page { min-height: 70vh; display: grid; align-content: center; }
.notfound .constellation { width: min(20rem, 80%); margin-inline: auto; }
.form-state { margin-top: var(--s-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.4rem) 55%, calc(100% - 1.05rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.4rem; }

/* 12d. ANIMATION, DEMOS, SHOWCASE ---------------------------------------------------------------
   Rules: transform + opacity only for anything that loops; loops only when motion is welcome (the
   no-preference block at the end), paused when off screen (.demo:not(.in-view)); every demo's finished
   state is its default, so no-JS and reduced-motion visitors see the complete picture. */

@property --glow-1 { syntax: "<color>"; inherits: true; initial-value: #eaa77c; }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: #8fb6e3; }
@property --glow-3 { syntax: "<color>"; inherits: true; initial-value: #9cc58f; }
.skydemo[data-daypart="dawn"] { --glow-1: #f0a27c; --glow-2: #f2c784; --glow-3: #d993a8; }
.skydemo[data-daypart="day"] { --glow-1: #eaa77c; --glow-2: #8fb6e3; --glow-3: #9cc58f; }
.skydemo[data-daypart="golden"] { --glow-1: #e8955a; --glow-2: #d9786b; --glow-3: #c29ad0; }
.skydemo[data-daypart="evening"] { --glow-1: #cc7390; --glow-2: #7e6bb8; --glow-3: #5d7fb5; }
.skydemo[data-daypart="night"] { --glow-1: #6a5fb8; --glow-2: #3f4d9a; --glow-3: #2f7488; }
.skydemo { padding: var(--s-5); border-radius: var(--r-lg); min-height: 8.5rem; box-shadow: inset 0 0 0 1px var(--line); }

/* Header gets quieter-then-firmer as you scroll */
.site-header { transition: box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease); }
.site-header .logo__mark { transition: transform var(--t-med) var(--ease); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 12px 28px -24px rgba(40, 25, 60, 0.6); }
.site-header.is-scrolled .logo__mark { transform: scale(0.9); }

/* Hover and press, kept small */
.chip, .app-bubble, .app-chip, .app-answer, .swatch, .habit, .flip { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); }
button.chip:active, .swatch:active, .habit:active { transform: scale(0.97); }
.faq summary { transition: background var(--t-fast); }
.faq summary:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }

/* The Demo wrapper */
.demo { display: grid; justify-items: center; gap: var(--s-3); width: 100%; }
.demo__stage { width: 100%; display: grid; justify-items: center; }
.demo__bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: center; min-height: 2.75rem; }
.demo__hint { margin: 0; }
.demo .mini { width: min(100%, 26rem); }
.demo__replay .icon { width: 1.1em; height: 1.1em; }
.app-chip, .app-bubble { border: 0; font: inherit; color: inherit; cursor: pointer; }
.app-chip { background: var(--surface-2); }
.app-chip.is-on { background: var(--btn); color: var(--on-btn); }
.app-answer { border: 0; font: inherit; cursor: pointer; color: inherit; }
button.app-day { border: 0; font: inherit; cursor: pointer; }
.app-chip:focus-visible, .app-bubble:focus-visible, .app-answer:focus-visible, .app-day:focus-visible, .flip:focus-visible, .habit:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* check-in sliders (real <input type=range>, so the keyboard works) */
.app-sliders > * + * { margin-top: 0.7em; }
.app-slider { display: block; }
.app-slider__top { display: flex; justify-content: space-between; align-items: baseline; }
.app-slider output { font-size: 0.82em; font-weight: 550; color: var(--ink); }
.app-slider input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.1em; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.app-slider input[type="range"]::-webkit-slider-runnable-track { height: 0.75em; border-radius: 99px; background: linear-gradient(to right, var(--me) var(--pct), var(--surface-2) var(--pct)); }
.app-slider input[type="range"]::-moz-range-track { height: 0.75em; border-radius: 99px; background: linear-gradient(to right, var(--me) var(--pct), var(--surface-2) var(--pct)); }
.app-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.7em; height: 1.7em; margin-top: -0.48em; border-radius: 50%; background: var(--surface); border: 0.32em solid var(--me); box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.18); }
.app-slider input[type="range"]::-moz-range-thumb { width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--surface); border: 0.32em solid var(--me); }
.app-slider input[type="range"]:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-radius: 0.6em; }
.app-saved { font-size: 0.78em; color: var(--sage-ink); text-align: center; transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.js .app-sliders:not(.is-saved) .app-saved { opacity: 0; transform: translateY(0.4em); }

/* needs */
.app-hearts-card .h { display: inline-block; color: var(--accent); }
.js .demo[data-demo="needs"] .app-hearts-card { transition: opacity var(--t-med); }
.js .demo[data-demo="needs"]:not([data-picked="yes"]) .app-hearts-card { opacity: 0.4; }
.js .demo[data-demo="needs"]:not([data-picked="yes"]) .app-hearts-card .h { opacity: 0.35; }
.demo[data-picked="yes"] [data-pick="yes"], .demo[data-picked="later"] [data-pick="later"], .demo[data-picked="not"] [data-pick="not"] { background: var(--btn); color: var(--on-btn); }
.app-answer:active { transform: scale(0.95); }
.app-reply { transition: opacity var(--t-med); }

/* sync: two orbs drift together, then the card lights */
.app-meet { position: relative; display: grid; place-items: center; height: 4.4em; }
.app-meet::before { content: ""; position: absolute; width: 5.6em; height: 5.6em; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--partner) 45%, transparent), transparent 70%); opacity: 0.8; }
.app-meet__o { position: absolute; width: 3.4em; height: 3.4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, white), var(--c) 72%); opacity: 0.88; }
.app-meet__o.a { --c: var(--me); transform: translateX(-0.9em); }
.app-meet__o.b { --c: var(--partner); transform: translateX(0.9em); }
.js .demo[data-demo="sync"]:not(.is-done) .app-meet__o.a { transform: translateX(-6.5em); }
.js .demo[data-demo="sync"]:not(.is-done) .app-meet__o.b { transform: translateX(6.5em); }
.js .demo[data-demo="sync"]:not(.is-done) .app-sync-reveal { opacity: 0; transform: scale(0.94) translateY(0.5em); }

/* threads draw themselves */
.app-threads svg { width: 100%; height: auto; display: block; }
.tm-thread path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .demo[data-demo="threads"]:not(.is-done) .tm-thread path { stroke-dashoffset: 1; }
.js .demo[data-demo="threads"]:not(.is-done) .tm-thread text { opacity: 0; }
.js .demo[data-demo="threads"]:not(.is-done) .tm-orb { opacity: 0; }

/* recap */
.js .demo[data-demo="recap"]:not(.is-done) .app-tile,
.js .demo[data-demo="recap"]:not(.is-done) .app-day { opacity: 0; transform: translateY(0.7em); }
.demo[data-demo="recap"] .app-day.is-sync { position: relative; background: var(--surface-2); color: var(--ink); box-shadow: none; }
.demo[data-demo="recap"] .app-day.is-sync b { color: var(--ink); }
.demo[data-demo="recap"] .app-day.is-sync::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--me) 40%, var(--surface)), color-mix(in srgb, var(--partner) 40%, var(--surface))); box-shadow: 0 0 0.9em -0.2em color-mix(in srgb, var(--partner) 60%, transparent); }
.demo[data-demo="recap"] .app-day > * { position: relative; z-index: 1; }
.js .demo[data-demo="recap"]:not(.is-done) .app-day.is-sync::before { opacity: 0; }

/* forecast */
.app-orbs .fo.b { fill: var(--partner); }
.app-orbs .fo.a { fill: var(--me); }
.js .demo[data-demo="forecast"]:not(.is-done) .app-day { opacity: 0; transform: translateY(0.6em); }

/* cycle strip */
.app-strip { position: relative; }
.app-strip__ring { position: absolute; left: 0; top: 0; z-index: 2; width: calc((100% - 1.8em) / 7); height: calc((100% - 0.3em) / 2); border-radius: 0.9em;
  box-shadow: 0 0 0 0.2em var(--accent); transform: translate(calc(var(--c, 0) * (100% + 0.3em)), calc(var(--r, 0) * (100% + 0.3em))); transition: transform 0.55s var(--ease); pointer-events: none; }
.app-phase [data-phase-name], .app-phase [data-phase-text] { transition: opacity var(--t-fast); }
.app-phase.is-swap [data-phase-name], .app-phase.is-swap [data-phase-text] { opacity: 0; }
.app-strip .app-day { background: var(--surface-2); color: var(--muted); }

/* share card flip */
.flip-wrap { display: grid; justify-items: center; gap: 0.8em; margin-top: 1em; }
.flip { display: block; padding: 0; border: 0; background: none; perspective: 70rem; cursor: pointer; border-radius: 1.2rem; }
.flip__inner { position: relative; display: grid; transition: transform 0.8s var(--ease); transform-style: preserve-3d; }
.flip__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.flip__back { transform: rotateY(180deg); }
.flip__back .sharecard { aspect-ratio: 1; }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__cap { text-align: center; }

/* lock screen */
.js .demo[data-demo="lock"]:not(.is-done) .notif { opacity: 0; transform: translateY(-1.4em); }

/* bubbles + habits */
.habit { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.9rem; border: 0; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-align: left; }
.habit__box { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 0.5rem; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--on-btn); font-size: 0.85rem; }
.habit__box { background: transparent; color: transparent; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.habit[aria-pressed="true"] .habit__box { background: var(--btn); color: var(--on-btn); box-shadow: none; transform: scale(1.08); }
.habit__n { flex: 1; font-weight: 500; }
.live__face { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; font-size: 1.6rem;
  background: radial-gradient(circle at 35% 30%, var(--surface), var(--accent-soft) 60%, color-mix(in srgb, var(--dusk) 25%, var(--accent-soft))); }
.live__face > span { grid-area: 1 / 1; transition: opacity var(--t-med); opacity: 0; }
.live__face > span.is-on, .live__face > span:first-child { opacity: 1; }
.live[data-face="1"] .live__face > span:first-child, .live[data-face="2"] .live__face > span:first-child { opacity: 0; }
.live[data-face="1"] .live__face .b, .live[data-face="2"] .live__face .c { opacity: 1; }
.live__dot { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.4rem; border-radius: 50%; background: var(--sage); vertical-align: 0.05em; }
.live__word { transition: opacity var(--t-fast); }

/* word cloud */
.wordcloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.2rem 1rem; padding: var(--s-4) 0; font-family: var(--font-display); line-height: 1.2; }
.wc { display: inline-block; }
.js .demo[data-demo="words"]:not(.is-done) .wc { opacity: 0; transform: translateY(0.5rem) scale(0.96); }

/* typed text caret */
.caret { display: inline-block; width: 0.1em; height: 1.05em; margin-left: 0.1em; vertical-align: -0.15em; background: var(--accent-ink); }
.js .demo[data-demo="ask"]:not(.is-done) .app-sent { opacity: 0; }
.app-sent { transition: opacity var(--t-med); }
.app-send.is-pressed { transform: scale(0.97); }

/* ------- Showcase: sticky phone + scroll-driven steps ------- */
.showcase { display: grid; gap: var(--s-5); }
.showcase__stage { position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 3; display: grid; justify-items: center; gap: 0.6rem; padding: 0.5rem 0 0.2rem;
  background: var(--surface-2); order: -1; box-shadow: 0 14px 18px -14px var(--surface-2); }
.showcase__dots { display: none; }
.showcase__stage .phone { --phone-w: 12.5rem; aspect-ratio: 9 / 8.6; }
.showcase__stage .phone__body { border-radius: 3.4em 3.4em 0 0; padding-bottom: 0; }
.showcase__stage .phone__screen { border-radius: 2.95em 2.95em 0 0; }
.showcase__screens { position: absolute; inset: 0; }
.showcase__screen.app { justify-items: stretch; width: auto; display: grid; }
.showcase__screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(0.8em) scale(0.985); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; pointer-events: none; }
.showcase__screen.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; z-index: 1; transition-delay: 0s; }
.showcase__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem; max-width: 18rem; }
.showcase__dots button { width: 2.75rem; height: 1.6rem; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.showcase__dots button::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line-strong); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.showcase__dots button[aria-current="true"]::before { background: var(--accent-ink); transform: scale(1.4); }
.showcase__step { padding-block: var(--s-6); min-height: 38vh; opacity: 0.5; transition: opacity var(--t-med) var(--ease); scroll-margin-top: 20rem; }
.showcase__step.is-active { opacity: 1; }
.showcase__step > * + * { margin-top: var(--s-3); }
.showcase__step .step-no { font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.showcase__step h3 { font-size: var(--fs-2xl); }
@media (min-width: 60rem) {
  .showcase { grid-template-columns: 1fr 22rem; gap: var(--s-8); align-items: start; }
  .showcase__stage { order: 2; top: calc(var(--header-h) + 1.5rem); background: none; padding: 0; box-shadow: none; }
  .showcase__dots { display: flex; }
  .showcase__stage .phone { --phone-w: 19rem; aspect-ratio: 9 / 19; }
  .showcase__stage .phone__body { border-radius: 3.4em; padding-bottom: 0.5em; }
  .showcase__stage .phone__screen { border-radius: 2.95em; }
  .showcase__step { min-height: 62vh; display: grid; align-content: center; padding-block: var(--s-5); scroll-margin-top: 8rem; }
}

/* Everything-inside page */
.fchapter + .fchapter { margin-top: var(--s-8); }
.fcard { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5); border-radius: var(--r-xl); background: var(--glass); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.fcard h3 { font-size: var(--fs-xl); }
.fcard .eyebrow { font-size: 0.75rem; }
.fcard .demo .phone { --phone-w: 14.5rem; }
.fgrid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.impact { display: grid; gap: 0.6rem; }
.impact__row { display: grid; grid-template-columns: 5.5rem 1fr 2.6rem; gap: 0.6rem; align-items: center; font-size: var(--fs-sm); }
.impact__bar { height: 0.7rem; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.impact__bar i { display: block; height: 100%; border-radius: inherit; background: var(--me); transform-origin: left; transform: scaleX(var(--v)); }
.js .fcard:not(.is-in) .impact__bar i { transform: scaleX(0); }
.impact__bar i { transition: transform 1s var(--ease); }
.headups > * + * { margin-top: 0.5rem; }

/* ------- Motion: only when it's welcome ------- */
@media (prefers-reduced-motion: no-preference) {
  /* staggered reveals */
  .js .reveal { transition-delay: var(--d, 0s); }
  .js .reveal--scale { transform: translateY(12px) scale(0.96); }

  /* hero threads: draw in once, then sway; orbs breathe */
  .hero__threads .th path { stroke-dasharray: 1; animation: th-draw 2.4s var(--ease) both; animation-delay: calc(var(--i) * 0.18s); }
  .hero__threads .th { animation: th-sway 8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
  .hero__threads .orb { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite alternate; }
  @keyframes th-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes th-sway { from { transform: translateY(0) scaleY(1); } to { transform: translateY(var(--dy, -5px)) scaleY(1.05); } }
  @keyframes breathe { from { transform: scale(1); opacity: 0.85; } to { transform: scale(1.22); opacity: 1; } }
  .hero__threads .th:nth-child(odd) { --dy: 5px; }

  /* demos: paused when off screen */
  .demo:not(.in-view) *, .demo:not(.in-view) *::before, .demo:not(.in-view) *::after { animation-play-state: paused !important; }

  /* needs */
  .demo[data-picked="yes"] .app-hearts-card .h { animation: heart-in 0.55s var(--ease) both; animation-delay: calc(var(--n, 0) * 0.16s + 0.15s); }
  .app-hearts-card .h:nth-child(2) { --n: 1; } .app-hearts-card .h:nth-child(3) { --n: 2; }
  .app-hearts-card .h:nth-child(4) { --n: 3; } .app-hearts-card .h:nth-child(5) { --n: 4; }
  @keyframes heart-in { 0% { opacity: 0.3; transform: scale(0.7); } 55% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }

  /* in sync */
  .demo.is-play .app-meet__o.a { animation: meet-a 2.2s var(--ease) both; }
  .demo.is-play .app-meet__o.b { animation: meet-b 2.2s var(--ease) both; }
  @keyframes meet-a { from { transform: translateX(-6.5em); } to { transform: translateX(-0.9em); } }
  @keyframes meet-b { from { transform: translateX(6.5em); } to { transform: translateX(0.9em); } }
  .demo.is-play .app-sync-reveal { animation: sync-in 0.9s var(--ease) 1.8s both; }
  @keyframes sync-in { from { opacity: 0; transform: scale(0.94) translateY(0.5em); } to { opacity: 1; transform: none; } }
  .demo[data-demo="sync"] .app-meet::before { animation: halo 3.2s ease-in-out infinite alternate; }
  @keyframes halo { from { transform: scale(0.85); opacity: 0.5; } to { transform: scale(1.25); opacity: 1; } }
  .demo[data-demo="sync"] .app-sync-reveal .app-sync { animation: sync-spin 7s linear infinite; }

  /* threads */
  .demo.is-play .tm-thread path { animation: tm-draw 1.5s var(--ease) both; animation-delay: calc(var(--d) + var(--k) * 0.07s); }
  .demo.is-play .tm-thread text { animation: fade-in 0.6s ease both; animation-delay: calc(var(--d) + 1.1s); }
  .demo.is-play .tm-orb { animation: fade-in 0.8s ease both; }
  @keyframes tm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

  /* recap */
  .demo.is-play .app-tile { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 0.12s); }
  .demo.is-play .app-days > .app-day { animation: rise 0.5s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 0.08s); }
  .demo.is-play .app-day.is-sync::before { animation: fade-in 0.7s ease both; animation-delay: calc(1.1s + var(--i) * 0.2s); }
  @keyframes rise { from { opacity: 0; transform: translateY(0.7em); } to { opacity: 1; transform: none; } }

  /* forecast */
  .demo.is-play .app-day { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.07s); }
  .demo[data-demo="forecast"] .fo.a { animation: fo-a 5s ease-in-out infinite alternate; animation-delay: var(--d); }
  .demo[data-demo="forecast"] .fo.b { animation: fo-b 5s ease-in-out infinite alternate; animation-delay: var(--d); }
  @keyframes fo-a { from { transform: translateX(0); } to { transform: translateX(calc(var(--s) * -0.85)); } }
  @keyframes fo-b { from { transform: translateX(0); } to { transform: translateX(calc(var(--s) * -0.85)); } }
  .demo[data-demo="forecast"] .wx b { display: block; animation: bob-y 4.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 0.35s); }
  @keyframes bob-y { from { transform: translateY(0); } to { transform: translateY(-0.3em); } }

  /* lock */
  .demo.is-play .notif--a { animation: notif-in 0.8s var(--ease) 0.5s both; }
  .demo.is-play .notif--b { animation: notif-in 0.8s var(--ease) 2.6s both; }
  @keyframes notif-in { from { opacity: 0; transform: translateY(-1.4em); } to { opacity: 1; transform: none; } }

  /* ask */
  .caret { animation: blink 1s steps(2, start) infinite; }
  @keyframes blink { to { visibility: hidden; } }
  .demo.is-play .app-sent { animation: fade-in 0.5s ease 3.2s both; }

  /* word cloud */
  .demo.is-play .wc { animation: wc-in 0.8s var(--ease) both, wc-drift 8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 0.12s), calc(var(--i) * -0.9s); }
  @keyframes wc-in { from { opacity: 0; transform: translateY(0.5rem) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes wc-drift { from { transform: translate(0, 0); } to { transform: translate(3px, -5px); } }

  /* live dot pulse + reveal-in for the sticky showcase labels */
  .live__dot { animation: dot-pulse 2.2s ease-in-out infinite; }
  @keyframes dot-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }
  .demo .veil__lock span { animation: lock-pulse 3.6s ease-in-out infinite; }
  @keyframes lock-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
}
/* Forced via ?motion=reduce, or JS adds it when the visitor prefers reduced motion: finished state, nothing moves */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.reduce-motion .js .reveal, .js.reduce-motion .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .showcase__screen, .flip__inner, .app-strip__ring, .showcase__step, .site-header { transition: none; }
}

/* Grid and flex children may shrink below their content width (stops long rows from forcing sideways scroll) */
.split > *, .grid > *, .fgrid > *, .cols-2 > *, .sides > *, .showcase > *, .beats > * { min-width: 0; }
.demo, .demo__stage, .fcard > * { min-width: 0; max-width: 100%; }

/* 12e. SAMPLE REVIEWS, FEATURE MINIS, FEATURE LIST -------------------------------------------- */
/* One shared class marks every sample review. Remove or relabel .sample-tag when real quotes arrive. */
.sample-tag {
  display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: var(--r-full);
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
  color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.voices { columns: 1; column-gap: var(--s-5); }
@media (min-width: 40rem) { .voices { columns: 2; } }
@media (min-width: 64rem) { .voices { columns: 3; } }
.voice {
  break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 var(--s-5); padding: var(--s-5);
  border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.voice--soft { background: var(--accent-soft); box-shadow: none; }
.voice--sage { background: var(--sage-soft); box-shadow: none; }
.voice--dusk { background: color-mix(in srgb, var(--dusk) 18%, var(--surface)); box-shadow: 0 0 0 1px var(--line); }
.voice__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.voice__situation { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.voice blockquote p { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.35; letter-spacing: -0.005em; }
.voice--lead blockquote p { font-size: calc(var(--fs-xl) * 1.12); line-height: 1.3; }
.voice figcaption { display: grid; gap: 0.1rem; margin-top: var(--s-4); font-size: var(--fs-sm); }
.voice figcaption span { color: var(--muted); }

.fgrid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.fchapter .section-head { margin-bottom: var(--s-6); }
.flist { display: grid; gap: var(--s-4); margin-top: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.frow { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line); }
.frow h3 { font-size: var(--fs-lg); }
.frow .icon-bubble { flex: none; width: 2.6rem; height: 2.6rem; }
.fcard .demo .mini { width: 100%; }
.fcard .looks { grid-template-columns: repeat(2, 1fr); }

.n3s { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-4); }
.n3 { display: grid; gap: 0.4rem; text-align: center; }
.n3__bars { display: flex; align-items: flex-end; justify-content: center; gap: 0.35rem; height: 5rem; padding: 0.4rem; border-radius: var(--r-md); background: var(--surface-2); }
.n3__bars i { width: 0.7rem; height: 100%; border-radius: 0.3rem 0.3rem 0 0; background: var(--c); transform-origin: bottom; transform: scaleY(var(--v)); }
.js .demo[data-demo="next3"]:not(.is-done) .n3__bars i { transform: scaleY(0.05); }

.wline { height: 0.2rem; margin: 1rem 0 0.5rem; border-radius: 99px; background: linear-gradient(90deg, var(--me), var(--partner)); transform-origin: left; transform: scaleY(2); transition: transform 0.5s var(--ease); }
.demo[data-level="1"] .wline { transform: scaleY(1); }
.demo[data-level="2"] .wline { transform: scaleY(2.4); }
.demo[data-level="3"] .wline { transform: scaleY(4.2); }

.opens { display: grid; gap: 0.6rem; }
.opens__row { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: var(--r-md); background: var(--surface-2); }
.opens__lock, .opens__open { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; }
.opens__lock { background: var(--surface); color: var(--muted); }
.opens__open { position: absolute; left: 0.8rem; background: var(--sage-soft); color: var(--sage-ink); }
.opens__lock .icon, .opens__open .icon { width: 1rem; height: 1rem; }
.js .demo[data-demo="opens"]:not(.is-done) .opens__open { opacity: 0; transform: scale(0.6); }

.hearts-mini .h { color: var(--accent); display: inline-block; }
.js .demo[data-demo="hearts"]:not(.is-done) .hearts-mini .h { opacity: 0.3; }
.mirror-chips .app-chip { animation: none; }

.pair-code b { transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.js .demo[data-demo="pair"]:not(.is-done) .pair-code b, .js .demo[data-demo="pair"]:not(.is-done) .app-meet, .js .demo[data-demo="pair"]:not(.is-done) .pair-done { opacity: 0; }

.fan--anim { gap: 0; }

/* generic toggles + segmented chips (design-only state, no data is sent anywhere) */
[data-toggle][aria-pressed="false"] { background: var(--surface-2); color: var(--muted); }
[data-seg] .chip[aria-pressed="true"], [data-seg-weight] .chip[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .demo[data-demo="next3"].is-play .n3__bars i { animation: bar-up 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.15s + 0.2s); }
  .demo[data-demo="next3"].is-play .n3:nth-child(2) i { animation-delay: 0.45s; } .demo[data-demo="next3"].is-play .n3:nth-child(3) i { animation-delay: 0.7s; }
  @keyframes bar-up { from { transform: scaleY(0.05); } to { transform: scaleY(var(--v)); } }
  .demo[data-demo="hearts"].is-play .hearts-mini .h { animation: heart-in 0.55s var(--ease) both; }
  .hearts-mini .h:nth-child(2) { animation-delay: 0.16s !important; } .hearts-mini .h:nth-child(3) { animation-delay: 0.32s !important; }
  .hearts-mini .h:nth-child(4) { animation-delay: 0.48s !important; } .hearts-mini .h:nth-child(5) { animation-delay: 0.64s !important; }
  .demo[data-demo="opens"].is-play .opens__lock { animation: lock-out 0.35s ease both; animation-delay: calc(0.5s + var(--i) * 0.55s); }
  .demo[data-demo="opens"].is-play .opens__open { animation: pop-in 0.5s var(--ease) both; animation-delay: calc(0.55s + var(--i) * 0.55s); }
  @keyframes lock-out { to { opacity: 0; transform: scale(0.6); } }
  @keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
  .demo[data-demo="pair"].is-play .pair-code b { animation: fade-in 0.4s ease both; animation-delay: calc(var(--k, 0) * 0.18s + 0.2s); }
  .pair-code b:nth-child(2) { --k: 1; } .pair-code b:nth-child(3) { --k: 2; } .pair-code b:nth-child(4) { --k: 3; } .pair-code b:nth-child(5) { --k: 4; } .pair-code b:nth-child(6) { --k: 5; }
  .demo[data-demo="pair"].is-play .app-meet { animation: fade-in 0.5s ease 1.6s both; }
  .demo[data-demo="pair"].is-play .app-meet__o.a { animation: meet-a 2s var(--ease) 1.7s both; }
  .demo[data-demo="pair"].is-play .app-meet__o.b { animation: meet-b 2s var(--ease) 1.7s both; }
  .demo[data-demo="pair"].is-play .pair-done { animation: fade-in 0.6s ease 3.5s both; }
  .demo[data-demo="weather"] .wx b { display: block; animation: bob-y 4.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 0.35s); }
  .demo[data-demo="weather"].is-play .app-day { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.07s); }
  /* the share-card fan reshuffles */
  .fan--anim > :nth-child(1) { animation: fan-1 9s ease-in-out infinite; }
  .fan--anim > :nth-child(2) { animation: fan-2 9s ease-in-out infinite; }
  .fan--anim > :nth-child(3) { animation: fan-3 9s ease-in-out infinite; }
  @keyframes fan-1 { 0%, 30% { transform: rotate(-9deg) translateY(1rem); } 40%, 70% { transform: translateY(-0.4rem); z-index: 1; } 80%, 100% { transform: rotate(9deg) translateY(1rem); } }
  @keyframes fan-2 { 0%, 30% { transform: translateY(-0.4rem); z-index: 1; } 40%, 70% { transform: rotate(9deg) translateY(1rem); } 80%, 100% { transform: rotate(-9deg) translateY(1rem); } }
  @keyframes fan-3 { 0%, 30% { transform: rotate(9deg) translateY(1rem); } 40%, 70% { transform: rotate(-9deg) translateY(1rem); } 80%, 100% { transform: translateY(-0.4rem); z-index: 1; } }
}
/* month report strips fill in, row by row */
.js .demo[data-demo="report"]:not(.is-done) .app-tile { opacity: 0; transform: translateY(0.7em); }
.js .demo[data-demo="report"]:not(.is-done) .strip i { opacity: 0; transform: scale(0.4); }
@media (prefers-reduced-motion: no-preference) {
  .demo[data-demo="report"].is-play .app-tile { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 0.12s); }
  .demo[data-demo="report"].is-play .strip i { animation: pop-in 0.4s var(--ease) both; animation-delay: calc(0.5s + var(--r, 0) * 0.5s + var(--k, 0) * 0.025s); }
}
/* 12f. ROUND 3: rotator, depth, glow, marquee, weave, big type -------------------------------------
   Same rules as 12d: transform/opacity for anything that loops, loops paused off screen (.anim:not(.in-view)),
   finished/static state for reduced motion. */

/* ---- Rotator: a phone that slides through the app's best screens ---- */
.rotator { position: relative; display: grid; justify-items: center; gap: 0.9rem; width: 100%; }
.rotator .phone { touch-action: pan-y; }
.rotator__screens { position: absolute; inset: 0; }
.rotator__screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(14%);
  transition: transform 0.65s var(--ease), opacity 0.5s ease, visibility 0s linear 0.65s; }
.rotator__screen > * { transition: transform 0.75s var(--ease); }
.rotator__screen[data-pos="0"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.rotator__screen[data-pos="-1"] { transform: translateX(-14%); }
.rotator__screen[data-pos="-1"] > * { transform: translateX(-7%); }
.rotator__screen[data-pos="1"] > * { transform: translateX(7%); }
.rotator.is-static .rotator__screen:not([data-pos="0"]) { display: none; }
.rotator .phone__screen::before { transform: translateX(calc(var(--ri, 0) * -3%)) scale(1.18); transition: transform 0.9s var(--ease); }
.rotator__ui { display: grid; gap: 0.5rem; justify-items: center; width: min(100%, 20rem); text-align: center; }
.rotator__bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rotator__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--me), var(--partner)); transform-origin: left; transform: scaleX(0); }
.rotator__bar i.is-run { animation: rot-progress var(--iv, 2800ms) linear forwards; }
.rotator.is-paused .rotator__bar i { animation-play-state: paused; }
@keyframes rot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rotator__cap { display: grid; gap: 0.1rem; min-height: 3.1rem; }
.rotator__cap b { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.rotator__cap span { font-size: var(--fs-sm); color: var(--ink-2); }
.rotator__row { display: flex; align-items: center; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.rotator__dots { display: flex; gap: 0.1rem; flex-wrap: wrap; justify-content: center; }
.rotator__dots button { width: 2.2rem; height: 2.75rem; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.rotator__dots button::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); transition: transform var(--t-fast) var(--ease), background var(--t-fast); }
.rotator__dots button[aria-current="true"]::before { background: var(--accent-ink); transform: scale(1.5); }
.rotator__dots button:hover::before { background: var(--accent); }
.rotator__toggle { min-height: 2.75rem; padding: 0 0.8rem; border: 0; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.reduce-motion .rotator__toggle { display: none; }
.rotator__dots button:focus-visible, .rotator__toggle:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-radius: 0.5rem; }

/* ---- 3D tilt + floating mini-UI chips ---- */
.tilt { perspective: 1100px; width: 100%; display: grid; justify-items: center; }
.tilt__inner { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s var(--ease); transform-style: preserve-3d; will-change: transform; width: 100%; display: grid; justify-items: center; }
.tilt__glare { position: absolute; inset: 0; pointer-events: none; border-radius: 3.4em; background: radial-gradient(60% 40% at var(--gx, 30%) var(--gy, 10%), rgba(255, 255, 255, 0.22), transparent 70%); opacity: 0.0; transition: opacity 0.3s; z-index: 4; mix-blend-mode: soft-light; }
.tilt:hover .tilt__glare { opacity: 1; }
.drift { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; pointer-events: none;
  translate: calc(var(--mx, 0) * var(--depth, 10) * 1px) calc(var(--my, 0) * var(--depth, 10) * 0.7px); }
.drift .hearts { color: var(--accent); letter-spacing: 0.06em; }
.drift .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sage); }
.drift--1 { top: 6%; left: 0; --depth: 18; } .drift--2 { top: 38%; right: -1rem; --depth: 26; }
.drift--3 { bottom: 24%; left: -0.5rem; --depth: 22; } .drift--4 { bottom: 5%; right: 0; --depth: 14; } .drift--5 { top: 18%; right: 2rem; --depth: 30; }
@media (max-width: 69.99rem) { .drift--3, .drift--5 { display: none; } .drift--1 { left: -0.25rem; } .drift--2 { right: -0.25rem; } }
@media (max-width: 30rem) { .drift { font-size: var(--fs-xs); padding: 0.35rem 0.6rem; } .drift--2 { top: auto; bottom: 30%; } }

/* ---- Animated gradient borders (a rotating conic layer, composited) ---- */
.glow-border { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); }
.glow-border::before { content: ""; position: absolute; inset: -70%; z-index: -2; background: conic-gradient(from 0deg, var(--me), var(--partner), var(--accent), var(--dusk), var(--me)); opacity: 0.85; }
.glow-border::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: calc(var(--r-xl) - 2px); background: var(--surface); }
.glow-border--soft::after { background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card.glow-border { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
/* cursor-following sheen on lifted cards */
.card--lift::after, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(16rem circle at var(--px, 50%) var(--py, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%); }
.card--lift:hover::after, .spot:hover::after { opacity: 1; }
.spot { position: relative; }

/* ---- Marquee of feature names ---- */
.marquee { overflow: hidden; padding-block: var(--s-5); border-block: 1px solid var(--line); background: var(--surface-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; flex: none; align-items: center; gap: var(--s-6); padding-right: var(--s-6); }
.marquee__item { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); letter-spacing: -0.015em; white-space: nowrap; color: var(--ink); }
.marquee__sep { color: var(--accent); font-size: 1rem; }
.marquee__item:nth-child(4n+1) { color: var(--accent-ink); }
.marquee:not(.is-live) .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
.marquee:not(.is-live) .marquee__group[aria-hidden] { display: none; }
.marquee:not(.is-live) { -webkit-mask-image: none; mask-image: none; }

/* ---- Big type + woven section transitions ---- */
.bigtype { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.7rem, 1rem + 7.2vw, 6.6rem); line-height: 0.98; letter-spacing: -0.035em; }
.bigtype em { font-style: normal; background: linear-gradient(100deg, var(--accent-ink), var(--me) 40%, var(--partner)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigtype em span { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.night .bigtype em, .night .bigtype em span { background-image: linear-gradient(100deg, #f4b9aa, #e0826f 40%, #a9aaf0); }
.weave { height: 2.2rem; width: 100%; margin-block: -1.1rem; position: relative; z-index: 2; pointer-events: none;
  background: url("thread-divider.svg") center / 100% 100% no-repeat; transform-origin: left; }
.js .weave:not(.is-in) { transform: scaleX(0); }
.weave { transition: transform 1.4s var(--ease); }
.shooting-star { position: absolute; top: 14%; left: 62%; width: 110px; height: 1.5px; border-radius: 99px; opacity: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(255, 244, 230, 0.95), transparent); transform: rotate(-24deg); display: none; }
:root[data-daypart="evening"] .shooting-star, :root[data-daypart="night"] .shooting-star { display: block; }
.shooting-star + .shooting-star { top: 38%; left: 28%; }

/* ---- Buttons, nav: small movements ---- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost::after, .btn--soft::after { background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 70%); }
.nav__link { position: relative; }
@media (min-width: 56rem) {
  .nav__link::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
}
.site-footer.night { border-top-color: var(--line); }

/* ---- Hero richness ---- */
.hero.sky::before { background:
    radial-gradient(60% 55% at 85% -10%, color-mix(in srgb, var(--glow-1) var(--gs1), transparent), transparent 75%),
    radial-gradient(55% 50% at -8% 40%, color-mix(in srgb, var(--glow-2) var(--gs2), transparent), transparent 75%),
    radial-gradient(60% 55% at 100% 105%, color-mix(in srgb, var(--glow-3) var(--gs3), transparent), transparent 75%),
    radial-gradient(35% 28% at 55% 55%, color-mix(in srgb, var(--dusk) 30%, transparent), transparent 70%); }
.hero__stage { min-height: 34rem; }
.finder-panel { padding: var(--s-6); }

@media (prefers-reduced-motion: no-preference) {
  .anim:not(.in-view) *, .anim:not(.in-view)::before, .anim:not(.in-view)::after { animation-play-state: paused !important; }
  .glow-border::before { animation: spin 10s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .drift { animation: drift-a 7s ease-in-out infinite alternate; }
  .drift--2 { animation-name: drift-b; animation-duration: 8.5s; }
  .drift--3 { animation-duration: 9.5s; animation-delay: -3s; } .drift--4 { animation-name: drift-b; animation-duration: 6.5s; animation-delay: -2s; } .drift--5 { animation-duration: 10s; animation-delay: -5s; }
  @keyframes drift-a { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-12px) rotate(1deg); } }
  @keyframes drift-b { from { transform: translateY(-6px) rotate(1deg); } to { transform: translateY(8px) rotate(-1deg); } }
  .marquee.is-live .marquee__track { animation: marquee 48s linear infinite; }
  .marquee.is-live:hover .marquee__track, .marquee.is-live:focus-within .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .shooting-star { animation: shoot 31s linear infinite; }
  .shooting-star + .shooting-star { animation-duration: 43s; animation-delay: 14s; }
  @keyframes shoot { 0%, 90% { opacity: 0; transform: rotate(-24deg) translateX(0); } 92% { opacity: 0.9; } 97% { opacity: 0; transform: rotate(-24deg) translateX(-280px); } 100% { opacity: 0; } }
  .js .reveal-words span { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--w, 0) * 0.07s); }
  .js .reveal-words.is-in span { opacity: 1; transform: none; }
}
.reduce-motion .marquee.is-live .marquee__track, .reduce-motion .drift { animation: none !important; }
.reduce-motion .tilt__inner { transform: none !important; }
.reduce-motion .weave { transform: none !important; }
/* 12g. HELPFUL CONTENT: finder, guides, glossary, install walkthrough ------------------------------ */
.finder__opts { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.finder__opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4.2rem; padding: 0.9rem 1.1rem; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; line-height: 1.3; box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); }
.finder__opt .icon { color: var(--accent-ink); transition: transform var(--t-fast) var(--ease); flex: none; }
.finder__opt:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); text-decoration: none; }
.finder__opt:hover .icon { transform: translateX(3px); }
.finder__opt[aria-pressed="true"] { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-ink); }
.js .finder__panel { display: none; }
.js .finder__panel.has-pick { display: block; }
.finder__panel-in { padding: var(--s-6) var(--s-5); }
.finder__result { display: grid; gap: var(--s-6); align-items: start; }
.js .finder__result[hidden] { display: none; }
.finder__result:not(:first-child) { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.js .finder__result:not(:first-child) { margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 56rem) { .finder__result { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-8); } .finder__panel-in { padding: var(--s-7); } }
.finder__feats { display: grid; gap: var(--s-4); }
.finder__feat { display: flex; gap: var(--s-3); align-items: flex-start; }
.finder__feat h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-base); letter-spacing: 0; }
.finder__n { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); }
.finder__demo { display: grid; justify-items: center; }
.finder__demo .mini { width: 100%; }
[data-finder-empty][hidden] { display: none; }

.article { font-size: var(--fs-lg); line-height: 1.7; }
.article > * + * { margin-top: 1.1em; }
.article h2 { font-size: var(--fs-2xl); margin-top: 1.9em; }
.article__note { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-base); }
.callout { padding: var(--s-5); border-radius: var(--r-lg); background: var(--accent-soft); margin-block: var(--s-6); }
.callout p + p { margin-top: 0.5rem; font-size: var(--fs-base); }

.glossary__find { position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 5; padding-block: var(--s-3); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.terms { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-top: var(--s-5); }
.term { padding: var(--s-5); border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); scroll-margin-top: calc(var(--header-h) + 5rem); }
.term h3 { font-size: var(--fs-xl); }
.term .chip { white-space: normal; text-align: left; border-radius: var(--r-md); max-width: 100%; }
.term > * + * { margin-top: 0.6rem; }
.term:target { box-shadow: 0 0 0 2px var(--accent-ink); }
.term[hidden] { display: none; }

.isteps { display: grid; gap: var(--s-6); }
.istep { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 40rem) { .istep { grid-template-columns: 13rem 1fr; gap: var(--s-7); } }
.istep__vis { display: grid; justify-items: center; }
.istep__vis .demo { margin: 0; }
.istep__n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: var(--s-3); border-radius: 50%; background: var(--btn); color: var(--on-btn); font-family: var(--font-display); font-size: 1.2rem; }
.istep__txt h3 { font-size: var(--fs-xl); }
.istep .phone { --phone-w: 11.5rem; aspect-ratio: 9 / 15; }
/* schematic phone UI (illustrations, not screenshots) */
.mk { position: absolute; inset: 0; padding: 3.4em 1em 0; display: grid; align-content: start; gap: 0.9em; }
.mk-page { display: grid; justify-items: center; gap: 0.3em; padding: 1.4em 0; text-align: center; }
.mk-icon img { width: 3.2em; height: 3.2em; border-radius: 0.8em; }
.mk-safari { padding: 0.35em 0 0.2em; }
.mk-url { display: flex; align-items: center; gap: 0.4em; padding: 0.55em 0.8em; border-radius: 0.9em; background: var(--surface-2); font-size: 0.7em; color: var(--muted); }
.mk-url .icon { width: 1.2em; height: 1.2em; }
.mk-dots { margin-left: auto; font-size: 1.4em; line-height: 1; }
.mk-toolbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 0.9em 0.6em 1.3em; background: color-mix(in srgb, var(--surface) 85%, transparent); border-top: 1px solid var(--line); font-size: 0.9em; }
.mk-toolbar .icon { width: 1.5em; height: 1.5em; }
.mk-hl, .mk-url--hl, .mk-row--hl { box-shadow: 0 0 0 0.18em var(--accent); border-radius: 0.7em; }
.mk-hl { display: grid; place-items: center; padding: 0.3em; }
.mk-hl-txt { color: var(--accent-ink); font-weight: 700; }
.mk-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 1em; border-radius: 1.4em 1.4em 0 0; background: var(--surface); box-shadow: 0 -0.6em 2em -0.8em rgba(0, 0, 0, 0.3); display: grid; gap: 0.4em; }
.mk-sheet--menu { top: 3.4em; bottom: auto; left: auto; right: 0.8em; width: 78%; border-radius: 1em; box-shadow: 0 0.6em 2em -0.6em rgba(0, 0, 0, 0.35); }
.mk-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65em 0.7em; border-radius: 0.7em; background: var(--surface-2); font-size: 0.82em; }
.mk-row .icon { width: 1.3em; height: 1.3em; }
.mk-panel { margin-top: 1.4em; border-radius: 1.3em; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); overflow: hidden; }
.mk-panel__top { display: flex; justify-content: space-between; align-items: center; padding: 0.8em 1em; font-size: 0.8em; border-block: 1px solid var(--line); }
.mk-panel__body { display: flex; align-items: center; gap: 0.8em; padding: 1em; }
.mk-panel__body img { width: 3.2em; height: 3.2em; border-radius: 0.8em; }
.mk-field { flex: 1; padding: 0.5em 0.7em; border-radius: 0.6em; background: var(--surface-2); font-size: 0.9em; }
.mk-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em 0.6em; padding-top: 1em; }
.mk-home i { aspect-ratio: 1; border-radius: 0.8em; background: color-mix(in srgb, var(--dusk) 28%, var(--surface-2)); }
.mk-home__app { display: grid; justify-items: center; gap: 0.2em; font-size: 0.65em; }
.mk-home__app img { width: 100%; max-width: 3em; border-radius: 0.8em; }
.code-token { padding: 0.05em 0.4em; border-radius: 0.4em; background: var(--accent-soft); color: var(--accent-ink); font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; }
@media (prefers-reduced-motion: no-preference) {
  .mk-hl, .mk-url--hl, .mk-row--hl { animation: hl-pulse 1.8s ease-in-out infinite; }
  @keyframes hl-pulse { 0%, 100% { box-shadow: 0 0 0 0.18em color-mix(in srgb, var(--accent) 90%, transparent); } 50% { box-shadow: 0 0 0 0.45em color-mix(in srgb, var(--accent) 0%, transparent); } }
}

/* 13. FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.faq details[open] { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-card); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.6rem;
  padding: 0.9rem 1.3rem;
  border-radius: var(--r-lg);
  font-weight: 550;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--accent-ink);
  transition: transform var(--t-med) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.faq__a > * + * { margin-top: var(--s-3); }

/* 14. FORMS ---------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; }
.field label, .label { font-size: var(--fs-sm); font-weight: 550; color: var(--muted); }
.input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--fs-base);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
  transition: box-shadow var(--t-fast);
}
.input::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.signup { display: grid; gap: var(--s-3); max-width: 30rem; }
.signup__row { display: grid; gap: var(--s-3); }
@media (min-width: 34rem) {
  .signup__row { grid-template-columns: 1fr auto; }
  .signup .input { border-radius: var(--r-full); padding-inline: 1.4rem; }
}
.form-note { min-height: 1.4em; font-size: var(--fs-sm); color: var(--muted); }
.form-note.is-ok { color: var(--sage-ink); }
.form-note.is-error { color: var(--accent-ink); }

/* 15. CTA BAND, FOOTER ---------------------------------------------------- */
.cta-band {
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface);
}
.cta-band > * + * { margin-top: var(--s-4); }
.cta-band .signup, .cta-band .cluster { margin-inline: auto; justify-content: center; }
.cta-band__threads { margin-top: var(--s-6); width: 100%; height: 1.75rem; opacity: 0.85; }
.cta-band__threads svg { width: 100%; height: 100%; }

.site-footer {
  padding-block: var(--s-8) var(--s-6);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 44rem) { .site-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.site-footer h2 {
  margin-bottom: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer li + li { margin-top: 0.15rem; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--ink);
  text-decoration: none;
}
.site-footer li a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* 16. NIGHT SECTION (always dark, like the in-app Threads map) ------------- */
.night {
  --bg: #17131f;
  --surface: #211c2e;
  --surface-2: #2a2438;
  --ink: #f4eef9;
  --ink-2: #d9d0e4;
  --muted: #bfb4cf;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: rgba(36, 30, 52, 0.6);
  --accent: #e8a597;
  --accent-soft: rgba(232, 165, 151, 0.16);
  --accent-ink: #f0b3a6;
  --btn: #e8a597;
  --btn-hover: #f2b8ac;
  --on-btn: #1d1513;
  --sage-soft: rgba(157, 178, 152, 0.16);
  --sage-ink: #b4c8af;
  --dusk: #a597c4;
  --star: rgba(255, 244, 230, 0.8);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
  color: var(--ink);
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(106, 95, 184, 0.35), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(47, 116, 136, 0.28), transparent 70%),
    radial-gradient(circle at 50% 30%, #272036, #100d18 85%);
}
.night.sky::before { display: none; }
.night.sky::after { opacity: 0.9; background-size: 240px 240px; }
.night a:not(.btn):not(.store) { color: var(--accent-ink); }
.night .btn--ghost { color: var(--ink); }

/* 17. PROSE (legal / long-form) ------------------------------------------- */
.prose { font-size: var(--fs-lg); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-2xl); margin-top: 2em; }
.prose h3 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }

/* 18. UTILITIES ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: var(--s-2) !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mt-8 { margin-top: var(--s-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.hide-sm { display: none !important; }
@media (min-width: 52rem) { .hide-sm { display: revert !important; } .hide-lg { display: none !important; } }
.rule { height: 1.75rem; width: 100%; background: url("thread-divider.svg") center / 100% 100% no-repeat; opacity: 0.8; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s-3); }
.swatch-card { border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); font-size: var(--fs-xs); }
.swatch-card i { display: block; height: 3.5rem; background: var(--c); }
.swatch-card div { padding: 0.55rem 0.7rem; line-height: 1.35; }
.swatch-card code { font-size: 0.95em; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* 19. MOTION --------------------------------------------------------------- */
/* Everything that moves lives here and only applies when the visitor hasn't asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-delay="1"] { transition-delay: 0.08s; }
  .js .reveal[data-delay="2"] { transition-delay: 0.16s; }
  .js .reveal[data-delay="3"] { transition-delay: 0.24s; }

  /* The nebula drifts slowly (45s), the stars twinkle */
  .sky::before { animation: nebula 45s ease-in-out infinite alternate; }
  .sky::after { animation: twinkle 9s ease-in-out infinite alternate; }
  @keyframes nebula {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-3%, 2%) scale(1.06) rotate(1.5deg); }
    100% { transform: translate(2%, -2%) scale(1.03) rotate(-1deg); }
  }
  @keyframes twinkle {
    from { opacity: calc(var(--stars) * 0.45); }
    to { opacity: var(--stars); }
  }

  /* In sync: the ring of light loops round the card, the glow breathes */
  .app-sync { animation: sync-spin 7s linear infinite; }
  @keyframes sync-spin { to { --sync-angle: 360deg; } }

  /* Floating chips bob; hero threads glow gently */
  .float-chip { animation: bob 7s ease-in-out infinite alternate; }
  .float-chip--b { animation-delay: -3s; animation-duration: 8.5s; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

  /* The "met and loved" bubbles pulse a glow, like the app */
  .app-bubble.is-on { animation: loved 2.8s ease-in-out infinite; }
  @keyframes loved {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--loved-1) 0%, transparent); }
    50% { box-shadow: 0 0 0.9em 0.1em color-mix(in srgb, var(--loved-1) 55%, transparent); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card--lift, .store { transition: none; }
}

/* Print: plain and ink-friendly */
@media print {
  .site-header, .cta-band, .site-footer, .hero__threads, .float-chip { display: none !important; }
  body { background: #fff; color: #000; }
}
