/* ============================================================================
   SingSpace MX — "neon stage in orbit"

   A dark cosmic venue: off-black surfaces, one locked mint stage-light accent,
   spotlight cone washes bleeding from section tops, and real in-world renders
   carrying the visual weight.

   Radius rule (locked, applied everywhere):
     interactive pills (buttons, chips, lang) → --r-pill
     cards / tiles / media                    → --r-card
     inputs / small surfaces                  → --r-input
   ========================================================================== */

:root {
  /* Surfaces — off-black, never #000 */
  --bg: #07070c;
  --bg-2: #0b0c15;
  --surface: #121423;
  --surface-2: #191c2e;

  /* One accent. Locked across every page. */
  --accent: #2dffdb;
  --accent-dim: #1fd9ba;
  --accent-ink: #04241f;
  --glow: rgba(45, 255, 219, 0.34);

  /* Support tone — washes and imagery only, never a competing CTA colour */
  --stage: #0091fe;
  --stage-soft: rgba(0, 145, 254, 0.22);

  --text: #eef1f7;
  --muted: #99a0b8;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --r-card: 18px;
  --r-input: 12px;
  --r-pill: 999px;

  --header-h: 72px;

  --font-display: 'Orbitron', 'Barlow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* height: auto is required: the images carry intrinsic width/height attributes
   (for CLS), and without it the attribute height wins over the scaled width and
   the picture stretches. Components that need a fixed box override it. */
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.16rem; letter-spacing: 0.005em; }
h4 { font-size: 0.98rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout primitives ────────────────────────────────────────────────────── */

.container {
  width: min(1220px, 90vw);
  margin-inline: auto;
}

.container-narrow {
  width: min(760px, 90vw);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { text-align: center; width: min(70ch, 100%); margin-inline: auto; }

/* Reading width lives on containers, never on paragraphs (Golden Rule 20). */
.head-copy { width: min(64ch, 100%); }

.lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.body { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* Stage-light wash: a soft cone bleeding from the top of a section.
   overflow-x: clip keeps the wash from widening the document (it clips
   horizontally without creating a scroll container, so the -10% top bleed
   still works). */
.stage-wash { position: relative; isolation: isolate; overflow-x: clip; }
.stage-wash::before {
  content: '';
  position: absolute;
  inset: -10% 0 auto 0;
  height: 70%;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 30% 0%, var(--stage-soft), transparent 70%),
    radial-gradient(50% 80% at 78% 6%, var(--glow), transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #4dffe2;
  box-shadow: 0 10px 34px -12px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-sm { padding: 0.58rem 1.15rem; font-size: 0.76rem; }
.btn-lg { padding: 1rem 2rem; font-size: 0.92rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

/* ── Header + navigation ──────────────────────────────────────────────────── */

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  direction: ltr; /* keeps logo left / nav right in RTL locales too */
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }

.logo-mark { width: 30px; height: 30px; flex: none; }

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav-desktop a:not(.btn) { color: var(--muted); transition: color 0.16s ease; }
.site-nav-desktop a:not(.btn):hover,
.site-nav-desktop a.active { color: var(--text); }
.site-nav-desktop a.active { position: relative; }
.site-nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-pill);
}

.lang-switcher { display: inline-flex; gap: 0.35rem; }

.lang-pill {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); }
.lang-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: var(--r-pill);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.site-nav { display: none; }

@media (max-width: 940px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }

  .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 800;
    padding: 1.1rem 5vw 1.6rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.25s var(--ease), visibility 0.25s var(--ease);
  }

  .site-nav a:not(.btn),
  .site-nav .lang-switcher { padding: 0.6rem 0; }
  .site-nav a:not(.btn) { color: var(--muted); border-bottom: 1px solid var(--border); }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 0.9rem; }

  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Home hero — asymmetric split ─────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/img/hero_bg.jpg') center / cover no-repeat;
  opacity: 0.34;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 80% at 72% 20%, var(--stage-soft), transparent 68%),
    linear-gradient(180deg, rgba(7, 7, 12, 0.5) 0%, rgba(7, 7, 12, 0.88) 62%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lead { width: min(46ch, 100%); font-size: 1.12rem; }

.hero-art { position: relative; }

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

.hero-art::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 78%;
  height: 26%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 76%);
  filter: blur(18px);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(340px, 74%); margin-inline: auto; }
}

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 100% at 50% 0%, var(--stage-soft), transparent 72%),
    linear-gradient(180deg, rgba(45, 255, 219, 0.06), transparent 60%);
}

.page-hero .lead { margin-inline: auto; }

/* ── Showcase — offset media bento (3 tiles, 3 items) ─────────────────────── */

.showcase-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.1rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile:hover img { transform: scale(1.04); }

.tile-lead { grid-row: span 2; min-height: 400px; }
.tile-lead img { min-height: 400px; }

/* Lead tile: the render is tall enough to carry an overlaid caption behind a
   full scrim. */
.tile-lead .tile-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.5rem 1.3rem;
  background: linear-gradient(0deg, rgba(7, 7, 12, 0.97) 34%, rgba(7, 7, 12, 0) 100%);
}

.tile-cap h3 { margin-bottom: 0.2rem; }
.tile-cap p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Flat tiles: the renders are wide, letterboxed strips. An overlaid caption sits
   straight on top of busy artwork and stops being readable, so the caption goes
   below the image instead. */
.tile-flat { display: flex; flex-direction: column; }
.tile-flat img { height: 172px; flex: none; }
.tile-flat .tile-cap { padding: 1.15rem 1.4rem 1.3rem; }

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .tile-lead { grid-row: auto; min-height: 300px; }
  .tile-lead img { min-height: 300px; }
}

/* ── Why us — hairline text grid, no cards ────────────────────────────────── */

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1.6rem, 4vw, 3.4rem);
  border-top: 1px solid var(--border);
}

.reason {
  padding: 1.9rem 0 1.7rem;
  border-bottom: 1px solid var(--border);
}

.reason h3 { color: var(--text); margin-bottom: 0.4rem; }
.reason p { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 880px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* ── Features — bento, exactly 6 cells, 2 carry real imagery ──────────────── */

.feature-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.fcell {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: 1.7rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.fcell:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.fcell h3 { margin-bottom: 0.4rem; }
.fcell p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.fcell-wide { grid-column: span 3; }
.fcell-full { grid-column: span 6; }

/* Media cells: a real render bleeding behind the copy */
.fcell-media {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fcell-bg {
  position: absolute;
  inset: 1.2rem 1.2rem auto;
  z-index: 0;
  width: calc(100% - 2.4rem);
  height: 54%;
  object-fit: contain;
  object-position: center top;
}

.fcell-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--surface) 42%, rgba(18, 20, 35, 0.7) 58%, transparent 100%);
  pointer-events: none;
}

.fcell-body { position: relative; z-index: 2; }

.ficon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: var(--r-input);
  background: rgba(45, 255, 219, 0.09);
  border: 1px solid rgba(45, 255, 219, 0.22);
  color: var(--accent);
}
.ficon svg { width: 22px; height: 22px; }

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.genre-chip img { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .feature-bento { grid-template-columns: repeat(2, 1fr); }
  .fcell, .fcell-wide { grid-column: span 1; }
  .fcell-full { grid-column: span 2; }
}
@media (max-width: 600px) {
  .feature-bento { grid-template-columns: 1fr; }
  .fcell-full { grid-column: span 1; }
}

/* ── About — values + vision ──────────────────────────────────────────────── */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.value {
  padding: 1.9rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.value h3 { margin-bottom: 0.5rem; }
.value p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.value .ficon { margin-bottom: 1rem; }

@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.vision-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.4rem);
}

.vision-art {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
}
.vision-art img { width: 100%; height: 100%; object-fit: cover; }

.vision-copy p { color: var(--muted); }

.vision-points { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.vision-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.96rem;
}
.vision-points svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }

@media (max-width: 860px) { .vision-split { grid-template-columns: 1fr; } }

/* ── Steps (subscribe / unsubscribe) ──────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.step {
  position: relative;
  padding: 1.8rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── Pricing cards ────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.2rem;
  width: min(880px, 100%);
  margin-inline: auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.7rem;
  background:
    linear-gradient(180deg, rgba(45, 255, 219, 0.07), transparent 42%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
}

.pricing-op {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.pricing-users {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.price-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.price-freq { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.price-trial { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.4rem; }

.pricing-card .btn { margin-top: 1.5rem; width: 100%; }

.price-note {
  margin-top: 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Opt-out ──────────────────────────────────────────────────────────────── */

.optout-grid { display: grid; gap: 1.1rem; }

.optout-box {
  padding: 1.8rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
}

.optout-op {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.sms-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-input);
}

.sms-kw {
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.sms-to { color: var(--muted); font-size: 0.9rem; }

.sms-dest {
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.sms-link { color: var(--accent); font-weight: 600; word-break: break-all; }

.optout-tail { margin-top: 0.85rem; color: var(--muted); font-size: 0.92rem; }

.optout-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.optout-notes li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}
.optout-notes svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }

@media (max-width: 700px) { .optout-notes { grid-template-columns: 1fr; } }

.optout-fallback { margin-top: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.optout-fallback a { color: var(--accent); font-weight: 600; }

.refund-list { display: grid; gap: 0.85rem; }
.refund-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.6;
}
.refund-list svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }

.refund-wrap { width: min(780px, 100%); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

#faq { position: relative; isolation: isolate; }

#faq::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/img/faq_bg.jpg') center / cover no-repeat;
  opacity: 0.2;
}
#faq::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 7, 12, 0.68) 42%, var(--bg) 100%);
}

.faq-list {
  width: min(860px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: rgba(18, 20, 35, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: rgba(45, 255, 219, 0.34); }

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }

.faq-body {
  padding: 0 1.5rem 1.35rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ── Contact / sign-in forms ──────────────────────────────────────────────── */

.form-card,
.contact-form {
  padding: clamp(1.6rem, 3.4vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.form-card.narrow { width: min(480px, 100%); margin-inline: auto; }
.contact-form { margin-top: 2rem; }

.form-group { margin-bottom: 1.1rem; }
.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button,
.form-card button { margin-top: 0.5rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #838aa2; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 255, 219, 0.16);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.error-msg,
.errorMsg {
  display: none;
  color: #ff6a5a;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-success,
.successMsg {
  display: none;
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}
.successMsg a { color: var(--accent); text-decoration: underline; }

.form-disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }

.care-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.care-card a { color: var(--accent); font-weight: 600; }
.care-card p { color: var(--muted); margin: 0; }
.care-card h2 { margin-bottom: 0.6rem; }

.contact-wrap { width: min(820px, 100%); margin-inline: auto; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}

.footer-brand { width: min(42ch, 100%); }
.footer-brand p { color: var(--muted); font-size: 0.94rem; margin: 1rem 0 1.4rem; }

.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--muted); font-size: 0.93rem; transition: color 0.16s ease; }
.footer-col a:hover { color: var(--text); }

.footer-entity {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-entity p { margin-bottom: 0.3rem; }
.footer-entity a { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}
.footer-version { color: var(--muted); }

@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── 404 ──────────────────────────────────────────────────────────────────── */

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h));
  text-align: center;
  padding: 3rem 0;
}

.not-found .container { width: min(560px, 90vw); }
.not-found p { color: var(--muted); margin-bottom: 1.8rem; }

/* Scoped under .not-found so it outranks `.not-found p` above (the big number is
   itself a <p>). */
.not-found .big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 0.6rem;
  color: rgba(45, 255, 219, 0.1);
  -webkit-text-stroke: 2px var(--accent);
}

/* ── Legal pages (shared partials) ────────────────────────────────────────── */

.legals-wrap { padding: 3.5rem 0; }

.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1> */
.legals h6 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: var(--muted); }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; list-style: disc; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: var(--muted); }
.legals a { color: var(--accent); }
.legals h2, .legals h3, .legals h4, .legals h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin: 1.8rem 0 0.5rem;
}
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legals th,
.legals td { padding: 0.6rem 0.7rem; border: 1px solid var(--border); text-align: start; color: var(--muted); }

/* The legal pages already sit under a .page-hero, so cancel the extra offset. */
.legals-wrap .legals { padding-top: 0; padding-bottom: 0; }

/* ── Motion (gated: content is never hidden without JS) ───────────────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

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

/* ── RTL safety (no RTL language ships today, kept for parity) ────────────── */

[dir='rtl'] .form-group input[type='text'],
[dir='rtl'] .form-group textarea { direction: rtl; text-align: right; }

[dir='rtl'] .form-group input[type='email'],
[dir='rtl'] .form-group input[type='tel'] { direction: ltr; text-align: left; }

[dir='rtl'] .form-group label { text-align: right; }
[dir='rtl'] .form-card.narrow .form-group label { text-align: center; }
