/* ============================================================
   Landing page (index.html). The app itself uses styles.css.
   Light theme first; dark theme overrides below.
   ============================================================ */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #fbfbfd;
  --bg-2: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --border: #e9e9ef;
  --border-strong: #dcdce4;
  --input-border: #8a8a94;  /* 3.2:1+ (WCAG 1.4.11) */
  --text: #121218;
  --text-2: #52525c;
  --text-3: #6b6b75;

  --accent: #0e6e8c;
  --accent-2: #1a8fae;
  --accent-fill: #0e6e8c;
  --accent-fill-hover: #0b5c75;
  --on-accent: #ffffff;
  --accent-soft: rgba(14, 110, 140, 0.1);
  --accent-ring: rgba(14, 110, 140, 0.35);

  --ok-bg: #effaf4; --ok-fg: #23704a; --ok-dot: #4fb382;
  --warn-bg: #fdf6e7; --warn-fg: #8a5c12; --warn-dot: #e2a842;
  --over-bg: #fdeeec; --over-fg: #a33f37; --over-dot: #e07a70;
  --ot-bg: #f4effd; --ot-fg: #6a4fbf;
  --leave-stripe: rgba(110, 110, 130, 0.35);
  /* Grid bars: the same colours as the app (shell.css), colour-blind checked */
  --track: #ececf1; --load-fill: #c4c4d2; --free-fill: #3fb57a; --over-fill: #d4493d;

  --bar-s: 62%; --bar-l: 64%;

  --shadow-sm: 0 1px 2px rgba(18, 18, 30, 0.05);
  --shadow-md: 0 1px 2px rgba(18, 18, 30, 0.04), 0 12px 32px -14px rgba(18, 18, 30, 0.16);
  --shadow-xl: 0 1px 1px rgba(18, 18, 30, 0.04), 0 4px 10px -2px rgba(18, 18, 30, 0.05), 0 32px 64px -28px rgba(18, 18, 30, 0.18);

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --grad-end: #1f9a93;  /* 3.3:1 on the light background (only used on large text, which needs 3:1) */
  --glow-a: rgba(14, 110, 140, 0.24);
  --glow-b: rgba(60, 185, 190, 0.16);
  --glow-c: rgba(90, 200, 255, 0.16);

  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #08080b;
  --bg-2: #0e0e13;
  --surface: #111116;
  --surface-2: #17171d;
  --border: #23232b;
  --border-strong: #2f2f39;
  --input-border: #6d6d78;  /* 3.4:1+ */
  --text: #f1f1f5;
  --text-2: #a7a7b2;
  --text-3: #8d8d99;

  --accent: #3aa3c4;
  --accent-2: #5cc0d6;
  --accent-fill: #0e6e8c;
  --accent-fill-hover: #0b5c75;
  --accent-soft: rgba(58, 163, 196, 0.16);
  --accent-ring: rgba(58, 163, 196, 0.45);

  --ok-bg: rgba(79, 179, 130, 0.1); --ok-fg: #86d3aa;
  --warn-bg: rgba(226, 168, 66, 0.1); --warn-fg: #e9c27a;
  --over-bg: rgba(224, 122, 112, 0.12); --over-fg: #f0a198;
  --ot-bg: rgba(160, 130, 240, 0.13); --ot-fg: #c7b6f7;
  --leave-stripe: rgba(200, 200, 215, 0.35);
  --track: #24242c; --load-fill: #4d4d5e; --free-fill: #55cc92; --over-fill: #e0665c;

  --bar-s: 55%; --bar-l: 62%;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 1px 1px rgba(0, 0, 0, 0.4), 0 40px 90px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);

  --grad-end: #7fd6c8;
  --glow-a: rgba(30, 140, 175, 0.30);
  --glow-b: rgba(60, 190, 195, 0.14);
  --glow-c: rgba(60, 170, 255, 0.14);

  color-scheme: dark;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent-fill); color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 1px 2px rgba(18, 18, 30, 0.12);
}
.btn-primary:hover { background: var(--accent-fill-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-sun { display: none; }
[data-theme='dark'] .icon-sun { display: block; }
[data-theme='dark'] .icon-moon { display: none; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
/* Flat mark: three capacity bars, the same bars as the planning grid */
.logo-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='7' fill='%230e6e8c'/%3E%3Crect x='6' y='7' width='12' height='2.4' rx='1.2' fill='%23fff'/%3E%3Crect x='6' y='10.8' width='7' height='2.4' rx='1.2' fill='%23fff' fill-opacity='.7'/%3E%3Crect x='6' y='14.6' width='10' height='2.4' rx='1.2' fill='%23fff' fill-opacity='.85'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-signin { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.2s ease, background-color 0.2s ease; }
.nav-signin:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 720px) { .nav-signin { height: 44px; padding: 0 8px; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 44px 0 40px; isolation: isolate; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--text-3); }
.hero-title {
  margin-top: 16px;
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em;
}
/* Signature: a dashed "preview" underline, the same dashed line Capaci draws round
   anything that is not saved yet. */
.grad {
  text-decoration: underline dashed var(--accent); text-decoration-thickness: 2px;
  text-underline-offset: 0.14em; text-decoration-skip-ink: none;
}
.hero-sub { margin-top: 20px; max-width: 720px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--text-2); }
.hero-ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* Split hero: words on the left, the studio scene on the right */
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center; gap: 48px;
}
.hero-split .hero-inner { text-align: left; align-items: flex-start; }
.hero-split .hero-sub { max-width: 520px; }
.hero-split .hero-ctas { justify-content: flex-start; }

/* ---- Hero scene: an isometric studio, one desk per person, a status tag over each.
   Built by scripts/hero-scene.mjs. Tags are HTML so the text stays sharp. ---- */
.scene {
  position: relative; margin: 0; width: 100%; max-width: 620px; justify-self: end;
  /* materials */
  --sc-floor: #eceef1; --sc-floor-side: #dfe2e7; --sc-floor-front: #d3d7dd;
  --sc-wall-a: #f3f4f6; --sc-wall-b: #e9ebef; --sc-skirt: #dcdfe4;
  --sc-window: #dbe9ee; --sc-mullion: #f3f4f6; --sc-board: #ffffff;
  --sc-desk: #efe4d3; --sc-desk-l: #e0d0b8; --sc-desk-r: #d3c0a4;
  --sc-leg: #9aa0aa; --sc-chair: #3d4a54; --sc-chair-l: #34404a; --sc-chair-r: #2c363e;
  --sc-laptop: #d6d9df; --sc-laptop-l: #c5c9d0; --sc-laptop-r: #b5bac2;
  --sc-note: #ffffff; --sc-mug: #f7f7f9;
  --sc-pot: #d9cbb6; --sc-leaf: #5f9a78; --sc-leaf-b: #4c8565;
  --sc-ring-ok: rgba(63, 181, 122, 0.16); --sc-ring-over: rgba(212, 73, 61, 0.14);
}
[data-theme='dark'] .scene {
  --sc-floor: #1b1c22; --sc-floor-side: #15161b; --sc-floor-front: #111216;
  --sc-wall-a: #17181d; --sc-wall-b: #131418; --sc-skirt: #202128;
  --sc-window: #1d2c33; --sc-mullion: #17181d; --sc-board: #1f2026;
  --sc-desk: #3a342c; --sc-desk-l: #2f2a23; --sc-desk-r: #27231d;
  --sc-leg: #4a4d56; --sc-chair: #2a3238; --sc-chair-l: #232a2f; --sc-chair-r: #1d2327;
  --sc-laptop: #50545d; --sc-laptop-l: #43464e; --sc-laptop-r: #383b42;
  --sc-note: #2a2b31; --sc-mug: #8a8d96;
  --sc-pot: #3b352d; --sc-leaf: #4d8564; --sc-leaf-b: #3e6f53;
  --sc-ring-ok: rgba(85, 204, 146, 0.12); --sc-ring-over: rgba(224, 102, 92, 0.13);
}
.scene-svg { display: block; width: 100%; height: auto; }
.sc-floor-t { fill: var(--sc-floor); } .sc-floor-l { fill: var(--sc-floor-front); } .sc-floor-r { fill: var(--sc-floor-side); }
.sc-wall-a { fill: var(--sc-wall-a); } .sc-wall-b { fill: var(--sc-wall-b); } .sc-skirt { fill: var(--sc-skirt); }
.sc-window { fill: var(--sc-window); } .sc-mullion { fill: var(--sc-mullion); } .sc-board { fill: var(--sc-board); }
.sc-bar { fill: var(--load-fill); } .sc-bar-free { fill: var(--free-fill); } .sc-bar-over { fill: var(--over-fill); }
.sc-desk-t { fill: var(--sc-desk); } .sc-desk-l { fill: var(--sc-desk-l); } .sc-desk-r { fill: var(--sc-desk-r); }
.sc-leg-t, .sc-leg-l, .sc-leg-r { fill: var(--sc-leg); }
.sc-chair-t { fill: var(--sc-chair); } .sc-chair-l { fill: var(--sc-chair-l); } .sc-chair-r { fill: var(--sc-chair-r); }
.sc-laptop-t { fill: var(--sc-laptop); } .sc-laptop-l { fill: var(--sc-laptop-l); } .sc-laptop-r { fill: var(--sc-laptop-r); }
.sc-note-t { fill: var(--sc-note); } .sc-note-l, .sc-note-r { fill: var(--sc-floor-side); }
.sc-mug-t, .sc-mug-l { fill: var(--sc-mug); } .sc-mug-r { fill: var(--sc-mug); filter: brightness(0.82); }
.sc-pot-t, .sc-pot-l { fill: var(--sc-pot); } .sc-pot-r { fill: var(--sc-pot); filter: brightness(0.9); }
.sc-leaf { fill: var(--sc-leaf); } .sc-leaf-b { fill: var(--sc-leaf-b); }
.sc-ring-ok { fill: var(--sc-ring-ok); } .sc-ring-over { fill: var(--sc-ring-over); }
/* people: muted shirts, a range of skin and hair tones */
.sc-p1-t, .sc-p1-l { fill: #7fa7b8; } .sc-p1-r { fill: #6c93a4; }
.sc-p2-t, .sc-p2-l { fill: #c9a27a; } .sc-p2-r { fill: #b58e67; }
.sc-p3-t, .sc-p3-l { fill: #a98fb8; } .sc-p3-r { fill: #957ba4; }
.sc-p4-t, .sc-p4-l { fill: #8fae8a; } .sc-p4-r { fill: #7c9a77; }
.sc-k1 { fill: #f1d3bd; } .sc-k2 { fill: #f3cfb3; } .sc-k3 { fill: #c99573; } .sc-k4 { fill: #8d5b3e; }
.sc-h1 { fill: #2b2522; } .sc-h2 { fill: #b0794a; } .sc-h3 { fill: #231c1a; } .sc-h4 { fill: #1d1716; }
.sc-leader { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.55; }

.scene-tag {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.scene-tag b { font-weight: 500; color: var(--text); }
.st-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tag-ok .st-dot { background: var(--free-fill); }
.tag-busy .st-dot { background: var(--load-fill); }
.tag-over .st-dot { background: var(--over-fill); }
.tag-over { color: var(--over-fg); }

/* The one thing not saved yet: dashed, like everywhere else in Capaci */
.scene-preview {
  position: absolute; left: 2%; bottom: 6%;
  display: flex; flex-direction: column; gap: 2px; max-width: 236px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface); border: 1.5px dashed var(--accent);
  box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 500; color: var(--text);
}
.sp-label { font-size: 11.5px; font-weight: 500; color: var(--accent); }
.sp-meta { font-size: 12px; font-weight: 400; color: var(--text-3); }

/* scene-tags:start (generated by scripts/hero-scene.mjs) */
.scene-tag.t1 { left: 51.3%; top: 27.5%; animation-delay: 0.35s; }
.scene-tag.t2 { left: 74.6%; top: 42.3%; animation-delay: 0.44s; }
.scene-tag.t3 { left: 32.3%; top: 39.5%; animation-delay: 0.53s; }
.scene-tag.t4 { left: 55.6%; top: 54.3%; animation-delay: 0.62s; }
/* scene-tags:end */

/* One entrance: the tags settle in after the room */
@media (prefers-reduced-motion: no-preference) {
  .scene-tag, .scene-preview { animation: tag-in 0.5s var(--ease) both; }
  .scene-preview { animation-delay: 0.75s; }
  @keyframes tag-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
}

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split .hero-inner { align-items: center; text-align: center; }
  .hero-split .hero-ctas { justify-content: center; }
  .scene { justify-self: center; }
}
@media (max-width: 520px) {
  .scene-tag { height: 24px; padding: 0 8px; font-size: 11px; gap: 5px; }
  .tag-busy { display: none; }
  .scene-preview { position: static; margin: 12px auto 0; max-width: none; }
}

/* ============================================================
   Live demo
   ============================================================ */
.demo-wrap { margin-top: 40px; scroll-margin-top: 84px; }
.demo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.frame-title { margin-left: 12px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.frame-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); }

.demo-body { position: relative; padding: 22px 22px 18px; }

/* Prompt bar (display only: visitors can't type in the demo) */
.demo-prompt {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 8px 0 18px;
  border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.demo-prompt.is-typing { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.dp-icon { color: var(--accent); flex: none; }
.dp-text { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-placeholder { color: var(--text-3); font-weight: 400; }
.caret { display: inline-block; width: 2px; height: 20px; margin-left: 1px; vertical-align: -4px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.caret[hidden] { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.dp-send {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-fill); color: var(--on-accent);
  transition: transform 0.18s var(--ease), box-shadow 0.25s ease;
}
.dp-send.is-pressed { transform: scale(0.9); box-shadow: 0 0 0 6px var(--accent-soft); }

/* Stage: grid on the left, preview panel on the right (never covers the grid) */
.demo-stage { position: relative; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.demo-main { min-width: 0; }
.demo-side { position: relative; min-height: 100%; }
.demo-card-host { position: relative; z-index: 2; }
.side-idle {
  border: 1px dashed var(--border-strong); border-radius: 16px; padding: 22px 20px;
  color: var(--text-3); font-size: 13px; line-height: 1.55;
  transition: opacity 0.3s ease;
}
.demo-card-host:not(:empty) + .side-idle { display: none; }
.side-idle-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.side-idle-title { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.d-card {
  border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 16px 16px 14px;
  opacity: 0; transform: translateY(-10px) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.d-card.is-in { opacity: 1; transform: none; }
.d-card.is-out { opacity: 0; transform: translateY(-6px) scale(0.99); }
.d-card-head { display: flex; align-items: center; gap: 10px; }
.d-card-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex: none; }
.d-card-title { font-size: 14px; font-weight: 600; }
.d-card-sub { font-size: 12px; color: var(--text-3); }
.d-tag { margin-left: auto; flex: none; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--over-bg); color: var(--over-fg); }
.d-lines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.d-line { border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; background: var(--surface); }
.d-line.is-over { border-color: color-mix(in srgb, var(--over-fg) 45%, var(--border)); }
.d-line-text { font-size: 13px; font-weight: 600; line-height: 1.4; }
.d-impact { margin-top: 5px; font-size: 12px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.d-impact b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.d-impact .over { color: var(--over-fg); font-weight: 600; }
.d-impact .ot { color: var(--ot-fg); font-weight: 600; }
.d-delta { color: var(--text-3); }
.d-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.d-btn {
  height: 32px; padding: 0 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  transition: transform 0.18s var(--ease), box-shadow 0.25s ease, background-color 0.2s ease;
}
.d-btn.primary { background: var(--accent-fill); border-color: transparent; color: var(--on-accent); }
.d-btn.is-pressed { transform: scale(0.92); box-shadow: 0 0 0 6px var(--accent-ring); }
.d-answer { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-fg); font-size: 12.5px; font-weight: 600; }
.d-chip .av { width: 20px; height: 20px; font-size: 9.5px; }

/* Grid */
.demo-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 2px 12px; }
.dg-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dg-sub { font-size: 12.5px; color: var(--text-3); }
.dg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--text-2); }
.dg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dg-legend i { width: 14px; height: 5px; border-radius: 3px; background: var(--load-fill); }
.dg-legend i.is-free { background: var(--free-fill); }
.dg-legend i.is-over { background: var(--over-fill); }
.dg-legend i.is-leave { background: repeating-linear-gradient(135deg, var(--leave-stripe) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--leave-stripe); }

.demo-grid {
  display: grid;
  grid-template-columns: 172px repeat(var(--cols, 5), minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.g-head { padding: 10px 12px; font-size: 12px; font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); white-space: nowrap; }
.g-head:first-child { border-left: 0; color: var(--text-3); font-weight: 500; }
.g-head small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.g-head.is-now { color: var(--accent); }
.g-name { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); min-width: 0; }
/* Initials, quiet and neutral as in the app */
.av {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 10.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.g-person { min-width: 0; }
.g-person b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-person span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.g-cell {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  min-width: 0; overflow: hidden;
  min-height: 54px; padding: 7px 10px;
  border-left: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background-color 0.5s ease, opacity 0.4s ease;
}
/* Calm cells, as in the app: neutral by default, colour only for the exceptions
   (green bar = half a day or more free, red bar + soft red cell = over-booked). */
.g-cell.c-over { background: var(--over-bg); }
.g-cell.u-leave { background: var(--surface-2); }
.g-top { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 1px; min-height: 32px; align-content: flex-start; }
.g-pct { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.u-leave .g-pct { color: var(--text-2); }
.g-note { order: 2; flex-basis: 100%; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.g-note.is-free { color: var(--ok-fg); font-weight: 500; }
.g-note.is-over { color: var(--over-fg); font-weight: 600; }
.g-ot { margin-left: auto; font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 5px; background: var(--ot-bg); color: var(--ot-fg); }
.g-track { position: relative; display: flex; height: 5px; border-radius: 999px; background: var(--track); overflow: hidden; transition: opacity 0.4s ease; }
.g-track[hidden] { display: none; }
.g-fill, .g-leave { flex: none; height: 100%; width: calc(var(--w, 0) * 1%); transition: width 0.45s var(--ease), background-color 0.4s ease; }
.g-fill { background: var(--load-fill); }
.c-free .g-fill { background: var(--free-fill); }
.c-over .g-fill { background: var(--over-fill); }
.g-leave { background: repeating-linear-gradient(135deg, var(--leave-stripe) 0 2px, transparent 2px 4px); }
.g-spill { position: absolute; top: 0; bottom: 0; left: 80%; width: calc(var(--w, 0) * 1%); background: repeating-linear-gradient(135deg, var(--over-fill) 0 2px, transparent 2px 5px); opacity: 0.9; transition: width 0.45s var(--ease); }
.g-tick { position: absolute; top: 0; bottom: 0; left: calc(80% - 1px); width: 1.5px; background: var(--text-2); opacity: 0.35; }
/* Whole-team row: a quiet total underneath */
.g-team, .g-team-name { background: var(--surface-2); border-bottom: 0; border-top: 1px solid var(--border-strong); }
.g-team.c-over { background: var(--over-bg); }
.g-team-name .g-person b { font-size: 12.5px; }
.g-note.is-muted { color: var(--text-3); font-weight: 500; }
.g-team .g-note.is-over { color: var(--over-fg); }
.g-head.is-holiday small { color: var(--ot-fg); overflow: hidden; text-overflow: ellipsis; }

/* Demo states */
/* While previewing, unchanged cells lose their tint and bars fade; text stays readable */
.demo-grid.is-previewing .g-cell:not(.is-affected) { background: var(--surface); }
.demo-grid.is-previewing .g-team:not(.is-affected) { background: var(--surface-2); }
.demo-grid.is-previewing .g-cell:not(.is-affected) .g-track { opacity: 0.35; }
/* Signature: changed-but-not-saved cells get the dashed preview outline */
.g-cell.is-affected { outline: 1.5px dashed var(--accent); outline-offset: -3px; z-index: 1; }
.g-cell.is-answer { box-shadow: inset 0 0 0 1.5px var(--ok-fg); z-index: 1; }
.g-was { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.g-cell.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 var(--accent-ring); } 100% { box-shadow: inset 0 0 0 0 transparent, 0 0 0 0 transparent; } }


/* Example picker: tabs across the top of the demo window */
.demo-tabs {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.tabs-label { flex: none; font-size: 13px; font-weight: 500; color: var(--text-3); }
.scenario-list { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.scenario-list::-webkit-scrollbar { display: none; }
.scenario {
  position: relative; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 6px; border-radius: 11px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.scenario:hover { color: var(--text); border-color: var(--text-3); }
.scenario .num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-3);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.scenario[aria-pressed='true'] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.scenario[aria-pressed='true'] .num { background: var(--accent-fill); color: var(--on-accent); }
.scenario .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.play-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.play-btn:hover { color: var(--text); }
.play-btn .i-play { display: none; }
.play-btn.is-paused .i-play { display: block; }
.play-btn.is-paused .i-pause { display: none; }

.demo-caption { margin: 10px 4px 0; font-size: 13.5px; color: var(--text-2); min-height: 21px; transition: opacity 0.3s ease; }
.demo-footnote { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* Pretend mouse pointer */
.demo-cursor {
  position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none;
  opacity: 0; transform: translate(var(--x, 60%), var(--y, 70%));
  transition: transform 0.6s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.25s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}
.demo-cursor.is-on { opacity: 1; }
.demo-cursor.is-click { animation: cursorClick 0.28s ease; }
@keyframes cursorClick { 50% { scale: 0.82; } }

/* Preview card after confirming / rejecting */
.d-result {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px 12px; border-radius: 11px; font-size: 13px; font-weight: 600;
  animation: resultIn 0.4s var(--ease);
}
.d-result.ok { background: var(--ok-bg); color: var(--ok-fg); }
.d-result.no { background: var(--surface-2); color: var(--text-2); }
.d-result .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; background: #34c77b; color: #fff; }
.d-result.no .tick { background: #8d8d99; }
@keyframes resultIn { from { opacity: 0; transform: translateY(4px) scale(0.98); } }
.d-card.is-done { border-color: color-mix(in srgb, var(--ok-fg) 40%, var(--border-strong)); }
.d-card.is-done .d-lines { opacity: 0.75; }

/* ============================================================
   Sections
   ============================================================ */
section { position: relative; }
.statement { padding: 120px 0 40px; }
.statement-text { max-width: 900px; margin: 0 auto; text-align: center; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: -0.025em; }
.statement-text .muted { color: var(--text-3); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { font-size: 14px; font-weight: 500; color: var(--text-3); }
.section-head h2, .cta h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }

.features { padding: 90px 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 26px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-strong); }
.f-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.feature h3 { margin-top: 18px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.feature-strip { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.feature-strip span { font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }

.how { padding: 110px 0 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-strong); font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

.cta { padding: 110px 0 120px; scroll-margin-top: 80px; }
.cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xl);
}
.cta-copy, .cta-form { position: relative; z-index: 1; }
.cta-copy p { margin-top: 14px; color: var(--text-2); font-size: 16px; }
.cta-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.cta-points li { display: flex; gap: 10px; align-items: center; }
.cta-points li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6e8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cta-copy .cta-pricing { margin-top: 16px; font-size: 14px; color: var(--text-3); text-wrap: pretty; }
.founder-quote { text-wrap: pretty; }
.founder { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.founder-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.cta-copy .founder-quote { margin-top: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.cta-copy .founder-name { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.founder-name a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } /* underline: not colour alone (WCAG 1.4.1) */
.cta-form { display: grid; gap: 6px; padding: 26px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); }
.cta-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.cta-form label:first-child { margin-top: 0; }
.opt { font-weight: 400; color: var(--text-3); }
.cta-form input, .cta-form select {
  height: 44px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--input-border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming in on focus */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cta-form .btn { margin-top: 14px; }
.form-msg { min-height: 20px; font-size: 13.5px; font-weight: 500; }
.form-msg.is-ok { color: var(--ok-fg); }
.form-msg.is-error { color: var(--over-fg); }
.form-privacy { font-size: 13px; color: var(--text-3); }
.cta-form input[aria-invalid="true"] { border-color: var(--over-fg); }
.cta-form [hidden], .cta-done[hidden], .cta-form[hidden] { display: none; }

/* "You're in" card, shown in place of the form after a sign-up */
.cta-done {
  position: relative; z-index: 1; align-self: start;
  padding: 28px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border);
  scroll-margin-top: 90px; animation: done-in 0.35s ease;
}
.cta-done:focus { outline: none; }
.cta-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-done-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ok-bg, var(--accent-soft)); color: var(--ok-fg);
}
.cta-done h3 { margin: 14px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.cta-done > p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.cta-done-next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cta-done-label { margin: 0; font-size: 13px; font-weight: 600; }
.cta-done ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--text-2); }
.link-btn {
  margin-top: 18px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
@keyframes done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#wlEmail, .cta-form { scroll-margin-top: 90px; }

.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 13.5px; color: var(--text-2); }
.footer-small { margin-left: auto; color: var(--text-3); font-size: 12.5px; }

/* Scroll-in reveal removed: every section is visible at rest (link previews,
   screenshots and readers who skim all see the whole page). */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  /* Preview panel moves above the grid */
  .demo-stage { grid-template-columns: 1fr; gap: 12px; }
  .demo-side { order: -1; min-height: 0; }
  .side-idle { display: none; }
}
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; padding: 34px; gap: 30px; }
}
@media (max-width: 720px) {
  .container, .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 48px; }
  .demo-wrap { margin-top: 44px; }
  .demo-body { padding: 14px 12px 14px; }
  .demo-prompt { height: 50px; padding-left: 14px; }
  .dp-text { font-size: 14px; }
  .demo-grid { grid-template-columns: 104px repeat(var(--cols, 3), minmax(0, 1fr)); }
  .g-name { padding: 8px; gap: 8px; }
  .av { width: 24px; height: 24px; font-size: 9.5px; }
  .g-person span { display: none; }
  .g-person b { font-size: 12px; }
  .g-cell { padding: 6px 7px; min-height: 48px; }
  .g-top { flex-wrap: wrap; gap: 2px 4px; }
  .g-was { font-size: 9px; padding: 0 4px; }
  .g-ot { margin-left: 0; }
  .g-head { padding: 8px; overflow: hidden; text-overflow: ellipsis; }
  .g-head small { overflow: hidden; text-overflow: ellipsis; }
  .dg-legend { display: none; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .statement { padding-top: 80px; }
  .cta-card { padding: 22px; border-radius: 22px; }
  .cta-form { padding: 18px; }
  .cta-done { padding: 20px; }
  .footer-small { margin-left: 0; }
  .frame-title { display: none; }
  .demo-tabs { padding: 10px 12px; gap: 8px; }
  .tabs-label { display: none; }
  .play-btn { padding: 0 9px; }
  #playLabel { display: none; }
  .scenario { height: 44px; font-size: 13px; }
  .play-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .icon-btn { width: 44px; height: 44px; }
  .nav .btn-sm { height: 44px; }
  /* Fade the right edge so it looks scrollable (more examples off to the side) */
  .scenario-list { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============ Legal pages (privacy policy) ============ */
.nav.is-static { background: var(--bg); border-bottom-color: var(--border); }
.form-privacy a, .footer-small a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 780px; }
.legal h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 46px); line-height: 1.1; }
.legal-updated { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.legal section { margin-top: 44px; scroll-margin-top: 24px; }
.legal h2 { font-size: 22px; line-height: 1.3; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal section a, .legal-summary a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.legal-summary { margin-top: 32px; padding: 24px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.legal-summary h2 { font-size: 18px; }
.legal-toc { margin-top: 28px; padding: 20px 26px; border-radius: 18px; border: 1px solid var(--border); }
.legal-toc-title { margin: 0 !important; font-size: 13px !important; font-weight: 600; color: var(--text) !important; }
.legal-toc ol { gap: 4px; columns: 2; column-gap: 32px; display: block; }
.legal-toc li { font-size: 14.5px; margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--text-2); }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); line-height: 1.5; }
.legal-table th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; }
.legal-table tr:last-child td { border-bottom: 0; }
/* Placeholders that must be filled in before the page goes public */
mark.todo { background: #fff3bf; color: #5c4400; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (max-width: 720px) {
  .legal { padding: 36px 0 64px; }
  .legal-toc ol { columns: 1; }
  .legal-summary, .legal-toc { padding: 18px; }
}

/* ============ Footer: business details (UK E-Commerce Regulations 2002) ============ */
.footer-legal { flex-basis: 100%; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.footer-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============ 404 page ============ */
.notfound { position: relative; overflow: hidden; padding: 110px 0 130px; text-align: center; }
.notfound-inner { max-width: 560px; }
.notfound-code {
  font-size: clamp(72px, 14vw, 120px); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.notfound h1 { margin-top: 18px; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.notfound p:not(.notfound-code) { margin-top: 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.notfound-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 720px) {
  .notfound { padding: 64px 0 88px; }
}

/* ============ FAQ (landing page) ============ */
.faq { padding: 110px 0 0; scroll-margin-top: 80px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px 14px 22px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-item summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6e8c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.3s var(--ease);
}
[data-theme='dark'] .faq-item summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233aa3c4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-more { margin-top: 22px; text-align: center; color: var(--text-2); font-size: 14.5px; }
.faq-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .faq { padding-top: 80px; }
  .faq-item summary { padding: 12px 14px 12px 16px; font-size: 15px; }
  .faq-answer { padding: 0 16px 16px; }
}
