/* Nile Edge. Quiet surfaces, system type, one accent. Space and hairlines do the separating. */
:root {
  --bg: #FFFFFF;
  --tile: #F5F5F7;          /* secondary surface: alternate sections, tiles */
  --surface: #FFFFFF;       /* raised surface on a tile: inputs, selected segments */
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --hair: rgba(0, 0, 0, .08);
  --fill: rgba(118, 118, 128, .12);
  --fill-strong: rgba(120, 120, 128, .24);
  --accent: #183553;        /* brand navy: buttons, selected states */
  --accent-ink: #FFFFFF;
  --link: #1F5A94;          /* navy lifted for legible links */
  --gold: #9A7124;          /* brand gold, darkened to read as text */
  --gold-mark: #D9A63E;     /* brand gold for bars and marks */
  --steel: #8CABC7;
  --good: #1D7A4E;
  --band-ink: var(--ink);   /* kept for inline styles in page bodies */
  --band-muted: var(--muted);
  --deep: #0E1E31;          /* the one highlighted tile on the homepage */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
  --r-lg: 22px;
  --r-md: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --tile: #161617; --surface: #1D1D1F; --ink: #F5F5F7; --muted: #A1A1A6; --line: #424245;
    --hair: rgba(255, 255, 255, .12); --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(120, 120, 128, .36);
    --accent: #F5F5F7; --accent-ink: #000000; --link: #6CA6E0; --gold: #E2B455; --gold-mark: #E2B455; --good: #4CC48A;
    --deep: #0E1E31;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* In-page jumps stop below the sticky header, with room to breathe */
  scroll-padding-top: calc(52px + env(safe-area-inset-top, 0px) + 24px);
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* Type. Tracking tightens as size grows; leading tightens with it. */
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5rem); line-height: 1.03; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; }
.soft { color: var(--muted); }
.lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.38; letter-spacing: -0.02em; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.eyebrow { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--gold); }
.muted { color: var(--muted); }
.mono, .num { font-variant-numeric: tabular-nums; }

/* Header: a translucent layer content scrolls beneath */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; flex: none; border-radius: 6px; display: block; }
.brand .edge { color: inherit; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 6px 11px; color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: .875rem; letter-spacing: -0.01em; white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links .btn { margin-left: 10px; padding: 6px 14px; font-size: .875rem; color: var(--accent-ink); }
/* Three lines that fold into an X while the menu is open */
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; padding: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21.25px; }
.nav-toggle span:nth-child(3) { top: 26.5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
    border-bottom: 1px solid var(--hair);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--hair); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { display: flex; margin: 14px 0 0; padding: 12px; font-size: 1rem; }
}

/* Buttons: feedback on press, not on release */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em;
  cursor: pointer; transition: transform .1s ease-out, background-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 88%, var(--bg)); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--link); padding-inline: 4px; }
.btn.ghost::after { content: "\203A"; font-size: 1.35em; line-height: 0; position: relative; top: -.04em; transition: transform .2s; }
.btn.ghost:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover::after { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.small-btn {
  font: inherit; font-size: .875rem; font-weight: 500; border: 0; background: var(--fill); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: transform .1s ease-out, background-color .2s;
}
.small-btn:hover { background: var(--fill-strong); }
.small-btn:active { transform: scale(.96); }

/* Sections */
section { padding-block: clamp(72px, 10vw, 128px); }
.band { background: var(--tile); }
/* Two plain sections in a row share their gap instead of doubling it */
section:not(.band):not(.hero) + section:not(.band) { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 820px; }

/* Hero */
.hero { padding-block: clamp(72px, 11vw, 136px) clamp(64px, 8vw, 104px); }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-copy .lede { max-width: 34em; }
.hero-copy .actions { justify-content: center; margin-top: 8px; }
.svc-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 88px); }
@media (min-width: 760px) { .svc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc {
  display: flex; flex-direction: column; gap: 8px; padding: 30px 28px 26px; border-radius: var(--r-lg);
  background: var(--tile); color: var(--ink); transition: transform .12s ease-out, background-color .2s;
}
.svc:hover { text-decoration: none; background: color-mix(in srgb, var(--tile) 94%, var(--ink)); }
.svc:active { transform: scale(.985); }
.svc-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
.svc-desc { color: var(--muted); }
.svc-more { color: var(--link); margin-top: auto; padding-top: 10px; }
.svc-more::after { content: " \203A"; }
.hero-foot { text-align: center; color: var(--muted); font-size: .9375rem; margin: 28px auto 0; max-width: 44em; }

.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

/* Inner page heroes: product label, then the statement */
.page-hero { display: grid; gap: 22px; justify-items: center; text-align: center; padding-block: clamp(72px, 10vw, 120px) clamp(56px, 7vw, 88px); }
.page-hero h1 { max-width: 17ch; }
.page-hero .lede { max-width: 36em; }
.page-hero .actions { justify-content: center; margin-top: 6px; }
.page-hero .field { justify-items: center; }
.page-hero .seg { justify-self: center; }

/* Generic grids */
.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { display: grid; gap: 48px 40px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Feature cells: open columns, a hairline above each */
.cell { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.cell .k { font-size: .875rem; font-weight: 600; color: var(--gold); letter-spacing: -0.01em; }
.cell h3 { font-size: 1.25rem; }
.cell p:not(.k) { color: var(--muted); }

/* Tiles */
.card { background: var(--tile); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); min-width: 0; }
.band .card { background: var(--surface); }

/* Figures */
.proof { display: grid; gap: 36px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } .proof-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof > div { display: grid; gap: 6px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.proof strong { font-size: clamp(2.25rem, 4.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof span { color: var(--muted); font-size: .9375rem; max-width: 24ch; }

/* Small labels */
.tag, .label-pill { font-size: .875rem; font-weight: 600; color: var(--gold); letter-spacing: -0.01em; }
.label-pill { color: var(--muted); font-weight: 500; }
.pill { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--gold); letter-spacing: -0.005em; }

/* Lists of fits: rules, not bullets */
.fit { list-style: none; margin: 0; padding: 0; display: grid; }
.fit li { padding-block: 10px; border-top: 1px solid var(--hair); font-size: .9375rem; }
.fit.cols { gap: 0 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .fit.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fit.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Horizontal timeline */
.timeline-h { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 32px; grid-template-columns: 1fr; counter-reset: wk; }
@media (min-width: 720px) { .timeline-h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .timeline-h { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.timeline-h li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.timeline-h .when { font-size: .875rem; font-weight: 600; color: var(--gold); }
.timeline-h p { color: var(--muted); font-size: .9375rem; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); font-size: 2.5rem; font-weight: 300; line-height: .9; letter-spacing: -0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 60ch; }
.steps .when { font-size: .875rem; font-weight: 600; color: var(--gold); margin-left: 10px; letter-spacing: -0.01em; }
.case-body .steps li, aside .steps li { grid-template-columns: 40px 1fr; padding-block: 18px; }
.case-body .steps li::before, aside .steps li::before { font-size: 1.5rem; }

/* Engagement models */
.models { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .models-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 40px); display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto auto 1fr auto auto; min-width: 0; }
.model h3 { font-size: 1.625rem; letter-spacing: -0.025em; }
.model .muted { margin-bottom: 6px; }
.model .best { font-size: .9375rem; color: var(--muted); padding-top: 16px; }
.model .best b { color: var(--ink); font-weight: 600; }
.model .btn { justify-self: start; margin-top: 6px; }
.model.featured { background: var(--deep); color: #F5F5F7; }
.model.featured .muted, .model.featured .best { color: #A9B6C6; }
.model.featured .best b { color: #F5F5F7; }
.model.featured .tag { color: #E2B455; }
.model.featured .btn { background: #F5F5F7; color: var(--deep); }
.model.featured .chip.f { background: #E2B455; color: #1D1D1F; }
.model.featured .chip.o { background: #2E5784; }
.model.featured .then { color: #A9B6C6; }

/* Paths */
.paths { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path { background: var(--tile); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 40px); display: grid; gap: 14px; align-content: start; }
.band .path { background: var(--surface); }
.path h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { font-size: .875rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.chip.o { background: #183553; color: #FFFFFF; }
.chip.f { background: color-mix(in srgb, var(--gold-mark) 26%, transparent); }
.chip.l { background: color-mix(in srgb, var(--steel) 30%, transparent); }
.flow .then { font-size: .875rem; color: var(--muted); }

/* Results */
.case-mini { background: var(--tile); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 40px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.case-mini h3 { font-size: 1.375rem; letter-spacing: -0.022em; }

/* Pain points */
.pains { display: grid; gap: 44px 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pain { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.pain h3 { font-size: 1.1875rem; }
.pain p { color: var(--muted); font-size: .9375rem; }
.pain .fix { color: var(--ink); font-weight: 500; padding-top: 6px; }

/* Time zone coverage */
.tz-card { background: var(--tile); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; min-width: 0; }
.tz-card .eyebrow { font-size: .875rem; }
.tz-card h3 { font-size: 1.25rem; margin-top: -10px; }
.tz-axis, .tz-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.tz-axis { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tz-axis div:last-child { display: flex; justify-content: space-between; }
.tz-row .city { font-size: .875rem; color: var(--muted); }
.tz-track { position: relative; height: 24px; border-radius: 6px; background: var(--fill); }
.tz-block { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--gold-mark); }
.tz-note { font-size: .9375rem; color: var(--muted); }
.tz-note strong { color: var(--ink); font-weight: 600; }

/* Quiz */
.quiz-band { padding-block: 0 clamp(72px, 10vw, 128px); }
.quiz { display: grid; gap: 28px; }
.quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.quiz-head .eyebrow { font-size: .9375rem; margin-bottom: 8px; }
.quiz-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.quiz-progress { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.q { border: 0; margin: 0; padding: 0; display: grid; }
.q legend { font-weight: 600; font-size: 1.1875rem; margin-bottom: 14px; padding: 0; letter-spacing: -0.02em; }
.opts { display: grid; grid-template-columns: 1fr; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.opts label { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; transition: background-color .15s; }
.opts label + label { box-shadow: inset 0 1px 0 var(--hair); }
.opts label:hover { background: color-mix(in srgb, var(--surface) 96%, var(--ink)); }
.opts label:active { background: color-mix(in srgb, var(--surface) 90%, var(--ink)); }
.opts input { accent-color: #183553; width: 20px; height: 20px; flex: none; margin: 0; }
.quiz-result { display: grid; gap: 14px; justify-items: start; }
.quiz-result h3 { font-size: 1.75rem; letter-spacing: -0.03em; }
.quiz-result .tag { color: var(--muted); font-weight: 500; }
.quiz-nav { min-height: 0; }

/* Compare tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .875rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--ink); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--muted); }
.compare .us { color: var(--ink); font-weight: 600; background: var(--tile); padding-left: 16px; }
.compare thead .us { color: var(--ink); border-radius: 12px 12px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; font-weight: 300; color: var(--muted); transition: rotate .25s cubic-bezier(.2, .8, .2, 1);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 68ch; margin-top: -6px; }

/* Pricing */
.seg {
  justify-self: start; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 2px;
  background: var(--fill); border-radius: 10px;
}
.seg button {
  font: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: -0.01em; border: 0; background: transparent; color: var(--ink);
  padding: 7px 16px; border-radius: 8px; cursor: pointer; transition: background-color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: #636366; } }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 8px; }
.jump a { font-size: 1rem; }
.jump a::after { content: " \203A"; }

.price-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price { background: var(--tile); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.price .lvl { display: grid; gap: 4px; min-height: 3.2em; align-content: start; }
.price .lvl h3, .price-wide .lvl h3 { font-size: 1.375rem; letter-spacing: -0.022em; }
.price .lvl .pill { order: -1; }
.amt { font-size: 2.75rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.amt small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: -0.015em; }
.price > p { color: var(--muted); font-size: .9375rem; }
.price .fit { padding-top: 6px; }
.price-wide { background: var(--tile); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; }
.price-wide .lvl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.addon, .calc-cta {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-radius: var(--r-lg); background: var(--tile);
}
.addon strong, .calc-cta strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-cta { margin-top: 40px; background: none; padding-inline: 0; border-top: 1px solid var(--line); border-radius: 0; }

/* Forms */
.form { display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 500; color: var(--ink); padding: 0; }
fieldset.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 20%, transparent); }
::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-size: .9375rem; font-weight: 400;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s, background-color .15s;
}
.choice label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--link); }
.choice input { accent-color: #183553; margin: 0; }
.form-status { font-size: .9375rem; color: var(--muted); }
.form-status.ok { color: var(--good); }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copy-row code { font-family: inherit; font-size: 1.0625rem; font-weight: 500; }

/* Switch, iOS style */
.toggle { display: inline-flex; align-items: center; gap: 12px; font-size: .9375rem; cursor: pointer; }
.toggle input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; position: relative; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; background: var(--fill-strong); transition: background-color .25s;
}
.toggle input::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #FFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1);
}
.toggle input:checked { background: var(--good); }
.toggle input:checked::before { transform: translateX(18px); }

/* Calculator */
.calc { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .calc > .card:last-child { position: sticky; top: 72px; } }
.calc-inputs { display: grid; gap: 26px; }
.range-row { display: grid; gap: 10px; }
.range-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-row output { font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: #183553; margin: 0; }
.costs { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); }
.costs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.costs-head h3 { font-size: 1.1875rem; margin-bottom: 4px; }
#costs-badge.mine { color: var(--ink); }
.costs-group { font-size: .875rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.costs .grid-2 { gap: 16px; }
.costs .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.costs .hint, .hint { font-size: .8125rem; color: var(--muted); }
.input-unit { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.input-unit:focus-within { border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 20%, transparent); }
.input-unit input { border: 0 !important; box-shadow: none !important; background: transparent; padding-inline: 10px; font-variant-numeric: tabular-nums; min-width: 0; }
.unit { color: var(--muted); font-size: .9375rem; flex: none; }
.unit.pre { padding-left: 14px; }
.unit.post { padding-right: 14px; }
.preview-note { font-size: .8125rem; color: var(--muted); }
.calc > .card:last-child { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.result-head { display: grid; gap: 6px; }
.result-head .eyebrow { font-size: .9375rem; }
.big { font-size: clamp(3rem, 6vw, 4.25rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-head.neg .big { color: var(--muted); }
.bars { display: grid; gap: 16px; }
.bar { display: grid; gap: 8px; }
.bar .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.bar .lbl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar .track-b { height: 10px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--fill-strong); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar.ne .fill { background: var(--gold-mark); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.kv div { padding-block: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.kv span { font-size: .8125rem; color: var(--muted); }
.kv strong { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.gate { background: var(--tile); border-radius: 16px; padding: 24px; display: grid; gap: 16px; }
.gate h3 { font-size: 1.1875rem; }
.breakdown table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.breakdown td { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tfoot td { font-weight: 600; border-bottom: 0; }
.breakdown .card { background: var(--tile) !important; }

/* Case studies */
.cs-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .cs-grid { grid-template-columns: 1fr 1fr; }
  #cs-card-a { grid-column: 1; grid-row: 1; }
  #cs-card-b { grid-column: 2; grid-row: 1; }
  .cs-panel { grid-column: 1 / -1; grid-row: 2; }
}
.cs-card {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(28px, 3.4vw, 40px); background: var(--tile); border-radius: var(--r-lg);
  transition: transform .12s ease-out, background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.cs-card:hover { background: color-mix(in srgb, var(--tile) 94%, var(--ink)); }
.cs-card:active { transform: scale(.985); }
.cs-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 60%, transparent); outline-offset: 2px; }
.cs-card[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.cs-sum-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.cs-card-title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; text-wrap: balance; }
.cs-card-blurb { color: var(--muted); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .875rem; color: var(--muted); }
.cs-more { margin-top: auto; padding-top: 10px; color: var(--link); }
.cs-more::after { content: "\203A"; display: inline-block; margin-left: 5px; transition: rotate .25s cubic-bezier(.2, .8, .2, 1); }
.cs-card[aria-expanded="true"] .cs-more::after { rotate: 90deg; }
.cs-card .when-open { display: none; }
.cs-card[aria-expanded="true"] .when-open { display: inline; }
.cs-card[aria-expanded="true"] .when-closed { display: none; }
.cs-panel { padding: clamp(8px, 2vw, 24px) 0; min-width: 0; }
.case { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
.case-side { min-width: 0; }
.case-body { display: grid; gap: 32px; min-width: 0; }
.case-body > div > h3 { margin-bottom: 8px; }
.case-body > div > p { color: var(--muted); max-width: 66ch; }
.facts { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.facts div { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.cs-strip { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.cs-strip h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.028em; max-width: 30ch; }

.lcases { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .lcases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lcase { background: var(--surface); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 36px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.lcase h3 { font-size: 1.3125rem; }
.lc-logo { height: 64px; display: flex; align-items: center; margin-block: 4px 6px; }
.lc-logo img { max-height: 36px; max-width: 180px; width: auto; height: auto; display: block; }
@media (prefers-color-scheme: dark) { .lc-logo { background: #FFF; border-radius: 12px; padding: 10px 16px; align-self: start; justify-self: start; } }
.lc-logo-text { font-weight: 700; font-size: 1.25rem; }

/* About */
.about-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 72px; } }
.about-grid > div { align-content: start; gap: 18px !important; }
.about-grid > div > p:not(.lede) { max-width: 64ch; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.headshot { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { font-size: .875rem; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: .9375rem; }
.book { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .book { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.book-img { width: 100%; max-width: 220px; height: auto; display: block; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), 0 12px 24px -12px rgba(0, 0, 0, .25); }

/* Contact */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.contact-grid aside .card h3 { font-size: 1.1875rem; }
.contact-grid aside .eyebrow { font-size: .9375rem; }

/* Closing call to action */
.cta-tile {
  background: var(--tile); border-radius: var(--r-lg); text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px); display: grid; gap: 28px; justify-items: center;
}
.cta-copy { display: grid; gap: 16px; justify-items: center; }
.cta-copy h2 { max-width: 20ch; }
.cta-copy .lede { max-width: 34em; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--tile); color: var(--muted); font-size: .8125rem; letter-spacing: -0.01em; padding-block: 48px 40px; }
.site-footer .foot { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .site-footer .foot { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { font-size: .9375rem; }
.site-footer .brand img { width: 22px; height: 22px; }
.site-footer h4 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .foot + .wrap { margin-top: 20px !important; }

/* Phones: trimmed view, swipeable groups */
.m-only { display: none; }
@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
  .m-hide { display: none !important; }
  .m-only { display: block; }
  section { padding-block: 60px; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .m-swipe {
    display: flex !important; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; gap: 12px !important;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
    padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  .m-swipe > .cell, .m-swipe > .pain { background: var(--tile); border: 0; border-radius: var(--r-lg); padding: 24px; }
  .band .m-swipe > .cell { background: var(--surface); }
  .paths-sec .paths, .paths-sec .section-head .lede, .paths-sec > .wrap > p.muted { display: none; }
  .m-cta { display: grid; gap: 12px; justify-items: start; }
  .tz-card { display: none; }
  .steps li { grid-template-columns: 40px 1fr; gap: 10px; padding-block: 20px; }
  .steps li::before { font-size: 1.5rem; }
  .steps .when { display: block; margin-left: 0; margin-top: 2px; }
}
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .compare { font-size: .875rem; }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .btn:active, .svc:active, .cs-card:active, .small-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .nav-links { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #3A3A3C; --line: #8E8E93; --hair: rgba(0, 0, 0, .3); }
  .site-header { background: var(--bg); border-bottom-color: var(--line); }
}

/* Skip link and footer headings */
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; font-size: .875rem; }
.skip:focus { top: 10px; text-decoration: none; }
.site-footer .foot-h { font-size: .8125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
