/* ==========================================================================
   MasVR - "arcade candy"
   A bright, rounded, gradient-forward games hub. The game art carries the
   page; type and surfaces stay calm so the art never competes with it.

   Shape rule (applied everywhere, no exceptions):
     interactive (buttons, pills, chips) -> full radius
     cards / tiles / inputs              -> var(--radius)      22px
     large feature surfaces              -> var(--radius-lg)   32px

   Theme: light, locked. The brand is a light brand; no section inverts.
   ========================================================================== */

:root {
  /* brand */
  --cyan: #00adff;
  --violet: #9400ff;
  --indigo: #6a3cff;
  --coral: #ff5c8a;
  --sun: #ffc330;
  --mint: #2ad6b5;

  --grad: linear-gradient(120deg, #00adff 0%, #6a3cff 55%, #9400ff 100%);
  --grad-soft: linear-gradient(120deg, #e8f7ff 0%, #f3ecff 100%);

  /* semantic */
  --accent: #9400ff;
  --accent-ink: #7a00d6; /* accent darkened for text on light surfaces (AA) */
  --bg: #fbf9ff;
  --surface: #ffffff;
  --surface-2: #f6f2ff;
  --text: #1d1740;
  --muted: #5b5680;
  --border: #ece7fb;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 40px -18px rgba(106, 60, 255, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(29, 23, 64, 0.25);

  --header-h: 74px;
  --wrap: 1140px;

  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
}

/* ── reset / base ───────────────────────────────────────────────────────── */

*,
*::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: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the width/height attributes on <img> would
   otherwise win over aspect-ratio and render every image at its attribute
   height. */
img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

a { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1rem; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── layout ─────────────────────────────────────────────────────────────── */

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

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }

.section-head { margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); margin: 0; }

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

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -18px rgba(106, 60, 255, 0.55); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: var(--surface);
  color: var(--accent-ink);
  border-color: var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--violet); }
.btn-ghost:active { transform: scale(0.98); }

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

/* ── header / nav ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  direction: ltr; /* keeps logo left / nav right in any locale */
  background: rgba(251, 249, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 26px; width: auto; }

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav-desktop a:not(.btn),
.site-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav-desktop a:not(.btn):hover,
.site-nav a:not(.btn):hover { color: var(--accent-ink); }
.site-nav-desktop a.active,
.site-nav a.active { color: var(--accent-ink); }

.lang-switcher { display: flex; align-items: center; gap: 0.35rem; }

.lang-pill {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.lang-pill.lang-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.site-nav { display: none; }

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

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 800;
    padding: 1rem 4vw 1.6rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-115%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn) { padding: 0.6rem 0; }
  .site-nav .btn { width: 100%; margin-top: 0.5rem; }
  .site-nav .lang-switcher { padding: 0.8rem 0 0; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}

/* ── scroll reveal (gated: content is always visible without JS) ─────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
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; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── hero (home) ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 173, 255, 0.18), transparent 42%),
    radial-gradient(circle at 78% 12%, rgba(148, 0, 255, 0.16), transparent 46%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1rem; }
.hero-lead { color: var(--muted); font-size: 1.08rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--border);
}

/* hero art: real game art in a soft collage */
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.hero-art figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-art figure:nth-child(1) { transform: translateY(-14px); }
.hero-art figure:nth-child(4) { transform: translateY(14px); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art figure:nth-child(1),
  .hero-art figure:nth-child(4) { transform: none; }
}

/* ── why-us: hairline list, no card boxes (distinct from .feature-grid) ──── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.6rem;
}
.why-item {
  padding: 1.5rem 0;
  border-top: 2px solid var(--border);
}
.why-item h3 { margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.why-mark {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  margin-bottom: 0.9rem;
}

@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 0 1.6rem; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ── showcase: game tiles + category chips ──────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.4rem;
}
.chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* 8 tiles, 4 of them double-width, fill exactly 12 cells across 3 rows of a
   4-column grid. Uniform row height, so the rhythm comes from the spans and
   never leaves a hole at the end of the grid. */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.tile.wide { grid-column: span 2; }

.tile-cap {
  display: block;
  flex: none;
  padding: 0.65rem 0.9rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile.wide { grid-column: auto; }
}

/* ── features: icon cards (distinct from .why-grid) ──────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--accent-ink);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

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

/* ── family callout (split panel) ───────────────────────────────────────── */

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.callout .card-icon { background: var(--grad); color: #fff; margin: 0; }
.callout h2 { font-size: 1.55rem; }
.callout p { color: var(--muted); margin: 0; }

@media (max-width: 640px) { .callout { grid-template-columns: 1fr; padding: 1.6rem; } }

/* ── closing CTA band ───────────────────────────────────────────────────── */

.cta-band {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-lead { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.6rem; }
.cta-band .btn-ghost { background: #fff; color: var(--accent-ink); border-color: #fff; }
.cta-note { color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; margin: 1.2rem 0 0; }

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

.page-hero {
  padding: 3.6rem 0 2.4rem;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); margin: 0; }

/* ── steps (pricing / unsubscribe) ──────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}
.step-n {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

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

/* ── pricing cards ──────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: var(--shadow); }

.price-op {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.price-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-freq { color: var(--muted); margin: 0; font-size: 0.95rem; }
.price-trial { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.price-card .btn { width: 100%; }

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

/* ── opt-out box (unsubscribe) ──────────────────────────────────────────── */

.optout {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.optout h3 { margin-bottom: 0.8rem; }
.optout-sms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  background: var(--grad-soft);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.optout-kw {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--surface);
  border: 2px solid var(--violet);
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  color: var(--accent-ink);
}
.optout-to { color: var(--muted); font-size: 0.95rem; }
.optout-dest {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.optout-dest a { color: var(--accent-ink); }

.optout-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}
.optout-notes li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--border);
}
@media (max-width: 700px) { .optout-notes { grid-template-columns: 1fr; } }

/* ── generic bullet list (refund policy) ────────────────────────────────── */

.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--grad);
}

/* ── about ──────────────────────────────────────────────────────────────── */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.value-card h3 { margin-bottom: 0.4rem; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

.vision-panel {
  background: var(--grad-soft);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem;
}
.vision-panel p { color: var(--muted); margin-bottom: 1rem; }
.vision-panel p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .vision-panel { padding: 2rem 1.5rem; } }

.about-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}
.about-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

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

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.4rem;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--violet); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq-body {
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ── contact / sign-in forms ────────────────────────────────────────────── */

.contact-form,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }

.contact-form h3,
.form-card h3 { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .form-card { padding: 1.5rem; }
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6f6a90; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--surface);
}

.signin-card button,
.form-card button { margin-top: 0.5rem; }

.error-msg,
.errorMsg {
  display: none;
  color: #c81e42;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.form-success,
.successMsg {
  display: none;
  color: #0d7a58;
  font-weight: 700;
  margin-top: 1rem;
}
.form-disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 1rem;
}

.care-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  margin-bottom: 1.6rem;
}
.care-block h2 { font-size: 1.35rem; }
.care-block p { margin-bottom: 0.5rem; color: var(--muted); }
.care-block p:last-child { margin-bottom: 0; }

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

.not-found {
  padding: 6rem 0 7rem;
  text-align: center;
}
.big-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found p { color: var(--muted); }

/* ── Legal pages (shared partials render inside .legals) ────────────────── */

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

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

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.footer-brand img { height: 24px; width: auto; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--accent-ink); }

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

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

/* ── RTL safety (no RTL locale 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; }
