/* LOOK V4 for the public portal pages — plain CSS, no bundler: tokens, a reset, the logo and the
   motion keyframes, with the same values as src/look/look-tokens.manifest.json (light = :root,
   dark = :root[data-theme="dark"] and, for a page that follows the device, the prefers-color-scheme
   block). src/look/lookTokens.test.mjs fails when this file drifts from the manifest.

   A page opts in by linking it: <link rel="stylesheet" href="/brand/look-v4.css">. It defines
   tokens and a handful of .sy-* primitives; it restyles nothing on its own.

   FONT: --sans names Inter first and falls back to the system stack. No Inter file ships here
   (none is available offline and nothing is fetched from the network), so the system stack
   renders unless Inter is installed on the device. */

:root {
  --canvas: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --hover: #eeece4;
  --stone: #ede6d5;
  --line: rgba(27,35,30,.09);
  --line-2: rgba(27,35,30,.16);
  --text: #1b231e;
  --text-2: #2e3a33;
  --muted: #5b645d;
  --faint: #8b948c;
  --moss: #2f4b3c;
  --moss-deep: #243d31;
  --moss-mid: #4f836b;
  --moss-tint: #e8eee9;
  --moss-ink: #0e1a21;
  --brass: #e2c27a;
  --ok: #1f7a5c;
  --ok-soft: #e4f0ea;
  --warn: #9a6410;
  --warn-pin: #c98a1b;
  --warn-soft: #faf0da;
  --bad: #a03d33;
  --bad-soft: #f9e9e6;
  --info: #2a5f9e;
  --info-soft: #e4edf7;
  --warn-text: #815713;
  --moss-alpha: rgba(47,75,60,.16);
  --r-card: 20px;
  --r-ctl: 12px;
  --shadow-1: 0 1px 2px rgba(15,35,28,.05),0 8px 24px rgba(15,35,28,.05);
  --shadow-2: 0 1px 2px rgba(15,35,28,.06),0 18px 48px rgba(15,35,28,.09);
  --sans: "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --t-13: 13px;
  --t-15: 15px;
  --t-17: 17px;
  --t-22: 22px;
  --t-28: 28px;
  --t-44: 44px;
  --t-56: 56px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --dur-fade: 240ms;
  --dur-count: 650ms;
  --dur-pulse: 2.4s;
  --motion-rise: 8px;
  --motion-stagger: 70ms;
  --motion-stagger-max: 6;
  --dur-count-settle: 700ms;
  --dur-ring: 700ms;
  --ring-delay: 120ms;
  --dur-line: 600ms;
  --motion-line-stagger: 250ms;
  --dur-logo: 1.6s;
  --dur-thumb: 450ms;
  --dur-thumb-icon: 300ms;
  --dur-hover: 120ms;
  --lift: -1px;
  --press: 1px;
  --pulse-from: 0.85;
  --pulse-to: 1.75;
  --pulse-opacity-from: 0.5;
  --pulse-cycles: 6;
  --dur-theme-fade: 550ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0e1112;
  --surface: #161b1c;
  --surface-2: #1a2022;
  --hover: #222a2c;
  --stone: #222a2c;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);
  --text: #eef1ef;
  --text-2: #c3cbc6;
  --muted: #8d9791;
  --faint: #6b756f;
  --moss: #6fae92;
  --moss-deep: #2f4b3c;
  --moss-mid: #4f836b;
  --moss-tint: rgba(111,174,146,.14);
  --moss-ink: #eef1ef;
  --brass: #e2c27a;
  --ok: #4fc79a;
  --ok-soft: rgba(79,199,154,.14);
  --warn: #e3b25b;
  --warn-pin: #e3b25b;
  --warn-soft: rgba(227,178,91,.14);
  --bad: #ef7b6f;
  --bad-soft: rgba(239,123,111,.14);
  --info: #7cb3ea;
  --info-soft: rgba(124,179,234,.14);
  --warn-text: #e3b25b;
  --moss-alpha: rgba(111,174,146,.22);
  --r-card: 20px;
  --r-ctl: 12px;
  --shadow-1: none;
  --shadow-2: 0 18px 48px rgba(0,0,0,.4);
  --sans: "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --t-13: 13px;
  --t-15: 15px;
  --t-17: 17px;
  --t-22: 22px;
  --t-28: 28px;
  --t-44: 44px;
  --t-56: 56px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --dur-fade: 240ms;
  --dur-count: 650ms;
  --dur-pulse: 2.4s;
  --motion-rise: 8px;
  --motion-stagger: 70ms;
  --motion-stagger-max: 6;
  --dur-count-settle: 700ms;
  --dur-ring: 700ms;
  --ring-delay: 120ms;
  --dur-line: 600ms;
  --motion-line-stagger: 250ms;
  --dur-logo: 1.6s;
  --dur-thumb: 450ms;
  --dur-thumb-icon: 300ms;
  --dur-hover: 120ms;
  --lift: -1px;
  --press: 1px;
  --pulse-from: 0.85;
  --pulse-to: 1.75;
  --pulse-opacity-from: 0.5;
  --pulse-cycles: 6;
  --dur-theme-fade: 550ms;
  color-scheme: dark;
}

/* A page with no explicit theme follows the device. data-theme="light" pins light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --canvas: #0e1112;
    --surface: #161b1c;
    --surface-2: #1a2022;
    --hover: #222a2c;
    --stone: #222a2c;
    --line: rgba(255,255,255,.08);
    --line-2: rgba(255,255,255,.16);
    --text: #eef1ef;
    --text-2: #c3cbc6;
    --muted: #8d9791;
    --faint: #6b756f;
    --moss: #6fae92;
    --moss-deep: #2f4b3c;
    --moss-mid: #4f836b;
    --moss-tint: rgba(111,174,146,.14);
    --moss-ink: #eef1ef;
    --brass: #e2c27a;
    --ok: #4fc79a;
    --ok-soft: rgba(79,199,154,.14);
    --warn: #e3b25b;
    --warn-pin: #e3b25b;
    --warn-soft: rgba(227,178,91,.14);
    --bad: #ef7b6f;
    --bad-soft: rgba(239,123,111,.14);
    --info: #7cb3ea;
    --info-soft: rgba(124,179,234,.14);
    --warn-text: #e3b25b;
    --moss-alpha: rgba(111,174,146,.22);
    --r-card: 20px;
    --r-ctl: 12px;
    --shadow-1: none;
    --shadow-2: 0 18px 48px rgba(0,0,0,.4);
    --sans: "Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --t-13: 13px;
    --t-15: 15px;
    --t-17: 17px;
    --t-22: 22px;
    --t-28: 28px;
    --t-44: 44px;
    --t-56: 56px;
    --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
    --dur-fade: 240ms;
    --dur-count: 650ms;
    --dur-pulse: 2.4s;
    --motion-rise: 8px;
    --motion-stagger: 70ms;
    --motion-stagger-max: 6;
    --dur-count-settle: 700ms;
    --dur-ring: 700ms;
    --ring-delay: 120ms;
    --dur-line: 600ms;
    --motion-line-stagger: 250ms;
    --dur-logo: 1.6s;
    --dur-thumb: 450ms;
    --dur-thumb-icon: 300ms;
    --dur-hover: 120ms;
    --lift: -1px;
    --press: 1px;
    --pulse-from: 0.85;
    --pulse-to: 1.75;
    --pulse-opacity-from: 0.5;
    --pulse-cycles: 6;
    --dur-theme-fade: 550ms;
    color-scheme: dark;
  }
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--canvas); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1;
}
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.022em; color: var(--text); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
::selection { background: var(--stone); color: var(--text); }

/* ── the logo: inline <svg class="sy-logo"> with the eight paths and fill="currentColor" ── */
.sy-logo { display: block; height: 22px; width: auto; color: var(--moss-ink); background: transparent; }
.sy-logo svg, svg.sy-logo { display: block; height: 100%; width: auto; fill: currentColor; }
.sy-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sy-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: var(--space-6); }
:root[data-theme="dark"] .sy-card { box-shadow: inset 0 0 0 1px var(--line); }
.sy-btn {
  height: 48px; padding: 0 var(--space-5); border: 0; border-radius: var(--r-ctl); cursor: pointer;
  font-size: 15.5px; font-weight: 600; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); white-space: nowrap;
}
.sy-btn.pri { background: var(--moss); color: #ffffff; box-shadow: 0 1px 2px rgba(15,35,28,.2), 0 6px 16px rgba(47,75,60,.22); }
:root[data-theme="dark"] .sy-btn.pri { color: var(--canvas); box-shadow: none; }
.sy-btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.sy-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); margin-top: var(--space-8); border-top: 1px solid var(--line); }
.sy-foot .sy-logo { opacity: .9; }
.sy-foot-line { margin-left: auto; font-size: 13.5px; letter-spacing: .01em; color: var(--muted); }

/* ── motion: opacity and transform only; off under reduced motion or data-motion="off" ── */
.sy-fade { animation: syFadeIn var(--dur-fade) var(--ease) both; }
.sy-pin { position: relative; display: inline-flex; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.sy-pin.warn { background: var(--warn-pin); }
.sy-pin.bad { background: var(--bad); }
.sy-pin.info { background: var(--info); }
.sy-pin.muted { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.sy-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.sy-pin[data-pulse="on"]::after { animation: syPulse var(--dur-pulse) ease-out 6; }
.sy-logo-reveal .sy-logo-mark { animation: syLogoMark 1.6s var(--ease) both; }
.sy-logo-reveal .sy-logo-word { animation: syLogoWord 1.6s var(--ease) both; }
:root[data-motion="off"] .sy-fade, :root[data-motion="off"] .sy-pin[data-pulse="on"]::after,
:root[data-motion="off"] .sy-logo-reveal .sy-logo-mark, :root[data-motion="off"] .sy-logo-reveal .sy-logo-word { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sy-fade, .sy-pin[data-pulse="on"]::after, .sy-logo-reveal .sy-logo-mark, .sy-logo-reveal .sy-logo-word { animation: none; }
}

@keyframes syFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes syPulse { 0% { transform: scale(.85); opacity: .5; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes syLogoMark { 0% { opacity: 0; transform: translateY(4px) scale(.96); } 45%, 100% { opacity: 1; transform: none; } }
@keyframes syLogoWord { 0%, 30% { opacity: 0; transform: translateX(-6px); } 80%, 100% { opacity: 1; transform: none; } }
