/* =====================================================================
   Demon Downloader - styles
   COLOURS: change the numbers in :root (they are R G B values).
   Each platform page has its own colour set further down (body.theme-...).
   ===================================================================== */
:root {
  --brand: 52 211 153;     /* emerald */
  --brand2: 190 242 100;   /* lime */
  --brand-fg: 4 19 12;     /* text on brand buttons */
  --ink: 7 16 13;          /* page background */
  --panel: 14 26 21;       /* cards */
  --dim: 127 154 140;      /* muted text */
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --line: rgba(255, 255, 255, 0.06);
  --adult: 255 122 26;     /* orange used for the Adult links on every page */
}

/* ---------- Page colour themes ---------- */
body.theme-tiktok    { --brand: 254 44 85;   --brand2: 37 244 238;  --brand-fg: 255 255 255; --ink: 1 1 1;     --panel: 22 24 35;  --dim: 161 162 168; }
body.theme-instagram { --brand: 225 48 108;  --brand2: 252 175 69;  --brand-fg: 255 255 255; --ink: 13 9 16;   --panel: 26 18 31;  --dim: 179 157 184; }
body.theme-x         { --brand: 255 255 255; --brand2: 29 155 240;  --brand-fg: 0 0 0;       --ink: 0 0 0;     --panel: 22 24 28;  --dim: 139 152 165; }
body.theme-facebook  { --brand: 24 119 242;  --brand2: 91 164 255;  --brand-fg: 255 255 255; --ink: 10 16 28;  --panel: 20 28 43;  --dim: 147 161 184; }
body.theme-adult     { --brand: 255 122 26;  --brand2: 255 176 64;  --brand-fg: 0 0 0;       --ink: 10 10 10;  --panel: 21 19 17;  --dim: 170 160 148; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: rgb(var(--ink)); color: #e3ebe6;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: 64px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.icon { width: 1rem; height: 1rem; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon svg { width: 100%; height: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.text-brand { color: rgb(var(--brand)); }
.gradient-text {
  background: linear-gradient(100deg, rgb(var(--brand)), rgb(var(--brand2)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gradient-bg { background: linear-gradient(100deg, rgb(var(--brand)), rgb(var(--brand2))); color: rgb(var(--brand-fg)); }
.gradient-border { position: relative; border: 1px solid transparent; background-clip: padding-box; }
.gradient-border::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgb(var(--brand) / .45), transparent 45%, rgb(var(--brand2) / .3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgb(var(--ink)); }
::-webkit-scrollbar-thumb { background: rgb(var(--brand) / .25); border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: rgb(var(--brand)); color: rgb(var(--brand-fg));
  padding: 12px 24px; font-size: .875rem; font-weight: 600; transition: all .2s; white-space: nowrap;
}
.btn:hover { background: rgb(var(--brand) / .9); box-shadow: 0 0 24px rgb(var(--brand) / .35); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: 8px 20px; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.1); }
.btn-outline:hover { background: rgba(255,255,255,.05); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--line); background: rgb(var(--ink) / .75);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: #fff; }
.logo-icon { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.nav { display: none; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--panel) / .6); }
.nav a { padding: 6px 14px; border-radius: 999px; font-size: .875rem; color: rgb(var(--dim)); transition: all .2s; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.nav-adult { color: rgb(var(--adult)); font-weight: 600; }
.nav a.nav-adult:hover { color: rgb(var(--adult)); background: rgb(var(--adult) / .12); }
.header-cta { display: none; }
.menu-toggle { color: #fff; padding: 4px; }
.menu-toggle .icon { width: 20px; height: 20px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: rgb(var(--ink) / .95); padding: 16px; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 12px 16px; border-radius: 8px; font-size: .875rem; color: rgb(var(--dim)); }
.mobile-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mobile-menu a.nav-adult { color: rgb(var(--adult)); font-weight: 600; }
.mobile-menu .btn { margin-top: 8px; color: rgb(var(--brand-fg)); }
@media (min-width: 1024px) {
  .nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 144px 0 96px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(var(--brand) / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--brand) / .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow-1 { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 900px; height: 560px; border-radius: 999px; background: rgb(var(--brand) / .09); filter: blur(130px); pointer-events: none; }
.glow-2 { position: absolute; top: 160px; right: 8%; width: 260px; height: 260px; border-radius: 999px; background: rgb(var(--brand2) / .07); filter: blur(90px); pointer-events: none; }
.hero .container { position: relative; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 4px 16px 4px 4px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgb(var(--panel) / .8);
  font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.8);
}
.badge-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.badge-pill .icon { width: 12px; height: 12px; }
.hero-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; color: #fff; font-size: 2.25rem; line-height: 1.1; }
.hero-sub { max-width: 672px; margin: 24px auto 0; color: rgb(var(--dim)); font-size: 1rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } .hero-sub { font-size: 1.125rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }
.trust { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--panel) / .5); font-size: .875rem; color: rgb(var(--dim)); }
.chip .icon { color: rgb(var(--brand)); }

/* ---------- Downloader widget ---------- */
.downloader { max-width: 672px; margin: 44px auto 0; text-align: left; }
.dl-row {
  display: flex; gap: 8px; padding: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgb(var(--panel));
  box-shadow: 0 0 60px rgb(var(--brand) / .15), 0 0 120px rgb(var(--brand) / .05); transition: border-color .2s;
}
.dl-row:focus-within { border-color: rgb(var(--brand) / .4); }
.dl-row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px 16px; font: inherit; font-size: .875rem; color: #fff; }
.dl-row input::placeholder { color: rgb(var(--dim) / .7); }
.dl-row .btn-label { display: none; }
@media (min-width: 640px) { .dl-row .btn-label { display: inline; } }
.dl-error { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(239,68,68,.2); background: rgba(239,68,68,.1); color: #f87171; font-size: .875rem; }
.dl-card { margin-top: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgb(var(--panel)); display: flex; flex-direction: column; animation: fadeUp .3s ease-out; }
.dl-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: rgb(var(--ink)); flex-shrink: 0; overflow: hidden; border-radius: 16px 16px 0 0; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.7); color: #fff; font-family: var(--font-mono); font-size: .75rem; }
.dl-body { flex: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dl-title { font-size: .875rem; font-weight: 500; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-close { padding: 6px; border-radius: 8px; color: rgb(var(--dim)); }
.dl-close:hover { color: #fff; background: rgba(255,255,255,.05); }
.dl-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.dl-actions .btn { padding: 10px 24px; }
.dl-select { position: relative; flex: 1; }
.dl-select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); background: rgb(var(--ink)); font-size: .875rem; color: #fff; transition: border-color .2s; }
.dl-select-btn:hover { border-color: rgb(var(--brand) / .3); }
.dl-select-btn .chev { color: rgb(var(--dim)); transition: transform .2s; }
.dl-select.open .chev { transform: rotate(180deg); }
.dl-opt-label { display: flex; align-items: center; gap: 8px; }
.dl-opt-label .icon { width: 14px; height: 14px; color: rgb(var(--brand)); }
.dl-size { font-size: .75rem; color: rgb(var(--dim)); }
.dl-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; margin-top: 4px; max-height: 240px; overflow-y: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,.07); background: rgb(var(--panel)); box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.dl-select.open .dl-menu { display: block; }
.dl-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-size: .875rem; color: #fff; text-align: left; }
.dl-menu button:hover { background: rgba(255,255,255,.05); }
.dl-menu button.active { background: rgb(var(--brand) / .1); color: rgb(var(--brand)); }
.dl-menu button .icon { width: 14px; height: 14px; }
@media (min-width: 640px) {
  .dl-card { flex-direction: row; }
  .dl-thumb { width: 192px; aspect-ratio: auto; border-radius: 16px 0 0 16px; min-height: 120px; }
  .dl-actions { flex-direction: row; align-items: center; }
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { border-top: 1px solid var(--line); background: rgb(var(--panel) / .3); }
.section-head { text-align: center; }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: rgb(var(--brand)); }
.h2 { margin-top: 12px; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -.025em; color: #fff; line-height: 1.2; }
.lead { max-width: 576px; margin: 16px auto 0; color: rgb(var(--dim)); }
@media (min-width: 640px) { .section { padding: 128px 0; } .h2 { font-size: 2.25rem; } }
.card { border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--panel)); transition: box-shadow .25s; }
.card:hover, .feature:hover { box-shadow: 0 0 28px rgb(var(--brand) / .12); }

/* ---------- Platform strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(var(--panel) / .4); padding: 56px 0; }
.strip-label { margin-bottom: 32px; text-align: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: rgb(var(--dim)); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.07); background: rgb(var(--ink)); font-size: .875rem; color: rgb(var(--dim)); transition: all .2s; }
a.pill:hover { transform: translateY(-2px); color: #fff; }
a.pill:hover .icon { color: var(--hover, #fff); }
.pill .icon { transition: color .2s; }
.pill-check .icon { color: rgb(var(--brand)); }
.pill-adult { border-color: rgb(var(--adult) / .3); background: rgb(var(--adult) / .1); color: rgb(var(--adult)); font-weight: 500; }
a.pill-adult:hover { color: rgb(var(--adult)); background: rgb(var(--adult) / .16); }
.letter-icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; font-size: .7rem; font-weight: 700; }
.strip-note { max-width: 576px; margin: 24px auto 0; text-align: center; font-size: .75rem; color: rgb(var(--dim)); }

/* ---------- How it works ---------- */
.steps { position: relative; margin-top: 64px; display: grid; gap: 24px; }
.steps-line { display: none; position: absolute; left: 16%; right: 16%; top: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--brand) / .4), transparent); }
.step { position: relative; text-align: center; }
.step-icon { position: relative; width: 56px; height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgb(var(--brand) / .3); background: rgb(var(--ink)); color: rgb(var(--brand)); }
.step-icon .icon { width: 20px; height: 20px; }
.step-num { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-family: var(--font-mono); font-size: .65rem; font-weight: 700; }
.step .card { margin-top: 24px; padding: 24px; }
.step h3, .feature h3, .ctype h3 { font-size: 1.125rem; font-weight: 600; color: #fff; }
.step p, .feature p, .ctype p { margin-top: 8px; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps-line { display: block; } }

/* ---------- Features ---------- */
.features { margin-top: 64px; display: grid; gap: 20px; }
.feature { display: flex; gap: 20px; padding: 28px; border-radius: 16px; background: rgb(var(--panel)); transition: box-shadow .25s; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgb(var(--brand) / .1); color: rgb(var(--brand)); transition: background .2s; }
.feature:hover .feature-icon { background: rgb(var(--brand) / .2); }
.feature-icon .icon { width: 20px; height: 20px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Platform details ---------- */
.details { border-top: 1px solid var(--line); padding: 96px 0; }
.details-grid { display: grid; gap: 48px; }
.ctype-grid { margin-top: 40px; display: grid; gap: 16px; }
.ctype { padding: 20px; }
.ctype-title { display: flex; align-items: center; gap: 8px; }
.ctype-title .icon { color: rgb(var(--brand)); }
.ctype h3 { font-size: 1rem; }
.about { position: relative; overflow: hidden; border-radius: 24px; background: rgb(var(--panel)); padding: 32px; }
.about-glow { position: absolute; right: -80px; top: -80px; width: 256px; height: 256px; border-radius: 999px; background: rgb(var(--brand) / .12); filter: blur(80px); pointer-events: none; }
.about > * { position: relative; }
.about-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; font-weight: 700; }
.about-icon .icon { width: 28px; height: 28px; }
.about h2 { margin-top: 24px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.about p { margin-top: 16px; line-height: 1.65; color: rgb(var(--dim)); }
@media (min-width: 640px) { .ctype-grid { grid-template-columns: repeat(2, 1fr); } .about { padding: 40px; } .details { padding: 112px 0; } }
@media (min-width: 1024px) { .details-grid { grid-template-columns: repeat(2, 1fr); gap: 64px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--panel)); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; }
.faq-q span:first-child { font-size: .875rem; font-weight: 500; color: #fff; }
.faq-plus { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.06); color: rgb(var(--dim)); transition: all .2s; }
.faq-item.open .faq-plus { transform: rotate(45deg); background: rgb(var(--brand)); color: rgb(var(--brand-fg)); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s, opacity .2s; opacity: 0; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 20px; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }
@media (min-width: 640px) { .faq-q span:first-child { font-size: 1rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgb(var(--ink)); padding: 56px 0 40px; }
.footer-top { display: flex; flex-direction: column; gap: 36px; }
.footer-brand { max-width: 360px; }
.footer-brand p { margin-top: 16px; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-cols a { display: block; padding: 5px 0; font-size: .875rem; color: rgb(var(--dim)); transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-cols a.footer-adult { color: rgb(var(--adult)); }
.footer-h { margin: 0 0 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.05); text-align: center; font-size: .75rem; line-height: 1.65; color: rgb(var(--dim) / .7); }
@media (min-width: 768px) { .footer-top { flex-direction: row; justify-content: space-between; } .footer-cols { gap: 64px; } }

/* ---------- 18+ age gate ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgb(var(--ink)); }
.age-box { width: 100%; max-width: 448px; border-radius: 24px; background: rgb(var(--panel)); padding: 32px; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.age-icon { width: 56px; height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgb(var(--brand) / .15); color: rgb(var(--brand)); }
.age-icon .icon { width: 28px; height: 28px; }
.age-box h2 { margin-top: 20px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.age-box p { margin-top: 12px; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
.age-buttons { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.age-buttons > * { flex: 1; }
@media (min-width: 640px) { .age-buttons { flex-direction: row; } }
body.age-locked { overflow: hidden; }

/* ---------- Gentle entrance animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 120px 20px 60px; }

/* ---------- Hero headline with a smaller second line ---------- */
.hero-title-sub { display: block; margin-top: 10px; font-size: .42em; font-weight: 700; letter-spacing: -.01em; color: rgba(255,255,255,.85); line-height: 1.25; }

/* ---------- Device guide cards (iPhone / Android / PC) ---------- */
.cards3 { margin-top: 56px; display: grid; gap: 20px; }
.cards3 .card { padding: 28px; }
.cards3 h3 { font-size: 1.125rem; font-weight: 600; color: #fff; }
.cards3 p { margin-top: 10px; font-size: .875rem; line-height: 1.7; color: rgb(var(--dim)); }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Longer explanatory text on pages ---------- */
.seo-text { max-width: 760px; margin: 0 auto; }
.seo-text h2 { margin-bottom: 16px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.seo-text p { margin-top: 14px; line-height: 1.75; color: rgb(var(--dim)); }
.seo-text a, .prose a, .faq-a a { color: rgb(var(--brand)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; color: rgb(var(--dim)); }
.crumbs a:hover { color: #fff; }
.crumbs-center { justify-content: center; margin-bottom: 20px; }
.blog-hero { padding: 128px 0 40px; text-align: center; }
.blog-title { margin-top: 14px; font-size: 2.25rem; }
@media (min-width: 768px) { .blog-title { font-size: 3.25rem; } }
.blog-list { padding-top: 24px; }
.post-grid { display: grid; gap: 20px; }
.section-head + .post-grid { margin-top: 64px; } /* same gap under headings as the other boxes */
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; padding: 24px; transition: box-shadow .25s, transform .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgb(var(--brand) / .15); }
.post-card-meta { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--brand)); }
.post-card h3 { margin-top: 12px; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: #fff; }
.post-card p { margin-top: 10px; flex: 1; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
.post-card-more { margin-top: 18px; font-size: .875rem; font-weight: 600; color: rgb(var(--brand)); }
.post-more { margin-top: 32px; text-align: center; font-size: .9375rem; }
.post-more a { color: rgb(var(--brand)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.blog-empty { text-align: center; color: rgb(var(--dim)); }
.post { padding: 120px 0 72px; }
.post .crumbs { margin-bottom: 24px; }
.post-meta { font-size: .8125rem; color: rgb(var(--dim)); }
.post-title { margin-top: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; color: #fff; font-size: 2rem; line-height: 1.15; }
@media (min-width: 768px) { .post-title { font-size: 2.75rem; } }
.post-lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,.78); }
.prose { margin-top: 36px; font-size: 1.0625rem; line-height: 1.8; color: rgba(255,255,255,.8); }
.prose h2 { margin: 2.2em 0 .6em; font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.prose h3 { margin: 1.8em 0 .5em; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
.prose h4 { margin: 1.5em 0 .4em; font-size: 1.0625rem; font-weight: 700; color: #fff; }
.prose p { margin: 1.1em 0; }
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid rgb(var(--brand)); color: rgb(var(--dim)); }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.prose img { height: auto; margin: 1.6em auto; border-radius: 12px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); font-family: var(--font-mono); font-size: .9em; }
.prose pre { margin: 1.4em 0; padding: 16px; overflow-x: auto; border-radius: 12px; background: rgb(var(--panel)); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; }
.cta-box { margin-top: 56px; padding: 32px; text-align: center; border-radius: 20px; background: rgb(var(--panel)); }
.cta-box h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.cta-box p { margin: 12px auto 24px; max-width: 460px; color: rgb(var(--dim)); }

/* ---------- Home page: downloader cards ---------- */
.platform-grid { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 640px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .platform-grid { grid-template-columns: repeat(4, 1fr); } }
.platform-card { display: flex; flex-direction: column; padding: 28px; transition: box-shadow .25s, transform .2s; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgb(var(--brand) / .15); }
.platform-card h3 { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; color: #fff; }
.platform-card p { margin-top: 10px; flex: 1; font-size: .875rem; line-height: 1.65; color: rgb(var(--dim)); }
.platform-card-more { margin-top: 18px; font-size: .875rem; font-weight: 600; color: rgb(var(--brand)); }
.platform-adult { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; font-size: .875rem; color: rgb(var(--dim)); }
.age-box p a { color: rgb(var(--brand)); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact form ---------- */
.contact-form { margin: 28px 0; display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: .875rem; font-weight: 600; color: #fff; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgb(var(--panel)); color: #fff; font: inherit; font-weight: 400; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgb(var(--brand) / .6); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: .9375rem; color: rgb(var(--dim)); }
.form-status.good { color: rgb(var(--brand)); }
.form-status.bad { color: #f87171; }
