/* =============================================================================
   MyNote Genie — design tokens
   Generated from the design token export (meta.generated 2026-09-09)
   plus the web type/space scale fixed by design page 22 "Website".

   THIS IS THE ONLY FILE IN THE SITE THAT MAY CONTAIN A LITERAL COLOUR VALUE.
   site.css, every page, and every inline SVG in a page must reference var(--…).
   If you need a colour that is not here, it does not exist — ask, do not invent.

   Unit policy
     type + space + layout : rem (1rem = 16px) so the site survives 200 % text zoom
     radius + borders + focus + touch minimums : px (these must not scale)
     media queries : em (respects the user's default font size)

   Breakpoints (design_tokens.json → breakpoints). Custom properties cannot be used
   inside a media query, so these are repeated literally in site.css:
     compact   0    – 599 px   (—          )
     medium    600  – 899 px   (37.5em     )
     expanded  900  – 1199 px  (56.25em    )
     wide      1200 px +       (75em       )
   ============================================================================= */

:root {
  color-scheme: light dark;

  /* ---------------------------------------------------------------------------
     COLOUR — semantic roles, light (design_tokens.json → color.light)
     Every role below is redefined in the dark block. Never use one without
     checking that its dark counterpart still reads.
     ------------------------------------------------------------------------- */
  --color-canvas: #F6F7FB;
  --color-surface: #FFFFFF;
  --color-text-primary: #172033;
  --color-text-secondary: #475467;
  --color-accent: #4C46B8;
  --color-on-accent: #FFFFFF;
  --color-reviewed: #16614F;
  --color-reviewed-surface: #E4F5EE;
  --color-warning: #805000;
  --color-warning-surface: #FFF3DD;
  --color-danger: #B42318;
  --color-danger-surface: #FDECEA;
  --color-control-edge: #6E788B;
  --color-divider: #E4E7EE;
  --color-selection: #ECEBFF;

  /* Redesign plan 4 (2026-11-17): handoff roles, emitted for parity with the
     app; the site does not use them yet. */
  --color-sidebar: #EEF0F5;
  --color-field: #E9EBF1;
  --color-border: #C9CEDA;
  --color-text-tertiary: #6E788B;
  --color-accent-muted: #7E79CF;
  --color-accent-filled: #4C46B8;
  --color-on-accent-filled: #FFFFFF;
  --color-status-transcribing-text: #4C46B8;
  --color-record: #C8291D;
  --color-record-ring: #E2564B;
  --color-destructive: #D92D20;
  --color-reviewed-outline: #8CE1C0;
  --color-warning-headline: #5C3A00;
  --color-marker: #E0A030;
  --color-search-highlight: #FFE7A8;
  --color-record-card: #172033;
  --color-selected-nav: #FFFFFF;
  /* Mac build 5 Task 2: text on the soft-primary info banner (DMT-03). */
  --color-info-text: #2F2A8F;
  /* Plan 4 Task 17: the Record card's secondary text (4.5:1 on it). */
  --color-record-card-text-secondary: #A9B2C5;
  /* Mac build 5 Task 4: the source switch's track on the Record card. */
  --color-record-card-track: #2A3448;
  /* Mac build 5 Task 8: the soft edge of a warning card (DMT-08). */
  --color-warning-outline: #F2DDB3;

  /* Interaction tints for --color-accent (motion spec page 25: hover/pressed is a
     background tint, 100 ms, colour only). Contrast of --color-on-accent on each
     is >= 8.6:1 in light and >= 10.7:1 in dark. */
  --color-accent-hover: #423CA6;
  --color-accent-pressed: #383293;

  /* ---------------------------------------------------------------------------
     COLOUR — web surface roles (design page 22 composition)
     The app tokens describe one window; a marketing page stacks bands, so these
     name the stack explicitly. In light they read top-down as white → tinted;
     in dark they read as darkest page → lifted panel, which is the correct
     dark-mode inversion of the same hierarchy.
     ------------------------------------------------------------------------- */
  --color-page: #FFFFFF;        /* <body> */
  --color-band: #F6F7FB;        /* tinted full-bleed section (How it works, beta) */
  --color-card: #FFFFFF;        /* card sitting on page or band */
  --color-card-muted: #F6F7FB;  /* inset inside a card ("Honest by design") */
  --color-header-bg: rgba(255, 255, 255, 0.92); /* sticky header, backdrop-blur 8px */

  /* ---------------------------------------------------------------------------
     COLOUR — inverse band (the dark Privacy section, design page 22)
     Deliberately dark in BOTH themes: it is a designed inversion, not a theme.
     In dark mode it steps down to --color-surface so it still separates from the
     page without becoming a second, conflicting black.
     ------------------------------------------------------------------------- */
  --color-inverse: #172033;
  --color-on-inverse: #F2F4FA;
  --color-on-inverse-secondary: #BEC7D8;
  --color-inverse-card: #1F283C;
  --color-inverse-divider: #2A3448;
  --color-inverse-accent: #B8B3FF;

  /* ---------------------------------------------------------------------------
     BRAND (design_tokens.json → brand). Mark usage is restricted: header, hero
     and footer only on this site. Never beside a status or uncertainty label,
     never animated.
     ------------------------------------------------------------------------- */
  --brand-accent: #4C46B8;
  --brand-ink: #172033;

  /* ---------------------------------------------------------------------------
     TYPE — family (design_tokens.json → type.family.web)
     Never ship a font file; no CDN. System stack only — this is also why the
     Content-Security-Policy in web.config has no font host.
     ------------------------------------------------------------------------- */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    system-ui, sans-serif;
  --font-numeric: tabular-nums;
  /* System monospace, for a literal UI path like Settings > Privacy center.
     Also system only: no font file, no CDN. */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Segoe UI Mono", monospace;

  /* ---------------------------------------------------------------------------
     TYPE — app semantic roles (design_tokens.json → type.roles), COMPACT values.
     The desktop values are applied at >= 600px in the medium-breakpoint block at
     the bottom of this file. Present so an app-parity surface (an embedded spec
     table, a screenshot caption) can match the product exactly.
     For page layout use the --text-* web scale below instead.
     ------------------------------------------------------------------------- */
  --type-display-title-size: 1.75rem;   /* 28 */
  --type-display-title-line: 1.2143;    /* 34 */
  --type-display-title-weight: 700;

  --type-title-size: 1.375rem;          /* 22 */
  --type-title-line: 1.2727;            /* 28 */
  --type-title-weight: 600;

  --type-heading-size: 1.0625rem;       /* 17 */
  --type-heading-line: 1.2941;          /* 22 */
  --type-heading-weight: 600;

  --type-body-size: 1.0625rem;          /* 17 */
  --type-body-line: 1.4118;             /* 24 */
  --type-body-weight: 400;

  --type-transcript-size: 1.0625rem;    /* 17 */
  --type-transcript-line: 1.5882;       /* 27 */
  --type-transcript-weight: 400;

  --type-caption-size: 0.8125rem;       /* 13 */
  --type-caption-line: 1.3846;          /* 18 */
  --type-caption-weight: 400;

  --type-label-size: 0.9375rem;         /* 15 */
  --type-label-line: 1.3333;            /* 20 */
  --type-label-weight: 500;

  --type-timer-size: 2.125rem;          /* 34 */
  --type-timer-line: 1.1765;            /* 40 */
  --type-timer-weight: 500;
  --type-timer-numeric: tabular-nums;

  /* Redesign plan 4 (2026-11-17) handoff type roles, emitted for parity with
     the app (mobile scale); the site does not use them yet. */
  --type-page-title-size: 1.75rem;     /* 28 */
  --type-page-title-line: 1.2143;      /* 34 */
  --type-page-title-weight: 700;

  --type-meeting-title-size: 1.625rem; /* 26 */
  --type-meeting-title-line: 1.2308;   /* 32 */
  --type-meeting-title-weight: 700;

  --type-card-title-size: 1.375rem;    /* 22 */
  --type-card-title-line: 1.2727;      /* 28 */
  --type-card-title-weight: 700;

  --type-section-size: 1.062rem;       /* 17 */
  --type-section-line: 1.2941;         /* 22 */
  --type-section-weight: 700;

  --type-meta-size: 0.8125rem;         /* 13 */
  --type-meta-line: 1.3846;            /* 18 */
  --type-meta-weight: 400;

  --type-overline-size: 0.75rem;       /* 12 */
  --type-overline-line: 1.3333;        /* 16 */
  --type-overline-weight: 600;

  --type-timer-easy-size: 5.5rem;      /* 88 */
  --type-timer-easy-line: 1.0909;      /* 96 */
  --type-timer-easy-weight: 300;

  --type-timer-header-size: 1.875rem;  /* 30 */
  --type-timer-header-line: 1.2000;    /* 36 */
  --type-timer-header-weight: 400;

  /* Mac build 5 Task 2: list-row title and inline notice (desktop handoff). */
  --type-list-title-size: 0.875rem;    /* 14 */
  --type-list-title-line: 1.2857;      /* 18 */
  --type-list-title-weight: 600;

  --type-notice-size: 0.875rem;        /* 14 */
  --type-notice-line: 1.4286;          /* 20 */
  --type-notice-weight: 400;

  /* Mac build 5 Task 4: desktop onboarding titles (DON-02…04; DON-01). */
  --type-onboarding-title-size: 2rem;      /* 32 */
  --type-onboarding-title-line: 1.1875;    /* 38 */
  --type-onboarding-title-weight: 700;
  --type-welcome-title-size: 2.25rem;      /* 36 */
  --type-welcome-title-line: 1.1667;       /* 42 */
  --type-welcome-title-weight: 700;
  --type-permission-title-size: 1.875rem;  /* 30 (DON-05) */
  --type-permission-title-line: 1.2;       /* 36 */
  --type-permission-title-weight: 700;

  /* Mac build 5 Task 5: the large search field's text (DMT-05). */
  --type-search-large-size: 1rem;          /* 16 */
  --type-search-large-line: 1.375;         /* 22 */
  --type-search-large-weight: 400;

  /* Mac build 5 Task 7: a desktop transcript line's words (DMT-02). */
  --type-transcript-line-size: 0.9375rem;  /* 15 */
  --type-transcript-line-line: 1.5333;     /* 23 */
  --type-transcript-line-weight: 400;

  /* Mac build 5 Task 8: a sheet's and a warning card's title (DMT-06, DMT-08). */
  --type-sheet-title-size: 1.1875rem;      /* 19 */
  --type-sheet-title-line: 1.2632;         /* 24 */
  --type-sheet-title-weight: 700;

  /* Mac build 5 Task 9: a live transcript line on the recorder (DRC-02). */
  --type-live-line-size: 1.0625rem;        /* 17 */
  --type-live-line-line: 1.5294;           /* 26 */
  --type-live-line-weight: 400;

  /* ---------------------------------------------------------------------------
     TYPE — web scale (design page 22 + page 28). These are what site.css uses.
     Each is size / unitless line-height / weight, taken from the design's
     absolute pairs (e.g. 17/26 -> 1.5294).
     ------------------------------------------------------------------------- */
  --text-hero-size: clamp(2.125rem, 5vw, 3.5rem); /* 34 -> 56 */
  --text-hero-line: 1.08;
  --text-hero-weight: 700;
  --text-hero-tracking: -0.03125rem;              /* -0.5px */

  --text-page-title-size: 2.25rem;      /* 36 — policy / sub-page h1 */
  --text-page-title-line: 1.1667;       /* 42 */
  --text-page-title-weight: 700;
  --text-page-title-tracking: -0.01875rem; /* -0.3px */

  --text-section-size: 2rem;            /* 32 — section h2 */
  --text-section-line: 1.1875;          /* 38 */
  --text-section-weight: 700;

  --text-subsection-size: 1.375rem;     /* 22 — policy h2 */
  --text-subsection-line: 1.2727;       /* 28 */
  --text-subsection-weight: 600;

  --text-card-title-size: 1.25rem;      /* 20 — card h3, plan name */
  --text-card-title-line: 1.3;          /* 26 */
  --text-card-title-weight: 600;

  --text-eyebrow-size: 0.8125rem;       /* 13 — section kicker */
  --text-eyebrow-weight: 600;

  --text-lead-size: 1.1875rem;          /* 19 — hero and policy lead */
  --text-lead-line: 1.4737;             /* 28 */

  --text-body-web-size: 1.0625rem;      /* 17 — section intro */
  --text-body-web-line: 1.5294;         /* 26 */

  --text-prose-size: 1rem;              /* 16 — long-form policy body */
  --text-prose-line: 1.625;             /* 26 */

  --text-small-size: 0.9375rem;         /* 15 — card body, plan features */
  --text-small-line: 1.4667;            /* 22 */
  --text-list-line: 1.6;                /* 24 — plan feature list */

  --text-note-size: 0.875rem;           /* 14 — table rows, nav, privacy list */
  --text-note-line: 1.4286;             /* 20 */

  --text-fine-size: 0.8125rem;          /* 13 — disclaimers, "Honest by design" */
  --text-fine-line: 1.3846;             /* 18 */

  --text-micro-size: 0.75rem;           /* 12 — footer legal paragraph */
  --text-micro-line: 1.5;               /* 18 */

  --text-brand-size: 1.0625rem;         /* 17 — wordmark lockup in the header */
  --text-brand-weight: 700;

  /* ---------------------------------------------------------------------------
     SPACE (design_tokens.json → space; base 4). --space-1..7 are the published
     scale; the -8..-12 steps continue it on the same 4px base and carry the
     section rhythm design page 22 uses (40 / 48 / 56 / 64 / 72).
     ------------------------------------------------------------------------- */
  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 1.25rem;   /* 20 — hero stack gap */
  --space-9: 1.75rem;   /* 28 — pricing card padding */
  --space-10: 2.5rem;   /* 40 — feature grid gap */
  --space-11: 3.5rem;   /* 56 — sub-page top padding */
  --space-12: 4rem;     /* 64 — section vertical padding */
  --space-13: 4.5rem;   /* 72 — hero top padding */
  --space-14: 5rem;     /* 80 — sub-page bottom padding */
  /* Two off-grid steps design page 22 uses literally. Kept rather than rounded
     to the 4px base so the marketing layout matches the design exactly. */
  --space-off-10: 0.625rem; /* 10 */
  --space-off-14: 0.875rem; /* 14 */

  --gutter-phone: 1rem;    /* 16 */
  --gutter-tablet: 1.5rem; /* 24 */
  --gutter-desktop: 1.5rem;/* 24 */
  --gutter: var(--gutter-phone); /* raised to tablet/desktop at >= 600px below */

  /* ---------------------------------------------------------------------------
     RADIUS (design_tokens.json → radius). Windows uses 4; web follows the
     Apple/default set. --radius-panel is an alias for the 16px marketing panel
     design page 22 uses for hero media, feature cards and pricing cards.
     ------------------------------------------------------------------------- */
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-dialog: 16px;
  --radius-chip: 999px;
  --radius-row: 10px;     /* list row, desktop handoff DMT-01 */
  --radius-panel: 14px;   /* key points and result cards, DMT-01 / DMT-05 */
  --radius-panel: var(--radius-dialog);
  --radius-badge: 10px;   /* card number tile, design page 22 */

  /* ---------------------------------------------------------------------------
     FOCUS (design_tokens.json → focus). Focus is never animated (page 25).
     ------------------------------------------------------------------------- */
  --focus-width: 2px;
  --focus-offset: 2px;
  --focus-color: var(--color-accent);

  /* ---------------------------------------------------------------------------
     MOTION (design_tokens.json → motion, spec on design page 25).
     Nothing on this site loops; the brand mark never animates. Every use of
     these must sit behind the prefers-reduced-motion guard in site.css.
     ------------------------------------------------------------------------- */
  --motion-fast: 100ms;
  --motion-standard: 200ms;
  --motion-slow: 300ms;
  --motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* ---------------------------------------------------------------------------
     SIZE (design_tokens.json → size). px on purpose: a touch minimum is a
     physical constraint and must not shrink or grow with text zoom.
     ------------------------------------------------------------------------- */
  --size-touch-min: 44px;
  --size-touch-primary: 48px;
  --size-stop-mobile: 56px;
  --size-desktop-min: 32px;
  --size-desktop-primary: 40px;
  --size-chip-height: 28px;   /* filter chip, desktop handoff DMT-01 */
  --size-field-height: 34px;  /* filled search field, DMT-01 */
  --size-compact-button-height: 30px;  /* banner action, DMT-03 */
  --size-search-field-large: 44px;  /* the Search page's field, DMT-05 */

  /* Borders — hairline everywhere; the design uses no shadows. */
  --border-hairline: 1px;
  --border-emphasis: 2px;

  /* ---------------------------------------------------------------------------
     LAYOUT (design_tokens.json → panes, widened to page 22's web container)
     ------------------------------------------------------------------------- */
  --layout-max: 70rem;        /* 1120 — page container */
  --layout-prose: 47.5rem;    /* 760  — policy / long-form column (panes.mainReading max) */
  --layout-intro: 45rem;      /* 720  — section intro + narrow band */
  --layout-form: 42.5rem;     /* 680  — panes.formColumn */
  --layout-column: 35rem;     /* 560  — panes.onboardingColumn, hero copy max */
  --layout-reading-min: 32.5rem; /* 520 — panes.mainReading min */
  --layout-sidebar: 13rem;    /* 208  — panes.sidebar min */
  --layout-inspector: 20rem;  /* 320  — panes.inspector min */

  /* Grid minimums used by the auto-fit grids on page 22 */
  --grid-min-hero: 20rem;     /* 320 */
  --grid-min-feature: 17.5rem;/* 280 */
  --grid-min-wide: 18.75rem;  /* 300 */

  /* Icon family (design page 25): 24px grid, 2px stroke, round caps, currentColor */
  --icon-size: 24px;
  --icon-size-sm: 20px;
  --icon-size-xs: 16px;
  --icon-size-lg: 28px;
  --icon-stroke: 2;
  --icon-stroke-xs: 1.5;

  /* Print. Paper is not a theme, so these are deliberately absolute and are the
     only values that stay fixed across light and dark. */
  --print-paper: #FFFFFF;
  --print-ink: #000000;
}

/* =============================================================================
   DARK — prefers-color-scheme (design_tokens.json → color.dark)
   Every role from the light block is restated. Contrast was verified for all
   foreground/background pairs actually used by site.css; the lowest is
   --color-control-edge on --color-card-muted at 4.38:1 (a control border,
   requirement 3:1).
   ============================================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --color-canvas: #101522;
    --color-surface: #171F30;
    --color-text-primary: #F2F4FA;
    --color-text-secondary: #BEC7D8;
    --color-accent: #B8B3FF;
    --color-on-accent: #171236;
    --color-reviewed: #8CE1C0;
    --color-reviewed-surface: #173A31;
    --color-warning: #FFD18A;
    --color-warning-surface: #3D2E12;
    --color-danger: #FFB4AC;
    --color-danger-surface: #4A1F1B;
    --color-control-edge: #8392AE;
    --color-divider: #2A3448;
    --color-selection: #2B2E52;

    /* Redesign plan 4 handoff roles (unused by the site yet). */
    --color-sidebar: #111726;
    --color-field: #1F2638;
    --color-border: #3A4560;
    --color-text-tertiary: #7D879C;
    --color-accent-muted: #4A4599;
    --color-accent-filled: #5B55D6;
    --color-on-accent-filled: #FFFFFF;
    --color-status-transcribing-text: #C9C5FF;
    --color-record: #C8291D;
    --color-record-ring: #E2564B;
    --color-destructive: #C8291D;
    --color-reviewed-outline: #2A7A62;
    --color-warning-headline: #FFE7C2;
    --color-marker: #E0A030;
    --color-search-highlight: #5C4419;
    --color-record-card: #1F2638;
    --color-selected-nav: #1F2638;
    --color-info-text: #C9C5FF;
    --color-record-card-text-secondary: #A9B2C5;
    --color-record-card-track: #2A3448;
    --color-warning-outline: #6B5124;

    --color-accent-hover: #C7C3FF;
    --color-accent-pressed: #D6D3FF;

    --color-page: #101522;
    --color-band: #171F30;
    --color-card: #1F283C;
    --color-card-muted: #232D42;
    --color-header-bg: rgba(16, 21, 34, 0.92);

    /* Elevation in dark runs page #101522 < band #171F30 < inverse #1F283C <
       inverse card #2A3448. "Inverse" means one step further from the page than
       a normal band, which in a dark theme is lighter, not darker. Using the
       light values here would make the Privacy band identical to --color-band. */
    --color-inverse: #1F283C;
    --color-on-inverse: #F2F4FA;
    --color-on-inverse-secondary: #BEC7D8;
    --color-inverse-card: #2A3448;
    --color-inverse-divider: #3A465E;
    --color-inverse-accent: #B8B3FF;

    --brand-accent: #B8B3FF;
    --brand-ink: #F2F4FA;
  }
}

/* =============================================================================
   MEDIUM BREAKPOINT AND UP (600px / 37.5em)
   Raises the gutter to the tablet/desktop value and switches the app type roles
   to their desktop pairs. The --text-* web scale intentionally does NOT shrink:
   design page 22 sets its own web sizes and the hero uses clamp().
   ============================================================================= */
@media (min-width: 37.5em) {
  :root {
    --gutter: var(--gutter-desktop);

    --type-display-title-size: 1.5rem;   /* 24 */
    --type-display-title-line: 1.25;     /* 30 */

    --type-title-size: 1.25rem;          /* 20 */
    --type-title-line: 1.3;              /* 26 */

    --type-heading-size: 0.9375rem;      /* 15 */
    --type-heading-line: 1.3333;         /* 20 */

    --type-body-size: 0.9375rem;         /* 15 */
    --type-body-line: 1.4667;            /* 22 */

    --type-transcript-size: 1rem;        /* 16 */
    --type-transcript-line: 1.625;       /* 26 */

    --type-caption-size: 0.75rem;        /* 12 */
    --type-caption-line: 1.3333;         /* 16 */

    --type-label-size: 0.8125rem;        /* 13 */
    --type-label-line: 1.3846;           /* 18 */

    --type-timer-size: 1.75rem;          /* 28 */
    --type-timer-line: 1.2143;           /* 34 */
  }
}
