/* SimplifAI · site styles
   Brand: royal blue, light blue, white, on deep navy. Space Grotesk + JetBrains Mono. */

:root {
  --navy-950: #050A1C;
  --navy-900: #081130;
  --navy-850: #0B1638;
  --navy-800: #0F1D47;
  --navy-700: #16275C;
  --royal: #2347E8;
  --royal-hi: #3A5CF6;
  --royal-lo: #1C3BCC;
  --sky: #8FB3FF;
  --sky-200: #D4E2FF;
  --sky-100: #EAF1FF;
  --white: #FFFFFF;

  --ink: #F1F5FF;
  --ink-soft: #A9B8DE;
  --ink-faint: #7F8FBA;
  --line: rgb(241 245 255 / 0.09);
  --line-strong: rgb(241 245 255 / 0.16);

  /* light ground */
  --l-bg: #F4F7FE;
  --l-card: #FFFFFF;
  --l-ink: #0B1533;
  --l-soft: #4C5878;
  --l-line: #E0E7F5;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --t-lg: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --t-xl: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --t-2xl: clamp(1.8rem, 1.45rem + 1.6vw, 2.75rem);
  --t-3xl: clamp(2.3rem, 1.6rem + 3vw, 4.1rem);
  --t-hero: clamp(2.6rem, 1.6rem + 4.2vw, 5rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1200px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --e1: 0 1px 2px rgb(2 6 23 / 0.35), 0 2px 6px rgb(2 6 23 / 0.2);
  --e2: 0 2px 4px rgb(2 6 23 / 0.3), 0 12px 32px -8px rgb(2 6 23 / 0.55);
  --e3: 0 4px 10px rgb(2 6 23 / 0.3), 0 28px 60px -16px rgb(2 6 23 / 0.7);
  --edge: inset 0 1px 0 rgb(255 255 255 / 0.06);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--navy-950); color: var(--ink);
  font-family: var(--font); font-size: var(--t-base); line-height: 1.62; letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--royal); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--royal); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.65); }
.mono { font-family: var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.soft { color: var(--ink-soft); }

/* section heads: more space above than below */
.head { display: grid; gap: var(--s-4); max-width: 56rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head h2 { font-size: var(--t-3xl); }
.head p { font-size: var(--t-lg); color: var(--ink-soft); max-width: 40rem; line-height: 1.5; }
.kicker { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font); letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--royal); color: #fff; box-shadow: 0 8px 24px -10px rgb(35 71 232 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.18); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgb(255 255 255 / 0.02); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 0.92rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--royal-hi); }
  .btn--ghost:hover { border-color: var(--sky); background: rgb(143 179 255 / 0.08); }
  .btn--light:hover { background: var(--sky-100); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(5 10 28 / 0.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgb(5 10 28 / 0.88); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: #447DF7; box-shadow: 0 6px 20px -4px rgb(68 125 247 / 0.55); }
.logo__mark svg { width: 100%; height: 100%; fill: #fff; }
.logo__mark::after { content: none; }
.logo > span:last-child { font-family: "Inter", var(--font); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.035em; }
.logo { gap: 12px; }
.logo b { color: #447DF7; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.06); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.header-cta { margin-left: var(--s-3); }
.menu-btn { display: none; margin-left: auto; height: 42px; width: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .site-header.is-open { background: var(--navy-950); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.is-open .mobile-nav { display: grid; }
}
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-950); padding: var(--s-5) var(--gutter) var(--s-7);
  align-content: start; gap: 2px; overflow-y: auto; border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 14px 4px; font-size: 1.35rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--sky); }
.mobile-nav .btn { margin-top: var(--s-5); height: 54px; font-size: 1.05rem; border-bottom: 0; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vh, 6rem) clamp(4rem, 10vh, 7rem); }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; background: radial-gradient(closest-side, rgb(35 71 232 / 0.32), transparent 70%); pointer-events: none; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(80% 70% at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 10%, transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--s-7); align-items: center; }
.hero__copy { display: grid; gap: var(--s-5); position: relative; z-index: 2; }
.hero h1 { font-size: var(--t-hero); line-height: 1.0; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero__sub { font-size: var(--t-lg); color: var(--ink-soft); max-width: 36rem; line-height: 1.5; }
.hero__note { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-sm); color: var(--ink-soft); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--sky); }
.hero__visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end; }
.hero__visual canvas { position: absolute; inset: -12%; width: 124%; height: 124%; }
.hero__chip {
  position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px;
  background: rgb(11 22 56 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--e3); font-size: 0.88rem; line-height: 1.3; white-space: nowrap;
}
.hero__chip .dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--royal); flex: none; }
.hero__chip .dot svg { width: 16px; height: 16px; color: #fff; }
.hero__chip small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.hero__chip--a { left: -4%; top: 16%; }
.hero__chip--b { right: -2%; top: 46%; }
.hero__chip--c { left: 8%; bottom: 8%; }

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vh, 6.5rem) clamp(3rem, 7vh, 5rem); border-bottom: 1px solid var(--line); }
.page-hero .hero__glow { inset: -40% -20% auto auto; }
.page-hero .wrap { position: relative; display: grid; gap: var(--s-5); max-width: var(--maxw); }
.page-hero h1 { font-size: var(--t-3xl); max-width: 18ch; line-height: 1.02; letter-spacing: -0.032em; }
.page-hero h1 em { font-style: normal; color: var(--sky); }
.page-hero p { font-size: var(--t-lg); color: var(--ink-soft); max-width: 40rem; line-height: 1.5; }

/* ---------------------------------------------------------------- facts bar */
.facts { border-block: 1px solid var(--line); background: var(--navy-900); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: var(--s-5) var(--s-5); display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-sm); color: var(--ink-soft); }
.facts li + li { border-left: 1px solid var(--line); }
.facts li b { color: var(--ink); font-weight: 600; display: block; font-size: 0.98rem; }
.facts svg { width: 22px; height: 22px; color: var(--sky); flex: none; }

/* ------------------------------------------------------------- stats (real) */
.stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--navy-950); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: var(--s-3); align-content: start; }
.stat__n { font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; color: var(--sky); font-variant-numeric: tabular-nums; }
.stat p { color: var(--ink); font-size: var(--t-lg); line-height: 1.4; max-width: 24ch; }
.stat cite { font-style: normal; font-size: var(--t-xs); color: var(--ink-faint); font-family: var(--mono); }
.stat--lead { background: linear-gradient(160deg, var(--navy-800), var(--navy-950) 70%); }

/* --------------------------------------------------------- the system flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); position: relative; }
.flow__item {
  position: relative; display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); box-shadow: var(--e2), var(--edge);
  text-decoration: none; transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.flow__item:nth-child(2) { margin-top: var(--s-7); }
.flow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow--2 .flow__item:nth-child(n) { margin-top: 0; }
.flow__item:nth-child(3) { margin-top: calc(var(--s-7) * 2); }
@media (hover: hover) and (pointer: fine) { .flow__item:hover { border-color: rgb(143 179 255 / 0.4); transform: translateY(-3px); } }
.flow__step { font-family: var(--mono); font-size: var(--t-xs); color: var(--sky); letter-spacing: 0.06em; text-transform: uppercase; }
.flow__item h3 { font-size: var(--t-2xl); }
.flow__item p { color: var(--ink-soft); }
.flow__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgb(35 71 232 / 0.16); border: 1px solid rgb(143 179 255 / 0.22); }
.flow__icon svg { width: 24px; height: 24px; color: var(--sky); }
.flow__item ul { list-style: none; display: grid; gap: 8px; font-size: var(--t-sm); }
.flow__item li { display: flex; gap: 10px; align-items: baseline; }
.flow__item li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); flex: none; transform: translateY(-2px); }
.flow__item .link-arrow { margin-top: var(--s-2); }

/* ------------------------------------------------------------ split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split > *, .pricer > *, .contact-grid > *, .faq > * { min-width: 0; }
.split__copy { display: grid; gap: var(--s-5); align-content: start; }
.split__copy h2 { font-size: var(--t-3xl); }
.split__copy > p { color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.5; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo__tag {
  position: absolute; left: var(--s-4); bottom: var(--s-4); right: auto; display: flex; gap: 10px; align-items: center;
  background: rgb(8 17 48 / 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 10px 14px 10px 10px; font-size: 0.88rem; line-height: 1.3; max-width: calc(100% - 32px);
}
.photo__tag .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--royal); display: grid; place-items: center; flex: none; }
.photo__tag .dot svg { width: 15px; height: 15px; color: #fff; }
.photo__tag small { display: block; color: var(--ink-soft); font-size: 0.78rem; }

.ticks { list-style: none; display: grid; gap: var(--s-4); }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); align-items: start; }
.ticks li > svg { width: 22px; height: 22px; color: var(--sky); margin-top: 2px; }
.ticks b { font-weight: 600; display: block; }
.ticks span { color: var(--ink-soft); }

/* ------------------------------------------------------------- industries */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.industry { display: grid; gap: var(--s-3); align-content: start; padding: clamp(1.5rem, 2.5vw, 2rem); background: var(--navy-950); transition: background-color 200ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .industry:hover { background: var(--navy-900); } }
.industry__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgb(35 71 232 / 0.16); border: 1px solid rgb(143 179 255 / 0.22); margin-bottom: var(--s-3); }
.industry__icon svg { width: 22px; height: 22px; color: var(--sky); }
.industry h3 { font-size: var(--t-xl); }
.industry p { color: var(--ink-soft); font-size: 0.97rem; }

/* notification stack: an example of what the system sends you */
.stack { position: relative; display: grid; gap: var(--s-3); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 20% 0%, rgb(35 71 232 / 0.35), transparent 60%), var(--navy-900); border: 1px solid var(--line); box-shadow: var(--e3); }
.note { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-4); align-items: start; padding: var(--s-4); border-radius: var(--r-md); background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); }
.note b { display: block; font-weight: 600; }
.note div > span { color: var(--ink-soft); font-size: 0.93rem; }
.note__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgb(35 71 232 / 0.2); }
.note__icon svg { width: 18px; height: 18px; color: var(--sky); }
.note__state { font-family: var(--mono); font-size: 0.72rem; color: var(--sky); padding: 3px 8px; border-radius: var(--r-pill); border: 1px solid rgb(143 179 255 / 0.3); }
.note--focus { background: var(--navy-800); border-color: rgb(143 179 255 / 0.4); box-shadow: var(--e2); transform: translateX(clamp(0px, 2vw, 18px)); }
.note--focus .note__icon { background: var(--royal); }
.note--focus .note__icon svg { color: #fff; }
.note__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-3); }
.note__btn { font-size: 0.86rem; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--ink); }
.note__btn--yes { background: var(--royal); border-color: var(--royal); color: #fff; }
.stack__cap { font-size: var(--t-xs); color: var(--ink-faint); font-family: var(--mono); margin-top: var(--s-2); }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--royal), rgb(143 179 255 / 0.15)); }
.steps li { position: relative; display: grid; gap: var(--s-3); padding-right: var(--s-5); align-content: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.95rem;
  background: var(--navy-900); border: 1px solid rgb(143 179 255 / 0.4); color: var(--sky); position: relative; margin-bottom: var(--s-2);
}
.steps li:first-child::before { background: var(--royal); color: #fff; border-color: var(--royal); }
.steps h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
.steps p { color: var(--ink-soft); font-size: var(--t-sm); }

/* ------------------------------------------------------------------ light */
.light { background: var(--l-bg); color: var(--l-ink); }
.light .head p, .light .soft { color: var(--l-soft); }
.light .kicker { color: var(--royal); }
.light :focus-visible { outline-color: var(--royal); }
.light .link-arrow { color: var(--royal); }
.light .btn--ghost { border-color: #C9D5EE; color: var(--l-ink); background: #fff; }
@media (hover: hover) and (pointer: fine) { .light .btn--ghost:hover { border-color: var(--royal); background: #fff; } }

/* ----------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
.plan {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--l-card); border: 1px solid var(--l-line); box-shadow: 0 1px 2px rgb(11 21 51 / 0.04), 0 12px 30px -18px rgb(11 21 51 / 0.25);
  position: relative;
}
.plan__name { font-size: var(--t-xl); letter-spacing: -0.02em; }
.plan__for { color: var(--l-soft); font-size: var(--t-sm); min-height: 2.8em; }
.plan__price { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.plan__price b { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); letter-spacing: -0.035em; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--l-soft); font-size: var(--t-sm); line-height: 1.3; max-width: 9.5em; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--l-line); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--royal); margin-top: 3px; }
.plan li.no { color: var(--l-soft); }
.plan li.no svg { color: #A5B0CB; }
.plan .btn { width: 100%; }
.plan--hl { background: var(--navy-900); color: var(--ink); border-color: var(--royal); box-shadow: 0 30px 60px -24px rgb(35 71 232 / 0.55); }
.plan--hl .plan__for, .plan--hl .plan__price span, .plan--hl li.no { color: var(--ink-soft); }
.plan--hl ul { border-top-color: var(--line); }
.plan--hl li svg { color: var(--sky); }
.plan__badge { position: absolute; top: -12px; left: var(--s-6); background: var(--royal); color: #fff; font-size: 0.76rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.price-note { margin-top: var(--s-5); color: var(--l-soft); font-size: var(--t-sm); text-align: center; }
.section:not(.light) .price-note { color: var(--ink-soft); }

/* compare table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.light .table-wrap { border-color: var(--l-line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 720px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.light .compare th, .light .compare td { border-bottom-color: var(--l-line); }
.compare thead th { font-size: 1rem; position: sticky; top: 0; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); }
.light .compare tbody th { color: var(--l-soft); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .hl { background: rgb(35 71 232 / 0.08); }
.light .compare .hl { background: #EEF3FF; }

/* --------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--navy-950); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; }
.feature > svg { width: 26px; height: 26px; color: var(--sky); margin-top: 2px; }
.feature h3 { font-size: var(--t-lg); letter-spacing: -0.015em; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* tag chips (CRM section menu) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.92rem; background: rgb(255 255 255 / 0.02); }
.chip small { color: var(--ink-faint); font-family: var(--mono); font-size: 0.72rem; }
.chip-group { display: grid; gap: var(--s-3); }
.chip-group h3 { font-size: var(--t-sm); font-family: var(--mono); font-weight: 400; color: var(--sky); letter-spacing: 0.06em; text-transform: uppercase; }
.chip-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); }

/* --------------------------------------------------------------------- FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq .head { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.qa { border-top: 1px solid var(--line); }
.light .qa { border-top-color: var(--l-line); }
.qa details { border-bottom: 1px solid var(--line); }
.light .qa details { border-bottom-color: var(--l-line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: 22px 0; font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; flex: none; color: var(--sky); transition: transform 200ms var(--ease); }
.light .qa summary svg { color: var(--royal); }
.qa details[open] summary svg { transform: rotate(45deg); }
.qa .a { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }
.light .qa .a { color: var(--l-soft); }

/* ------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); padding: clamp(2.5rem, 6vw, 5rem); background: radial-gradient(120% 140% at 85% 0%, var(--royal) 0%, #13247A 45%, var(--navy-900) 100%); box-shadow: var(--e3); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--s-6); align-items: end; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(120deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--t-3xl); max-width: 16ch; }
.cta-band p { color: var(--sky-200); font-size: var(--t-lg); margin-top: var(--s-4); max-width: 36rem; line-height: 1.5; }

/* ------------------------------------------------------------------ team */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.person { padding: var(--s-6); border-radius: var(--r-lg); background: var(--navy-900); border: 1px solid var(--line); display: grid; gap: var(--s-4); align-content: start; }
.person__mono { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 600; background: linear-gradient(140deg, var(--royal), #0E1E66); color: #fff; box-shadow: var(--e2); }
.person h3 { font-size: var(--t-xl); }
.person .role { color: var(--sky); font-size: var(--t-sm); font-family: var(--mono); }
.person p { color: var(--ink-soft); }

.values { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.values li { grid-column: span 2; }
.values li:nth-child(n+4) { grid-column: span 3; }
.values li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--l-line); }
.values b { font-size: var(--t-lg); letter-spacing: -0.015em; }

/* ----------------------------------------------------------------- pricer */
.pricer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pricer fieldset { border: 0; margin: 0 0 var(--s-6); padding: 0; min-width: 0; }
.pricer legend { font-weight: 600; font-size: var(--t-lg); margin-bottom: var(--s-3); padding: 0; letter-spacing: -0.015em; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt span { display: grid; gap: 2px; height: 100%; min-height: 64px; padding: 12px 14px; border-radius: var(--r-md); background: var(--navy-900); border: 1px solid var(--line-strong); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.opt b { font-weight: 600; font-size: 0.97rem; }
.opt i { font-style: normal; font-size: 0.82rem; color: var(--ink-soft); }
.opt input:checked + span { border-color: var(--sky); background: rgb(35 71 232 / 0.22); box-shadow: inset 0 0 0 1px var(--sky); }
.opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opt:hover span { border-color: rgb(143 179 255 / 0.5); } }
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }
.field label { font-weight: 600; font-size: var(--t-lg); letter-spacing: -0.015em; }
.field input { height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--navy-900); color: var(--ink); font: inherit; max-width: 28rem; caret-color: var(--sky); }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.sheet { position: sticky; top: calc(var(--header-h) + 24px); padding: var(--s-6); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line-strong); box-shadow: var(--e3), var(--edge); display: grid; gap: var(--s-4); }
.sheet h3 { font-size: var(--t-xl); }
.sheet h3 span { color: var(--ink-soft); font-weight: 400; }
.lines { list-style: none; display: grid; }
.lines li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; animation: lineIn 260ms var(--ease); }
.lines li.is-empty { color: var(--ink-soft); }
.lines .mono { white-space: nowrap; font-size: 0.9rem; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.totals { display: grid; gap: 6px; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.totals .big { font-family: var(--mono); font-size: var(--t-xl); }
.hint { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.hint[hidden] { display: none; }
.sheet .btn { width: 100%; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--navy-900); border: 1px solid var(--line); display: grid; gap: var(--s-5); }
.contact-list { list-style: none; display: grid; gap: var(--s-2); }
.contact-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4); border-radius: var(--r-md); text-decoration: none; border: 1px solid var(--line); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.contact-list a > svg:first-child { width: 22px; height: 22px; color: var(--sky); justify-self: center; }
.contact-list a > svg:last-child { width: 18px; height: 18px; color: var(--ink-faint); }
.contact-list small { display: block; color: var(--ink-soft); font-size: 0.82rem; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { border-color: rgb(143 179 255 / 0.45); background: rgb(143 179 255 / 0.05); } }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-9) var(--s-6); background: var(--navy-950); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.footer-top p { color: var(--ink-soft); max-width: 30ch; margin-top: var(--s-4); font-size: var(--t-sm); }
.footer-col h2 { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: var(--t-sm); }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--ink); } }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); color: var(--ink-faint); font-size: var(--t-xs); }

/* ------------------------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-in > *:nth-child(n+6) { transition-delay: 340ms; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { transform: none !important; transition: opacity 200ms linear; }
  .lines li { animation: none; }
  .flow__item, .btn { transition: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--royal), rgb(143 179 255 / 0.15)); }
  .steps li { grid-template-columns: 46px 1fr; column-gap: var(--s-4); padding-right: 0; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .faq, .pricer, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .hero__visual { max-width: 380px; justify-self: center; order: -1; margin-bottom: calc(var(--s-6) * -1); }
  .hero__chip { font-size: 0.8rem; }
  .hero__chip--b { display: none; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__item:nth-child(n) { margin-top: 0; }
  .flow--2 { grid-template-columns: 1fr; }
  .plan__for { min-height: 0; }
  .features, .chip-groups, .people { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values li:nth-child(n) { grid-column: auto; }
  .faq .head { position: static; }
  .sheet { position: static; }
  .cta-band { align-items: start; }
}
@media (max-width: 560px) {
  .industries { grid-template-columns: 1fr; }
  .facts li { padding: var(--s-4); }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ side rail */
.side-rail { display: none; }
@media (min-width: 1100px) {
  .side-rail { display: block; position: fixed; z-index: 45; left: 22px; top: 50%; translate: 0 -50%; padding: 14px 18px 14px 0; opacity: 0.6; transition: opacity 250ms var(--ease); }
  .side-rail:hover, .side-rail:focus-within { opacity: 1; }
  .side-rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
  .side-rail ol::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 1px; background: rgb(143 179 255 / 0.2); }
  .side-rail ol::after { content: ""; position: absolute; left: 3px; top: 10px; width: 1px; height: calc((100% - 20px) * var(--rail-p, 0)); background: var(--sky); transition: height 200ms linear; }
  .side-rail a { position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 0; text-decoration: none; font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: transparent; white-space: nowrap; transition: color 180ms var(--ease); }
  .side-rail a::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; position: relative; z-index: 1; background: var(--navy-950); border: 1px solid rgb(169 184 222 / 0.6); transition: background-color 180ms, border-color 180ms, transform 180ms var(--ease); }
  .side-rail a.is-past::before { background: rgb(143 179 255 / 0.55); border-color: transparent; }
  .side-rail a[aria-current="true"]::before { background: var(--sky); border-color: var(--sky); transform: scale(1.5); box-shadow: 0 0 0 3px rgb(35 71 232 / 0.35); }
  .side-rail:hover a, .side-rail:focus-within a { color: rgb(241 245 255 / 0.6); }
  .side-rail:hover a[aria-current="true"], .side-rail:focus-within a[aria-current="true"], .side-rail a:hover, .side-rail a:focus-visible { color: var(--ink); }
  .side-rail a:hover::before { border-color: var(--ink); transform: scale(1.3); }
  .side-rail a:focus-visible { outline: none; }
  .side-rail a:focus-visible::before { outline: 2px solid var(--sky); outline-offset: 3px; }
  /* a soft shade behind the labels while they show, so they read over any section */
  body::before { content: ""; position: fixed; z-index: 44; left: 0; top: 0; bottom: 0; width: 240px; pointer-events: none; opacity: 0; transition: opacity 250ms var(--ease);
    background: linear-gradient(90deg, rgb(5 10 28 / 0.94) 0%, rgb(5 10 28 / 0.8) 55%, rgb(5 10 28 / 0) 100%); }
  body:has(.side-rail:hover)::before, body:has(.side-rail:focus-within)::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .side-rail ol::after { transition: none; } }

/* a line between two groups of price cards */
.plans-divider { display: flex; align-items: center; gap: var(--s-5); margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.plans-divider::before, .plans-divider::after { content: ""; flex: 1; height: 1px; background: var(--l-line); }
.plans-divider span { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.section:not(.light) .plans-divider::before, .section:not(.light) .plans-divider::after { background: var(--line); }
@media (max-width: 560px) { .plans-divider span { font-size: 1rem; white-space: normal; text-align: center; } }

/* phones: price cards sit side by side in a swipeable row, smaller, with the
   neighbours peeking in either side */
@media (max-width: 860px) {
  .plans, .plans--2, .plans--4 {
    display: flex; gap: 12px; max-width: none; margin-inline: calc(var(--gutter) * -1);
    padding: 16px var(--gutter) 8px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans > .plan { flex: 0 0 64%; scroll-snap-align: center; padding: 16px 14px; gap: 8px; border-radius: 16px; }
  .plans.reveal-stagger.is-in > * { transition-delay: 0ms; }
  .plan__name { font-size: 1.12rem; }
  .plan__for { font-size: 0.8rem; min-height: 0; }
  .plan__price b { font-size: 1.5rem; }
  .plan__price span { font-size: 0.7rem; max-width: 8.5em; }
  .plan__price { gap: 8px; }
  .plan ul { gap: 5px; font-size: 0.76rem; padding-top: 8px; }
  .plan li { grid-template-columns: 16px 1fr; gap: 7px; }
  .plan li svg { width: 15px; height: 15px; margin-top: 2px; }
  .plan .btn { height: 40px; font-size: 0.86rem; }
  .plan__badge { top: -10px; left: 16px; font-size: 0.68rem; }
  .plans-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
  .plans-dots i { width: 6px; height: 6px; border-radius: 50%; background: #C9D5EE; transition: background-color 200ms, transform 200ms; }
  .plans-dots i.on { background: var(--royal); transform: scale(1.35); }
  .section:not(.light) .plans-dots i { background: var(--line-strong); }
  .section:not(.light) .plans-dots i.on { background: var(--sky); }
}
.plans-dots { display: none; }

/* --------------------------------------------------------------- our work */
.head--row { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); max-width: none; flex-wrap: wrap; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.work { display: grid; gap: var(--s-4); text-decoration: none; color: inherit; }
.work__shot { display: block; border-radius: var(--r-md); overflow: hidden; background: #0C1739; border: 1px solid var(--line-strong); box-shadow: var(--e2); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease); }
.work__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.work__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.work__bar em { margin-left: 8px; font: 400 0.7rem/1 var(--mono); color: var(--ink-faint); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work__meta { display: grid; gap: 4px; justify-items: start; }
.work__meta b { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.work__meta .soft { font-size: 0.93rem; }
.work__meta .link-arrow { margin-top: 6px; }
.work .link-arrow svg, .btn svg { width: 16px; height: 16px; }
.tag-built { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); padding: 4px 9px; border-radius: 999px; border: 1px solid rgb(143 179 255 / 0.3); }
@media (hover: hover) and (pointer: fine) {
  .work:hover .work__shot { transform: translateY(-4px); border-color: rgb(143 179 255 / 0.45); box-shadow: var(--e3), 0 30px 60px -30px rgb(35 71 232 / 0.6); }
}
.work--big .work__shot { box-shadow: var(--e3), 0 50px 100px -40px rgb(35 71 232 / 0.5); }
.split__copy .tag-built { justify-self: start; }
@media (max-width: 860px) {
  .works { display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .works::-webkit-scrollbar { display: none; }
  .works > .work { flex: 0 0 78%; scroll-snap-align: center; }
  .works.reveal-stagger.is-in > * { transition-delay: 0ms; }
}

/* =================================================================== light
   Follows the browser / device setting. Dark stays the default. */
@media (prefers-color-scheme: light) {
  :root {
    --navy-950: #FFFFFF;
    --navy-900: #F5F8FE;
    --navy-850: #FAFBFF;
    --navy-800: #EEF3FF;
    --navy-700: #DCE6FF;
    --ink: #0B1533;
    --ink-soft: #4C5878;
    --ink-faint: #6A7593;
    --line: rgb(11 21 51 / 0.09);
    --line-strong: rgb(11 21 51 / 0.17);
    --sky: #2347E8;
    --e1: 0 1px 2px rgb(11 21 51 / 0.06), 0 2px 6px rgb(11 21 51 / 0.05);
    --e2: 0 2px 4px rgb(11 21 51 / 0.05), 0 12px 32px -10px rgb(11 21 51 / 0.18);
    --e3: 0 4px 10px rgb(11 21 51 / 0.06), 0 28px 60px -20px rgb(11 21 51 / 0.28);
    --edge: inset 0 1px 0 rgb(255 255 255 / 0.8);
    color-scheme: light;
  }
  .site-header { background: rgb(255 255 255 / 0.78); }
  .site-header.is-scrolled { background: rgb(255 255 255 / 0.94); }
  .site-header.is-open { background: #fff; }
  .light { background: #F1F5FD; }
  .hero__chip { background: rgb(255 255 255 / 0.9); }
  .photo__tag { background: rgb(255 255 255 / 0.92); }
  .btn--primary { box-shadow: 0 8px 22px -10px rgb(35 71 232 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.18); }
  .side-rail:hover a, .side-rail:focus-within a { color: rgb(11 21 51 / 0.6); }
  body::before { background: linear-gradient(90deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.85) 55%, rgb(255 255 255 / 0) 100%); }
  .hero__glow { background: radial-gradient(closest-side, rgb(35 71 232 / 0.16), transparent 70%); }
  .stat--lead { background: linear-gradient(160deg, #EAF1FF, #fff 70%); }

  /* parts that stay dark on purpose: they're objects (a phone, a browser,
     a feature card, a banner), and they read as such on a white page */
  .plan--hl, .pcall, .cta-band, .build .browser, .app__side {
    --navy-950: #050A1C; --navy-900: #081130; --navy-850: #0B1638; --navy-800: #0F1D47; --navy-700: #16275C;
    --ink: #F1F5FF; --ink-soft: #A9B8DE; --ink-faint: #7F8FBA;
    --line: rgb(241 245 255 / 0.09); --line-strong: rgb(241 245 255 / 0.16);
    --sky: #8FB3FF;
    color: var(--ink);
  }
  .plan--hl { background: #0B1638; }
}

/* ---- guides + long-form text ------------------------------------------- */
.prose { max-width: 46rem; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--t-xl); color: var(--ink); line-height: 1.2; }
.prose h3 { margin-top: 1.8em; font-size: 1.18rem; color: var(--ink); line-height: 1.3; letter-spacing: -0.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--sky); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--sky); }
.crumbs { font: 400 var(--t-xs)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--sky); text-decoration: none; }
.page-hero h1.article-title { font-size: var(--t-2xl); max-width: 26ch; line-height: 1.1; }
.post__meta { font: 400 var(--t-sm)/1.4 var(--mono); color: var(--ink-faint); }
.page-hero p.post__meta { font-size: var(--t-sm); color: var(--ink-faint); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.post { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--navy-900); text-decoration: none; color: inherit; transition: border-color 200ms var(--ease), transform 300ms var(--ease); }
.post b { font-size: var(--t-lg); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.post .soft { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.post .post__meta { margin-top: var(--s-2); }
@media (hover: hover) and (pointer: fine) { .post:hover { border-color: var(--sky); transform: translateY(-3px); } }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .post { padding: var(--s-5); } }
