/* Localyze.ai — v1 design language restored.
   Apple-inspired neutrals, iOS green primary, logo greens as accents.
   Same class names as the minimalist build so all pages inherit the look. */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #E5E5EA;
  --hairline: #D2D2D7;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --primary: #34C759;
  --primary-strong: #1FAF45;
  --primary-soft: #E7F8EC;

  --logo-1: #98F23D;
  --logo-2: #36D431;
  --logo-3: #15952B;
  --logo-4: #0B5A24;
  --logo-deep: #061A13;
  --danger: #FF3B30;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --hairline: #2C2C2E;
    --ink: #F5F5F7;
    --muted: #98989D;
    --primary: #30D158;
    --primary-strong: #34C759;
    --primary-soft: #0E2A18;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.4);
    --shadow-lg: 0 28px 72px rgba(0,0,0,0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --hairline: #2C2C2E;
  --ink: #F5F5F7;
  --muted: #98989D;
  --primary: #30D158;
  --primary-strong: #34C759;
  --primary-soft: #0E2A18;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.4);
  --shadow-lg: 0 28px 72px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand img { width: 32px; height: 32px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: .85;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { text-decoration: none; opacity: 0.92; }
.theme-toggle {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
  width: 36px; height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.theme-toggle:hover { background: var(--surface-2); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 64px; right: 16px; left: 16px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    color: var(--ink); cursor: pointer;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(152, 242, 61, 0.18), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, rgba(54, 212, 49, 0.14), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--logo-2), var(--logo-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(52,199,89,0.25);
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin: 8px 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-trust strong { color: var(--ink); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--primary); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.device-frame {
  width: 320px;
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: linear-gradient(180deg, #1C1C1E, #000);
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  overflow: hidden;
}
.device-frame::after {
  content: "";
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px;
  background: #000;
  z-index: 2;
}
.device-frame img {
  width: 100%; height: 100%;
  border-radius: 32px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.device-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: var(--bg);
  color: var(--ink);
  padding: 44px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.chip {
  align-self: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.4;
}
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--hairline); }
.msg.typing { font-style: italic; color: var(--muted); background: transparent; border: none; padding: 6px 0; }

/* ---- Trust row (kept for back-compat with new minimalist sections) ---- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px 48px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row strong { color: var(--ink); font-weight: 700; }

/* ---- Sections ---- */
section { padding: 72px 0; }
section h2 { text-align: center; max-width: 720px; margin: 0 auto 12px; }
section .sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---- Privacy pitch ---- */
.privacy-pitch {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(52,199,89,0.10), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }
.pcard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pcard .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pcard h3 { font-size: 1.05rem; margin: 0 0 6px; }
.pcard p  { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.fcard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fcard .badge,
.fcard .icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--logo-1), var(--logo-2));
  color: #062813;
  margin-bottom: 4px;
}
.fcard h3 { font-size: 1.1rem; margin: 0; }
.fcard p  { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step .num {
  position: absolute;
  top: -14px; left: 24px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.step p  { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Comparison table ---- */
.compare-wrap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.compare th { font-weight: 700; color: var(--ink); background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--primary-strong); font-weight: 700; }
.compare .no  { color: var(--danger); font-weight: 700; }
.compare .col-us { background: rgba(52,199,89,0.06); }

/* ---- Download cards ---- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .dl-grid { grid-template-columns: 1fr; } }
.dcard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.dcard .logo {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--ink);
  margin-bottom: 8px;
}
.dcard h3 { margin: 0; font-size: 1.1rem; }
.dcard p  { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.dcard .meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.dcard .btn { width: 100%; margin-top: 12px; }
.dcard.suggested {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52,199,89,0.12);
}
.dcard.soon { opacity: 0.78; }
.dcard.soon:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--hairline); opacity: 0.92; }
.dcard.soon .btn {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}
.dcard .soon-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dcard { position: relative; }
.coming-soon-banner {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--hairline);
  color: var(--primary-strong);
  text-align: center;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
}
.coming-soon-banner a { color: var(--ink); text-decoration: underline; }
.suggested-pill {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ---- Screenshot gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
}
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gshot {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gshot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gshot img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}
.gshot h3 { margin: 0 0 4px; font-size: 1.02rem; }
.gshot p  { margin: 0; color: var(--muted); font-size: 0.92rem; }
.gallery-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 760px) { .gallery-wide { grid-template-columns: 1fr; } }
.gshot-wide {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.gshot-wide img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.gshot-wide h3 { margin: 0 0 4px; font-size: 1.02rem; }
.gshot-wide p  { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Resource cards ---- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .resource-grid { grid-template-columns: 1fr; } }
.rcard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--ink) !important;
  text-decoration: none !important;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.rcard .tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 8px;
}
.rcard h3 { margin: 0 0 6px; font-size: 1.02rem; }
.rcard p  { margin: 0; color: var(--muted); font-size: 0.9rem; }
.rcard .arrow { margin-top: 12px; color: var(--primary-strong); font-weight: 700; font-size: 0.9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.tier {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tier:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tier.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(52,199,89,0.12), var(--shadow-md);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(52,199,89,0.08), transparent 60%),
    var(--surface);
}
.tier .ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.tier h3 { font-size: 1.25rem; margin: 0 0 4px; }
.tier .tier-tag {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.tier .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.tier .price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier .price .unit {
  color: var(--muted);
  font-size: 0.95rem;
}
.tier .price-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0 24px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}
.tier li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--primary-soft);
  border-radius: 999px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='%231FAF45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.tier .btn { width: 100%; }
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 28px;
}

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--logo-deep) 0%, #0F3B1F 50%, var(--logo-3) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 80% 20%, rgba(152,242,61,0.25), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }
.cta-banner .btn-primary { background: #fff; color: var(--logo-deep); }
.cta-banner .btn-primary:hover { background: #f3f3f3; }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 32px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-weight: 800; color: var(--ink); font-size: 1.05rem;
}
.footer-brand img { width: 28px; height: 28px; }
.footer-tag { max-width: 320px; }

/* ---- Doc pages (privacy, terms, blog) ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.doc h1 { margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; font-size: 0.92rem; }
.doc h2 { font-size: 1.4rem; margin-top: 36px; }
.doc h3 { font-size: 1.1rem; margin-top: 24px; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

/* ---- Misc ---- */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
