/* Shared styles for the secondary pages (pricing, privacy, terms).
   index.html keeps its own inline copy of the same tokens. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ebebef;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #d2d2d7;
  --accent: #0067c0;
  --accent-hover: #005ba8;
  --accent-text: #0060b3;
  --key-bg: #ffffff;
  --ok-bg: #dff3e8;
  --ok-text: #1a7f4b;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --surface: #161618; --surface-2: #202023; --text: #f5f5f7; --muted: #a1a1a6;
    --soft: #8a8a90; --line: rgba(255, 255, 255, 0.09); --line-strong: #38383b; --accent: #2b88d8;
    --accent-hover: #3a94e0; --accent-text: #6cb6ff; --key-bg: #222225; --ok-bg: #173826; --ok-text: #6fd59b;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --surface: #161618; --surface-2: #202023; --text: #f5f5f7; --muted: #a1a1a6;
  --soft: #8a8a90; --line: rgba(255, 255, 255, 0.09); --line-strong: #38383b; --accent: #2b88d8;
  --accent-hover: #3a94e0; --accent-text: #6cb6ff; --key-bg: #222225; --ok-bg: #173826; --ok-text: #6fd59b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 32px, 72rem); margin-inline: auto; }
.narrow { width: min(100% - 32px, 46rem); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; list-style: none; font-size: .875rem; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface);
  display: inline-grid; place-items: center; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: .875rem; font-weight: 500; transition: background .15s; }
.pill:hover { background: var(--accent-hover); }

/* Buttons and type */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-size: 1rem; font-weight: 500; transition: background .15s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); color: var(--accent-text); }
.btn-ghost:hover { background: var(--line-strong); }
.page-hero { text-align: center; padding: 80px 0 56px; }
.two-tone { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.two-tone span { color: var(--soft); display: block; }
.page-hero p.lede { max-width: 34rem; margin: 20px auto 0; color: var(--muted); font-size: 1.125rem; text-wrap: balance; }
.section { padding: 112px 0 0; }
.head { text-align: center; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 600; }
.head h2 span { color: var(--soft); display: block; }
.head p { margin: 14px auto 0; max-width: 32rem; color: var(--muted); }
.badge { font-size: .72rem; font-weight: 600; color: var(--ok-text); background: var(--ok-bg); padding: 3px 9px; border-radius: 999px; }

/* Price card */
.price {
  background: var(--surface); border-radius: 26px; padding: 44px; display: grid;
  grid-template-columns: 1fr 1.35fr; gap: 48px;
}
.price h3 { font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.amount { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; }
.amount sup { font-size: 1.6rem; font-weight: 500; margin-top: 10px; }
.amount strong { font-size: 5.5rem; line-height: 1; font-weight: 600; letter-spacing: -0.05em; }
.amount .was { display: flex; flex-direction: column; align-self: flex-end; margin-bottom: 10px; font-size: .95rem; color: var(--muted); line-height: 1.3; }
.amount .was s { color: var(--soft); }
.price p.note { color: var(--muted); margin-top: 14px; font-size: .95rem; }
.price .buy { display: grid; gap: 10px; margin-top: 28px; max-width: 22rem; }
.price .req { margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.incl h4 { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.incl ul { list-style: none; display: grid; gap: 7px; font-size: .925rem; }
.incl li { display: flex; gap: 9px; align-items: baseline; }
.incl li::before {
  content: ""; width: 12px; height: 7px; border-left: 1.7px solid var(--accent-text); border-bottom: 1.7px solid var(--accent-text);
  transform: rotate(-45deg) translateY(-3px); flex: none;
}

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq .side h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 600; }
.faq .side h2 span { color: var(--soft); display: block; }
.faq .side p { margin-top: 16px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 40rem; }

/* Legal documents */
.doc-meta { color: var(--muted); font-size: .875rem; margin-top: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 56px; }
.summary-grid div { background: var(--surface); border-radius: 16px; padding: 20px; }
.summary-grid b { display: block; font-weight: 600; margin-bottom: 4px; }
.summary-grid span { color: var(--muted); font-size: .9rem; }
.legal { padding-bottom: 40px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 600; margin: 44px 0 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: ui-monospace, Consolas, monospace; font-size: .86em; background: var(--surface); padding: 2px 6px; border-radius: 5px; color: var(--text); word-break: break-all; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; }
.toc { background: var(--surface); border-radius: 16px; padding: 20px 24px; }
.toc h4 { font-size: .8125rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.toc ol { margin-left: 18px; display: grid; gap: 4px; font-size: .925rem; }
.toc a:hover { color: var(--accent-text); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 30rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; color: var(--text); font-size: .8125rem; }
.legal td { color: var(--muted); }

/* Final CTA + footer */
.final { text-align: center; padding: 130px 0 110px; }
.final img { width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 26px; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.final .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { margin-top: 16px; font-size: .8125rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: .8125rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; }
.foot-links a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .price, .incl, .faq, .summary-grid { grid-template-columns: 1fr; }
  .price { padding: 28px; gap: 32px; }
  .page-hero { padding: 56px 0 40px; }
  .section { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
