/* ==========================================================================
   PlayGosu — "arcade signal"
   A dark mobile-games hub, recolored to the brand's own shield mark: an
   orange-to-teal gradient sampled directly from the PlayGosu logo (the
   star-shield badge + wordmark), glowing through slate-navy surfaces.
   Rounded, playful display type for a casual instant-play game library
   serving Vietnam.

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

   Theme: dark, locked. No section inverts to a light background.
   ========================================================================== */

:root {
  /* brand - sampled from the logo's own orange-to-teal gradient shield */
  --orange: #e2540d;
  --teal: #135a78;
  --orange-rgb: 226, 84, 13;
  --teal-rgb: 19, 90, 120;

  /* semantic */
  --accent: #ff7a2e;   /* brightened orange - legible text/icon/focus accent on dark surfaces */
  --accent-2: #2fb0d6; /* brightened teal - secondary accent, hover variety */
  --grad: linear-gradient(115deg, var(--orange) 0%, var(--teal) 100%);

  --bg: #0c1117;
  --bg-alt: #10151d;
  --surface: #161c26;
  --surface-2: #1e2631;
  --text: #f2f5f8;
  --muted: #9aa7b4;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --danger: #ff6a45;
  --success: #35d48a;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow: 0 22px 50px -22px rgba(2, 4, 10, 0.7);
  --shadow-sm: 0 10px 26px -16px rgba(2, 4, 10, 0.6);
  --glow: 0 0 0 1px rgba(var(--orange-rgb), 0.32), 0 18px 40px -18px rgba(var(--teal-rgb), 0.45);

  --header-h: 72px;
  --wrap: 1180px;

  --font-display: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Inter', 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;
}

img { max-width: 100%; height: auto; display: block; }

figure { margin: 0; }

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

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

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0 0 1rem; }

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

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

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

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.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.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  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: 700;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  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, border-color 0.18s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--orange-rgb),0.5), 0 24px 48px -18px rgba(var(--teal-rgb),0.6); }
.btn-primary:active { transform: scale(0.98); }

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

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.1rem; 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(12, 17, 23, 0.86);
  backdrop-filter: blur(14px);
  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; gap: 0.55rem; text-decoration: none; color: var(--accent); }
.logo-img { height: 32px; width: auto; display: block; }

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

.site-nav-desktop a:not(.btn),
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  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); }
.site-nav-desktop a.active,
.site-nav a.active { color: var(--accent); }

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

.lang-pill {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
}
.lang-pill.lang-active {
  background: var(--accent);
  border-color: transparent;
  color: #2a1400;
}

.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(--bg-alt);
    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): copy left, contained glowing game-tile collage right ───── */

.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 460px;
}

.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 art: single contained collage, glowing rings behind it */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.hero-ring {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  border: 1px solid rgba(var(--orange-rgb),0.24);
  z-index: 1;
}
.hero-ring.two {
  inset: 17% 15%;
  border-color: rgba(var(--teal-rgb),0.42);
  border-style: dashed;
}
.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(var(--teal-rgb),0.32));
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .hero-art { min-height: 260px; order: -1; }
}

/* ── why-us: bordered card grid ────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.why-item {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-item:hover { border-color: rgba(var(--orange-rgb),0.4); transform: translateY(-3px); }
.why-item h3 { margin-bottom: 0.35rem; }
.why-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.why-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--orange-rgb), 0.14);
  color: var(--accent);
  margin-bottom: 1rem;
}
.why-mark svg { width: 19px; height: 19px; }

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

/* ── showcase: game tiles (card image + genre icon + caption) ────────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--teal-rgb),0.5); }
.tile-image {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
}
.tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--orange-rgb), 0.14);
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.tile-icon svg { width: 19px; height: 19px; }
.tile-cap {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.tile-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

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

/* ── 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, border-color 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--orange-rgb),0.4); }
.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: 12px;
  background: rgba(var(--orange-rgb), 0.16);
  color: var(--accent);
  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; } }

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

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.8rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(var(--orange-rgb),0.1), transparent);
  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 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}
.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(--accent); box-shadow: var(--shadow); }

.price-op {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  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: 800;
  font-size: 2.4rem;
  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: rgba(var(--orange-rgb), 0.1);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.optout-kw {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 2px solid transparent;
  border-image: var(--grad) 1;
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  color: var(--accent);
}
.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); }

.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(--surface);
  border: 1px solid var(--border);
  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-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.about-split .hero-art { min-height: 320px; }

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

/* ── 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(--accent); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.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);
  border-bottom: 2px solid var(--accent);
  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-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  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: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  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: #7c8794; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.phone-row {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.phone-row:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.7rem 0.75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  border-right: 1px solid var(--border-strong);
  flex-shrink: 0;
  white-space: nowrap;
}
.phone-row input {
  flex: 1;
  min-width: 0;
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
}
.phone-row input:focus {
  border: none;
  background: transparent;
}

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

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

.care-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  margin-bottom: 1.6rem;
}
.care-card h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.care-card p { margin-bottom: 0.5rem; color: var(--muted); }
.care-card p:last-child { margin-bottom: 0; }
.care-card a { color: var(--accent); word-break: break-word; }

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

.not-found {
  padding: 6rem 0 7rem;
  text-align: center;
}
.big-num {
  font-family: var(--font-display);
  font-weight: 800;
  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: 0 0 3.5rem; }

.legals { padding-top: 0.5rem; padding-bottom: 5rem; }
.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);
  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); }
.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(--bg-alt);
  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 { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .logo-img { margin-bottom: 0.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  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); }

.footer-entity {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.8;
}
.footer-entity p { color: var(--muted); margin: 0; }
.footer-entity a { color: var(--accent); word-break: break-word; }

.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; }
