/* ─────────────────────────────────────────────────────────────────────────
   AI-Apply landing — design tokens + components.
   Single stylesheet shared by index / privacy / terms / billing pages.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-elev: #ffffff;
  --bg-mute: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: #d1fae5;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --danger: #ef4444;
  --warning: #ca8a04;
  --neutral: #6b7280;
  --grad: linear-gradient(135deg, #10b981 0%, #2563eb 100%);

  --shadow-sm: 0 1px 0 rgba(15, 23, 42, .04);
  --shadow-md: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 1px 0 rgba(15, 23, 42, .04), 0 24px 48px -16px rgba(15, 23, 42, .18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-soft: #0f1729;
    --bg-elev: #131c30;
    --bg-mute: #182339;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --border: #1e293b;
    --border-strong: #334155;
    --accent-soft: rgba(16, 185, 129, .15);
    --shadow-sm: 0 1px 0 rgba(0,0,0,.4);
    --shadow-md: 0 1px 0 rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 1px 0 rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.8);
  }
}

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

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

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

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: 14px; }
.micro { font-size: 12px; }
.mono { font-family: var(--font-mono); }

/* ─ Nav ───────────────────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 22px; height: 22px;
  background-image: url("/favicon.svg");
  background-size: contain; background-repeat: no-repeat;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:not(.btn) {
  color: var(--text-muted); font-size: 14px;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav-links a:not(.btn):hover {
  color: var(--text); background: var(--bg-mute); text-decoration: none;
}
.lang-toggle {
  background: none; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; color: var(--text-muted);
  font-family: inherit; margin-left: 4px;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-strong); }

.lang-picker-mount {
  display: inline-flex; align-items: center;
  margin-left: 4px; position: relative;
}
.lang-picker-mount::after {
  content: ""; position: absolute;
  right: 10px; top: 50%; width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 0.15s;
}
.lang-picker-mount:hover::after { border-color: var(--text); }
select.lang-picker {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 28px 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: inherit;
  line-height: 1.2;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
select.lang-picker:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-mute);
}
select.lang-picker:focus {
  outline: none;
  border-color: var(--accent);
  color: var(--text);
}
select.lang-picker option {
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text);
}

/* ─ Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover { background: var(--text-muted); text-decoration: none; }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-mute); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ─ Section ───────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.alt-bg { background: var(--bg-soft); }
section h2 {
  font-size: 36px; line-height: 1.15; margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  word-break: keep-all;  /* don't split mid-word in CJK */
  overflow-wrap: anywhere;  /* but allow break when text exceeds container (ja/zh have no spaces) */
}
.hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
/* Japanese/Chinese have no inter-word spaces, so keep-all would never wrap.
   Use normal word-break so the browser can wrap between any characters. */
:lang(ja) .hero h1, :lang(zh-CN) .hero h1,
:lang(ja) section h2, :lang(zh-CN) section h2 { word-break: normal; }
section .section-lead {
  font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 0 48px 0;
}

/* ─ Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-grid > * { min-width: 0; }  /* prevent grid items from blowing out column with long CJK text */
.hero h1 {
  font-size: 56px; line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 19px; color: var(--text-muted); max-width: 560px;
  margin: 0 0 28px 0;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.hero-fineprint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-subtle);
}
.hero-fineprint .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-subtle); }

/* ─ Email mock ────────────────────────────────────────────────────────── */
.email-mock {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-sans);
}
.email-meta {
  padding: 10px 16px;
  background: var(--bg-mute);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-subtle);
  display: flex; gap: 10px; align-items: center;
}
.email-subject {
  padding: 14px 18px 6px 18px;
  font-weight: 600; font-size: 15px; color: var(--text);
}
.email-subject .subject-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.04em;
  background: var(--accent-soft); color: var(--accent-hover);
  padding: 2px 8px; border-radius: var(--radius-sm); margin-right: 8px;
  vertical-align: middle; font-weight: 700;
}
.email-body { padding: 6px 18px 20px 18px; }
.email-body h3 { font-size: 18px; margin: 8px 0 4px 0; }
.email-company { color: var(--text-muted); margin: 0 0 12px 0; font-size: 14px; }
.email-badge {
  display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: #fff;
  background: var(--accent);
}
.email-badge.review { background: var(--warning); }
.email-badge.skip   { background: var(--neutral); }
.email-actions {
  margin: 14px 0 6px 0; display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
}
.email-apply {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary); color: #fff;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
}
.email-apply:hover { background: var(--primary-hover); text-decoration: none; }
.email-posting { color: var(--primary); font-size: 14px; }
.email-section { margin-top: 12px; }
.email-section h4 {
  font-size: 11px; margin: 10px 0 4px 0;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle);
}
.email-section ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-muted); }
.email-section ul li { padding: 1px 0; }
.email-section p { font-size: 14px; color: var(--text-muted); margin: 4px 0 0 0; }
.email-breakdown {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-subtle);
  background: var(--bg-mute); border-radius: var(--radius-sm);
  padding: 2px 6px; margin-right: 6px;
}

/* Score breakdown — 4 horizontal bars (Skills/Exp/Domain/Role). */
.score-breakdown {
  display: flex; flex-direction: column;
  gap: 7px; margin: 6px 0 2px 0;
}
.sb-row {
  display: grid;
  grid-template-columns: 70px 1fr 78px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.sb-label { color: var(--text-subtle); }
.sb-track {
  background: var(--bg-mute);
  height: 6px; border-radius: 3px;
  overflow: hidden;
}
.sb-fill { height: 100%; border-radius: 3px; }
.sb-skills { background: #10b981; }
.sb-exp    { background: #2563eb; }
.sb-domain { background: #8b5cf6; }
.sb-role   { background: #f59e0b; }
.sb-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sb-value .sb-of { color: var(--text-subtle); }
.email-footer {
  padding: 10px 18px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-subtle); background: var(--bg-soft);
}

/* ─ Proof strip ───────────────────────────────────────────────────────── */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-soft);
}
.proof-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px;
  font-size: 13px; color: var(--text-muted);
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.proof-item { display: inline-flex; align-items: center; gap: 8px; }
.proof-item svg { color: var(--accent); flex: none; }

/* ─ Differentiator cards ──────────────────────────────────────────────── */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.diff-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.diff-card .icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-hover);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .diff-card .icon { color: var(--accent); }
}
.diff-card h3 { font-size: 16px; margin: 0 0 6px 0; }
.diff-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ─ How it works ──────────────────────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 48px;
}
.step {
  border: 1px solid var(--border); background: var(--bg-elev);
  border-radius: var(--radius-lg); padding: 24px;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 8px 0; }
.step p  { color: var(--text-muted); margin: 0; font-size: 14px; }

.diagram-wrap {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.diagram-wrap .diagram-title {
  font-size: 13px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 14px 0;
}
.diagram-wrap svg { display: block; max-width: 100%; height: auto; }

/* ─ Sample email feature section ──────────────────────────────────────── */
.sample-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.sample-grid > * { min-width: 0; }
.sample-grid h2 { margin-bottom: 18px; }
.sample-grid ul { margin: 18px 0 0 0; padding-left: 0; list-style: none; }
.sample-grid ul li {
  position: relative; padding: 6px 0 6px 28px;
  color: var(--text-muted); font-size: 15px;
}
.sample-grid ul li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─ Pricing ───────────────────────────────────────────────────────────── */
/* Cycle-driven price toggling — body[data-cycle] hides the inactive set
   on first paint, no JS-execution flash. */
body[data-cycle="monthly"] [data-cycle="annual"],
body[data-cycle="annual"]  [data-cycle="monthly"] {
  display: none;
}
.cycle-toggle {
  display: inline-flex; gap: 4px;
  background: var(--bg-mute); padding: 4px;
  border-radius: var(--radius-pill); margin-bottom: 36px;
}
.cycle-toggle button {
  background: transparent; border: 0; cursor: pointer;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  font-family: inherit;
}
.cycle-toggle button.active {
  background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm);
}
.cycle-toggle .save-badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-hover);
  font-size: 11px; padding: 1px 6px; border-radius: var(--radius-pill); margin-left: 6px;
  font-weight: 700;
}

.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.price-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-card .recommended {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.price-card h3 { font-size: 20px; margin: 0 0 4px 0; }
.price-card .tier-tagline {
  color: var(--text-subtle); font-size: 13px; margin: 0 0 18px 0;
}
.price-card .price-row {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px;
}
.price-card .price-num {
  font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.price-card .price-period { color: var(--text-subtle); font-size: 14px; }
.price-card .price-equiv {
  color: var(--text-subtle); font-size: 12px;
  min-height: 16px; margin: 0 0 18px 0;
}
.price-card .key-spec {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 14px; background: var(--bg-mute);
  border-radius: var(--radius-md); margin-bottom: 16px;
}
.price-card .key-spec .spec-num {
  font-size: 22px; font-weight: 700; color: var(--text);
}
.price-card .key-spec .spec-label {
  font-size: 13px; color: var(--text-muted);
}
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 22px 0; flex: 1;
}
.price-card ul li {
  padding: 5px 0 5px 22px; position: relative; font-size: 14px;
  color: var(--text-muted);
}
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-card .cta { width: 100%; }

/* Pricing comparison table */
.compare-wrap {
  margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); overflow: hidden;
}
.compare {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compare th, .compare td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-size: 13px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-soft); font-weight: 600;
}
.compare tbody th {
  font-weight: 500; color: var(--text-muted); width: 36%;
}
.compare tbody td { color: var(--text); font-variant-numeric: tabular-nums; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .col-featured { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare .check { color: var(--accent); }
.compare .dash  { color: var(--text-subtle); }

/* ─ Coverage matrix ───────────────────────────────────────────────────── */
.coverage-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.coverage-wrap > * { min-width: 0; }
.coverage-wrap .coverage-text h2 { margin-top: 0; }
.coverage-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); overflow: hidden;
}
.coverage-table th, .coverage-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  text-align: center; font-size: 14px;
}
.coverage-table th:first-child, .coverage-table td:first-child {
  text-align: left; color: var(--text-muted);
}
.coverage-table thead th {
  background: var(--bg-soft); font-size: 12px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.coverage-table tr:last-child td { border-bottom: 0; }
.coverage-table .yes { color: var(--accent); font-weight: 700; }
.coverage-table .no  { color: var(--text-subtle); }

/* Region list (replaces coverage matrix) */
.region-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.region-list li {
  position: relative; padding: 10px 16px 10px 36px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 14px; color: var(--text);
}
.region-list li::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ─ FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elev); margin-bottom: 10px;
  padding: 16px 20px;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; color: var(--text-subtle); font-weight: 400;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); margin: 12px 0 0 0; font-size: 15px; }
.faq details p strong { color: var(--text); }

/* ─ Footer ────────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px 0; background: var(--bg-soft);
}
.site-footer-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand { font-size: 16px; }
.site-footer .footer-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
}
.site-footer .footer-links a { color: var(--text-muted); }
.site-footer .footer-links a:hover { color: var(--text); }
.site-footer .copy {
  width: 100%; color: var(--text-subtle); font-size: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
}

/* ─ Legal pages (privacy / terms) ─────────────────────────────────────── */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 36px; margin: 0 0 6px 0; letter-spacing: -0.02em; }
.legal h2 {
  font-size: 20px; margin: 36px 0 12px 0;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.legal p { color: var(--text-muted); }
.legal ul { padding-left: 18px; color: var(--text-muted); }
.legal ul li { padding: 3px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--primary); }
.legal .meta {
  display: inline-block; font-size: 13px; color: var(--text-subtle);
  padding: 4px 10px; background: var(--bg-mute);
  border-radius: var(--radius-pill); margin-bottom: 24px;
}

/* ─ Standalone billing pages ──────────────────────────────────────────── */
.billing-page {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.billing-box {
  max-width: 480px; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 36px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.billing-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-hover);
}
.billing-box h1 {
  font-size: 24px; margin: 0 0 10px 0; letter-spacing: -0.01em;
}
.billing-box p { color: var(--text-muted); margin: 6px 0; }
.billing-steps {
  text-align: left; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; margin: 22px 0 18px; list-style: none;
  counter-reset: step;
}
.billing-steps li {
  padding: 6px 0; font-size: 14px; color: var(--text-muted);
  display: flex; gap: 12px; align-items: flex-start;
  counter-increment: step;
}
.billing-steps li::before {
  content: counter(step);
  flex: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg-mute); color: var(--text-subtle);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.billing-cta {
  display: inline-block; margin-top: 8px;
  background: var(--text); color: var(--bg);
  padding: 12px 24px; border-radius: var(--radius-md);
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.billing-cta:hover { background: var(--text-muted); text-decoration: none; }

/* ─ Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .sample-grid, .coverage-wrap { grid-template-columns: 1fr; gap: 36px; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid  { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 44px; }
  section h2 { font-size: 28px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px; gap: 4px;
  }
  .nav-links.open a:not(.btn) { width: 100%; padding: 10px 8px; }
  .nav-links.open .lang-toggle { margin: 8px 0 0; }

  .diff-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 560px; }
}
