/* ==========================================================================
   Atomic Site Manager — Marketing Website
   Brand tokens mirror the plugin's admin UI (assets/css/admin.css):
   flat surfaces, no gradients, #007FFF accent, DM Sans + Fraunces + Plex Mono.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Surfaces */
  --bg:            #f3f6f8;
  --surface:       #ffffff;
  --surface-muted: #e8eef2;
  --dark:          #081a29;
  --dark-2:        #0f2839;
  --dark-3:        #16394f;

  /* Ink */
  --fg:            #0f1c24;
  --fg-muted:      #5a6b76;
  --fg-faint:      #8a99a3;
  --fg-on-dark:    #eef5f9;
  --fg-on-dark-mut:#9ab0be;

  /* Line */
  --border:        #d0dbe3;
  --border-soft:   #e2eaf0;
  --border-dark:   #1e4055;

  /* Brand */
  --accent:        #007fff;
  --accent-hover:  #006bd6;
  --accent-soft:   #e6f3ff;
  --accent-ring:   rgba(0, 127, 255, 0.28);
  --magenta:       #da016c;
  --magenta-soft:  #fdeaf3;

  /* Status */
  --success:       #1f7a45;
  --success-soft:  #e6f5ec;
  --warning:       #c47b16;
  --warning-soft:  #fdf3e3;
  --danger:        #c0392b;
  --danger-soft:   #fdecea;
  --info:          #1a6f9a;

  /* Type */
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 36, 0.06);
  --shadow:    0 8px 28px rgba(15, 28, 36, 0.07);
  --shadow-lg: 0 20px 56px rgba(15, 28, 36, 0.12);

  /* Layout */
  --container: 1180px;
  --header-h:  70px;
  --t:         0.18s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; }

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

/* ── Typography helpers ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 127, 255, 0.18);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow--plain { background: none; border: none; padding: 0; }
.eyebrow--light { color: #6fc0ff; background: rgba(0,127,255,0.14); border-color: rgba(111,192,255,0.24); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.4rem, 5.2vw, 3.85rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg-muted); line-height: 1.65; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + .lede { margin-top: 18px; }

.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section--tight { padding: 76px 0; }
.section--muted { background: var(--bg); border-block: 1px solid var(--border-soft); }
.section--dark { background: var(--dark); color: var(--fg-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: var(--fg-on-dark-mut); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-ring); }

.btn--ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn--dark { background: #fff; color: var(--dark); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.28); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.32); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--border-soft); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--fg-muted);
  transition: color var(--t), background var(--t);
}
.nav a:hover { color: var(--fg); background: var(--surface-muted); }

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

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--fg);
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background: var(--surface);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 32%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 32%, transparent 78%);
  opacity: 0.9;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 60px; align-items: center; }

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { max-width: 540px; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 26px; }

.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--fg-muted); }
.hero-notes li { display: flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* ── Mock app window ───────────────────────────────────────────────────── */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.mock-url {
  flex: 1;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 4px 12px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body { padding: 20px; }

.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-muted); background: var(--surface);
}
.pill--live { color: var(--success); background: var(--success-soft); border-color: rgba(31,122,69,0.22); }
.pill--warn { color: var(--warning); background: var(--warning-soft); border-color: rgba(196,123,22,0.24); }
.pill--info { color: var(--accent); background: var(--accent-soft); border-color: rgba(0,127,255,0.2); }
.pill--muted { color: var(--fg-faint); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }

.site-rows { display: grid; gap: 8px; }
.site-row {
  display: grid; grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--t), background var(--t);
}
.site-row:hover { border-color: var(--accent); background: var(--accent-soft); }
.site-favicon {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent);
}
.site-favicon.c2 { background: var(--magenta); }
.site-favicon.c3 { background: var(--dark-3); }
.site-favicon.c4 { background: var(--success); }
.site-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.site-meta { display: block; font-family: var(--font-mono); font-size: 11px; line-height: 1.45; color: var(--fg-faint); }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mock-stat { padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--bg); }
.mock-stat b { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.mock-stat span { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-faint); }

/* ── Stat strip ────────────────────────────────────────────────────────── */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.stat-strip > div { background: var(--surface); padding: 26px 24px; text-align: center; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--accent); line-height: 1.1; }
.stat-strip span { display: block; margin-top: 6px; font-size: 14px; color: var(--fg-muted); }

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 10px;
  background: var(--dark); color: #fff;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--fg-muted); font-size: 15px; }

.code-block {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--dark); color: #d6e6f2;
  border-radius: var(--radius); padding: 12px 14px;
  overflow-x: auto; white-space: pre;
  line-height: 1.7;
}
.code-block .c-key { color: #6fc0ff; }
.code-block .c-str { color: #8fd6a8; }
.code-block .c-dim { color: #6d8a9c; }

/* ── Feature grid ──────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(0,127,255,0.16);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; }

/* ── Split / deep-dive ─────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split + .split { margin-top: 104px; }
.split--flip .split-media { order: -1; }
.split h2 { margin-bottom: 16px; }
.split .lede { margin-bottom: 24px; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--fg-muted); }
.check-list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.check-list b { color: var(--fg); font-weight: 600; }

/* ── Command catalog ───────────────────────────────────────────────────── */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.cat-tab {
  padding: 9px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--fg-muted);
  transition: all var(--t);
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.cat-panel { display: none; }
.cat-panel.is-active { display: block; animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cmd {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--fg);
  transition: border-color var(--t), background var(--t);
}
.cmd:hover { border-color: var(--accent); background: var(--accent-soft); }
.cmd::before { content: '›'; color: var(--accent); font-weight: 700; }

/* ── Privacy / data columns ────────────────────────────────────────────── */
.data-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.data-col {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.data-col--never { border-color: rgba(31,122,69,0.4); }
.data-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 1.15rem; }
.data-col h3 svg { width: 22px; height: 22px; flex: none; }
.data-col .sub { font-size: 14px; color: var(--fg-on-dark-mut); margin-bottom: 20px; }
.data-list { display: grid; gap: 10px; }
.data-list li {
  display: grid; grid-template-columns: 16px 1fr; gap: 11px; align-items: start;
  font-size: 14.5px; color: #c9dced; line-height: 1.55;
}
.data-list svg { width: 16px; height: 16px; margin-top: 4px; flex: none; }
.data-col--sends .data-list svg { color: #6fc0ff; }
.data-col--never .data-list svg { color: #5cc98a; }

.privacy-note {
  margin-top: 24px; padding: 18px 22px;
  background: var(--dark-2); border: 1px solid var(--border-dark);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14.5px; color: var(--fg-on-dark-mut);
}
.privacy-note b { color: #fff; }

/* ── Specs ─────────────────────────────────────────────────────────────── */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.spec { background: var(--surface); padding: 22px 24px; }
.spec dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-faint); margin-bottom: 6px; }
.spec dd { font-size: 15px; font-weight: 600; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.price-card--featured { border-color: var(--accent); border-width: 2px; box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.price-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.price-desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 22px; min-height: 42px; }
.price-amount { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.price-amount b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.price-amount span { font-size: 14px; color: var(--fg-muted); }
.price-sub { font-size: 13px; color: var(--fg-faint); margin-bottom: 24px; }
.price-card .btn { width: 100%; margin-bottom: 24px; }
.price-features { display: grid; gap: 11px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.price-features li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--fg-muted); }
.price-features svg { width: 17px; height: 17px; color: var(--success); margin-top: 3px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--t); }
.faq-item.is-open { border-color: var(--accent); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; color: var(--fg);
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform var(--t); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; font-size: 15px; color: var(--fg-muted); }
.faq-a p + p { padding-top: 0; }
.faq-a code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-muted); padding: 2px 6px; border-radius: 4px; color: var(--fg); }

/* ── CTA banner ────────────────────────────────────────────────────────── */
.cta {
  background: var(--accent);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { max-width: 580px; margin: 0 auto 30px; font-size: 1.08rem; color: rgba(255,255,255,0.9); }
.cta .btn-row { justify-content: center; }
.cta-note { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,0.78); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--fg-on-dark-mut); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; margin-bottom: 52px; }
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 330px; line-height: 1.65; }
.footer-col h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border-dark);
  font-size: 13.5px;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover { color: #fff; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
/* Gated on .js so that if scripting fails, every section stays visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lede { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 14px 20px 20px;
    margin: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: var(--radius); }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions .btn--ghost { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }

  .steps, .price-grid, .data-cols { grid-template-columns: 1fr; }
  .split, .split--flip .split-media { grid-template-columns: 1fr; order: 0; }
  .split + .split { margin-top: 72px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 68px; }
  .container { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn { width: 100%; }
  .mock-stats { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Legal pages — Terms of Use / Privacy Policy
   ========================================================================== */

.legal-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 0 56px;
}
.legal-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: 16px; }
.legal-hero .lede { max-width: 660px; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.legal-meta .pill { background: var(--surface); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 64px 0 96px;
}

.legal-toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  background: var(--surface);
}
.legal-toc h2 {
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.legal-toc ol { display: grid; gap: 3px; counter-reset: toc; }
.legal-toc a {
  display: block;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--fg-muted); line-height: 1.4;
  transition: color var(--t), background var(--t);
}
.legal-toc a:hover { color: var(--accent); background: var(--accent-soft); }

.legal-body { max-width: 760px; }
.legal-body section + section { margin-top: 48px; }
.legal-body h2 {
  font-size: 1.5rem;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.legal-body h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.legal-body p { color: var(--fg-muted); margin-bottom: 15px; line-height: 1.72; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-hover); }
.legal-body strong { color: var(--fg); font-weight: 600; }
.legal-body code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--surface-muted); color: var(--fg);
  padding: 2px 6px; border-radius: 4px;
}

.legal-body ul, .legal-body ol { margin: 0 0 16px; display: grid; gap: 9px; }
.legal-body ul li {
  display: grid; grid-template-columns: 8px 1fr; gap: 14px;
  color: var(--fg-muted); line-height: 1.68;
}
.legal-body ul li::before {
  content: ''; width: 6px; height: 6px; margin-top: 10px;
  border-radius: 50%; background: var(--accent);
}
.legal-body ol { counter-reset: li; }
.legal-body ol li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  color: var(--fg-muted); line-height: 1.68;
  counter-increment: li;
}
.legal-body ol li::before {
  content: counter(li) '.';
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  margin-top: 3px;
}

.legal-table-wrap { overflow-x: auto; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.legal-table th, .legal-table td { padding: 13px 18px; text-align: left; vertical-align: top; }
.legal-table thead th {
  background: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-faint);
  border-bottom: 1px solid var(--border);
}
.legal-table tbody tr + tr td { border-top: 1px solid var(--border-soft); }
.legal-table td { color: var(--fg-muted); line-height: 1.6; }
.legal-table td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 18px;
}
.callout p { margin-bottom: 0; }
.callout p + p { margin-top: 10px; }
.callout--warn { border-left-color: var(--warning); background: var(--warning-soft); border-color: rgba(196,123,22,0.28); }
.callout--ok { border-left-color: var(--success); background: var(--success-soft); border-color: rgba(31,122,69,0.22); }

.legal-foot-note {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px; color: var(--fg-faint);
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .legal-toc { position: static; }
}

/* ==========================================================================
   Print — flatten the page to readable ink
   ========================================================================== */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }

  .site-header, .menu-toggle, .skip-link, .cta .btn-row, .btn { display: none !important; }
  .legal-toc { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; padding-top: 24px; }

  .section, .hero, .cta { padding: 24px 0 !important; }
  .hero::before { display: none !important; }

  .section--dark, .cta, .site-footer, .data-col, .code-block {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #bbb !important;
  }
  .section--dark h2, .section--dark h3, .cta h2,
  .data-col h3, .data-list li, .privacy-note, .privacy-note b,
  .site-footer, .site-footer a, .footer-col h4 { color: #000 !important; }
  .code-block .c-key, .code-block .c-str, .code-block .c-dim { color: #000 !important; }

  .cat-panel { display: block !important; }
  .cat-tabs { display: none !important; }
  .faq-a { grid-template-rows: 1fr !important; }
  .faq-a > div { overflow: visible !important; }

  .feature, .step, .price-card, .faq-item, .mock { break-inside: avoid; box-shadow: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
