/* ================================================================
   SPINBETTER — CYBER NEON DESIGN SYSTEM  v3.0
   Unified typography, layout, banners, cards, responsiveness
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Colours */
  --bg:          #080810;
  --bg-card:     #0f0f1c;
  --bg-section:  #0c0c18;
  --bg-head:     #0a0a15;
  --accent:      #b5fc04;
  --accent2:     #00e6a0;
  --gold:        #ffc107;
  --text:        #e8e8f0;
  --muted:       #8888a8;
  --border:      rgba(255,255,255,0.07);
  --border-accent: rgba(181,252,4,0.25);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;

  /* Layout */
  --wrap:   1200px;
  --pad:    clamp(16px, 4vw, 40px);

  /* Spacing scale: 8 12 16 24 32 48 64 */
  --sp-1:   8px;
  --sp-2:   12px;
  --sp-3:   16px;
  --sp-4:   24px;
  --sp-5:   32px;
  --sp-6:   48px;
  --sp-7:   64px;

  /* Typography */
  --font:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --lh-body: 1.7;
  --lh-head: 1.15;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-body);
  font-size: clamp(16px, 1.1vw, 18px);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { opacity: .85; }

ul, ol { list-style: none; }

/* ── 3. LAYOUT CONTAINERS ─────────────────────────────────────── */
.wrap,
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Narrow reading column — body copy, hero subtitles */
.text-col {
  max-width: 740px;
}

/* ── 4. TYPOGRAPHY SCALE ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-head);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
h4 { font-size: clamp(16px, 1.8vw, 20px); }

/* p max-width only where explicitly needed */
.hero-text > p,
.section-head > p,
.section-title > p,
.page-hero .hero-text > p { max-width: 65ch; }

/* Accent colours on headings — used sparingly */
.accent  { color: var(--accent); }
.accent2 { color: var(--accent2); }
.gold    { color: var(--gold); }

/* ── 5. HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-head);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--sp-3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--border);
  color: var(--accent);
}

/* ── 6. HERO / BANNER ─────────────────────────────────────────── */
.page-hero {
  background: var(--bg-section);
  padding-block: var(--sp-7) var(--sp-6);
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.hero-text h1 {
  margin-bottom: var(--sp-4);
}

.hero-text p {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  margin-bottom: var(--sp-5);
  max-width: 55ch;
}

/* Banner image block — unified across all pages */
.banner-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 380px;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--bg-card);
}

.banner-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Full-width banner variant (subpages without two-column hero) */
.banner-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 340px;
  width: 100%;
  background: var(--bg-card);
}

.banner-wide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── 7. SECTIONS ──────────────────────────────────────────────── */
.section {
  padding-block: var(--sp-7);
}
.section-sm {
  padding-block: var(--sp-6);
}
.section-alt {
  background: var(--bg-section);
}

.section-head {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-head h2 {
  margin-bottom: var(--sp-2);
}
.section-head p {
  color: var(--muted);
  margin-inline: auto;
  max-width: 60ch;
}

/* ── 8. CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: border-color .25s, transform .2s;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.card h3 {
  margin-bottom: var(--sp-2);
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.card-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color .25s, transform .2s;
}
.card-feature:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.card-feature .icon {
  font-size: 36px;
  margin-bottom: var(--sp-3);
  line-height: 1;
}
.card-feature h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  margin-bottom: var(--sp-2);
  color: var(--accent);
}
.card-feature p {
  color: var(--muted);
  font-size: 15px;
}

.card-accent {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.card-accent h3 {
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.card-accent p {
  color: var(--muted);
  font-size: 15px;
}

/* ── 9. GRIDS ─────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

/* ── 10. BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #080810;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-gold {
  background: var(--gold);
  color: #080810;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ── 11. TABLES ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead {
  background: rgba(181,252,4,.1);
}
thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
tbody tr:hover {
  background: rgba(255,255,255,.03);
}
tbody td:first-child {
  font-weight: 500;
}

/* ── 12. FAQ ACCORDION ────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text);
  user-select: none;
  transition: color .2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ── 13. STEP LIST ────────────────────────────────────────────── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.step {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #080810;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h4 { margin-bottom: 6px; }
.step-body p  { color: var(--muted); font-size: 15px; }

/* ── 14. HIGHLIGHT BOXES ──────────────────────────────────────── */
.highlight-box {
  background: rgba(181,252,4,.07);
  border: 1px solid rgba(181,252,4,.2);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.highlight-box.gold {
  background: rgba(255,193,7,.07);
  border-color: rgba(255,193,7,.2);
}
.highlight-box.teal {
  background: rgba(0,230,160,.07);
  border-color: rgba(0,230,160,.2);
}

/* ── 15. LISTS ────────────────────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.check-list li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.check-list li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.star-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.star-list li {
  display: flex;
  gap: var(--sp-2);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.star-list li::before {
  content: '\2605';
  color: var(--gold);
  flex-shrink: 0;
}

/* ── 16. BADGES / TAGS ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-accent  { background: rgba(181,252,4,.15); color: var(--accent); }
.badge-gold    { background: rgba(255,193,7,.15);  color: var(--gold); }
.badge-teal    { background: rgba(0,230,160,.15);  color: var(--accent2); }
.badge-muted   { background: var(--border);         color: var(--muted); }

/* ── 17. DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--sp-6);
}

/* ── 18. FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-head);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-5);
  text-align: center;
}
.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.footer-inner .logo img {
  height: 36px;
  width: auto;
  opacity: .8;
}
.footer-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── 19. SUBPAGE HERO ─────────────────────────────────────────── */
.subpage-hero {
  background: var(--bg-section);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.subpage-hero .wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.subpage-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
}
.subpage-hero .banner-wide {
  margin-top: var(--sp-2);
}

/* ── 20. APP PAGE ─────────────────────────────────────────────── */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color .25s, transform .2s;
}
.dl-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.dl-card .icon {
  font-size: 40px;
  margin-bottom: var(--sp-3);
}
.dl-card h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.dl-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--sp-4);
  max-width: none;
}

/* ── 21. PROMO CODE BOX ───────────────────────────────────────── */
.promo-box {
  background: var(--bg-card);
  border: 2px dashed rgba(255,193,7,.4);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
}
.promo-code-display {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--gold);
  font-family: 'Courier New', monospace;
  margin-block: var(--sp-3);
}

/* ── 22. DE-DE / LANG NOTICE ──────────────────────────────────── */
.lang-notice {
  background: rgba(0,230,160,.08);
  border-left: 4px solid var(--accent2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--sp-3) var(--sp-5);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

/* ── 23. GGL / LICENSE SECTION ────────────────────────────────── */
.ggl-section {
  background: rgba(181,252,4,.04);
  border: 1px solid rgba(181,252,4,.1);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.ggl-section h2 {
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

/* ── 24. UTILITIES ────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-sm      { font-size: 14px; }
.text-xs      { font-size: 12px; }
.text-lg      { font-size: clamp(17px, 1.6vw, 20px); }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.gap-3 { gap: var(--sp-3); }

/* ── 25. RESPONSIVE BREAKPOINTS ───────────────────────────────── */

/* Tablet landscape: 1024px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .page-hero .wrap { gap: var(--sp-5); }
}

/* Tablet portrait: 768px */
@media (max-width: 768px) {
  h1 { font-size: clamp(28px, 7vw, 38px); }
  h2 { font-size: clamp(22px, 5vw, 30px); }
  h3 { font-size: clamp(17px, 4vw, 22px); }

  .section      { padding-block: var(--sp-6); }
  .section-sm   { padding-block: var(--sp-5); }
  .section-head { margin-bottom: var(--sp-5); }

  .page-hero .wrap {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding-block: var(--sp-6) var(--sp-5);
  }
  .hero-text p { max-width: none; }

  .banner-block {
    max-height: 260px;
    aspect-ratio: 16/9;
  }
  .banner-wide,
  .banner-wide img {
    max-height: 220px;
    height: 220px;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .ggl-section { padding: var(--sp-5); }
  .subpage-hero { padding-block: var(--sp-5); }
  .subpage-hero h1 { font-size: clamp(26px, 6vw, 36px); }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  :root { --pad: 16px; }

  h1 { font-size: clamp(26px, 8vw, 34px); }
  h2 { font-size: clamp(20px, 6.5vw, 26px); }
  h3 { font-size: 18px; }

  .section     { padding-block: var(--sp-5); }
  .section-sm  { padding-block: var(--sp-4); }
  .page-hero   { padding-block: var(--sp-5) var(--sp-4); }

  .banner-block {
    max-height: 220px;
  }
  .banner-block img {
    height: 220px;
  }
  .banner-wide,
  .banner-wide img {
    max-height: 180px;
    height: 180px;
  }

  .grid-4 { grid-template-columns: 1fr; }

  .card        { padding: var(--sp-4); }
  .card-feature { padding: var(--sp-4); }
  .card-accent { padding: var(--sp-4); }
  .dl-card     { padding: var(--sp-4); }

  .btn { padding: 13px 22px; font-size: 14px; }
  .btn-lg { padding: 14px 26px; font-size: 15px; }

  .faq-question { padding: var(--sp-3) var(--sp-4); }
  .faq-answer   { padding: 0 var(--sp-4) var(--sp-3); }

  .ggl-section { padding: var(--sp-4); }
  .promo-box   { padding: var(--sp-4); }

  thead th { font-size: 12px; padding: 10px 12px; }
  tbody td  { padding: 10px 12px; font-size: 14px; }

  .step { flex-direction: column; gap: var(--sp-2); }
  .step-num { width: 36px; height: 36px; font-size: 15px; }

  .site-header { padding-block: var(--sp-2); }
  .site-header .logo img { height: 32px; }
  .site-nav a { padding: 5px 10px; font-size: 13px; }
}

/* Small phones: 375px */
@media (max-width: 375px) {
  :root { --pad: 14px; }

  h1 { font-size: 26px; }
  h2 { font-size: 20px; }

  .btn { width: 100%; justify-content: center; }

  .site-nav { gap: 4px; }
  .site-nav a { padding: 4px 8px; font-size: 12px; }
}

/* Wide: 1440px */
@media (min-width: 1440px) {
  :root { --wrap: 1280px; }
}

/* Very wide: 1920px */
@media (min-width: 1920px) {
  :root { --wrap: 1320px; }
}

/* ── 26. OVERFLOW PREVENTION ──────────────────────────────────── */
* { min-width: 0; }
body { max-width: 100vw; overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; }

h1, h2, h3, h4, p, li, td, th {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── 27. SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(181,252,4,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── 28. SELECTION ────────────────────────────────────────────── */
::selection { background: rgba(181,252,4,.25); color: var(--text); }

/* ── 29. LEGACY CLASS ALIASES ─────────────────────────────────── */
/* Maps old class names to the new design system */

/* Header */
.header              { background: var(--bg-head); border-bottom: 1px solid var(--border);
                        position: sticky; top: 0; z-index: 100; padding-block: var(--sp-3); }
.header .header-inner,
.header-inner        { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
                        max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.header .logo img,
.header-inner .logo img { height: 40px; width: auto; }
.nav, .header-nav    { display: flex; align-items: center; gap: var(--sp-2);
                        flex-wrap: wrap; margin-inline-start: auto; }
.nav a, .header-nav a { color: var(--text); font-size: 14px; font-weight: 500;
                          padding: 6px 14px; border-radius: var(--radius-sm);
                          transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover, .header-nav a:hover { background: var(--border); color: var(--accent); }

/* Footer */
.footer              { background: var(--bg-head); border-top: 1px solid var(--border);
                        padding-block: var(--sp-5); text-align: center; }
.footer .footer-inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
                          display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.footer-brand        { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.footer-brand .logo img { height: 36px; width: auto; opacity: .8; }
.footer-bottom       { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Main hero (index.html) */
.hero {
  background: var(--bg-section);
  padding-block: var(--sp-7) var(--sp-6);
}
.hero-inner,
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.hero-content h1 { font-size: clamp(32px, 5vw, 56px); }
.hero-content p  { color: var(--muted); font-size: clamp(16px,1.3vw,18px); max-width: 55ch; }
.hero-btns       { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-banner     { border-radius: var(--radius-lg); overflow: hidden;
                    max-height: 380px; aspect-ratio: 16/9; background: var(--bg-card); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Subpage hero (bonus, promo, etc.) */
.page-hero {
  background: var(--bg-section);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.page-hero > .container,
.page-hero > .wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); }
.page-hero p  { color: var(--muted); max-width: 65ch; }

/* Container = wrap */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.section-title h2 { margin-bottom: var(--sp-2); }
.section-title p  { color: var(--muted); margin-inline: auto; max-width: 60ch; }

/* mt-20 → mt-5 equivalent */
.mt-20  { margin-top: var(--sp-5); }

/* Cards grid used on pages */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}

/* ── Legacy breakpoints for old classes ── */
@media (max-width: 768px) {
  .hero-inner,
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero { padding-block: var(--sp-6) var(--sp-5); }
  .hero-content p { max-width: none; }
  .hero-banner { max-height: 260px; aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .hero-inner,
  .hero .container { gap: var(--sp-4); }
  .hero-content h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero-btns       { flex-direction: column; }
  .hero-btns .btn  { width: 100%; justify-content: center; }
}

/* ================================================================
   CSS v3.1 — MISSING CLASSES + VISUAL REDESIGN
   ================================================================ */

/* ── Reduce section gaps (were too large) ─────────────────────── */
.section      { padding-block: var(--sp-6); }   /* 48px instead of 64px */
.section-sm   { padding-block: var(--sp-5); }   /* 32px */
.section-alt  { padding-block: var(--sp-6); }

/* ── features-grid / feature-item ────────────────────────────── */
/* 2x2 grid of key facts with accent keyword */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;            /* fix: was clipping left */
  min-width: 0;
}

.feature-item strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  display: block;
}

.feature-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: block;
}

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

/* ── .cards — card grid ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

/* ── .card-icon — emoji/icon inside card ─────────────────────── */
.card-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: var(--sp-3);
  display: block;
}

/* Upgrade existing .card visuals */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: border-color .25s, transform .2s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(181,252,4,.08);
}
.card h3 {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text);
  font-weight: 700;
}
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: none;
}

/* ── .content — body text block ─────────────────────────────────*/
.content {
  width: 100%;
  max-width: 100%;
}
.content h2 {
  margin-bottom: var(--sp-3);
}
.content h3 {
  margin-bottom: var(--sp-2);
  margin-top: var(--sp-5);
  color: var(--accent);
}
.content p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
  max-width: none;
  font-size: clamp(15px, 1.1vw, 17px);
}
.content ul,
.content ol {
  padding-left: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}
.content ul li { list-style: disc; color: var(--muted); font-size: 15px; line-height: 1.65; }
.content ol li { list-style: decimal; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ── .cta-box — call-to-action highlight ────────────────────────*/
.cta-box {
  background: linear-gradient(135deg, rgba(181,252,4,.08) 0%, rgba(0,230,160,.05) 100%);
  border: 1px solid rgba(181,252,4,.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  margin-top: var(--sp-5);
}
.cta-box h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: var(--sp-3);
  color: var(--text);
}
.cta-box p {
  color: var(--muted);
  margin-bottom: var(--sp-4);
  margin-inline: auto;
  max-width: 55ch;
  font-size: 16px;
}
.cta-box .btn {
  margin-inline: 6px;
}

/* ── .btn-outline ─────────────────────────────────────────────── */
.btn-outline {
  background: transparent;
  border: 2px solid rgba(181,252,4,.45);
  color: var(--accent);
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background .2s, border-color .2s;
  min-height: 44px;
}
.btn-outline:hover {
  background: rgba(181,252,4,.1);
  border-color: var(--accent);
}

/* ── .breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-block: var(--sp-3);
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--muted);
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--muted); }

/* ── .menu-toggle ────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-inline-start: auto;
  line-height: 1;
}
@media (max-width: 640px) {
  .menu-toggle { display: flex; align-items: center; }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-head);
    padding: var(--sp-3);
    gap: var(--sp-1);
    order: 10;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 10px 14px; }
  .header-inner { flex-wrap: wrap; }
}

/* ── Section title typography boost ─────────────────────────── */
.section-title h2,
.section-head h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  letter-spacing: -.02em;
  margin-bottom: var(--sp-3);
}
.section-title p,
.section-head p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin-inline: auto;
}

/* ── Hero heading bigger & bolder ────────────────────────────── */
.hero-content h1,
.hero h1 {
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* ── Subpage hero h1 ─────────────────────────────────────────── */
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Cards spacing in content sections ───────────────────────── */
.section > .container > .cards,
.section > .container > .features-grid {
  margin-top: var(--sp-5);
}

/* ── CTA box mobile ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .cta-box { padding: var(--sp-4); }
  .cta-box h3 { font-size: 20px; }
  .cta-box .btn { width: 100%; justify-content: center; margin: 6px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .content { padding-inline: 0; }
}

/* ================================================================
   CSS v3.2 — CARD BUTTON ALIGNMENT + CONTENT-INNER + HERO FIX
   ================================================================ */

/* ── Cards: equal height, button pinned to bottom ────────────── */
.cards {
  align-items: stretch;           /* all cards same row height */
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Any button at the end of a card sticks to the bottom */
.card .btn,
.card .btn-outline,
.card .btn-bottom {
  margin-top: auto;
  align-self: flex-start;
}

/* dl-cards same treatment */
.dl-cards { align-items: stretch; }
.dl-card  { display: flex; flex-direction: column; height: 100%; }
.dl-card .btn,
.dl-card .btn-outline { margin-top: auto; }

/* ── .content-inner — text block inside restructured sections ── */
.content-inner {
  width: 100%;
  max-width: 100%;
}

.content-inner h3 {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--accent);
  margin-bottom: var(--sp-2);
  margin-top: var(--sp-5);
  font-weight: 700;
}
.content-inner h3:first-child { margin-top: 0; }

.content-inner p {
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
  max-width: none;
}
.content-inner p:last-child { margin-bottom: 0; }

.content-inner strong { color: var(--text); font-weight: 600; }

.content-inner ul,
.content-inner ol {
  padding-left: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--sp-4);
}
.content-inner ul li { list-style: disc; color: var(--muted); font-size: 15px; line-height: 1.65; }
.content-inner ol li { list-style: decimal; color: var(--muted); font-size: 15px; line-height: 1.65; }

.content-inner .banner-block { margin-block: var(--sp-5); }
.content-inner .table-wrap   { margin-block: var(--sp-4); }
.content-inner .cta-box      { margin-top: var(--sp-5); }

/* ── page-hero: consistent with main hero ────────────────────── */
.page-hero {
  background: var(--bg-section);
  padding-block: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.page-hero .container {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hero-text h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: var(--sp-4);
}
.hero-text > p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--sp-4);
}
.hero-text .btn { margin-right: var(--sp-2); }

/* ── features-grid: fix overflow clipping ────────────────────── */
.section .container { overflow: visible; }
.features-grid { overflow: visible; }
.feature-item  { overflow: visible; min-width: 0; }

/* ── Section alternating background (make sure content-inner gets full width) */
.section > .container > .content-inner { width: 100%; }

/* ── breadcrumbs inside container ────────────────────────────── */
.breadcrumbs {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: var(--sp-2);
}

/* ── section-title spacing ────────────────────────────────────── */
.section-title {
  margin-bottom: var(--sp-4);
}
.section-title + .content-inner {
  margin-top: 0;
}

/* ── Mobile card stacking ─────────────────────────────────────── */
@media (max-width: 480px) {
  .card .btn,
  .card .btn-outline,
  .card .btn-bottom {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
}

/* ================================================================
   CSS v3.3 — FULL WIDTH SUBPAGES + HERO WITH BANNER
   ================================================================ */

/* page-hero: two-column when banner present (like main hero) */
.page-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: center;
}

/* When no banner (single column fallback) */
.page-hero .container:has(.hero-text:only-child) {
  grid-template-columns: 1fr;
}

.page-hero .banner-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 340px;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--bg-card);
}
.page-hero .banner-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Reset old flex that conflicts with grid */
.page-hero > .container,
.page-hero > .wrap {
  display: grid;
}

/* Section full width — guarantee no narrowing */
.section .container,
.section-alt .container {
  max-width: var(--wrap);
  padding-inline: var(--pad);
}
.section .container .content-inner,
.section .container .cards,
.section .container .features-grid,
.section .container .table-wrap,
.section .container .faq-list,
.section .container .step-list,
.section .container .cta-box {
  width: 100%;
  max-width: 100%;
}

/* Responsive page-hero */
@media (max-width: 768px) {
  .page-hero .container {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .page-hero .banner-wide {
    max-height: 220px;
  }
}
@media (max-width: 480px) {
  .page-hero .container {
    gap: var(--sp-3);
  }
  .page-hero .banner-wide {
    max-height: 180px;
  }
}
