/* =====================================================================
   PlugdIN website - site.css
   One stylesheet for the whole static site. Tokens mirror src/theme
   (Colors, Accents, Spacing, Radius, Font) and design/UI_PLAN.md (glass).
   Self-hosted fonts only. No third-party requests.
   ===================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/SpaceGrotesk-Variable.0640890476.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Variable.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens: structure (mode independent) ---------- */
:root {
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing: src/theme Spacing (half..six) + two web-only layout steps */
  --sp-half: 2px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 64px;
  --sp-7: 96px;   /* web extension */
  --sp-8: 128px;  /* web extension */

  /* Radius: src/theme Radius */
  --r-sm: 10px;
  --r-chip: 14px;
  --r-input: 16px;
  --r-btn: 18px;
  --r-card: 24px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Layout */
  --gutter: 16px;
  --max: 1200px;
  --max-prose: 680px;
  --nav-h: 58px;      /* ChromeMetrics.deckHeight */
  --nav-inset: 12px;  /* ChromeMetrics.gutter */
  --tap: 44px;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- 2. Tokens: light (default) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F7F7F8;
  --elevated: #EEEEEF;
  --border: #E3E3E6;
  --text: #1B1B1D;
  --text-2: #5C5C64;          /* secondary text, 6.6:1 on bg */
  --text-muted: #9A9AA2;      /* DECORATION ONLY. Never text. */
  --control-border: #85858D;  /* web-only: form control edge, 3:1+ */

  --coral: #CF5D47;           /* brand terracotta: dots, waveform, marks */
  --on-coral: #FFFFFF;
  --ink: #B0432F;             /* coral.text light: links, wordmark In, focus */
  --coral-soft: rgba(207, 93, 71, 0.12);
  --btn-fill: #B0432F;        /* web-only: AA fill for white label (5.7:1) */
  --btn-on: #FFFFFF;
  --glow: #B32E28;

  --red-hover: rgba(160, 40, 40, 0.08);  /* web-only: danger hover wash, keeps text above 4.5:1 */
  --red-solid: #FFB3B3;   --red-on: #A02828;    --red-text: #A02828;    --red-soft: #FFB3B3;
  --purple-solid: #D4BBFF; --purple-on: #5C3BA8; --purple-text: #5C3BA8; --purple-soft: #D4BBFF;
  --green-solid: #B3E8C8; --green-on: #1E6B40;  --green-text: #1E6B40;  --green-soft: #B3E8C8;
  --yellow-solid: #FFE9A0; --yellow-on: #8A6200; --yellow-text: #8A6200; --yellow-soft: #FFE9A0;

  /* Glass (UI_PLAN Material.chrome) */
  --glass-tint: rgba(255, 255, 255, 0.72);
  --glass-solid: #F2F2F3;
  --glass-hairline: rgba(0, 0, 0, 0.06);
  --glass-specular: rgba(255, 255, 255, 0.6);
  --glass-blur: 40px;
  --glass-sat: 1.8;

  --sh-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --sh-deck: 0 8px 30px rgba(0, 0, 0, 0.10);
  --sh-sheet: 0 -4px 40px rgba(0, 0, 0, 0.16);
  --sh-phone: 0 40px 80px -30px rgba(27, 27, 29, 0.28), 0 12px 24px -12px rgba(27, 27, 29, 0.10);
  --scrim: rgba(0, 0, 0, 0.25);
}

/* ---------- 3. Tokens: dark ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B1B1D;
  --surface: #242427;
  --elevated: #2C2C30;
  --border: #3A3A3F;
  --text: #F4F4F5;
  --text-2: #A3A3AB;          /* 6.9:1 on bg */
  --text-muted: #67676F;      /* DECORATION ONLY. Never text. */
  --control-border: #7A7A82;

  --ink: #F56A4F;             /* coral.text dark */
  --coral-soft: rgba(207, 93, 71, 0.16);

  --red-hover: rgba(255, 179, 179, 0.12);
  --red-text: #FFB3B3;    --red-soft: rgba(255, 179, 179, 0.15);
  --purple-text: #D4BBFF; --purple-soft: rgba(212, 187, 255, 0.15);
  --green-text: #B3E8C8;  --green-soft: rgba(179, 232, 200, 0.15);
  --yellow-text: #FFE9A0; --yellow-soft: rgba(255, 233, 160, 0.15);

  --glass-tint: rgba(27, 27, 29, 0.72);
  --glass-solid: #242427;
  --glass-hairline: rgba(255, 255, 255, 0.10);
  --glass-specular: rgba(255, 255, 255, 0.07);
  --glass-sat: 1.6;

  --sh-card: 0 1px 3px rgba(0, 0, 0, 0.30);
  --sh-deck: 0 8px 30px rgba(0, 0, 0, 0.45);
  --sh-sheet: 0 -4px 40px rgba(0, 0, 0, 0.55);
  --sh-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.4);
  --scrim: rgba(0, 0, 0, 0.45);
}

/* Static site: follow the OS unless the page pins a theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1B1B1D; --surface: #242427; --elevated: #2C2C30; --border: #3A3A3F;
    --text: #F4F4F5; --text-2: #A3A3AB; --text-muted: #67676F; --control-border: #7A7A82;
    --ink: #F56A4F; --coral-soft: rgba(207, 93, 71, 0.16);
    --red-hover: rgba(255, 179, 179, 0.12);
    --red-text: #FFB3B3;    --red-soft: rgba(255, 179, 179, 0.15);
    --purple-text: #D4BBFF; --purple-soft: rgba(212, 187, 255, 0.15);
    --green-text: #B3E8C8;  --green-soft: rgba(179, 232, 200, 0.15);
    --yellow-text: #FFE9A0; --yellow-soft: rgba(255, 233, 160, 0.15);
    --glass-tint: rgba(27, 27, 29, 0.72); --glass-solid: #242427;
    --glass-hairline: rgba(255, 255, 255, 0.10); --glass-specular: rgba(255, 255, 255, 0.07);
    --glass-sat: 1.6;
    --sh-card: 0 1px 3px rgba(0, 0, 0, 0.30); --sh-deck: 0 8px 30px rgba(0, 0, 0, 0.45);
    --sh-sheet: 0 -4px 40px rgba(0, 0, 0, 0.55);
    --sh-phone: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.4);
    --scrim: rgba(0, 0, 0, 0.45);
  }
}

/* ---------- 4. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}
.page img, .page svg { max-width: 100%; }
.page a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page a:hover { text-decoration-thickness: 2px; }
.page :focus { outline: none; }
.page :focus-visible,
.is-focus {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.page p { margin: 0; }
.page h1, .page h2, .page h3, .page h4 { margin: 0; font-family: var(--font-display); color: var(--text); }
.page ul, .page ol { margin: 0; padding: 0; }

.skip {
  position: absolute; left: var(--sp-3); top: -64px; z-index: 20;
  min-height: var(--tap); padding: 0 var(--sp-4); display: inline-flex; align-items: center;
  background: var(--btn-fill); color: var(--btn-on) !important; border-radius: var(--r-btn);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--sp-3); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- 5. Type ---------- */
.t-hero { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.85rem + 2.9vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.t-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.t-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.625rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.t-h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.t-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.t-body { font-size: 1rem; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.t-small { font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }
.t-caption { font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.accent-in { color: var(--ink); }
.page .tx { color: var(--text); }
.page .tx-2 { color: var(--text-2); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 var(--sp-4);
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.page a.btn { text-decoration: none; }
.btn--sm { min-height: var(--tap); padding: 0 18px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-fill); color: var(--btn-on); }
.page a.btn--primary { color: var(--btn-on); }
.btn--primary:hover, .btn--primary.is-hover { background-image: linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)); box-shadow: 0 6px 18px -8px var(--glow); }
.btn--primary:active { transform: translateY(1px); box-shadow: none; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--control-border); }
.page a.btn--secondary { color: var(--text); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--surface); border-color: var(--text-2); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 var(--sp-3); }
.page a.btn--ghost { color: var(--ink); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--coral-soft); }
.btn--danger { background: transparent; color: var(--red-text); border-color: var(--red-text); }
.btn--danger:hover, .btn--danger.is-hover { background: var(--red-hover); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-loading { cursor: progress; }

/* ---------- 7. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.label .opt { font-weight: 400; color: var(--text-2); }
.hint { font-size: 0.8125rem; color: var(--text-2); }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 0 var(--sp-3);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--control-border); border-radius: var(--r-input);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 112px; padding: 14px var(--sp-3); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-2); opacity: 0.8; }
.input:hover, .textarea:hover, .input.is-hover { border-color: var(--text-2); }
.input:focus-visible, .textarea:focus-visible, .input.is-focus {
  outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink);
}
.input.is-error, .input[aria-invalid="true"] { border-color: var(--red-text); border-width: 1.5px; }
.input.is-success { border-color: var(--green-text); }
.input[disabled] { background: var(--surface); color: var(--text-2); cursor: not-allowed; }
.msg { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 0.875rem; line-height: 1.45; }
.msg--error { color: var(--red-text); }
.msg--error .ic { margin-top: 2px; }
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--border);
}
.notice--success { background: var(--green-soft); border-color: transparent; }
.notice--success .notice__title { color: var(--green-text); }
.notice__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.notice__body { font-size: 0.9375rem; color: var(--text); margin-top: var(--sp-1); }
.notice--success .notice__body { color: var(--text); }
.consent { font-size: 0.8125rem; line-height: 1.55; color: var(--text-2); max-width: 46em; }

.wl__row { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 560px) { .wl__row { flex-direction: row; } .wl__row .input { flex: 1 1 auto; } .wl__row .btn { flex: 0 0 auto; } }
.wl { display: flex; flex-direction: column; gap: var(--sp-3); width: 100%; max-width: 560px; }

/* ---------- 8. Icons (mask based, currentColor) ---------- */
.ic { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ic-alert { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
.ic-chev { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.ic-arrow { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* ---------- 9. Navigation: floating glass capsule (UI_PLAN TabDeck family) ---------- */
.nav-wrap { position: sticky; top: var(--nav-inset); z-index: 10; padding-inline: var(--nav-inset); margin-top: var(--nav-inset); }
.nav {
  max-width: 1176px; margin-inline: auto; min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 7px 7px 7px var(--sp-4);
  background: var(--glass-solid);
  border: 1px solid var(--glass-hairline); border-radius: var(--r-pill);
  box-shadow: var(--sh-deck), inset 0 1px 0 var(--glass-specular);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: var(--glass-tint); -webkit-backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur)); backdrop-filter: saturate(var(--glass-sat)) blur(var(--glass-blur)); }
}
.wordmark { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--text) !important; text-decoration: none !important; white-space: pre; }
.wordmark .in { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link { display: none; align-items: center; min-height: var(--tap); padding: 0 var(--sp-3); font-size: 0.9375rem; font-weight: 500; color: var(--text) !important; text-decoration: none !important; border-radius: var(--r-pill); }
.nav__link:hover { background: var(--elevated); }
.nav__link[aria-current="page"] { color: var(--ink) !important; }
@media (min-width: 640px) { .nav__link { display: inline-flex; } }

/* ---------- 10. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero::before { content: ""; position: absolute; inset: -10% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--coral-soft), transparent 72%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-7); } }
.hero__copy { display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.hero__visual { display: flex; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 14px 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; color: var(--text-2); background: var(--bg); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ---------- 11. Feature rows ---------- */
.intro { max-width: 40em; display: flex; flex-direction: column; gap: var(--sp-3); }
.feature { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--border); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-items: center; }
@media (min-width: 960px) {
  .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
  .feature--flip .feature__visual { order: -1; }
}
.feature__text { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; max-width: 32em; }
.feature__visual { display: flex; justify-content: center; position: relative; }
.feature__visual::before { content: ""; position: absolute; inset: 8% 6%; border-radius: var(--r-xl); background: var(--surface); }
.feature__visual > * { position: relative; }
.facts { list-style: none; width: 100%; margin-top: var(--sp-2) !important; }
.facts li { padding: 14px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.facts li:last-child { border-bottom: 1px solid var(--border); }
.note { font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }

/* ---------- 12. Principles ---------- */
.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--sp-6); }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sp-5); } }
.principle { padding: var(--sp-4) 0 var(--sp-5); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--sp-2); }
.principle .t-h4 { font-size: 1.1875rem; }

/* ---------- 13. Closing band ---------- */
.band { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; gap: var(--sp-4); align-items: flex-start; }
.band::after { content: ""; position: absolute; right: 0; bottom: 0; width: 55%; height: 100%; pointer-events: none; opacity: 0.08;
  background: repeating-linear-gradient(90deg, var(--coral) 0 3px, transparent 3px 9px);
  -webkit-mask: linear-gradient(to top, #000, transparent 85%); mask: linear-gradient(to top, #000, transparent 85%); }
.band > * { position: relative; z-index: 1; }

/* ---------- 14. Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--sp-6) var(--sp-5); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-6); } }
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.footer__links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); }
.footer__links a { display: flex; align-items: center; min-height: var(--tap); color: var(--text) !important; text-decoration: none; font-size: 0.9375rem; }
.footer__links a:hover { color: var(--ink) !important; text-decoration: underline; }
.footer__legal { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.footer__mail { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; }

/* ---------- 15. Page header (inner pages) ---------- */
.pagehead { padding-block: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: var(--sp-3); }
.pagehead .t-lead { max-width: 34em; }

/* ---------- 16. Support ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .support-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; } .support-aside { position: sticky; top: 96px; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.contact-card__mail { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); letter-spacing: -0.02em; word-break: break-word; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 68px; padding-block: var(--sp-3); font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }
.faq summary .ic { color: var(--text-2); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq__body { padding: 0 var(--sp-6) var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-3); max-width: 38em; }
.faq__body ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--sp-2); color: var(--text-2); }

/* ---------- 17. Legal reading layout ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding-bottom: clamp(56px, 8vw, 112px); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-7); } }
.toc { display: none; }
@media (min-width: 1000px) { .toc { display: block; position: sticky; top: 96px; align-self: start; } .toc-mobile { display: none; } }
.toc__title { margin-bottom: var(--sp-2); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; align-items: baseline; min-height: 36px; padding: 6px 0; color: var(--text-2) !important; text-decoration: none; font-size: 0.875rem; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--text-2); opacity: 0.7; font-size: 0.75rem; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink) !important; }
.toc-mobile { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 var(--sp-4); font-weight: 600; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .ic { color: var(--text-2); transition: transform .2s ease; }
.toc-mobile[open] .ic { transform: rotate(180deg); }
.toc-mobile ol { list-style: none; counter-reset: toc; padding: 0 var(--sp-4) var(--sp-3); }
.toc-mobile li { counter-increment: toc; }
.toc-mobile a { display: flex; gap: 12px; align-items: baseline; min-height: var(--tap); padding: 10px 0; border-top: 1px solid var(--border); color: var(--text) !important; text-decoration: none; font-size: 0.9375rem; }
.toc-mobile a::before { content: counter(toc, decimal-leading-zero); font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: 0.875rem; color: var(--text-2); }
.prose { max-width: var(--max-prose); }
.prose > * + * { margin-top: var(--sp-3); }
.prose h2 { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: var(--sp-5); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 96px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.prose p.lede { font-size: 1.25rem; line-height: 1.6; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--sp-2); }
.prose li::marker { color: var(--text-2); }
.prose strong { font-weight: 600; }
.prose .tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); }
.prose table { width: 100%; border-collapse: collapse; min-width: 520px; }
.prose th { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; background: var(--surface); }
.prose th, .prose td { padding: 14px var(--sp-3); vertical-align: top; font-size: 0.9375rem; line-height: 1.5; border-bottom: 1px solid var(--border); }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--border); }
.prose .callout { padding: var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.prose .callout p { font-size: 1rem; }
.prose .more { padding: var(--sp-4); border: 1px dashed var(--control-border); border-radius: var(--r-card); }
.prose .more p { font-size: 0.9375rem; color: var(--text-2); }

/* ---------- 18. Delete account ---------- */
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--border); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: var(--text); }
.steps__body { margin-top: var(--sp-1); font-size: 1rem; color: var(--text-2); max-width: 36em; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
@media (min-width: 760px) { .split-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.card ul { list-style: none; display: flex; flex-direction: column; }
.card li { padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.card li:first-child { border-top: 0; padding-top: 0; }
.formcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: var(--sp-4); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 760px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: span 2; } }
.stack { display: flex; flex-direction: column; }

/* ---------- 19. 404 ---------- */
.nf { position: relative; overflow: hidden; text-align: center; padding-block: clamp(72px, 14vw, 176px); display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.nf__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--text); opacity: 0.08; user-select: none; }
.nf__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-3); }
.nf .t-lead { margin-inline: auto; }

/* ---------- 20. Motion: only short responses to input ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   site-extra.css - appended to the handoff's site.css by the build.
   The handoff used inline style attributes for one-off layout. The live
   site runs under a CSP without 'unsafe-inline', so each one is a class
   here instead. Values are copied from the handoff unchanged.
   ===================================================================== */
.fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fig__cap { text-align: center; }
.feature--first { margin-top: clamp(32px, 5vw, 64px); }
.section--flush { padding-bottom: 0; }
.section--rule { border-top: 1px solid var(--border); }
.section--cta { padding-bottom: clamp(64px, 9vw, 128px); }
.footer__tag { max-width: 26em; }
.h-gap { margin-bottom: 24px; }
.rule--card { width: 100%; margin-top: 8px; }
.sec-pad { padding-bottom: clamp(40px, 6vw, 80px); }
.sec-pad-lg { padding-bottom: clamp(64px, 9vw, 128px); }
.formcard__intro { display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.stack--md { gap: 16px; }
.stack--lg { gap: 24px; }
.ic--sm { width: 18px; height: 18px; }
.notice__ic { color: var(--green-text); margin-top: 2px; }
.support-main { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); min-width: 0; }
.support-form { margin-bottom: clamp(64px, 9vw, 128px); }

/* A native select drawn like the handoff's inputs. */
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }

/* The honeypot: present for bots, never seen or reached by people. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* JS hides/shows these with the hidden attribute; keep it authoritative. */
[hidden] { display: none !important; }
