/* =================================================================
   ReelsDownloader.pro — design system
   Self-contained: no framework, no CDN CSS, light + dark themes.
   ================================================================= */

/* ---------- Tokens: light is the base, dark overrides ---------- */
:root {
  --brand: #8b5cf6;
  --brand-2: #d946ef;
  --brand-3: #f43f5e;
  --brand-grad: linear-gradient(120deg, #8b5cf6 0%, #d946ef 55%, #f43f5e 100%);

  --bg: #f6f7fb;
  --bg-alt: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f2f3f9;
  --border: #e2e5f0;
  --border-strong: #cdd2e4;
  --text: #14161f;
  --text-soft: #4a5068;
  --muted: #6b7290;

  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --ok-bg: #ecfdf3;
  --err-bg: #fef2f2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .06), 0 1px 3px rgba(16, 20, 40, .05);
  --shadow: 0 6px 20px rgba(16, 20, 40, .08);
  --shadow-lg: 0 24px 60px -18px rgba(16, 20, 40, .22);
  --shadow-brand: 0 12px 30px -10px rgba(139, 92, 246, .55);

  --container: 1140px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .36, 1);
}

:root[data-theme="dark"] {
  --bg: #0a0c15;
  --bg-alt: #0e111d;
  --surface: #141828;
  --surface-2: #1b2033;
  --border: #262c42;
  --border-strong: #38405c;
  --text: #f2f4fb;
  --text-soft: #c2c8dd;
  --muted: #8b93b0;

  --ok: #4ade80;
  --err: #f87171;
  --ok-bg: rgba(34, 197, 94, .12);
  --err-bg: rgba(248, 113, 113, .12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 26px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, .75);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c15;
    --bg-alt: #0e111d;
    --surface: #141828;
    --surface-2: #1b2033;
    --border: #262c42;
    --border-strong: #38405c;
    --text: #f2f4fb;
    --text-soft: #c2c8dd;
    --muted: #8b93b0;
    --ok: #4ade80;
    --err: #f87171;
    --ok-bg: rgba(34, 197, 94, .12);
    --err-bg: rgba(248, 113, 113, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 26px rgba(0, 0, 0, .45);
    --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, .75);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: var(--surface-2);
  padding: .15em .4em; border-radius: 6px;
}

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

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 780px; }
main { flex: 1 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800;
  font-size: 1.06rem; letter-spacing: -.03em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(139, 92, 246, .35)); }
.brand-accent {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-tld { opacity: .55; font-weight: 600; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-soft); font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.is-active { color: var(--text); background: var(--surface-2); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-soft); cursor: pointer;
  transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .icon { width: 19px; height: 19px; }

.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: none; }
  :root:not([data-theme="light"]) .theme-moon { display: block; }
}

.nav-toggle { display: none; }
.nav-close-icon { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="true"] .nav-open-icon { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-close-icon { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: var(--shadow-brand);
  background-size: 160% 160%;
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; }
.btn-primary[disabled] { opacity: .7; cursor: progress; transform: none; }

.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 55% at 22% 32%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(38% 50% at 78% 22%, rgba(217, 70, 239, .24), transparent 70%),
    radial-gradient(35% 48% at 55% 78%, rgba(244, 63, 94, .18), transparent 70%);
  filter: blur(18px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 12px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .84rem; font-weight: 600; color: var(--text-soft);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 620px; margin: 0 auto 34px;
  font-size: clamp(1rem, 2vw, 1.16rem); color: var(--text-soft);
}

.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 26px; font-size: .88rem; color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 15px; height: 15px; color: var(--ok); }

.platform-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; margin-bottom: 18px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: .9rem;
  color: var(--brand, var(--text));
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.platform-badge .icon { width: 18px; height: 18px; }

.breadcrumb {
  display: flex; justify-content: center; gap: 8px;
  font-size: .85rem; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Downloader widget ---------- */
.downloader { max-width: 720px; margin: 0 auto; }

.dl-form { display: flex; gap: 10px; align-items: stretch; }

.dl-field {
  position: relative; flex: 1; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  min-width: 0;
}
.dl-field:focus-within {
  border-color: var(--brand);
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.dl-field-icon {
  display: flex; padding-left: 18px; color: var(--muted); flex: none;
}
.dl-field-icon .icon { width: 19px; height: 19px; }

.dl-input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1rem; padding: 16px 8px 16px 12px;
  border-radius: var(--radius-pill);
}
.dl-input::placeholder { color: var(--muted); opacity: .85; }
.dl-input:focus { outline: none; }

.dl-paste {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 7px; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); cursor: pointer; transition: all .18s var(--ease);
}
.dl-paste:hover { background: var(--surface-2); color: var(--brand); }
.dl-paste .icon { width: 18px; height: 18px; }

.dl-submit { padding-inline: 30px; position: relative; }
.btn-spinner { display: none; width: 18px; height: 18px; }
.dl-submit.is-loading .btn-label { visibility: hidden; }
.dl-submit.is-loading .btn-spinner {
  display: block; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dl-hint { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 620px) {
  .dl-form { flex-direction: column; }
  .dl-submit { width: 100%; padding-block: 15px; }
}

/* ---------- Result panel ---------- */
.dl-result:empty { display: none; }
.dl-result { margin-top: 26px; text-align: left; }

.result-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: rise .35s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.result-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 9 / 16;
}
.result-media video, .result-media img { width: 100%; height: 100%; object-fit: cover; }

.result-body { display: flex; flex-direction: column; min-width: 0; }
.result-platform {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand); margin-bottom: 10px;
}
.result-platform .icon { width: 15px; height: 15px; }

.result-title {
  font-size: 1.05rem; font-weight: 650; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.result-author { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }

.result-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: .76rem; font-weight: 600; padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
}
.tag-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  animation: rise .3s var(--ease) both;
}
.alert-error { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.alert-error .alert-icon { color: var(--err); }
.alert .alert-icon { flex: none; margin-top: 2px; }
.alert h4 { margin: 0 0 4px; font-size: .98rem; }
.alert p { margin: 0; font-size: .9rem; color: var(--text-soft); }

@media (max-width: 620px) {
  .result-card { grid-template-columns: 1fr; }
  .result-media { max-width: 220px; margin-inline: auto; }
  .result-actions .btn { flex: 1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); margin-bottom: .4em; }
.section-head p { color: var(--text-soft); margin: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Platform cards ---------- */
.platform-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.platform-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.platform-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--pc, var(--brand-grad)); opacity: 0; transition: opacity .22s var(--ease);
}
.platform-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--border-strong); text-decoration: none;
}
.platform-card:hover::before { opacity: 1; }

.platform-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 14px;
  background: var(--surface-2); color: var(--pc-color, var(--brand));
  transition: transform .22s var(--ease);
}
.platform-card:hover .platform-icon { transform: scale(1.06) rotate(-4deg); }
.platform-icon .icon { width: 24px; height: 24px; }

.platform-name { font-weight: 700; font-size: 1.1rem; }
.platform-sub { color: var(--muted); font-size: .86rem; }
.platform-go {
  position: absolute; right: 20px; top: 26px; color: var(--muted);
  opacity: 0; transform: translateX(-6px); transition: all .22s var(--ease);
}
.platform-card:hover .platform-go { opacity: 1; transform: none; color: var(--brand); }

.platform-card[data-platform="instagram"] { --pc: linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7); --pc-color: #e1306c; }
.platform-card[data-platform="tiktok"]    { --pc: linear-gradient(90deg, #25f4ee, #fe2c55); --pc-color: #fe2c55; }
.platform-card[data-platform="facebook"]  { --pc: linear-gradient(90deg, #1877f2, #0a4bab); --pc-color: #1877f2; }
.platform-card[data-platform="snapchat"]  { --pc: linear-gradient(90deg, #fffc00, #ffd400); --pc-color: #c9a800; }
:root[data-theme="dark"] .platform-card[data-platform="snapchat"] { --pc-color: #fffc00; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .platform-card[data-platform="snapchat"] { --pc-color: #fffc00; }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  position: relative; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand);
}
.step h3 { font-size: 1.08rem; margin-bottom: .35em; }
.step p { margin: 0; color: var(--text-soft); font-size: .94rem; }

.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.how-steps li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.how-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .88rem;
}
.how-steps p { margin: 0; color: var(--text-soft); }
.how-steps strong { color: var(--text); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature-card {
  padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 15px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.06rem; margin-bottom: .35em; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: .93rem; }

/* ---------- Device list / notice ---------- */
.device-list { display: grid; gap: 14px; }
.device-item {
  padding: 22px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.device-item h3 { font-size: 1rem; margin-bottom: .3em; }
.device-item p { margin: 0; color: var(--text-soft); font-size: .94rem; }

.notice {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}
.notice-icon { color: var(--brand); flex: none; }
.notice-icon .icon { width: 28px; height: 28px; }
.notice h3 { font-size: 1.08rem; margin-bottom: .35em; }
.notice p { margin: 0; color: var(--text-soft); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-chevron {
  flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s var(--ease); opacity: .6;
}
.faq-item[open] .faq-chevron { transform: rotate(225deg) translate(-2px, -2px); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Prose (legal / content pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 64px) 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }

.prose { color: var(--text-soft); }
.prose .lede { font-size: 1.1rem; color: var(--text-soft); }
.prose h2 {
  color: var(--text); font-size: 1.32rem;
  margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); }

.page-cta { margin-top: 40px; text-align: center; }

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.error-code {
  display: block; font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: 10px;
}
.error-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px;
}
.error-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: .9rem; font-weight: 500;
}
.error-links a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.error-links .icon { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0; margin-top: auto;
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding-top: 54px;
}
.footer-grid {
  display: grid; gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: 40px;
}
.footer-blurb { color: var(--muted); font-size: .9rem; margin: 14px 0 0; max-width: 320px; }
.footer-col h3 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-block: 22px 30px;
  font-size: .84rem; color: var(--muted);
}
.footer-bottom p { margin: 0 0 6px; }
.disclaimer { font-size: .78rem; opacity: .8; max-width: 780px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg);
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Utilities ---------- */
@media (max-width: 600px) { .hide-sm { display: none; } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
