:root {
  --white: #FFFFFF;
  --light: #F7F9FC;
  --teal: #0EA5E9;
  --teal-dark: #0891B2;
  --navy: #0D1B2A;
  --slate: #64748B;
  --card: #F0F9FF;
  --border: #E2E8F0;
  --sky-line: #BAE6FD;
  --font: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--slate);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.35; }
p { margin: 0; }
a { color: var(--navy); text-decoration-color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons: white on #0891B2 is set at large-text size to meet WCAG contrast */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.5rem; border-radius: 6px;
  font: 600 1.1875rem/1.2 var(--font); text-decoration: none;
  background: var(--teal-dark); color: var(--white); border: 2px solid var(--teal-dark);
}
.btn:hover { background: #0782A0; border-color: #0782A0; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); border-color: var(--sky-line); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 600; letter-spacing: -0.01em; font-size: 1.0625rem; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--slate); font-size: 1rem; }
.nav a:not(.btn):hover { color: var(--navy); }
.nav .btn { min-height: 2.6rem; padding: .45rem 1.1rem; }


/* Sections */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.tint { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lede { font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; }

/* Hero */
.hero { padding-top: clamp(3.5rem, 9vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero .lede { margin-top: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Hero trace: one policy, bound to closed */
.trace { list-style: none; margin: clamp(3.5rem, 8vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.trace::before, .trace::after { content: ""; position: absolute; top: .5rem; left: 10%; height: 2px; }
.trace::before { right: 10%; background: var(--border); }
.trace::after { width: 80%; background: var(--teal); transform-origin: left; animation: draw 1.6s .3s cubic-bezier(.4,0,.2,1) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.trace li { position: relative; text-align: center; padding-top: 1.75rem; color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.trace li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1.125rem; height: 1.125rem; margin-left: -.5625rem; border-radius: 50%; background: var(--white); border: 2px solid var(--teal-dark); z-index: 1; }
.trace li:last-child::before { background: var(--teal-dark); }
.trace small { display: block; font-weight: 400; color: var(--slate); font-size: .875rem; margin-top: .2rem; }
@media (max-width: 700px) {
  .trace { grid-template-columns: 1fr; gap: 1.1rem; }
  .trace::before, .trace::after { top: .5rem; bottom: .5rem; left: .5rem; right: auto; width: 2px; height: auto; }
  .trace::after { transform-origin: top; animation-name: drawv; }
  @keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .trace li { text-align: left; padding: 0 0 0 2.25rem; }
  .trace li::before { left: 0; margin-left: 0; top: .1rem; }
  .trace small { display: inline; margin-left: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .trace::after { animation: none; } }

/* Problem */
.problem { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .problem { grid-template-columns: 1.1fr 1fr; } }
.problem p.body { margin-top: 1.25rem; max-width: 36rem; }
.proof { margin: 0; padding: 2rem clamp(1.5rem, 4vw, 2.25rem); background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.proof p { color: var(--navy); font-size: clamp(1.1875rem, 2.3vw, 1.4375rem); line-height: 1.4; }
.proof strong { font-family: var(--mono); font-size: 1.35em; font-weight: 600; color: var(--teal-dark); white-space: nowrap; letter-spacing: -0.02em; }
.proof footer { margin-top: 1.25rem; font-size: .875rem; font-style: italic; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--teal-dark); margin-bottom: 1rem; }
.steps h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.diagram { margin: clamp(3.5rem, 7vw, 5rem) 0 0; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .d-mobile { display: none; max-width: 22rem; margin: 0 auto; }
@media (max-width: 640px) { .diagram .d-desktop { display: none; } .diagram .d-mobile { display: block; } }
.diagram figcaption { margin-top: 1.25rem; text-align: center; font-style: italic; font-size: .975rem; }

/* What we run */
.run { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--sky-line); border: 1px solid var(--sky-line); border-radius: 8px; overflow: hidden; }
@media (min-width: 640px) { .run { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .run { grid-template-columns: repeat(3, 1fr); } }
.run div { background: var(--card); padding: 1.75rem 1.75rem 2rem; }
.run svg { width: 2rem; height: 2rem; color: var(--teal-dark); margin-bottom: 1rem; }
.run h3 { margin-bottom: .4rem; }
.run p { font-size: 1rem; }

/* Why ABO */
.why { display: grid; grid-template-columns: 1fr; gap: 2.25rem 3.5rem; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, 1fr); } }
.why div { padding-top: 1rem; border-top: 1px solid var(--border); }
.why h3 { font-size: 1.25rem; margin-bottom: .4rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1.6fr 1fr; } .pricing .cta-cell { justify-self: end; } }
.pricing p.lede { margin-top: 1.25rem; }

/* Who it's for */
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.who li { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .who li { grid-template-columns: 16rem 1fr; gap: 2rem; align-items: baseline; } }
.who strong { color: var(--navy); font-size: 1.25rem; }
.who em { font-style: normal; color: var(--teal-dark); font-weight: 600; }

/* Closing */
.closing { background: var(--card); border-top: 1px solid var(--sky-line); }
.closing .wrap { max-width: 48rem; text-align: center; }
.closing p { margin: 1.25rem auto 2rem; max-width: 38rem; }

/* Footer */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }

/* ---------- v2: multi-page ---------- */
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 6px; color: var(--navy); font-weight: 600; font-size: 1rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--card); border-color: var(--sky-line); }
.menu ul { list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: calc(100% + .5rem); width: min(15rem, calc(100vw - 7rem)); background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.menu li a { display: block; padding: .65rem .75rem; color: var(--navy); text-decoration: none; border-radius: 4px; }
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--card); }
@media (max-width: 900px) { .nav > a:not(.btn) { display: none; } .menu { display: block; } }
@media (max-width: 760px) { .brand span { display: inline; font-size: .95rem; } }
@media (max-width: 420px) { .brand span { display: none; } }

.eyebrow { display: block; font-size: 1rem; color: var(--teal-dark); font-weight: 500; margin-bottom: 1.25rem; }

/* Sub-page hero */
.page-hero { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.08; max-width: 20ch; text-wrap: balance; }
.page-hero .lede { margin-top: 1.25rem; }
.page-hero + section { padding-top: 0; }

/* Screenshot frame */
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: box-shadow .15s ease-out; }
.shot a:hover { box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .9rem; font-size: 1rem; }
.shot figcaption strong { display: block; color: var(--navy); font-size: 1.0625rem; margin-bottom: .2rem; }
.note { margin-top: 1.5rem; font-size: .9375rem; font-style: italic; }

/* Home product strip */
.strip { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 860px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip .shot a { aspect-ratio: 16 / 11; }
.strip .shot picture { display: block; height: 100%; }
.strip .shot img { height: 100%; object-fit: cover; object-position: top left; }
.more-link { margin-top: 2rem; font-weight: 600; }

/* Intermediaries band */
.band { background: var(--navy); color: #CBD5E1; }
.band h2 { color: var(--white); max-width: 22ch; }
.band .body { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; }
.band blockquote { margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 3px solid #22D3EE; max-width: 52rem; }
.band blockquote p { color: var(--white); font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }

/* How it works: journey */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: j; }
.journey > li { counter-increment: j; display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 0 0 clamp(3rem, 6vw, 4.5rem) 3.25rem; position: relative; }
.journey > li::before { content: counter(j); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--white); border: 2px solid var(--teal-dark); color: var(--teal-dark); font-weight: 600; display: grid; place-items: center; z-index: 1; }
.journey > li::after { content: ""; position: absolute; left: 1.0625rem; top: 2.25rem; bottom: 0; width: 2px; background: var(--border); }
.journey > li:last-child { padding-bottom: 0; }
.journey > li:last-child::after { display: none; }
.journey h3 { font-size: 1.375rem; margin: .2rem 0 .5rem; }
.journey .text p { max-width: 34rem; }
@media (min-width: 960px) { .journey > li.has-shot { grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: start; } }

.cards3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 820px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.cards3 > div { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cards3 h3 { font-size: 1.25rem; margin-bottom: .5rem; }

/* Services: alternating rows */
.service { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service { grid-template-columns: 1fr 1.3fr; gap: 4rem; } .service.flip .text { order: 2; } }
.service h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.service .text > p { margin-top: 1rem; max-width: 34rem; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--navy); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75rem; height: .4rem; border-left: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark); transform: rotate(-45deg); }

/* Product tour */
.tour { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.tour .head { display: grid; grid-template-columns: 1fr; gap: .5rem 3rem; margin-bottom: 1.5rem; }
@media (min-width: 860px) { .tour .head { grid-template-columns: 1fr 1.4fr; align-items: end; } }
.tour .num { font-family: var(--mono); color: var(--teal-dark); font-size: .9375rem; font-weight: 500; }
.tour h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Trust */
.summary { font-size: clamp(1.125rem, 2vw, 1.3125rem); color: var(--navy); max-width: 50rem; line-height: 1.5; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.trust { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } }
.trust > div { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.trust h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.closing-line { margin-top: clamp(2.5rem, 6vw, 4rem); font-size: clamp(1.25rem, 2.6vw, 1.625rem); color: var(--navy); font-weight: 500; max-width: 40rem; text-wrap: balance; }

/* Who it's for */
.persona { display: grid; grid-template-columns: 1fr; gap: 1rem 4rem; padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .persona { grid-template-columns: 1fr 1.3fr; } }
.persona h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.persona .quote { margin-top: .75rem; font-size: 1.1875rem; color: var(--teal-dark); }
.persona .ticks { margin-top: 0; }

/* Pricing detail */
.price-lines { margin-top: clamp(2.5rem, 6vw, 3.5rem); display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 820px) { .price-lines { grid-template-columns: repeat(3, 1fr); } }
.price-lines > div { border-top: 2px solid var(--navy); padding-top: 1rem; }
.price-lines h3 { margin-bottom: .4rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.contact .card { background: var(--card); border: 1px solid var(--sky-line); border-radius: 8px; padding: 2rem; }
.contact .card p + p { margin-top: .75rem; }
.contact .email { font-size: 1.25rem; font-weight: 600; word-break: break-word; }

/* Footer v2 */
.site-footer { padding: clamp(3rem, 6vw, 4rem) 0 2.5rem; background: var(--light); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; justify-content: stretch; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .tagline { margin-top: .75rem; max-width: 22rem; }
.site-footer h2 { font-size: .9375rem; font-weight: 600; color: var(--navy); letter-spacing: 0; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer ul a { text-decoration: none; color: var(--slate); }
.site-footer ul a:hover { color: var(--navy); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1.5rem; font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
