/* ============================================================
   CineCLI — Global Design System
   Static marketing & compliance site for www.cinecli.com
   No external dependencies. Light/Dark theme aware.
   ============================================================ */

:root {
  /* Brand */
  --brand: #5b5bf6;
  --brand-strong: #4a45e0;
  --brand-soft: #ececfe;
  --brand-grad: linear-gradient(135deg, #6d6cf8 0%, #8b6cf6 100%);

  /* Neutrals — light */
  --bg: #ffffff;
  --bg-muted: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --border: #e7e9f2;
  --border-strong: #d6d9e6;

  --text: #0f1222;
  --text-soft: #3b4051;
  --muted: #6b7184;
  --muted-2: #9298a8;

  /* Accents */
  --green: #1aab6b;
  --amber: #f0a13a;
  --red: #e0506b;
  --blue: #3a82f0;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16, 18, 34, .05);
  --shadow: 0 6px 24px rgba(20, 22, 48, .07);
  --shadow-lg: 0 18px 50px rgba(20, 22, 48, .12);
  --ring: 0 0 0 4px rgba(91, 91, 246, .16);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #0c0e16;
  --bg-muted: #0f111b;
  --surface: #141725;
  --surface-2: #181b2b;
  --border: #262a3d;
  --border-strong: #333851;

  --text: #f2f3f8;
  --text-soft: #c7cad6;
  --muted: #9095a8;
  --muted-2: #6c7286;

  --brand-soft: #1c1d3a;
  --shadow: 0 6px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { color: var(--text-soft); }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(91,91,246,.28); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Badges / tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--border);
}
.tag-brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tag-new { background: rgba(26,171,107,.12); color: var(--green); border-color: transparent; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-grad); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(109,108,248,.4); }
.brand .logo svg { width: 18px; height: 18px; }
.brand b { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  position: relative; color: var(--text-soft); font-weight: 500; font-size: 15px;
  padding: 8px 13px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px;
  background: var(--brand); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto auto; width: 720px; height: 520px;
  background: radial-gradient(closest-side, rgba(124,108,246,.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { margin: 18px 0 28px; font-size: 19px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta .item .n { font-size: 24px; font-weight: 800; color: var(--text); }
.hero-meta .item .l { font-size: 13px; color: var(--muted); }

/* Search */
.searchbar {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow); margin: 26px 0 14px; max-width: 560px;
}
.searchbar svg { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.searchbar input { flex: 1; border: none; background: transparent; font-size: 16px; color: var(--text); padding: 8px 4px; }
.searchbar input:focus { outline: none; }
.searchbar input::placeholder { color: var(--muted-2); }
.pop-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.pop-search .chip { background: var(--surface-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; color: var(--text-soft); font-weight: 500; cursor: default; }

/* Hero illustration */
.hero-art {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #f0f0ff 0%, #f7f0ff 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden;
}
[data-theme="dark"] .hero-art { background: linear-gradient(160deg, #171833 0%, #1d1730 100%); }
.hero-art .window { position: absolute; inset: 26px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.hero-art .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.hero-art .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-art .reel { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 14px; }
.hero-art .reel span { aspect-ratio: 9/16; border-radius: 8px; background: var(--brand-grad); opacity: .85; }
.hero-art .reel span:nth-child(2){ opacity:.6; } .hero-art .reel span:nth-child(3){ opacity:.4; }
.hero-art .reel span:nth-child(4){ opacity:.5; } .hero-art .reel span:nth-child(5){ opacity:.75; } .hero-art .reel span:nth-child(6){ opacity:.35; }
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
}
.float-badge .dot { width: 9px; height: 9px; border-radius: 50%; }
.float-badge.b1 { top: 8px; right: -6px; }
.float-badge.b2 { bottom: 18px; left: -10px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; color: #fff; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14.5px; margin-bottom: 14px; }
.card-foot { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.card-foot .stat { display: inline-flex; align-items: center; gap: 5px; }
.card-foot svg { width: 15px; height: 15px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* gradient icon palettes */
.g-violet { background: linear-gradient(135deg,#6d6cf8,#8b6cf6); }
.g-pink { background: linear-gradient(135deg,#f06ca6,#f78d6c); }
.g-blue { background: linear-gradient(135deg,#3a82f0,#5bc0f6); }
.g-green { background: linear-gradient(135deg,#1aab6b,#5bd6a0); }
.g-amber { background: linear-gradient(135deg,#f0a13a,#f6cf5b); }
.g-slate { background: linear-gradient(135deg,#4a5170,#6b7184); }

/* ============================================================
   Two-column directory layout (home main)
   ============================================================ */
.dir { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tabs a { padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }

.rail { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 18px); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.rank { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.rank:last-child { border-bottom: none; }
.rank .num { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.rank.top .num { background: var(--brand-soft); color: var(--brand); }
.rank .t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.rank .s { font-size: 12.5px; color: var(--muted); }
.panel-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; }

/* ============================================================
   Feature strip / stats bar
   ============================================================ */
.feature-strip { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.feature-strip .grid { gap: 18px; }
.fstrip-item { display: flex; gap: 13px; align-items: flex-start; }
.fstrip-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.fstrip-item .ic svg { width: 20px; height: 20px; color: var(--brand); }
.fstrip-item .t { font-weight: 700; font-size: 15px; color: var(--text); }
.fstrip-item .d { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   Generic content (legal / docs pages)
   ============================================================ */
.page-head { padding: 56px 0 30px; border-bottom: 1px solid var(--border); background: var(--bg-muted); }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 44px; }
.prose h3 { font-size: 18px; margin-top: 30px; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: 14px; color: var(--muted); }
.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  background: var(--surface-2); border-radius: 10px; padding: 16px 18px; margin: 22px 0;
}
.callout strong { color: var(--text); }
.toc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 5px; }

/* Tables */
table.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.tbl th { font-weight: 700; color: var(--text); background: var(--surface-2); }
table.tbl td { color: var(--text-soft); }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card .amt { font-size: 40px; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-card .amt span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 11px; flex: 1; }
.price-feats li { display: flex; gap: 9px; font-size: 14.5px; color: var(--text-soft); }
.price-feats svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--brand-grad); border-radius: var(--radius-lg); padding: 52px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f0f0ff; color: var(--brand-strong); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg-muted); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text-soft); font-size: 14.5px; }
.footer ul a:hover { color: var(--brand); }
.footer .about p { font-size: 14px; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a { color: var(--muted); }
.footer-bottom .legal-links a:hover { color: var(--brand); }
.compliance-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.compliance-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 8px; }
.compliance-badge svg { width: 15px; height: 15px; color: var(--brand); }

/* ============================================================
   Misc
   ============================================================ */
.notice { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; font-size: 14.5px; }
.kv dt { font-weight: 600; color: var(--text); }
.kv dd { margin: 0; color: var(--text-soft); }
.divider-label { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 30px 0; }
.divider-label::before, .divider-label::after { content: ""; height: 1px; background: var(--border); flex: 1; }

.logo-cloud { display: flex; gap: 38px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: .8; }
.logo-cloud span { font-weight: 700; font-size: 17px; color: var(--muted); letter-spacing: -.01em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 480px; }
  .dir { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: repeat(2,1fr); display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 12px 24px 18px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px; border-radius: 8px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero-meta { gap: 18px; }
  .sign-in-btn { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 12px; }
}

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

/* ============================================================
   v1.1 — US SaaS conventions: a11y, social proof, US legal UX
   ============================================================ */

/* Skip-to-content (ADA / WCAG) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px; transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; box-shadow: var(--ring); }

/* Microcopy under CTAs */
.cta-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; }
.cta-note svg { width: 15px; height: 15px; color: var(--green); }

/* Trusted-by row */
.trusted { text-align: center; }
.trusted .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }

/* Star rating inline */
.stars { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.stars .s { color: var(--amber); letter-spacing: 1px; }

/* Metric band */
.metric-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.metric .n { font-size: clamp(30px,4vw,44px); font-weight: 800; letter-spacing: -.03em; }
.metric .l { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: 18px; }
.quote-card .stars { margin-bottom: -4px; }
.quote-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.quote-card blockquote::before { content: "\201C"; }
.quote-card blockquote::after { content: "\201D"; }
.q-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.q-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.q-author .nm { font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.2; }
.q-author .rl { font-size: 13px; color: var(--muted); }

/* FAQ accordion (native details/summary) */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 650; font-size: 16.5px; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
.faq details > div { padding: 0 4px 20px; color: var(--text-soft); font-size: 15px; }
.faq details > div p { margin: 0; }

/* Billing toggle (monthly / annual) */
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 16px; }
.billing-toggle .opt { font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.billing-toggle .opt.active { color: var(--text); }
.switch { width: 48px; height: 27px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; border: none; flex: none; transition: background .2s ease; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="true"] .knob { transform: translateX(21px); }
.save-badge { font-size: 12.5px; font-weight: 700; color: var(--green); background: rgba(26,171,107,.12); padding: 4px 10px; border-radius: 999px; }
.price-card .period-annual { display: none; }
[data-billing="annual"] .price-card .period-monthly { display: none; }
[data-billing="annual"] .price-card .period-annual { display: inline; }

/* Cookie consent banner (CCPA/GDPR-aware) */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 95; width: min(440px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 20px 22px; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h4 { font-size: 15px; margin-bottom: 6px; }
.cookie-banner p { font-size: 13.5px; margin-bottom: 14px; color: var(--muted); }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 16px; font-size: 14px; }

/* Footer newsletter + social */
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-cta h4 { font-size: 19px; margin-bottom: 4px; }
.footer-cta p { font-size: 14px; margin: 0; }
.newsletter { display: flex; gap: 8px; min-width: 340px; }
.newsletter input { flex: 1; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; color: var(--text); }
.newsletter input:focus { outline: none; box-shadow: var(--ring); }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.social a:hover { color: var(--brand); border-color: var(--brand); }
.social svg { width: 17px; height: 17px; }
.privacy-choices { display: inline-flex; align-items: center; gap: 6px; }
.privacy-choices svg { width: 26px; height: 13px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .metric-band { grid-template-columns: repeat(2,1fr); gap: 28px 16px; }
  .footer-cta { grid-template-columns: 1fr; }
  .newsletter { min-width: 0; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
