/* =========================================================================
   Calyston — Marketing site styles
   Vanilla CSS. Dark-first with a light theme via [data-theme="light"].
   Design tokens live in :root; the light theme only overrides colors.
   ========================================================================= */

/* ---- Self-hosted fonts (latin + latin-ext woff2; no Google request) ----- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Tokens (Calyston — light European industrial, default) ----------- */
:root {
  /* canvas off-white; pure white reserved for cards/surfaces */
  --bg:            #F7F8F9;
  --bg-deep:       #F1F3F5;
  --surface:       #FFFFFF;
  --surface-2:     #FAFBFC;
  --surface-3:     #F1F3F5;
  --border:        #E5E7EB;        /* hairline */
  --border-strong: #D1D5DB;

  --text:          #111827;        /* charcoal headings */
  --text-soft:     #374151;
  --text-muted:    #4B5563;        /* mid-grey body */
  --text-faint:    #9CA3AF;

  --accent:        #1E5C8A;        /* muted steel blue — CTAs / active only */
  --accent-strong: #184B72;
  --accent-soft:   rgba(30, 92, 138, 0.08);
  --accent-line:   rgba(30, 92, 138, 0.22);
  --on-accent:     #FFFFFF;

  --good:          #157F5B;
  --warn:          #B45309;

  /* elevation — precise & soft, never glowy */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 6px 20px -8px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 24px 50px -26px rgba(17, 24, 39, 0.16);
  --glow: 0 0 0 1px var(--accent-line), 0 16px 38px -24px rgba(30, 92, 138, 0.22);

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* metrics */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  color-scheme: light;
}

/* ---- Tokens (dark — opt-in via toggle) --------------------------------- */
[data-theme="dark"] {
  --bg:            oklch(0.19 0.010 250);
  --bg-deep:       oklch(0.16 0.010 250);
  --surface:       oklch(0.225 0.012 250);
  --surface-2:     oklch(0.26 0.013 250);
  --surface-3:     oklch(0.31 0.014 250);
  --border:        oklch(1 0 0 / 0.10);
  --border-strong: oklch(1 0 0 / 0.18);

  --text:          oklch(0.96 0.004 250);
  --text-soft:     oklch(0.80 0.008 250);
  --text-muted:    oklch(0.64 0.010 250);
  --text-faint:    oklch(0.50 0.010 250);

  --accent:        oklch(0.66 0.105 245);   /* steel blue, lifted for dark */
  --accent-strong: oklch(0.60 0.115 245);
  --accent-soft:   oklch(0.66 0.105 245 / 0.16);
  --accent-line:   oklch(0.66 0.105 245 / 0.32);
  --on-accent:     oklch(0.99 0 0);

  --good:          oklch(0.74 0.13 162);
  --warn:          oklch(0.80 0.12 85);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px -8px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 30px 60px -24px oklch(0 0 0 / 0.6);
  --glow: 0 0 0 1px var(--accent-line), 0 20px 50px -22px oklch(0.66 0.105 245 / 0.4);

  color-scheme: dark;
}

/* ---- Base -------------------------------------------------------------- */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1320px; }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

/* ---- Type utilities ---------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.display {
  font-size: clamp(40px, 6.4vw, 74px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-soft); line-height: 1.55; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--mono); }
.accent-text { color: var(--accent); }

.section-head { max-width: 680px; }
.section-head .h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.15) inset, 0 10px 24px -12px var(--accent);
}
.btn--primary:hover { background: var(--accent-strong); box-shadow: 0 1px 0 oklch(1 0 0 / 0.18) inset, 0 14px 30px -12px var(--accent); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--soft:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn .ico { width: 17px; height: 17px; }

.linklike { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: gap .15s ease; }
.linklike:hover { gap: 10px; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: 12px; }
.nav__links a { color: var(--text-soft); font-size: 15px; font-weight: 450; transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__doc { color: var(--text-soft); font-size: 15px; font-weight: 450; transition: color .15s ease; }
.nav__doc:hover { color: var(--text); }
@media (max-width: 640px) { .nav__doc { display: none; } }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name b { font-weight: 600; }
.brand__name span { color: var(--text-muted); font-weight: 500; }

/* Icon button (theme toggle) */
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn .ico-moon { display: none; }
.icon-btn .ico-sun { display: block; }
[data-theme="dark"] .icon-btn .ico-moon { display: block; }
[data-theme="dark"] .icon-btn .ico-sun { display: none; }

/* ---- Layout helpers ---------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.card--hover:hover { border-color: var(--border-strong); transform: translateY(-3px); }

/* feature/value icon chip */
.chip {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.chip .ico { width: 22px; height: 22px; }

/* ================= HERO ================================================= */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(to bottom, color-mix(in oklch, var(--accent) 5%, transparent), transparent 30%);
}
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }

/* badge above headline */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-soft);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in oklch, var(--good) 25%, transparent); }
.pill b { color: var(--text); font-weight: 500; }

/* Hero A — copy + dashboard-preview split */
.hero-a__layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-a__copy .display { margin-top: 22px; }
.hero-a__copy .lede { margin-top: 22px; max-width: 30ch; }
.hero-a__cta { margin-top: 30px; }
.hero-a__sub { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; }
.hero-a__craft { margin-top: 20px; font-size: 14px; color: var(--text-muted); border-left: 2px solid var(--accent-line); padding-left: 14px; max-width: 42ch; }

.cta-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.cta-form .field { flex: 1 1 220px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 15.5px; transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { margin-top: 12px; font-size: 13px; color: var(--text-muted); min-height: 18px; }
.form-note.is-ok { color: var(--good); }
.form-note.is-err { color: oklch(0.7 0.18 25); }

/* ---- Dashboard preview (hero) — one baked image, no runtime chrome ------ */
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 44px rgba(13, 22, 41, 0.22));
}

/* ---- Trust bar --------------------------------------------------------- */
.trustbar { border-block: 1px solid var(--border); background: var(--bg-deep); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding-block: 22px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14.5px; }
.trust-item .ico { width: 18px; height: 18px; color: var(--accent); flex: none; }
.trust-sep { width: 1px; height: 18px; background: var(--border); }

/* ---- Value props ------------------------------------------------------- */
.value-card .chip { margin-bottom: 18px; }
.value-card h3 { font-size: 19px; }
.value-card p { margin-top: 9px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ---- How it works ------------------------------------------------------ */
.step { position: relative; padding-top: 26px; }
.step__rule { height: 1px; background: var(--border); margin-bottom: 26px; }
.step__rule.accent { background: linear-gradient(90deg, var(--accent), transparent); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

.install {
  margin-top: 36px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--bg-deep);
}
.install__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.install__copy { margin-left: auto; }
.copy-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: all .15s ease; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.install pre { padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; color: var(--text-soft); }
.install pre .c-dim { color: var(--text-faint); }
.install pre .c-acc { color: var(--accent); }

/* ---- Features ---------------------------------------------------------- */
.feature-group + .feature-group { margin-top: 40px; }
.feature-group__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.feature-group__head h3 { font-size: 17px; font-family: var(--mono); font-weight: 500; letter-spacing: .02em; color: var(--text); text-transform: none; }
.feature-group__head .line { flex: 1; height: 1px; background: var(--border); }
.feature {
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: border-color .2s ease, background-color .2s ease;
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature .ico { width: 20px; height: 20px; color: var(--accent); margin-bottom: 14px; }
.feature h4 { font-size: 15.5px; font-weight: 550; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---- Privacy section --------------------------------------------------- */
.privacy { background: var(--bg-deep); border-block: 1px solid var(--border); overflow: hidden; }
.privacy__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.privacy__list { margin-top: 26px; display: grid; gap: 18px; }
.privacy__item { display: flex; gap: 14px; }
.privacy__item .ico { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.privacy__item h4 { font-size: 16px; font-weight: 550; margin-bottom: 4px; }
.privacy__item p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* privacy diagram */
.diagram { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface); padding: clamp(22px, 3vw, 36px); }
.diagram__machine { border: 1.5px dashed var(--accent-line); border-radius: var(--radius); padding: 22px; position: relative; }
.diagram__tag { position: absolute; top: -11px; left: 18px; background: var(--surface); padding: 0 10px; font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .06em; }
.diagram__cams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.diagram__node { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 9px; padding: 12px 10px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-soft); }
.diagram__node .ico { width: 18px; height: 18px; color: var(--text-muted); margin: 0 auto 7px; }
.diagram__store { margin-top: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 9px; padding: 12px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.diagram__out { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.diagram__out .barrier { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed var(--border-strong); padding-left: 8px; }
.diagram__out .leaks { flex: 1; display: grid; gap: 7px; }
.diagram__leak { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }
.diagram__leak .ar { color: var(--text-faint); }
.diagram__leak b { color: var(--text-soft); font-weight: 500; }

/* ---- Pricing ----------------------------------------------------------- */
.pricing__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); font-family: var(--mono); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: start; }
.plan {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.plan--featured { border-color: var(--accent-line); box-shadow: var(--glow); position: relative; }
.plan--featured::before { content: "Most popular"; position: absolute; top: -11px; left: 26px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 100px; }
.plan__name { font-size: 14px; font-family: var(--mono); letter-spacing: .04em; color: var(--text-soft); text-transform: uppercase; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.plan__price .amt { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.plan__price .per { font-size: 14px; color: var(--text-muted); }
.plan__desc { margin-top: 10px; font-size: 14px; color: var(--text-muted); min-height: 40px; }
.plan__cta { margin-top: 20px; }
.plan__meta { margin-top: 18px; display: flex; gap: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }
.plan__meta b { color: var(--text); font-weight: 500; }
.plan__list { margin-top: 18px; display: grid; gap: 10px; }
.plan__list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-soft); }
.plan__list .ico { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }

/* Founder + lifetime row */
.special-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.founder { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 30px; }
.founder__glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 0%, var(--accent-soft), transparent 70%); pointer-events: none; }
.founder__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.founder__limit { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 100px; padding: 5px 12px; }
.founder h3 { font-size: 26px; margin-top: 16px; }
.founder p { margin-top: 10px; color: var(--text-soft); font-size: 15px; max-width: 46ch; }
.founder__price { text-align: right; }
.founder__price .amt { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.founder__price .once { font-family: var(--mono); font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.founder__badge { width: 96px; height: 96px; margin-left: auto; margin-bottom: 12px; }

.packs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.packs h4 { font-size: 16px; }
.packs p { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.packs__rows { margin-top: 18px; display: grid; gap: 10px; }
.pack-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 10px; }
.pack-row__name { font-size: 14px; }
.pack-row__name span { font-family: var(--mono); font-size: 11px; color: var(--good); display: block; margin-top: 2px; }
.pack-row__price { font-family: var(--mono); font-size: 14px; }

.pricing-reassure { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.pricing-reassure .trust-item { font-size: 13.5px; }

/* ---- Comparison -------------------------------------------------------- */
.compare { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
table.cmp thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; font-weight: 500; }
table.cmp thead th.us { color: var(--accent); }
table.cmp tbody th { font-weight: 500; color: var(--text); }
table.cmp td.us { color: var(--text-soft); background: var(--accent-soft); }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: none; }
.cmp__bad { color: var(--text-faint); }

/* ---- FAQ --------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 20px; height: 20px; flex: none; position: relative; transition: transform .2s ease; color: var(--text-muted); }
.faq details[open] summary .pm { transform: rotate(45deg); color: var(--accent); }
.faq .faq__a { padding: 0 22px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 70ch; }

/* ---- Final CTA --------------------------------------------------------- */
.final { position: relative; overflow: hidden; }
.final__card { position: relative; border-radius: var(--radius-xl); border: 1px solid var(--accent-line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; }
.final__card .glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% -10%, var(--accent-soft), transparent 70%); pointer-events: none; }
.final__inner { position: relative; }
.final .display { font-size: clamp(34px, 5vw, 56px); }
.final .lede { margin: 18px auto 0; max-width: 50ch; }
.final .cta-form { margin: 30px auto 0; justify-content: center; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 56px; }
.footer__brand p { margin-top: 16px; color: var(--text-muted); font-size: 14px; max-width: 32ch; line-height: 1.6; }
.footer__col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-soft); font-size: 14.5px; padding: 6px 0; transition: color .15s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; }
.footer__bottom .mono { color: var(--text-muted); }

/* ---- Reveal animation -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .special-grid { grid-template-columns: 1fr; }
  .hero-a__layout, .privacy__layout { grid-template-columns: 1fr; }
  .hero-a__visual { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__price { text-align: left; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .steps.cols-3 { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .trust-sep { display: none; }
  body { font-size: 16px; }
}

/* =========================================================================
   Inner pages — Blog + Compare (shared with base.html / generated pages)
   ========================================================================= */
.wrap--narrow { max-width: 760px; }

/* ---- Blog index ---- */
.blog-list { display: grid; gap: 18px; margin-top: 40px; }
.blog-card {
  display: block; padding: 26px 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.blog-card__date { display: block; font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }
.blog-card__title { font-size: 21px; line-height: 1.25; margin-top: 8px; color: var(--text); }
.blog-card__desc { margin-top: 10px; color: var(--text-muted); }
.blog-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--accent); font-weight: 600; }
.blog-card__more .ico { width: 16px; height: 16px; }

/* ---- Blog post ---- */
.blog-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.blog-back:hover { color: var(--accent); }
.blog-back .ico { width: 16px; height: 16px; }
.blog-post__title { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin-top: 10px; color: var(--text); }
.blog-post__lede { margin-top: 16px; }
.blog-post__rule { border: 0; border-top: 1px solid var(--border); margin: 40px 0 22px; }

/* ---- Prose (rendered markdown) ---- */
.prose { margin-top: 32px; color: var(--text-soft); font-size: 17px; line-height: 1.72; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.01em; margin-top: 44px; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 32px; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li { padding-left: 4px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.6; }
.prose blockquote { border-left: 3px solid var(--accent-line); padding-left: 18px; color: var(--text-muted); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--border); }

/* ---- Compare ---- */
.compare-wrap { margin-top: 44px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 1140px; }
.compare-table th, .compare-table td {
  padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare-table thead th { font-size: 13px; letter-spacing: .03em; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.compare-table thead th.is-us { color: var(--accent); }
.compare-table tbody th { font-weight: 600; color: var(--text); width: 200px; }
.compare-table td { color: var(--text-muted); font-size: 14.5px; }
.compare-col-us { background: var(--accent-soft); }
.compare-yes { color: var(--good, #2f8a4c); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.compare-no { color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.compare-yes .ico, .compare-no .ico { width: 17px; height: 17px; }
.compare-note { margin-top: 22px; font-size: 13.5px; color: var(--text-faint); }
.compare-cta { margin-top: 40px; text-align: center; }

/* ---- camera setup database ---- */
.camera-list { margin-top: 36px; display: grid; gap: 12px; }
.camera-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.camera-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.camera-card__name { font-weight: 600; color: var(--text); font-size: 17px; }
.badge {
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge--tested { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.badge--documented { color: var(--text-muted); background: var(--surface-3); }
.camera-disclaimer { margin-top: 40px; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
.camera-detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.camera-meta { margin-top: 18px; color: var(--text-muted); }
.camera-meta__k { color: var(--text-faint); margin-right: 8px; }
.camera-field { margin-top: 22px; }
.camera-field__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  background: var(--surface-3); border: 1px solid var(--border);
  border-bottom: 0; border-radius: 10px 10px 0 0; padding: 9px 14px;
}
.camera-url {
  margin: 0; font-family: var(--mono); font-size: 13.5px; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 0 0 10px 10px; padding: 14px 16px; overflow-x: auto;
}
.camera-notes { margin-top: 20px; color: var(--text-muted); }
.camera-cta { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.camera-cta p { color: var(--text-muted); margin-bottom: 16px; }
