/* =========================================================
   Play247 Win — play247win.live
   Design system: "PLAY TO WIN BLUE"
   Headings: Lexend Exa (700, extra-wide)
   Body: Wix Madefor Display (400–500)
   ========================================================= */

:root {
  /* Core palette (brief) */
  --primary: #2563eb;
  --bg-body: #f8fafc;
  --bg-section: #dbeafe;
  --bg-dark: #1e3a5f;
  --text: #1e3a5f;
  --accent: #60a5fa;

  /* Extended palette */
  --primary-dark: #1d4ed8;
  --primary-darker: #1e40af;
  --gold: #f59e0b;          /* from logo mark */
  --gold-dark: #d97706;
  --white: #ffffff;
  --muted: #5b6b82;
  --line: #d5e2f5;
  --line-strong: #b9d0f0;
  --success: #16a34a;
  --danger: #dc2626;

  /* Type */
  --font-head: 'Lexend Exa', 'Segoe UI', sans-serif;
  --font-body: 'Wix Madefor Display', 'Segoe UI', sans-serif;

  /* Metrics */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, .07);
  --shadow: 0 14px 40px rgba(30, 58, 95, .12);
  --shadow-lg: 0 26px 70px rgba(30, 58, 95, .20);
  --ring: 0 0 0 4px rgba(96, 165, 250, .35);
  --t: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: .04em;      /* extra-wide signature */
}
h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: .06em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: .05em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.06rem; letter-spacing: .03em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--bg-dark); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: .9rem;
}
.eyebrow.on-dark { color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section.tight { padding: 58px 0; }
.section-alt { background: var(--bg-section); }
.section-dark { background: var(--bg-dark); color: #dbe7fb; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #a9c2e6; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .38); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 16px 34px rgba(37, 99, 235, .5); }
.btn-gold { background: var(--gold); color: #3a2500; box-shadow: 0 10px 26px rgba(245, 158, 11, .4); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 16px 34px rgba(245, 158, 11, .5); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-section); color: var(--primary-dark); }
.btn-lg { padding: 18px 40px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 11px 20px; font-size: .74rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.navlink {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bg-dark);
  padding: 10px 16px;
  border-radius: 8px;
  transition: background var(--t), color var(--t);
}
.nav-links a.navlink:hover, .nav-links a.navlink.active { background: var(--bg-section); color: var(--primary-dark); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--bg-dark); border-radius: 3px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white);
    padding: 16px 22px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform var(--t);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.navlink { padding: 14px 16px; font-size: .82rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #eaf1fd;
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(37, 99, 235, .55), transparent 60%),
    radial-gradient(620px 420px at 8% 116%, rgba(96, 165, 250, .28), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: linear-gradient(115deg, transparent 0%, transparent 30%, rgba(37, 99, 235, .16) 30%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--gold); }
.hero .lead { font-size: 1.14rem; color: #b9cef0; max-width: 560px; margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--gold); letter-spacing: .04em; }
.hero-stat .l { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #94b3e0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(96, 165, 250, .3);
  aspect-ratio: 5 / 3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(30, 58, 95, .82); backdrop-filter: blur(6px);
  color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .12em;
  border: 1px solid rgba(96, 165, 250, .4);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding: 66px 0 74px; }
  .hero::after { display: none; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--primary); color: #fff; }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 26px; padding-top: 20px; padding-bottom: 20px; }
.trustbar .ti { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; }
.trustbar .ti svg { width: 22px; height: 22px; flex: none; }

/* ---------- Feature / info cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .ico {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-section); color: var(--primary-dark);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card.accent-top { border-top: 4px solid var(--primary); }

/* numbered step cards */
.step { position: relative; padding-top: 34px; }
.step .num {
  position: absolute; top: -18px; left: 26px;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}

/* ---------- Game cards ---------- */
.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t);
  background: #000;
}
.game-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .5s ease; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card:hover img { transform: scale(1.06); }
.game-card .gc-body {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 20px 18px;
  background: linear-gradient(to top, rgba(15, 30, 55, .92), transparent);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.game-card .gc-body h4 { color: #fff; letter-spacing: .08em; }
.game-card .tag {
  font-family: var(--font-head); font-weight: 700; font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: #3a2500; background: var(--gold);
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.split ul.checks { margin-top: 1.2rem; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
.checks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; margin-top: 2px;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Tool cards (home) ---------- */
.tool-card { display: flex; flex-direction: column; }
.tool-card .ico { background: var(--primary); color: #fff; }
.tool-card .btn { margin-top: auto; }
.tool-card ul { margin: 4px 0 20px; display: grid; gap: 8px; }
.tool-card ul li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.tool-card ul li::before { content: "→"; color: var(--primary); font-weight: 700; }

/* ---------- Interactive tool shell ---------- */
.tool-shell {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-shell .ts-head {
  background: var(--bg-dark); color: #fff; padding: 26px 30px;
  display: flex; align-items: center; gap: 16px;
}
.tool-shell .ts-head .ico { width: 50px; height: 50px; border-radius: 12px; background: rgba(96, 165, 250, .2); display: grid; place-items: center; color: var(--accent); flex: none; }
.tool-shell .ts-head .ico svg { width: 26px; height: 26px; }
.tool-shell .ts-head h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.tool-shell .ts-head p { color: #a9c2e6; font-size: .88rem; margin: 2px 0 0; }
.tool-shell .ts-body { padding: 30px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bg-dark); margin-bottom: 8px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* segmented W/L buttons */
.wl-input { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 2px solid var(--line-strong);
  background: #fff; color: var(--muted); font-family: var(--font-head); font-weight: 700; cursor: pointer;
  transition: var(--t);
}
.wl-btn:hover { border-color: var(--primary); }
.wl-btn.win { background: var(--success); border-color: var(--success); color: #fff; }
.wl-btn.loss { background: var(--danger); border-color: var(--danger); color: #fff; }
.seg { display: inline-flex; background: var(--bg-section); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 9px 16px; border-radius: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .06em; color: var(--muted); transition: var(--t);
}
.seg button.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

/* tool result panel */
.result {
  margin-top: 26px; padding: 26px; border-radius: var(--radius);
  background: var(--bg-section); border: 1px solid var(--line-strong);
  display: none;
}
.result.show { display: block; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }
.result h3 { margin-bottom: .6rem; }
.metric-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.metric {
  flex: 1 1 130px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.metric .v { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--primary-dark); letter-spacing: .03em; }
.metric .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* momentum / bar chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 14px 0; padding: 12px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.chart .bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; transition: height .5s ease; }
.gauge-track { height: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line-strong); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 20px; width: 0; transition: width .8s cubic-bezier(.4,0,.2,1); background: linear-gradient(90deg, var(--primary), var(--accent)); }

.plan-list { display: grid; gap: 10px; margin-top: 8px; }
.plan-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.plan-item .pt { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); font-size: .82rem; letter-spacing: .05em; white-space: nowrap; }
.plan-item.brk { border-left-color: var(--gold); }
.plan-item.stop { border-left-color: var(--danger); }

/* big timer */
.timer-face {
  text-align: center; padding: 30px; border-radius: var(--radius); background: var(--bg-dark); color: #fff; margin-bottom: 20px;
}
.timer-face .tt { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 12vw, 5.5rem); letter-spacing: .06em; color: var(--gold); line-height: 1; }
.timer-face .ts { color: #a9c2e6; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; margin-top: 8px; }

/* ---------- Auth (login / signup) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 640px; }
.auth-aside { background: var(--bg-dark); color: #dbe7fb; padding: 56px 48px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0, rgba(37,99,235,.5), transparent 60%); }
.auth-aside > * { position: relative; z-index: 2; }
.auth-aside h2 { color: #fff; }
.auth-aside .checks li { color: #cfe0f8; }
.auth-form { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-form .form-card-head { margin-bottom: 26px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.checkbox-row input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--primary); }
.form-alt { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.divider-or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 22px 0; }
.divider-or::before, .divider-or::after { content: ""; height: 1px; background: var(--line-strong); flex: 1; }
.notice {
  font-size: .82rem; color: var(--muted); background: var(--bg-body);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 18px;
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-form { padding: 40px 26px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: .02em; color: var(--bg-dark);
}
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--bg-section); color: var(--primary-dark); display: grid; place-items: center; font-size: 1.2rem; transition: var(--t); }
.faq-item.open .pm { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; text-align: center; border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7fb; max-width: 620px; margin: 0 auto 1.6rem; }
.cta-band .btn-white { box-shadow: 0 14px 30px rgba(0,0,0,.18); }

/* ---------- Content / legal pages ---------- */
.page-hero { background: var(--bg-dark); color: #dbe7fb; padding: 66px 0 58px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 88% -20%, rgba(37,99,235,.45), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9cef0; max-width: 640px; margin-top: .8rem; }
.crumbs { font-size: .82rem; color: #94b3e0; margin-bottom: .8rem; letter-spacing: .04em; }
.crumbs a { color: var(--accent); }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 2.2rem 0 .9rem; font-size: 1.5rem; }
.prose h3 { margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: #47566c; }
.prose ul { margin: 0 0 1.1rem; display: grid; gap: 8px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }
.prose a { text-decoration: underline; }
.toc { background: var(--bg-section); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.toc h4 { margin-bottom: .6rem; }
.toc ul { display: grid; gap: 6px; }
.toc a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #a9c2e6; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer .brand img { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer p { color: #90aed8; font-size: .92rem; }
.footer-col h5 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #a9c2e6; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #cfe0f8; font-weight: 500; }
.footer-wa svg { width: 22px; height: 22px; }
.age-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--danger); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; margin-bottom: 12px; }
.footer-age { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .84rem; color: #90aed8; }
.footer-age .age-badge { margin: 0; flex: none; width: 38px; height: 38px; font-size: .72rem; }
.footer-age a { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .84rem; color: #7f9dc9; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a { font-size: .84rem; color: #a9c2e6; }
.disclaimer-strip { background: #16283f; color: #7f9dc9; font-size: .8rem; text-align: center; padding: 14px 22px; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ---------- Utilities & responsive ---------- */
.grid-2, .grid-3, .grid-4 { }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .input-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
