/*
  Design tokens — single source of truth for color, type, spacing, motion and
  the breakpoint values referenced throughout styles.css. Do not hardcode a
  hex/rgba color or a one-off px value in a rule; add or reuse a token here.

  2026-10 redesign: light theme modelled on Linear's marketing site (medium-
  weight headings with tight tracking, four-step grey text scale, hairline
  dividers, product UI as the hero), mapped onto the Dialon brand palette.
  Plan and copy: Dialon-Note vault →
  品牌 Brand/官網改版文案與版面規劃（2026-09-30）.md

  Color rule: Blueprint marks what the AI does; Brass marks the one place a
  person approves. Brass stays under 10% of any view.

  Breakpoints can't live in a custom property (media queries don't accept
  var()), so the two numbers below are duplicated at each @media boundary in
  styles.css. If you change them, grep styles.css for "640px" and "960px";
  assets/js/pain-scenes.js also matches "960px" to decide whether scenes rotate.
*/
:root {
  /* Brand palette (authority: Dialon-Note → 品牌 Brand/Logo 品牌資產使用說明) */
  --color-navy: #0b2a4a;      /* Deep Navy — logo on light surfaces */
  --color-ink: #071320;       /* Ink Navy — primary text, dark band, primary button */
  --color-blueprint: #1f5fe0; /* Blueprint — AI actions, "available" status, links */
  --color-brass: #b08a4a;     /* Brass — human approval only, <10% of any view */
  --color-paper: #f4f5f6;     /* Paper */
  --color-white: #ffffff;
  --color-line-green: #06c755; /* LINE channel dot in the product mock only */

  /* Surfaces */
  --bg-0: var(--color-white);  /* page */
  --bg-1: #f7f8fa;             /* sidebars, secondary panels, footer */
  --bg-2: var(--color-paper);  /* quote boxes, trial band */
  --bg-3: #eef1f5;             /* selected rows, "planned" chip */
  --bg-pilot: #fbfcff;         /* pilot-flow card */
  --bg-pilot-note: #eef3fd;

  /* Text — four steps, all ≥4.5:1 on white */
  --text-1: var(--color-ink);
  --text-2: #34475d;
  --text-3: #4e5e73;
  --text-4: #66758a;

  /* Accent tints */
  --accent-tint: #e8effd;      /* blue chip background */
  --human-tint: #f6efe2;       /* brass chip background */
  --human-text: #8a6a32;       /* brass text on white (≥4.5:1) */
  --accent-on-dark: #7fa3ff;   /* blueprint text on the ink band */
  --human-on-dark: #d9b77a;    /* brass text on the ink band */

  /* Dark band (the only dark section) */
  --dark-panel: #0b1a2b;
  --dark-text-2: #a9b6c7;
  --dark-text-3: #8c98aa;
  --dark-line: rgba(244, 245, 246, 0.08);
  --dark-line-strong: rgba(244, 245, 246, 0.12);
  --dark-brass-line: rgba(176, 138, 74, 0.5);

  /* Hairlines */
  --line-1: rgba(11, 42, 74, 0.08);
  --line-2: rgba(11, 42, 74, 0.1);
  --line-3: rgba(11, 42, 74, 0.14);
  --line-4: rgba(11, 42, 74, 0.18);
  --line-pilot: rgba(31, 95, 224, 0.5);
  --grid-blue: rgba(31, 95, 224, 0.07);
  --grid-soft: rgba(11, 42, 74, 0.05);
  --glow-blue: rgba(31, 95, 224, 0.16);
  --header-bg: rgba(255, 255, 255, 0.88);
  --overlay: rgba(7, 19, 32, 0.45);

  /* Shadows */
  --shadow-frame: 0 24px 64px rgba(11, 42, 74, 0.14);
  --shadow-float: 0 12px 40px rgba(11, 42, 74, 0.16);

  /* Status colors for the contact form */
  --color-error: #b3261e;

  /* Type */
  --font-sans: "Archivo", "Noto Sans TC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --tracking-display: -0.022em;
  --tracking-body: -0.011em;

  --fs-h1: clamp(34px, 5.2vw, 64px);
  --fs-h2: clamp(30px, 3.6vw, 48px);
  --fs-h2-band: clamp(28px, 3vw, 40px);
  --fs-statement: clamp(24px, 3vw, 40px);
  --fs-h3: 18px;
  --fs-lead: 17px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 12px;
  --fs-tag: 11px;
  --lh-display: 1.2;
  --lh-body: 1.7;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;

  /* Layout */
  --container: 1024px;
  --container-wide: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 128px);
  --header-h: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* Motion — hover changes colour only; the hero fades in once on load; the
     problem-section scenes rotate on their own (pain-scenes.js advances when
     the progress bar's --scene-interval animation ends) */
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --speed-quick: 0.1s;
  --speed-regular: 0.16s;
  --speed-scene: 0.4s;
  --speed-reveal: 0.8s;
  --scene-interval: 7s;
  --speed-disclose: 0.24s;   /* FAQ answer / 看例子 content appearing */
  --press-scale: 0.97;       /* buttons shrink slightly while pressed */
  --rail-width: 2px;         /* the Blueprint line drawn down the left rail */
  --rail-lead-end: 60vh;     /* where that line's leading end rests in the viewport */

  /* Breakpoints — see comment above; documented reference only */
  --bp-tablet-min: 640px;
  --bp-desktop-min: 960px;
}
