/* J.Doe waitlist · design tokens.
   Source: Claude Design project "Waitlist Landing Page", J.Doe Waitlist v7.1 (2026-10-07):
   - :root      = J.Doe Web Design System (colors / typography / radius / web tokens) + v7.1 page overrides
   - [data-pds] = J.Doe Product DS + Mac tokens, scoped so product mockups keep their own values
   Only tokens this page reads are carried over. Values are copied, not re-derived. */

:root {
  --hairline: inset 0 0 0 .5px rgb(35 33 30 / .10); /* the inner hairline of every card and image container: the Mac app's ring-card (line-2, warm ink 10%, 0.5px), 2026-10-11; was 1px black 5% */
  /* surface + neutral families (web DS colors.css) */
  --paper-50: #FFFFFF;
  --paper-100: #F7F6F4;
  --paper-200: #ECEBE8;
  --paper-300: #E2E1DE;
  --paper-400: #CCCBC8;
  --paper-500: #AFAEAB;
  --ink-500: #6E6E6E;
  --ink-600: #585858;
  --ink-700: #3C3C3C;
  --ink-800: #2B2B2B;
  --ink-900: #1D1D1D;
  --ink-950: #131313;
  --danger: #C23553;

  --text: rgba(35, 33, 30, 0.96); /* warm ink 96%, as --text-primary (2026-10-15 web audit; was solid --ink-800) */
  --text-2: var(--ink-600);
  --text-3: var(--ink-500);
  --text-placeholder: var(--paper-500);
  --rule: var(--paper-300);
  --rule-strong: var(--paper-400);
  --accent: var(--ink-800);
  --accent-violet: #8056B3; /* brand expression violet (COLOR-SYSTEM.md, 2026-10-09 alignment; was web DS #A56BE8): graphics only — the waveform's picked-up moment */
  --accent-violet-wash: #F0EBF6; /* tint behind marked context (prototype “understood” wash) */
  --accent-violet-ink: #8056B3; /* brand expression violet as text (was #6F45A8): 5.4:1 on white, 4.6:1 on the wash, 5.0:1 on paper */
  --accent-hover: var(--ink-700);
  --accent-press: var(--ink-900);
  --on-accent: var(--paper-50);
  --control-fill: var(--paper-50);
  --highlight: var(--text);
  --shadow-1: none; /* v7.1 override: flat page chrome */

  /* brand-semantic.css */
  /* warm ink, as the apps and [data-pds] (2026-10-15 web audit; lines were neutral black, ink-a-04 a neutral grey) */
  --ink-a-04: rgba(35, 33, 30, 0.04);
  --ink-a-06: rgba(35, 33, 30, 0.06);
  --ink-a-10: rgba(35, 33, 30, 0.10);
  --line-1: rgba(35, 33, 30, 0.05);
  --line-2: rgba(35, 33, 30, 0.10);
  --line-3: rgba(35, 33, 30, 0.15);
  --line-4: rgba(35, 33, 30, 0.20);
  /* the three grey fills (DS r76): on white 4% with a 0.5 ring, an icon's round ground 5%, a grey button 6%; hover adds 4% */
  --soft-card: rgba(35, 33, 30, 0.04);
  --soft-icon: rgba(35, 33, 30, 0.05);
  --soft-page: rgba(35, 33, 30, 0.06);
  --state-hover: rgba(35, 33, 30, 0.04);
  --focus-field: inset 0 0 0 1px rgba(35, 33, 30, 0.55); /* a field in focus: 1px warm ink 55%, the DS Chatbox (2026-10-15 web audit) */
  --eyebrow-fg: var(--text-2);
  --tracking-caps: 0.08em;

  /* brand interaction roles (brand/design-tokens.css) */
  --interaction-focus: #245FA5;
  --interaction-selection: #D4DEE9;
  --environment-ground: #F6F4EE;
  --environment-evening: linear-gradient(180deg, #E4D3F8 0%, #F6F4EE 100%);

  /* type families. UI = system stack (brand rule); editorial = Klim Family (licensed
     2026-10-16, Regular/Medium) with the v7.1 "fallback" stack behind it. Family is only
     loaded when the build ships the WOFF2 files (scripts/build-site.py --webfont family). */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Family", "Songti SC", STSong, serif; /* the licensed cut has the quotes, dashes and ellipsis the trial lacked, so Georgia is gone (2026-10-16) */

  /* web type scale (web/tokens.css) */
  --fs-w-body: clamp(16px, calc(15.42px + 0.161vw), 18px);
  --lh-w-body: 1.6;
  --fs-w-small: 14px;
  --lh-w-small: 20px;
  --fs-w-eyebrow: 12px;
  --lh-w-eyebrow: 16px;

  /* layout (web/tokens.css + v7.1 overrides) */
  --grid-margin: clamp(20px, calc(7.23px + 3.548vw), 64px);
  --content-max: 1200px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-pill: 999px;
  --radius-w-stage: calc(64px * var(--k-se)); /* the story and roles tiles: app 40 pt, the iOS Now card stack (2026-10-15 web audit; 44.8 on phones, site.css) */
  /* Corner system (2026-10-15, the iOS/Mac/DS corner spec “网页圆角统一指令”, DS r76): every corner but a capsule's is a
     superellipse(2.2) at the app's pt value × 1.6, which reads as iOS's continuous corner. Where the browser cannot draw
     corner-shape (Safari, Firefox) --k-se = 1/1.6 brings each radius back to the app value as a plain round corner (the
     @supports block at the end of site.css). Capsules (999px) and circles (50%) carry no corner-shape.
     Steps used here (app pt → px): 6 → 9.6 · 8 → 12.8 · 12 → 19.2 · 16 → 25.6 · 20 → 32 · 28 → 44.8. */
  --k-se: 1;
  --shape: superellipse(2.2);
  /* media frames, the hardware panel and the hero film: app 20 pt (32) on a phone up to 28 pt (44.8) from ~1280px, in step with the width */
  --r-media: calc(clamp(32px, calc(26.4px + 1.44vw), 44.8px) * var(--k-se));

  /* motion */
  --motion-in: 160ms cubic-bezier(0.2, 0, 0, 1);
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product DS · desktop scope (assets/product-ds/scoped-tokens.css + assets/mac/tokens-scoped.css). */
[data-pds] {
  --paper-50: #FFFFFF;
  --paper-100: #F7F6F4;
  --paper-200: #ECEBE8;
  --ink-800: #2B2B2B;

  --ink-a-03: rgba(35, 33, 30, 0.03);
  --ink-a-04: rgba(35, 33, 30, 0.04);
  --ink-a-05: rgba(35, 33, 30, 0.05);
  --ink-a-07: rgba(35, 33, 30, 0.07);
  --ink-a-10: rgba(35, 33, 30, 0.10);
  --ink-a-15: rgba(35, 33, 30, 0.15);
  --ink-a-20: rgba(35, 33, 30, 0.20);
  --ink-a-36: rgba(35, 33, 30, 0.36);
  --ink-a-53: rgba(35, 33, 30, 0.53);
  --ink-a-66: rgba(35, 33, 30, 0.66);
  --ink-a-76: rgba(35, 33, 30, 0.76);
  --ink-a-96: rgba(35, 33, 30, 0.96);

  --text-primary: var(--ink-a-96);
  --text-secondary: var(--ink-a-76);
  --text-tertiary: var(--ink-a-66);
  --text-hint: var(--ink-a-53);
  --text-disabled: var(--ink-a-36);
  --text-on-ink: var(--paper-50);
  --fill-ink: var(--ink-800);

  --line-1: var(--ink-a-05);
  --line-2: var(--ink-a-10);
  --line-3: var(--ink-a-15);
  --line-4: var(--ink-a-20);
  --rule-strong: var(--line-4);
  --rule-dashed-ink: var(--ink-a-15);
  --rule-row-dashed: repeating-linear-gradient(90deg, var(--rule-dashed-ink) 0 6px, transparent 6px 9px); /* Mac DS semantic.css: the dashed row divider */
  --track: var(--ink-a-10);

  --surface-ground: var(--paper-100);
  --surface-card: var(--paper-50);
  --surface-sunken: var(--ink-a-07);
  --surface-inline: var(--ink-a-03);
  --state-hover: var(--ink-a-04);
  --state-pressed: var(--ink-a-07);

  --ring-card: var(--hairline); /* was 0.5px line-2 */
  --ring-inline: inset 0 0 0 0.5px var(--line-1);
  --shadow-card: 0 1px 2px rgba(35, 33, 30, 0.035), 0 4px 12px rgba(35, 33, 30, 0.045);
  --shadow-card-subtle: 0 1px 1px rgba(35, 33, 30, 0.02), 0 2px 6px rgba(35, 33, 30, 0.025);
  --shadow-card-press: 0 2px 6px rgba(35, 33, 30, 0.05), 0 8px 18px rgba(35, 33, 30, 0.06);

  --hue-amber-bg: oklch(0.91 0.020 60);
  --accent-highlight: #C9A0E8; /* the underline of a highlighted phrase: Mac DS PageHead "sentence" accent (its default, = PERIODS.dusk.accent), the lilac on the prototype's home greeting (2026-10-11; was midday gold #C99A2E) */
  --hue-sky-solid: #5AA7E8;
  --mac-traffic-close-hi: #FF847C;
  --mac-traffic-min-hi: #FFD267;
  --mac-traffic-zoom-hi: #62D96E;

  /* radii: Mac scope resolves the DS --r-* names onto four superellipse steps */
  --radius-sm: calc(24px * var(--k-se));
  --radius-md: calc(32px * var(--k-se));
  --radius-inline: calc(19.2px * var(--k-se)); /* inline blocks and fields: app 12 pt (2026-10-15 corner spec; was 16 in the mockups, 24 outside) */
  --radius-settings-card: var(--radius-md);

  /* type roles */
  --fs-title-2: 20px;
  --lh-title-2: 28px;
  --fs-body-lg: 18px;
  --lh-body-lg: 28px;
  --fs-label: 14px;
  --lh-label: 20px;
  --fs-compact: 13px;
  --lh-compact: 20px;
  --fs-caption: 12px;
  --lh-caption: 16px;
  --fs-micro: 11px;
  --lh-micro: 16px;
  --fs-clock: 22px;
  --lh-clock: 24px;
  --tracking-tight: -0.02em;
  --tracking-title: -0.01em;
  --tracking-eyebrow: 0.06em;
  --font-ui: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* motion (Mac DS): fast · state · surface · major */
  --motion-fast: 110ms;
  --motion-state: 190ms;
  --motion-surface: 260ms;
  --motion-major: 320ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--font-ui);
  color: var(--text-primary);
}

/* Inside the cards the page's four durations take the Mac steps (2026-10-11; were 160 / 300 / 500 / 700ms), so a
   card's hover, swap, highlight and entrance run at the app's speed. The page around them keeps its pace: the chapter
   crossfade and the stage (.story__panel / .story__scale) and the modules growing out of one another (--dur-grow
   780ms, fitted to Calendly) with their content fade. */
[data-pds] :is(.story__panel-in, .roles__flow) {
  --dur-1: var(--motion-fast);
  --dur-2: var(--motion-state);
  --dur-3: var(--motion-surface);
  --dur-4: var(--motion-major);
  --ease-standard: var(--ease-settle);
  --ease-emphasized: var(--ease-enter);
}

