/* ==========================================================
   SmartGaGa.app — site.css
   Mobile-first. No external libraries or web fonts.
   ========================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --primary: #0b8f63;
  --primary-dark: #07704d;
  --primary-light: #e7f8f1;
  --secondary: #4f46e5;
  --secondary-light: #eef0ff;
  --accent: #f59e0b;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-dark: #0b1220;
  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .12);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --container: 1180px;
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; margin: 0 0 var(--space-4); letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.h3 { font-size: 1.35rem; }
.h4, h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--border); padding: .1em .35em; border-radius: 6px; }
pre { background: var(--bg-dark); color: #e2e8f0; padding: var(--space-4); border-radius: var(--radius-sm); overflow-x: auto; }
pre code { background: none; border: 0; color: inherit; padding: 0; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.narrow { max-width: 860px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- 3. Icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon-xs { width: 1em; height: 1em; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 143, 99, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 12px 26px rgba(11, 143, 99, .32); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { color: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.04rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row.center { justify-content: center; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-4); }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo img { width: 36px; height: 36px; }
.logo-text span { color: var(--primary); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text span { color: #5eeab5; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text-soft); font-weight: 600; font-size: .96rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 12px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile navigation */
@media (max-width: 959px) {
  .header-cta span { display: none; }
  .header-cta { padding: .55rem .75rem; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; padding: var(--space-5); overflow-y: auto;
    opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    border-top: 1px solid var(--border);
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li a { display: block; padding: 1rem .25rem; font-size: 1.08rem; }
  .nav-cta-mobile { margin-top: var(--space-5); width: 100%; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .menu-toggle, .nav-cta-mobile { display: none; }
  .main-nav ul { display: flex; gap: var(--space-5); }
  .main-nav a { position: relative; padding: .4rem 0; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s var(--ease); }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
}

/* ---------- 6. Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-6) 0 var(--space-8); }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-7); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); text-align: left; max-width: none; }
.section-head-row h2 { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); background: var(--primary-light); padding: .35rem .8rem; border-radius: 999px; margin-bottom: var(--space-4);
}

/* ---------- 7. Grid and cards ---------- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow); }
.feature-card:hover, .post-card:hover, .game-card:hover, .benefit-card:hover, .info-tile:hover { transform: translateY(-4px); border-color: #c7eedd; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-light); color: var(--primary); margin-bottom: var(--space-4);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card p, .benefit-card p { color: var(--muted); margin: 0; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-7) 0 var(--space-8); background: radial-gradient(1200px 500px at 85% -10%, #e2f7ee 0%, transparent 60%), radial-gradient(900px 400px at -10% 110%, #eef0ff 0%, transparent 60%); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: var(--space-8) 0; } }
.hero h1 { margin-bottom: var(--space-3); }
.hero-tagline { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: var(--space-3); }
.hero-desc { font-size: 1.08rem; color: var(--muted); max-width: 560px; margin-bottom: var(--space-5); }
.hero-trust { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; font-weight: 600; color: var(--text-soft); }
.hero-trust .icon { color: var(--success); }
.hero-visual img { width: 100%; max-width: 560px; margin: 0 auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 9. Trust bar ---------- */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; padding: var(--space-5) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 960px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-item strong { display: block; color: var(--text); font-size: .98rem; }
.trust-item span:not(.trust-icon) { display: block; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.trust-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--secondary-light); color: var(--secondary); flex-shrink: 0; }

/* ---------- 10. Download / tool section ---------- */
.download-layout { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (min-width: 960px) { .download-layout { grid-template-columns: 400px 1fr; align-items: start; } }
.info-card { position: relative; }
.download-layout > *, .grid > *, .split > *, .post-layout > * { min-width: 0; }
@media (min-width: 960px) { .info-card { position: sticky; top: calc(var(--header-h) + 16px); } }
.info-card-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.info-card-head img { width: 64px; height: 64px; border-radius: 16px; }
.info-card-head h3 { margin: 0; font-size: 1.25rem; }
.info-card-head p { margin: 0; }
.spec-list { margin: 0 0 var(--space-5); }
.spec-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding: .65rem 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.spec-list dt { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.spec-list dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.info-card .tiny { margin: var(--space-3) 0 0; }

.download-cards { display: grid; gap: var(--space-4); }
.download-card { position: relative; display: grid; gap: var(--space-4); grid-template-columns: 52px 1fr; align-items: center; }
.download-card .btn { grid-column: 1 / -1; }
@media (min-width: 640px) { .download-card { grid-template-columns: 56px 1fr auto; } .download-card .btn { grid-column: auto; } }
.download-card.is-recommended { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(11, 143, 99, .12); }
.download-card h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.download-card p { margin: 0 0 .5rem; color: var(--muted); font-size: .93rem; }
.download-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); color: var(--primary); }
.download-card-icon .icon { width: 26px; height: 26px; }
.ribbon { position: absolute; top: -11px; right: 18px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .65rem; border-radius: 999px; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-list li { font-size: .78rem; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-soft); padding: .15rem .6rem; border-radius: 999px; }
.safety-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--muted); background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: .75rem 1rem; margin: 0; }
.safety-note .icon { color: var(--accent); margin-top: .2rem; }

/* Build picker */
.picker { display: grid; gap: var(--space-5); background: linear-gradient(135deg, #fff 0%, #f3fbf8 100%); }
@media (min-width: 960px) { .picker { grid-template-columns: 1fr 1fr; padding: var(--space-6); } .picker-intro { grid-column: 1 / -1; } }
.picker-intro h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; }
.picker-intro p { color: var(--muted); margin: 0; }
.picker-form { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; align-content: start; }
.picker-form label, .form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--text); }
select, input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: .7rem .8rem; transition: border-color .2s, box-shadow .2s;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 143, 99, .15); }
.picker-result { background: var(--bg-dark); color: #cbd5e1; border-radius: var(--radius); padding: var(--space-5); display: grid; gap: var(--space-4); transition: opacity .25s; }
.picker-result.is-updating { opacity: .55; }
.picker-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #5eeab5; font-weight: 700; }
.picker-result strong[data-out="build"] { display: block; font-size: 1.35rem; color: #fff; margin: .2rem 0 .3rem; }
.picker-result p { margin: 0; font-size: .93rem; }
.picker-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.picker-stats li { background: rgba(255, 255, 255, .06); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.picker-stats span { display: block; font-size: .75rem; color: #94a3b8; }
.picker-stats strong { color: #fff; font-size: .98rem; }

/* Game cards */
.game-card { display: flex; flex-direction: column; }
.game-card.is-hidden { display: none; }
.game-card.is-revealed { display: flex; animation: fadeUp .45s var(--ease) both; }
.game-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: var(--space-3); }
.game-card-head h3 { margin: 0; font-size: 1.02rem; }
.game-card-head .badge { margin-left: auto; }
.game-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--secondary-light); color: var(--secondary); flex-shrink: 0; }
.game-settings { display: flex; gap: .45rem; align-items: flex-start; font-family: var(--font-mono); font-size: .82rem; color: var(--text); background: var(--bg-soft); border-radius: var(--radius-sm); padding: .55rem .7rem; }
.game-settings .icon { margin-top: .2rem; color: var(--primary); }
.game-tip { color: var(--muted); font-size: .92rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.show-more { margin-top: var(--space-6); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 11. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.table, .prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td, .prose th, .prose td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th, .prose thead th { background: var(--bg-soft); color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfd; }
.table tbody th { color: var(--text); font-weight: 700; }
.table tbody th .icon { display: inline-block; vertical-align: -2px; margin-right: .3rem; }
.compat-table td.yes { color: var(--success); font-weight: 700; }
.compat-table td.no { color: var(--danger); font-weight: 700; }
.compat-table td .icon { display: inline-block; vertical-align: -2px; }

/* ---------- 12. About split ---------- */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr .9fr; } }
.split-cards { display: grid; gap: var(--space-4); }
.mini-card { display: flex; gap: var(--space-4); align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-sm); }
.mini-card > .icon { width: 28px; height: 28px; color: var(--primary); margin-top: .2rem; }
.mini-card h3 { margin-bottom: .2rem; font-size: 1.02rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- 13. Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: flex; gap: var(--space-4); }
@media (min-width: 960px) { .step { flex-direction: column; } }
.step::before { content: counter(step); position: absolute; top: 14px; right: 16px; font-size: 2rem; font-weight: 800; color: #eef2f6; line-height: 1; }
.step-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; flex-shrink: 0; box-shadow: 0 6px 16px rgba(11, 143, 99, .3); }
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- 14. Info tiles ---------- */
.info-tile > .icon { width: 28px; height: 28px; color: var(--secondary); margin-bottom: var(--space-3); }
.info-tile h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.info-tile p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- 15. Blog cards ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.post-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-light); color: var(--primary); }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--secondary); background: var(--secondary-light); padding: .22rem .6rem; border-radius: 999px; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.post-card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.read-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }

/* ---------- 16. FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: var(--space-5); }
.faq-tab { font: inherit; font-weight: 700; font-size: .93rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-soft); cursor: pointer; transition: all .2s; }
.faq-tab:hover { border-color: var(--primary); color: var(--primary); }
.faq-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-list { display: grid; gap: var(--space-3); }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: #b7e6d3; box-shadow: var(--shadow); }
.faq-q { margin: 0; font-size: 1rem; }
.faq-q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); text-align: left; font: inherit; font-weight: 700; color: var(--text); background: none; border: 0; padding: 1.05rem 1.25rem; cursor: pointer; }
.faq-q button:hover { color: var(--primary); }
.faq-sign { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); flex-shrink: 0; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; background: var(--primary); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-sign::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* ---------- 17. Final CTA ---------- */
.final-cta { padding-top: var(--space-7); }
.cta-box {
  display: grid; gap: var(--space-5); align-items: center; color: #d1fae5;
  background: radial-gradient(600px 300px at 90% 10%, rgba(94, 234, 181, .25), transparent 60%), linear-gradient(135deg, #063f2d, var(--primary));
  border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) { .cta-box { grid-template-columns: 1.3fr auto; padding: var(--space-7); } }
.cta-box h2 { color: #fff; }
.cta-box p { margin: 0; font-size: 1.05rem; }

/* ---------- 18. Inner pages ---------- */
.page-hero { padding: var(--space-7) 0 var(--space-6); background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--border); }
.page-hero-sm { padding: var(--space-6) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .88rem; color: var(--muted); margin-bottom: var(--space-4); }
.text-center .breadcrumb { justify-content: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.post-hero .tag { margin-bottom: var(--space-3); }
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.error-code { display: block; font-size: clamp(4rem, 14vw, 7rem); font-weight: 900; line-height: 1; color: var(--primary-light); -webkit-text-stroke: 2px var(--primary); margin-bottom: var(--space-4); }

.post-layout { display: grid; gap: var(--space-7); }
@media (min-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr) 300px; } .post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.post-sidebar { display: grid; gap: var(--space-4); }
.sidebar-card .h4 { margin-bottom: var(--space-3); }
.facts { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.facts li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.facts span { color: var(--muted); }
.facts strong { color: var(--text); }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; font-weight: 600; }
.sidebar-links li:last-child { border-bottom: 0; }

/* Long-form content */
.prose { font-size: 1.05rem; color: var(--text-soft); max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: var(--space-7); }
.prose h3 { font-size: 1.2rem; margin-top: var(--space-6); }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .45rem; }
.prose table { margin: var(--space-5) 0; border: 1px solid var(--border); border-radius: var(--radius-sm); display: block; overflow-x: auto; min-width: 0; }
.prose strong { color: var(--text); }
.prose .callout { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; }
.prose .callout p:last-child { margin: 0; }
.prose .callout.warn { background: #fffbeb; border-color: var(--accent); }
.cta-inline { display: grid; gap: var(--space-4); align-items: center; margin-top: var(--space-7); padding: var(--space-5); border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); }
@media (min-width: 640px) { .cta-inline { grid-template-columns: 1fr auto; } }
.cta-inline strong { color: var(--text); font-size: 1.1rem; }
.cta-inline p { margin: .2rem 0 0; font-size: .95rem; color: var(--muted); }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-6); }
.toc h2 { font-size: 1.05rem; margin: 0 0 var(--space-3); }
.toc ol { margin: 0; columns: 2 220px; }
.toc li { margin-bottom: .35rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .6rem; }
.check-list .icon { color: var(--success); margin-top: .3rem; }

/* Contact page */
.contact-layout { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form textarea { min-height: 160px; resize: vertical; }
.form .error-msg { color: var(--danger); font-size: .85rem; font-weight: 600; min-height: 1.1em; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: var(--danger); }
.form-status { font-size: .93rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary-dark); }
.contact-cards { display: grid; gap: var(--space-4); }
.contact-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-card > .icon { width: 26px; height: 26px; color: var(--primary); margin-top: .2rem; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--bg-dark); color: #94a3b8; padding: var(--space-8) 0 0; margin-top: var(--space-7); font-size: .94rem; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin: var(--space-4) 0 0; max-width: 380px; }
.footer-note { font-size: .82rem; color: #64748b; }
.footer-title { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #5eeab5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid #1e293b; margin-top: var(--space-7); padding: var(--space-5) var(--space-5); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- 20. Scroll to top ---------- */
.scroll-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 143, 99, .35); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--primary-dark); }

/* ---------- 21. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 22. Small screens ---------- */
@media (max-width: 639px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-7) 0; }
  .section-head { margin-bottom: var(--space-6); }
  .btn-row .btn { flex: 1 1 100%; }
  .picker-form { grid-template-columns: 1fr; }
  .spec-list div { font-size: .88rem; }
  .trust-item span:not(.trust-icon) { display: none; }
  .hero { padding-top: var(--space-6); }
}

/* ---------- 23. Print ---------- */
@media print {
  .site-header, .site-footer, .scroll-top, .cta-box, .cta-inline, .post-sidebar { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
