/*!
 * AIpic.ru landing page styles.
 *
 * Standalone stylesheet for the static marketing page. Bumping the version
 * query string in index.html (?v=YYYYMMDD) forces clients to re-download
 * after edits.
 */

:root {
  --ink-50: #fafafa;
  --ink-100: #f4f4f5;
  --ink-200: #e4e4e7;
  --ink-300: #d4d4d8;
  --ink-400: #a1a1aa;
  --ink-500: #71717a;
  --ink-600: #52525b;
  --ink-700: #3f3f46;
  --ink-800: #27272a;
  --ink-900: #18181b;
  --ink-950: #09090b;
  --amber-500: #f59e0b;

  /* Brand gradient: deep violet → magenta pink. Per-page templates can
     override --brand-from/--brand-to/--brand-accent/--brand-shadow with
     an inline <style> block in <head>; everything that uses --brand-*
     (buttons, card icons, cta-band, hero blobs) re-themes for free. */
  --brand-from: rgb(90, 0, 255);
  --brand-to: rgb(255, 0, 139);
  --brand-accent: rgb(0, 210, 255);
  --brand-gradient: linear-gradient(45deg, var(--brand-from) 0%, var(--brand-to) 100%);
  --brand-gradient-soft: linear-gradient(
    45deg,
    color-mix(in oklab, var(--brand-from) 12%, transparent) 0%,
    color-mix(in oklab, var(--brand-to) 12%, transparent) 100%
  );
  --brand-shadow: 0 10px 40px -10px rgba(160, 0, 200, 0.45);

  --bg: #ffffff;
  --fg: var(--ink-900);
  --muted: var(--ink-500);
  --subtle: var(--ink-100);
  --border: var(--ink-200);
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 8px 24px -8px rgba(0, 0, 0, 0.06);
}
.dark {
  --bg: var(--ink-950);
  --fg: var(--ink-100);
  --muted: var(--ink-400);
  --subtle: var(--ink-900);
  --border: var(--ink-800);
  --card: var(--ink-900);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --brand-shadow: 0 12px 40px -8px rgba(160, 0, 200, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
section[id] { scroll-margin-top: 72px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Gradient utilities ───────────────────────────────── */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── Header ───────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
}
.brand .logo {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand .logo svg { width: 100%; height: 100%; display: block; }

/* ── Header navigation ────────────────────────────────── */
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500;
}
.nav-links > a { color: var(--muted); transition: color .15s; }
.nav-links > a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Dropdown menus (desktop) ─────────────────────────── */
.nav-dropdown { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; padding: 0; margin: 0;
  font: inherit; color: var(--muted); cursor: pointer;
  transition: color .15s;
}
.nav-trigger:hover { color: var(--fg); }
.nav-trigger[aria-expanded="true"] { color: var(--fg); }
.nav-chevron { transition: transform .2s ease; }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 280px;
  padding: 10px;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.18);
}
.dark .nav-panel {
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}
/* Bridge the gap between the trigger and the panel so the cursor crossing
   from one to the other doesn't collapse the dropdown (when hover is in
   play) and so click-outside detection still includes the panel area. */
.nav-panel::before {
  content: '';
  position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-panel--wide { min-width: 540px; }
.nav-panel-grid {
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
.nav-panel-grid--two { grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.nav-panel-item {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--fg);
  transition: background .12s;
  text-decoration: none;
}
.nav-panel-item:hover { background: var(--subtle); }
.nav-panel-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.nav-panel-hint {
  font-size: 11.5px; font-weight: 400; color: var(--muted);
  margin-top: 2px;
}

.burger {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.burger:hover { background: var(--subtle); }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-menu { display: none; }
.burger[aria-expanded="true"] .icon-close { display: inline; }

.mobile-menu { display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-actions .btn-brand { display: none; }

  .mobile-menu {
    display: block;
    position: fixed; top: 60px; left: 0; right: 0; z-index: 9;
    padding: 12px 24px 20px;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease-out, opacity .2s ease-out;
  }
  .mobile-menu[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu > a {
    display: block;
    padding: 14px 4px;
    font-size: 16px; font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
  }
  .mobile-menu > a:last-of-type { border-bottom: none; }
  .mobile-menu .btn {
    display: inline-flex; width: 100%;
    margin-top: 14px; padding: 12px 18px;
    justify-content: center;
  }

  /* Dropdowns in the mobile menu collapse inline like an accordion. */
  .mobile-menu .nav-dropdown { border-bottom: 1px solid var(--border); }
  .mobile-menu .nav-trigger {
    display: flex; width: 100%;
    align-items: center; justify-content: space-between;
    padding: 14px 4px; margin: 0;
    font-size: 16px; font-weight: 500;
    color: var(--fg);
  }
  .mobile-menu .nav-panel {
    /* Override desktop absolute-positioned styles. */
    position: static; transform: none;
    min-width: 0; padding: 4px 0 12px 16px;
    background: transparent; backdrop-filter: none;
    border: none; border-radius: 0; box-shadow: none;
  }
  .mobile-menu .nav-panel::before { display: none; }
  .mobile-menu .nav-panel a {
    display: block;
    padding: 10px 4px;
    font-size: 14px; font-weight: 500;
    color: var(--muted);
    border-bottom: none;
  }
  .mobile-menu .nav-panel a:hover { color: var(--fg); }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px;
  font-weight: 500; font-size: 14px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .1s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
  background: var(--brand-gradient);
  /* Constrain the gradient to the padding box so it doesn't bleed past
     the rounded corners through the 1px transparent border on .btn —
     visible as little triangular nubs at the top-left/top-right. */
  background-clip: padding-box;
  color: #fff;
  box-shadow: var(--brand-shadow);
  font-weight: 600;
}
.btn-brand:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--subtle); color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--ink-200); }
.dark .btn-secondary:hover { background: var(--ink-800); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto;
  height: 640px; z-index: -1; opacity: 0.55; filter: blur(80px);
  background:
    radial-gradient(circle at 30% 40%, rgba(90, 0, 255, 0.45), transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(255, 0, 139, 0.4), transparent 55%),
    radial-gradient(circle at 50% 70%, rgba(255, 200, 90, 0.2), transparent 55%);
}
.dark .hero::before { opacity: 0.35; }

/* ── Animated hero (opt-in via .hero--animated) ──────────
   Mirrors the .gen-blob/.gen-canvas drift used in the SPA's generation
   skeleton (public/src/styles/index.css). Three radial-gradient blobs
   travel along different elliptical paths with staggered durations so
   the composition never lines up the same way twice. The static
   ::before blob is suppressed so the two systems don't fight. */
.hero--animated::before { display: none; }
.hero-blobs {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-blob {
  position: absolute;
  width: 65%;
  height: 75%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}
.dark .hero-blob {
  opacity: 0.45;
  mix-blend-mode: screen;
}
.hero-blob-a {
  top: -15%;
  left: -15%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--brand-from) 95%, transparent) 0%,
    transparent 65%);
  animation: hero-drift-a 9s ease-in-out infinite alternate;
}
.hero-blob-b {
  top: 5%;
  right: -20%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--brand-to) 92%, transparent) 0%,
    transparent 65%);
  animation: hero-drift-b 11s ease-in-out infinite alternate;
  animation-delay: -2s;
}
.hero-blob-c {
  bottom: -25%;
  left: 15%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--brand-accent) 85%, transparent) 0%,
    transparent 65%);
  animation: hero-drift-c 13s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes hero-drift-a {
  0%   { transform: translate(-10%, -10%) scale(1); }
  50%  { transform: translate(35%, 25%) scale(1.2); }
  100% { transform: translate(15%, 40%) scale(0.95); }
}
@keyframes hero-drift-b {
  0%   { transform: translate(5%, 15%) scale(1.1); }
  50%  { transform: translate(-25%, -10%) scale(0.9); }
  100% { transform: translate(20%, -30%) scale(1.2); }
}
@keyframes hero-drift-c {
  0%   { transform: translate(0, 15%) scale(1.05); }
  50%  { transform: translate(30%, -30%) scale(0.85); }
  100% { transform: translate(-20%, 25%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-gradient-soft);
  border: 1px solid color-mix(in oklab, var(--brand-from) 20%, transparent);
  font-size: 12px; color: var(--fg); font-weight: 500;
  margin-bottom: 22px;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-gradient);
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 18px; line-height: 1.05;
}
.hero p.lead {
  max-width: 660px; margin: 0 auto 32px;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 18px);
}
.hero .cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero .small { margin-top: 22px; font-size: 12px; color: var(--muted); }

/* ── Sections ────────────────────────────────────────── */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-gradient-soft);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--brand-from) 65%, var(--fg));
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px;
}
.section-head p { color: var(--muted); margin: 0 auto; font-size: 15px; max-width: 640px; }

/* ── Card grid base ──────────────────────────────────── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--ink-300);
}
.dark .card:hover { border-color: var(--ink-700); }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-gradient-soft);
  color: var(--brand-from);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.dark .card .icon {
  color: color-mix(in oklab, var(--brand-to) 50%, var(--ink-100));
}
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ── Models (grouped) ────────────────────────────────── */
/* ── Model category tabs ─────────────────────────────── */
.model-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px;
  margin: 0 auto 28px;
  padding: 4px;
  max-width: 100%;
}
@media (max-width: 768px) {
  /* Horizontal scroll on narrow screens — wrapping pills look messy. */
  .model-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    /* Hide the scrollbar but keep behaviour. */
    scrollbar-width: none;
  }
  .model-tabs::-webkit-scrollbar { display: none; }
}
.model-tab {
  flex: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.model-tab:hover {
  background: var(--subtle);
  color: var(--fg);
}
.model-tab.is-active {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--brand-from) 50%, transparent);
}

.models-groups { display: grid; gap: 28px; }
.model-group h3 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.model-group h3::after {
  content: '';
  flex: 1; height: 1px; background: var(--border);
}
.model-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.model-card {
  /* Per-card brand vars. Default to the site brand (violet → pink) so
     cards without an override (e.g. on landing pages where models are
     listed plainly) still look correct. The home page model cards set
     --card-from / --card-to inline to colour the cost badge, the top
     stripe, and the hover border. */
  --card-from: var(--brand-from);
  --card-to:   var(--brand-to);

  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  /* Reset for <a class="model-card"> on the home page so the card looks
     identical whether it's a link or a plain div. */
  display: block; color: inherit; text-decoration: none;
}
/* 2-px brand-gradient stripe at the very top of each card. Sits above
   the border, picks up the per-card colours via the CSS vars. */
.model-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--card-from), var(--card-to));
  opacity: 0.85;
  transition: opacity .15s, height .15s;
}
.model-card:hover::before { opacity: 1; height: 3px; }
.model-card:hover {
  border-color: color-mix(in oklab, var(--card-from) 35%, var(--border));
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 12px 28px -10px color-mix(in oklab, var(--card-from) 25%, transparent);
}
.model-card .head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
}
.model-card .name {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.25;
}
.model-card .provider {
  font-size: 11px; color: var(--muted); margin-top: 3px;
}
.model-card .cost {
  display: inline-flex; align-items: center; gap: 4px;
  flex: none;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(45deg, var(--card-from) 0%, var(--card-to) 100%);
  color: #fff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px -2px color-mix(in oklab, var(--card-from) 40%, transparent);
}
.model-card p {
  font-size: 12.5px; color: var(--muted);
  margin: 10px 0 0; line-height: 1.55;
}

/* ── Personas ────────────────────────────────────────── */
.personas-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Tariffs ─────────────────────────────────────────── */
.tariffs-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 960px; margin: 0 auto;
}
.tariff {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.tariff:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tariff.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--brand-gradient) border-box;
  border: 2px solid transparent;
  box-shadow: var(--brand-shadow);
}
.tariff .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.tariff h3 {
  font-size: 32px; font-weight: 800; margin: 0 0 2px;
  letter-spacing: -0.02em;
}
.tariff .size-label { color: var(--muted); font-size: 13px; }
.tariff .price {
  margin-top: 14px;
  font-size: 24px; font-weight: 700;
}
.tariff .per-credit {
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; margin-top: 2px;
}
.tariff .discount {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(16, 185, 129, 0.14); color: rgb(4, 120, 87);
}
.dark .tariff .discount { color: rgb(110, 231, 183); background: rgba(16, 185, 129, 0.2); }
.tariff ul {
  list-style: none; padding: 0; margin: 18px 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--fg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.tariff ul li {
  display: flex; align-items: center; gap: 8px;
}
.tariff ul li svg { color: var(--brand-from); flex: none; }
.dark .tariff ul li svg { color: color-mix(in oklab, var(--brand-to) 50%, var(--ink-100)); }
.tariff .cta {
  margin-top: auto;
  text-align: center;
}
.tariff .cta a {
  display: block; width: 100%;
  padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  background: var(--ink-900); color: #fff;
  transition: background .15s;
}
.tariff.popular .cta a { background: var(--brand-gradient); box-shadow: var(--brand-shadow); }
.dark .tariff .cta a { background: #fff; color: var(--ink-900); }
.dark .tariff.popular .cta a { background: var(--brand-gradient); color: #fff; }
.tariff .cta a:hover { filter: brightness(1.08); }

.tariffs-note {
  max-width: 720px; margin: 28px auto 0;
  padding: 14px 18px; border-radius: 12px;
  background: var(--brand-gradient-soft);
  border: 1px solid color-mix(in oklab, var(--brand-from) 15%, transparent);
  text-align: center; font-size: 13px; color: var(--fg);
}

/* ── Why (improved) ──────────────────────────────────── */
.why-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.why-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.why-item .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-gradient);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--brand-shadow);
}
.why-item h3 {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.why-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: color-mix(in oklab, var(--brand-from) 30%, var(--border)); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-left: 14px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p {
  margin: 0; padding: 0 20px 18px;
  color: var(--muted); font-size: 14px; line-height: 1.6;
}

/* ── CTA band ────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 28px; padding: 60px 24px;
  box-shadow: var(--brand-shadow);
}
.cta-band::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, 0.85); margin: 0 auto 28px; font-size: 16px;
  max-width: 520px;
}
.cta-band .btn {
  position: relative;
  background: #fff; color: var(--ink-900);
  font-size: 15px; padding: 12px 26px;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
}
.cta-band .btn:hover { background: var(--ink-100); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  color: var(--muted); font-size: 13px;
}
.footer-grid {
  display: grid;
  /* Brand column gets 1.4fr so the tagline has room; the three link
     columns share the rest equally. */
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col { min-width: 0; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.footer-brand .logo { width: 26px; height: 26px; display: inline-flex; }
.footer-brand .logo svg { width: 100%; height: 100%; display: block; }
.footer-tagline {
  margin: 0; max-width: 320px;
  color: var(--muted); font-size: 13px; line-height: 1.55;
}
.footer-title {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg);
}
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-links a, .footer-links button {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--fg); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  font-size: 12px; color: var(--muted);
}
.footer-bottom-spacer { color: var(--ink-300); }
.dark .footer-bottom-spacer { color: var(--ink-700); }

@media (max-width: 768px) {
  .site-footer { padding: 40px 0 24px; margin-top: 40px; }
  .footer-grid {
    /* Brand stretches full-width above the link columns; the three link
       columns split evenly. */
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-tagline { max-width: 100%; }
}

/* Legacy class kept for the support modal trigger button — used inline
   inside <li> in the new footer markup, retains its zero-padding reset. */
.footer-link {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-align: left;
}
.footer-link:focus-visible {
  outline: 2px solid var(--brand-from); outline-offset: 2px; border-radius: 2px;
}

/* ── Support modal ───────────────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 9, 11, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  width: 100%; max-width: 420px;
  text-align: center;
}
.modal-dialog h3 {
  margin: 0 0 8px; font-size: 20px; font-weight: 600;
}
.modal-dialog p {
  margin: 0 0 20px; color: var(--muted); font-size: 14px;
}
.modal-email {
  display: inline-block;
  padding: 12px 20px; border-radius: 12px;
  background: var(--brand-gradient); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: var(--brand-shadow);
  transition: filter .15s ease;
}
.modal-email:hover { filter: brightness(1.08); }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  background: none; border: 0; padding: 0;
  font-size: 24px; line-height: 1; color: var(--muted);
  cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: var(--subtle); color: var(--fg); }

@media (max-width: 640px) {
  .hero { padding: 72px 0 56px; }
  section { padding: 60px 0; }
  .cta-band { padding: 48px 20px; border-radius: 20px; }
}
