:root {
  --page: #FCFCFB; --raised: #FFFFFF; --sunken: #F3F3F0;
  --line: #E7E6E2; --line-strong: #D4D3CE;
  --text: #141310; --text-2: #3C3A35; --text-3: #57554E; --muted: #76746C; --faint: #A6A49D;
  --ink: #141310; --ink-raised: #1D1C18; --ink-line: #2C2A24; --ink-text: #F3F3F0; --ink-2: #A6A49D; --ink-3: #8A887F;
  --accent: #4338CA; --accent-hover: #3730A3; --accent-quiet: #EEF0FB; --accent-on: #FFFFFF; --accent-ink: #A5B4FC;
  --signal: #A34A28; --signal-quiet: #FAEFE9; --danger: #B3261E; --danger-quiet: #FBEAEA;
  --c1: #4338CA; --c2: #A34A28;           /* chart series — validated light */
  --shadow-2: 0 4px 12px rgba(20,19,16,0.07), 0 1px 2px rgba(20,19,16,0.05);
  --shadow-3: 0 24px 64px rgba(20,19,16,0.16), 0 2px 8px rgba(20,19,16,0.06);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 80px; --section: 128px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: light;
}
html[data-accent="pine"] { --accent: #0E4F45; --accent-hover: #0A3A33; --accent-quiet: #EAF2F0; --accent-ink: #4FC2AE; }
html[data-theme="dark"] {
  --page: #141310; --raised: #1D1C18; --sunken: #0E0D0B;
  --line: #2C2A24; --line-strong: #3C3A35;
  --text: #F3F3F0; --text-2: #D4D3CE; --text-3: #A6A49D; --muted: #8A887F; --faint: #57554E;
  --ink: #232019; --ink-line: #3C3A35;
  --accent: #A5B4FC; --accent-hover: #C7D0FE; --accent-quiet: #23214A; --accent-on: #141310;
  --signal: #E08A5F; --signal-quiet: #2E1D14; --danger: #F08A8A; --danger-quiet: #32191A;
  --c1: #6E7BEE; --c2: #C97148;            /* chart series — validated dark */
  --shadow-2: none; --shadow-3: 0 24px 64px rgba(0,0,0,.5);
  color-scheme: dark;
}
html[data-theme="dark"][data-accent="pine"] { --accent: #4FC2AE; --accent-hover: #7AD6C6; --accent-quiet: #16302B; --accent-ink: #4FC2AE; }
@media (max-width: 760px) { :root { --gutter: 20px; --section: 88px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[id] { scroll-margin-top: 88px; }
.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.display-1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.6vw, 92px); line-height: .96; letter-spacing: -0.035em; text-wrap: balance; }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.0; letter-spacing: -0.028em; text-wrap: balance; }
.display-1 em, .display-2 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.section { padding: var(--section) 0; }
.sunken { background: var(--sunken); }
.head { max-width: 780px; margin-bottom: 56px; }
.head .display-2 { margin-top: 18px; } .head .lede { margin-top: 20px; max-width: 660px; }
.center { text-align: center; margin-inline: auto; } .center .lede { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color 180ms var(--ease), border-color 180ms var(--ease); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary, .btn-primary:hover { color: var(--accent-on); } .btn-primary { background: var(--accent); } .btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--raised); color: var(--text); border-color: var(--line-strong); } .btn-secondary:hover { color: var(--text); border-color: var(--text-3); }
.btn-ink { background: var(--accent-ink); color: #141310; } .btn-ink:hover { background: var(--ink-text); color: #141310; }
.btn-ghost-ink { background: transparent; color: var(--ink-text); border-color: #3C3A35; } .btn-ghost-ink:hover { color: var(--ink-text); border-color: var(--ink-2); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 10px 0; }
.brand span { font-family: var(--serif); font-size: 27px; letter-spacing: -0.01em; line-height: 1; }
.mark { width: 24px; height: 24px; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mark .b { stroke: currentColor; } .mark .s { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-links a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 12px 2px; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links .spacer { flex: 1; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; } .menu-btn { display: inline-flex; }
  .mobile-menu[data-open="true"] { display: block; border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .mobile-menu a:not(.btn) { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}

/* ---------- light / dark toggle ---------- */
.theme-btn { flex-shrink: 0; min-height: 44px; margin-left: 8px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text-2); font: 500 13px var(--sans); white-space: nowrap; cursor: pointer; transition: color 140ms var(--ease), border-color 140ms var(--ease); }
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-btn .i { width: 17px; height: 17px; flex-shrink: 0; }
.theme-btn .sun, .theme-btn .t-dark { display: none; }
html[data-theme="dark"] .theme-btn .sun, html[data-theme="dark"] .theme-btn .t-dark { display: inline-flex; }
html[data-theme="dark"] .theme-btn .moon, html[data-theme="dark"] .theme-btn .t-light { display: none; }
@media (max-width: 1000px) { .theme-btn { margin-left: auto; } .menu-btn { margin-left: 8px; } }
/* Compact (icon only) where the nav is tightest: narrow phones, and the band
   between the 900px breakpoint and full desktop where the links are still shown. */
@media (max-width: 560px), (min-width: 1001px) and (max-width: 1119px) {
  .theme-btn { padding: 0; width: 44px; }
  .theme-btn .t-dark, .theme-btn .t-light,
  html[data-theme="dark"] .theme-btn .t-dark,
  html[data-theme="dark"] .theme-btn .t-light { display: none; }
}

/* hero + price card */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .7; pointer-events: none; }
.hero .wrap { position: relative; }
.hero-copy { max-width: 920px; margin-inline: auto; text-align: center; }
.hero .display-1 { margin: 22px 0 24px; }
.hero .lede { max-width: 660px; margin-inline: auto; }

/* faq + cta + footer */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq details { border-top: 1px solid var(--line); } .faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 19px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 180ms var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-3); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .faq summary { font-size: 17px; } .faq details p { padding-right: 0; } }
.demo { text-align: center; }
.demo .lede { max-width: 560px; margin: 20px auto 40px; }
form.demo-form { display: flex; gap: 10px; max-width: 560px; margin-inline: auto; }
form.demo-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); font: 16px var(--sans); }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { form.demo-form { flex-direction: column; } }
footer { background: var(--ink); color: var(--ink-text); padding: 64px 0 40px; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 48px; }
footer .brand { color: var(--ink-text); } footer .mark .s { stroke: var(--accent-ink); }
footer .tag { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
footer ul a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.fbottom { padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }