/* ============================================================
   Last: styles.css
   One bold element (the lava-lamp background). Everything else
   stays quiet: generous spacing, restrained borders, minimal
   decoration.
   ============================================================ */

:root {
  /* Base */
  --black:        #0A0A0C;
  --black-2:      #101014;

  /* Brand pinks (rose -> magenta -> deep) */
  --rose:         #F472B6;
  --pink:         #EC4899;
  --magenta-deep: #9D174D;

  /* Text */
  --white:        #FFFFFF;
  --white-80:     rgba(255, 255, 255, 0.80);
  --white-64:     rgba(255, 255, 255, 0.64);
  --white-46:     rgba(255, 255, 255, 0.46);
  --white-12:     rgba(255, 255, 255, 0.12);
  --white-08:     rgba(255, 255, 255, 0.08);

  /* Surfaces */
  --scrim:        rgba(8, 8, 11, 0.62);
  --card:         rgba(20, 20, 26, 0.66);
  --card-border:  rgba(255, 255, 255, 0.10);

  /* Type */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Palatino", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale */
  --step-hero:    clamp(4.5rem, 18vw, 11rem);
  --step-h2:      clamp(1.75rem, 4vw, 2.75rem);
  --step-h3:      1.35rem;
  --step-body:    1.0625rem;
  --step-small:   0.875rem;

  /* Layout */
  --wrap:         1120px;
  --wrap-narrow:  720px;
  --radius:       16px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Lava-lamp background
   ============================================================ */
.lava {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #16070f 0%, var(--black) 60%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
  mix-blend-mode: screen;
}
.blob-1 {
  width: 46vw; height: 46vw;
  left: -6vw; top: 4vh;
  background: radial-gradient(circle at 40% 40%, var(--rose), rgba(244,114,182,0) 68%);
  animation: drift1 42s var(--ease) infinite alternate;
}
.blob-2 {
  width: 40vw; height: 40vw;
  right: -8vw; top: 22vh;
  background: radial-gradient(circle at 50% 50%, var(--pink), rgba(236,72,153,0) 66%);
  animation: drift2 53s var(--ease) infinite alternate;
}
.blob-3 {
  width: 34vw; height: 34vw;
  left: 24vw; bottom: -6vh;
  background: radial-gradient(circle at 50% 50%, var(--magenta-deep), rgba(157,23,77,0) 70%);
  animation: drift3 37s var(--ease) infinite alternate;
  opacity: 0.6;
}
.blob-4 {
  width: 28vw; height: 28vw;
  right: 12vw; bottom: 8vh;
  background: radial-gradient(circle at 50% 50%, var(--rose), rgba(244,114,182,0) 66%);
  animation: drift4 48s var(--ease) infinite alternate;
  opacity: 0.42;
}
.blob-5 {
  width: 24vw; height: 24vw;
  left: 40vw; top: 34vh;
  background: radial-gradient(circle at 50% 50%, var(--pink), rgba(236,72,153,0) 68%);
  animation: drift5 60s var(--ease) infinite alternate;
  opacity: 0.4;
}

/* Long, offset, non-obvious paths (translate/scale only) */
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(10vw, 12vh) scale(1.18); }
  100% { transform: translate(4vw, 26vh) scale(0.92); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  45%  { transform: translate(-14vw, 10vh) scale(0.9); }
  100% { transform: translate(-6vw, 30vh) scale(1.2); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(12vw, -14vh) scale(1.15); }
  100% { transform: translate(-8vw, -4vh) scale(0.95); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-10vw, -12vh) scale(1.22); }
  100% { transform: translate(6vw, -22vh) scale(0.88); }
}
@keyframes drift5 {
  0%   { transform: translate(0, 0) scale(0.95); }
  50%  { transform: translate(8vw, 14vh) scale(1.2); }
  100% { transform: translate(-12vw, 6vh) scale(1); }
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.scrim {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--white-08);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.5rem, 5vw, 3.25rem);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink) 55%, var(--magenta-deep));
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(236, 72, 153, 0.4); }
.btn-small {
  background: var(--white-08);
  color: var(--white);
  border: 1px solid var(--white-12);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.btn-small:hover { background: var(--white-12); }
.btn-block { width: 100%; margin-top: 0.5rem; }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--white-08);
}
.topbar-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.topbar-mark:hover { text-decoration: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  /* slightly left of center; echoes the app login screen */
  padding-right: clamp(1.25rem, 22vw, 18rem);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: var(--step-hero);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.5);
}
.tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--white-80);
  margin: 1.25rem 0 1.5rem;
  max-width: 34ch;
}
.beta-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(157, 23, 77, 0.38);
  border: 1px solid rgba(244, 114, 182, 0.45);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.75rem;
}
.beta-note {
  color: var(--white-64);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 48ch;
  margin: 1.5rem 0 0;
}

/* ============================================================
   Intro + waitlist
   ============================================================ */
.intro { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.intro p { color: var(--white-80); margin: 0; }

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  /* Offset the sticky topbar so "Join waitlist" lands above the form title. */
  scroll-margin-top: 90px;
}
@media (max-width: 820px) {
  .waitlist-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.card-title { font-family: var(--font-display); font-size: var(--step-h3); margin: 0 0 0.35rem; }
.card-sub { color: var(--white-64); margin: 0 0 1.5rem; font-size: var(--step-small); }

/* ---------- Form ---------- */
.field { margin-bottom: 1.15rem; }
.field label,
.seeking legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-80);
  margin-bottom: 0.4rem;
  padding: 0;
}
.req { color: var(--rose); }
input[type="email"],
input[type="number"],
input[type="text"],
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--white-12);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: var(--white-46); }
input:focus, select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.22);
}
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--white-64) 50%),
                    linear-gradient(135deg, var(--white-64) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.age-note { font-size: 0.8rem; color: var(--white-46); margin: 0.4rem 0 0; }
.why-ask { font-size: 0.8rem; color: var(--white-46); margin: -0.35rem 0 1.15rem; line-height: 1.45; }
.form-privacy { font-size: 0.78rem; color: var(--white-46); margin: 0 0 0.85rem; line-height: 1.5; }
.form-privacy a { color: inherit; text-decoration: underline; }

.seeking { border: 0; margin: 0 0 1.15rem; padding: 0; }
.checks { display: flex; flex-direction: column; gap: 0.5rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white-80);
  cursor: pointer;
  margin: 0;
}
.check input { margin-top: 0.15rem; accent-color: var(--pink); width: 1.05rem; height: 1.05rem; flex: none; }
.consent-check {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--white-08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.15rem;
}
.consent-check small { display: block; color: var(--white-46); font-size: 0.78rem; margin-top: 0.25rem; }

/* Bot check: never rendered, so people, screen readers and browser autofill
   all skip it. The element also carries the hidden attribute. */
.hp { display: none; }

.form-error {
  color: #FFB4C6;
  background: rgba(157, 23, 77, 0.28);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.age-gate { text-align: center; color: var(--white-46); font-size: 0.78rem; margin: 0.75rem 0 0; }

/* Success */
.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.success-icon {
  width: 54px; height: 54px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem; color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--pink));
}
.form-success p { font-size: 1.1rem; color: var(--white); margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--white-08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--rose);
  transition: transform 0.25s var(--ease);
  font-family: var(--font-body);
}
.faq-item[open] summary::after { content: "-"; }
.faq-body { padding: 0 0 1.25rem; }
.faq-body p { color: var(--white-80); margin: 0; }

/* ============================================================
   The full story
   ============================================================ */
.story p { color: var(--white-80); margin: 0 0 1.15rem; }
.story-close {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white) !important;
  margin-top: 1.5rem !important;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--white-08);
  background: rgba(8, 8, 11, 0.6);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
}
.footer-age { color: var(--white-64); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--white-80); font-size: 0.9rem; }
.footer-copy { color: var(--white-46); font-size: 0.85rem; margin: 0; }

/* ============================================================
   Standalone doc pages (privacy / terms)
   ============================================================ */
.doc-page { min-height: 100vh; }
.doc { max-width: var(--wrap-narrow); margin: 0 auto; padding: clamp(3rem, 10vw, 6rem) clamp(1.25rem, 5vw, 3rem); }
.doc h1 { font-family: var(--font-display); font-size: var(--step-h2); margin: 1.5rem 0 1rem; }
.doc p { color: var(--white-80); }
.doc-back { font-size: 0.9rem; color: var(--white-64); }

/* Long-form legal bodies rendered by tools/render_legal.py */
.doc h2 { font-family: var(--font-display); font-size: var(--step-h3); color: var(--white); margin: 2.5rem 0 0.75rem; }
.doc p, .doc li { line-height: 1.65; }
.doc p + p { margin-top: 1rem; }
.doc strong { color: var(--white); font-weight: 600; }
.doc ul { margin: 0.75rem 0 0 1.25rem; padding: 0; }
.doc li { color: var(--white-80); margin-bottom: 0.5rem; }

/* Unresolved [PLACEHOLDER]: deliberately loud, so a draft can never be
   mistaken for the operative document. Disappears when the source is filled. */
.ph {
  color: var(--white);
  background: var(--magenta-deep);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-weight: 600;
  white-space: nowrap;
}
.doc-banner {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-left: 3px solid var(--pink);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: var(--step-small);
  color: var(--white-80);
}

/* Blockquote callout. The REV3 candidate sources open with a blockquoted
   status banner ("REVIEW CANDIDATE - DO NOT PUBLISH OR RENDER"); it is
   rendered, never stripped, so a reader of the test display sees what the
   document says about its own standing. Deep magenta rather than the pink of
   .doc-banner: that one is the renderer talking about placeholder counts,
   this one is the legal source talking about itself. */
.doc-note {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-left: 3px solid var(--magenta-deep);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0;
  font-size: var(--step-small);
  color: var(--white-80);
}
.doc-note p { margin: 0; }
.doc-note p + p { margin-top: 0.6rem; }

/* ============================================================
   Reduced motion: freeze the blobs at pleasant static spots
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none !important; }
  .blob-1 { transform: translate(6vw, 14vh) scale(1.05); }
  .blob-2 { transform: translate(-8vw, 16vh) scale(1.05); }
  .blob-3 { transform: translate(4vw, -8vh) scale(1.05); }
  .blob-4 { transform: translate(-4vw, -10vh) scale(1); }
  .blob-5 { transform: translate(4vw, 8vh) scale(1.05); }
  .btn, input, select { transition: none !important; }
}

/* ============================================================
   Small screens: cap blob cost & blur for performance
   ============================================================ */
@media (max-width: 640px) {
  .blob { filter: blur(48px); }
  .blob-4, .blob-5 { display: none; }
  .hero-inner { padding-right: clamp(1.25rem, 5vw, 3rem); }
  .tagline { max-width: none; }
}

/* Canonical V2 legal bodies carry '### ' subsections and numbered timelines. */
.doc h3 { font-family: var(--font-display); font-size: var(--step-body); color: var(--white); margin: 1.75rem 0 0.5rem; }
.doc ol { margin: 0.75rem 0 0 1.25rem; padding: 0; }

/* Excerpt pages: each source is its own bordered block, labelled with the
   document it comes from and linked to the full text. */
.doc-excerpt {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}
.excerpt-label { font-size: var(--step-small); color: var(--white-64); }
.excerpt-full { margin-top: 1.5rem; font-size: var(--step-small); }
.doc-excerpt-pending { margin-top: 2.5rem; }
.doc-related { margin-top: 2.5rem; }

/* ============================================================
   Site foundation (V24): shared header, footer, hub pages,
   presentation shells. Same tokens as everything above; no new
   colours, fonts or external resources.
   ============================================================ */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--black-2);
  color: var(--white);
  border: 1px solid var(--rose);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; text-decoration: none; }

/* ---------- Shared header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--white-08);
}
.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
}
.site-header .topbar-mark { margin-right: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav-wide ul { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--white-80); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 6px;
}
.nav-menu { display: none; position: relative; }
.nav-toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--white-08);
  border: 1px solid var(--white-12);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-menu[open] .nav-toggle { background: var(--white-12); }
.site-nav-narrow {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 14rem;
  background: var(--black-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.site-nav-narrow a { display: block; padding: 0.7rem 0.85rem; border-radius: 10px; }
.site-nav-narrow a:hover { background: var(--white-08); text-decoration: none; }
@media (max-width: 760px) {
  .site-nav-wide, .header-cta { display: none; }
  .nav-menu { display: block; }
}

/* ---------- Shared footer ---------- */
.footer-inner { flex-direction: column; align-items: stretch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.footer-head {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-64);
  margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.45rem; }
.footer-col a { color: var(--white-80); font-size: 0.9rem; }
.footer-col a[aria-current="page"] { color: var(--white); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--white-08);
}
.footer-base .footer-links { margin: 0; }
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Calmer background for legal, safety and account pages ---------- */
.lava-quiet .blob { opacity: 0.22; }

/* ---------- Generated legal bodies: REV8 constructs ---------- */
.doc code {
  font-size: 0.9em;
  background: var(--white-08);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}
.doc hr { border: 0; border-top: 1px solid var(--card-border); margin: 2.5rem 0; }
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
}
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: var(--step-small); }
.table-wrap th, .table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--white-08);
  color: var(--white-80);
}
.table-wrap th { color: var(--white); font-weight: 600; background: rgba(0, 0, 0, 0.25); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- Hub pages (legal, safety, support, account) ---------- */
.page { max-width: var(--wrap-narrow); margin: 0 auto; padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem); }
.page h1 { font-family: var(--font-display); font-size: var(--step-h2); line-height: 1.1; margin: 0 0 1rem; }
.page h2 { font-family: var(--font-display); font-size: var(--step-h3); margin: 2.25rem 0 0.75rem; }
.page h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.page p { color: var(--white-80); }
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: var(--white);
}
.link-list a::after { content: "\2192"; color: var(--rose); flex: none; }
.link-list a:hover { border-color: rgba(244, 114, 182, 0.45); text-decoration: none; }
.contact-list { display: grid; gap: 0.6rem; margin: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.25rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}
.contact-list dt { color: var(--white-64); font-size: var(--step-small); }
.contact-list dd { margin: 0; color: var(--white); word-break: break-word; }
@media (max-width: 520px) {
  .contact-list div { grid-template-columns: 1fr; }
}

/* ---------- Shell status notice ----------
   Every non-live page says so at the top, in the same restrained style as a
   draft banner. Never decorative: these are safety and account surfaces. */
.shell-notice {
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--rose);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: var(--step-small);
  color: var(--white-80);
}
.shell-notice strong { color: var(--white); }

/* ---------- Forms (shells) ---------- */
.shell-form fieldset {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: 0 0 1.25rem;
  min-width: 0;
}
.shell-form legend {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  padding: 0 0.4rem;
}
.field-hint { font-size: 0.8rem; color: var(--white-46); margin: 0.4rem 0 0; }
.field-error { font-size: 0.85rem; color: #FFB4C6; margin: 0.4rem 0 0; }
input[type="tel"],
input[type="password"],
input[type="url"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--white-12);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.22); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #FFB4C6; }
input[type="file"] { color: var(--white-64); font-size: 0.9rem; max-width: 100%; }
input:disabled, textarea:disabled, select:disabled { opacity: 0.6; cursor: not-allowed; }
.radio-list { display: flex; flex-direction: column; gap: 0.55rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }
.btn-secondary { color: var(--white); background: var(--white-08); border: 1px solid var(--white-12); }
.btn-secondary:hover { background: var(--white-12); }
.btn-primary:disabled { box-shadow: none; cursor: not-allowed; }
.form-summary {
  border: 1px solid rgba(244, 114, 182, 0.4);
  background: rgba(157, 23, 77, 0.22);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.form-summary ul { margin: 0.4rem 0 0 1.1rem; padding: 0; }

/* ---------- Case status shell ---------- */
.case-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: 0 0 1.25rem;
}
.case-card h2 { margin-top: 0; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.case-meta dt { color: var(--white-64); font-size: 0.8rem; }
.case-meta dd { margin: 0.15rem 0 0; color: var(--white); font-weight: 600; }
.status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--white-12);
  background: var(--white-08);
  color: var(--white);
}
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--white-12); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.25rem; color: var(--white-80); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--black-2);
  border: 2px solid var(--white-46);
}
.thread { display: flex; flex-direction: column; gap: 0.75rem; }
.thread-msg {
  max-width: 85%;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  background: rgba(0, 0, 0, 0.3);
}
.thread-msg-self { align-self: flex-end; background: rgba(157, 23, 77, 0.25); }
.thread-msg p { margin: 0; color: var(--white-80); }
.thread-meta { display: block; font-size: 0.78rem; color: var(--white-46); margin-bottom: 0.25rem; }
.state-demo { border: 1px dashed var(--white-12); border-radius: 12px; padding: 1rem; margin: 0 0 1rem; }
.state-demo h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.state-demo p { margin: 0; font-size: 0.9rem; }

/* ---------- Not found ---------- */
.not-found { text-align: center; }
.not-found .wordmark { font-size: clamp(3.5rem, 14vw, 7rem); }

/* Placeholders wrap: a long marker such as [PRIVACY REQUEST URL OR CONTACT
   EMAIL] must never force a phone-width page to scroll sideways. */
.ph { white-space: normal; overflow-wrap: anywhere; }
