/* ==========================================================================
   Ledger Labs — lead-magnet landing page
   Visual world: austere monochrome editorial (Consultare direction),
   brand navy #00194c as the single accent, logo green as a marker only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink & paper */
  --ink:          #0e1424;
  --ink-2:        #1b2436;
  --navy:         #00194c;
  --navy-deep:    #000d26;
  --paper:        #ffffff;
  --paper-2:      #f6f7f9;
  --paper-3:      #eceef2;

  /* Text */
  --text:         #0e1424;
  --text-muted:   #55617d;   /* 5.6:1 on --paper */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #a9b4cc; /* 7.3:1 on --navy-deep */

  /* Marker green, from the logo. Never used for small text on white. */
  --marker:       #55a630;
  --marker-ink:   #3a7a1c;   /* 5.1:1 on --paper, for text use */

  /* Lines */
  --line:         rgba(0, 25, 76, .13);
  --line-strong:  rgba(0, 25, 76, .24);
  --line-dark:    rgba(255, 255, 255, .14);

  /* Type */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --gutter:       clamp(20px, 5vw, 64px);
  --maxw:         1240px;
  --section-y:    clamp(72px, 9vw, 148px);
  --header-h:     76px;

  /* Motion */
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
  --dur:          260ms;

  --radius:       14px;
  --radius-sm:    10px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;            /* html only — never body (breaks window.scrollTo) */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.has-smoothscroll { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.06;
  text-wrap: balance;
  margin: 0;
}
p { text-wrap: pretty; margin: 0; }
figure, blockquote { margin: 0; }   /* UA gives figure 1em 40px, which narrows every card */

a { color: inherit; }

/* Browser surfaces themed from the palette */
::selection { background: var(--navy); color: #fff; }
:root { accent-color: var(--navy); caret-color: var(--navy); }
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: var(--gutter); top: 10px;
  transform: translateY(-160%);
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 99px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  z-index: 200;
  transition: transform 180ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Shared type pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 9px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px 8px 14px;
  line-height: 1.35;
  background: transparent;
  max-width: 100%;
}
.eyebrow::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--marker);
  margin-top: .42em;             /* aligns to line 1 even when text wraps */
}
.on-dark .eyebrow { color: var(--text-on-dark-muted); border-color: var(--line-dark); }

.h-display { font-size: clamp(2.35rem, 5.6vw, 4.4rem); }
.h-section { font-size: clamp(1.95rem, 3.6vw, 3.1rem); }
.h-sub     { font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.02em; }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.7;
}
.on-dark .lede { color: var(--text-on-dark-muted); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.is-centered { justify-items: center; text-align: center; }
.section-head.is-centered .lede { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 99px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600;
  letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform 120ms var(--ease-out);
}
.btn:active { transform: scale(.97); }

.btn-solid { background: var(--navy); color: #fff; box-shadow: 0 8px 22px -12px rgba(0,25,76,.75); }
.btn-solid:hover { background: #002a77; box-shadow: 0 14px 30px -14px rgba(0,25,76,.8); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(0,25,76,.045); }

.on-dark .btn-solid { background: #fff; color: var(--navy); box-shadow: none; }
.on-dark .btn-solid:hover { background: var(--paper-3); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); }

.btn .arrow { width: 15px; height: 15px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 320ms var(--ease-out),
              border-color 320ms var(--ease-out),
              backdrop-filter 320ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; min-height: 44px; }
.brand img { height: 27px; width: auto; }
.brand .logo-light { display: block; }
.brand .logo-dark  { display: none; }
.site-header:not(.is-stuck) .brand .logo-light { display: none; }
.site-header:not(.is-stuck) .brand .logo-dark  { display: block; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; list-style: none; padding: 0;
}
.nav-cta-mobile { display: none; }   /* header CTA covers desktop; shown at the mobile breakpoint */

.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 8px 14px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  color: #fff; text-decoration: none; border-radius: 99px;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header.is-stuck .nav-links a { color: var(--text); }
.nav-links a:hover { background: rgba(255,255,255,.14); }
.site-header.is-stuck .nav-links a:hover { background: rgba(0,25,76,.06); color: var(--navy); }

.header-cta { flex: none; }
.site-header .header-cta.btn-solid { background: #fff; color: var(--navy); box-shadow: none; }
.site-header .header-cta.btn-solid:hover { background: var(--paper-3); }
.site-header.is-stuck .header-cta.btn-solid { background: var(--navy); color: #fff; }
.site-header.is-stuck .header-cta.btn-solid:hover { background: #002a77; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; flex: none;
  align-items: center; justify-content: center;
  margin-left: auto;
  background: transparent; border: 1px solid rgba(255,255,255,.4);
  border-radius: 99px; cursor: pointer; color: #fff;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.site-header.is-stuck .nav-toggle { color: var(--text); border-color: var(--line-strong); }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex; align-items: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 5vw, 72px);
  isolation: isolate;
  background: var(--navy-deep);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,10,32,.94) 0%, rgba(0,10,32,.86) 26%, rgba(0,10,32,.45) 58%, rgba(0,10,32,.55) 100%),
    linear-gradient(to right, rgba(0,10,32,.72) 0%, rgba(0,10,32,.18) 62%, rgba(0,10,32,.35) 100%);
}
.hero-inner { position: relative; display: grid; gap: 30px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.45rem, 5.9vw, 5rem);
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: #fff; opacity: .72; }
.hero .lede { color: #d8dfee; max-width: 54ch; }
.hero .btn-row { margin-top: 4px; }

.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px clamp(18px, 3vw, 40px);
  margin-top: clamp(26px, 3.4vw, 46px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-proof li { list-style: none; display: flex; align-items: baseline; gap: 9px; }
.hero-proof .n {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 500; color: #fff; letter-spacing: -.03em;
}
.hero-proof .l {
  font-size: 12px; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: #b9c4da;
}
.hero-proof ul, .hero-proof.list { padding: 0; margin: 0; }

/* ---------- Positioning statement ---------- */
.statement { background: var(--paper); }
.statement .wrap { max-width: 940px; text-align: center; display: grid; gap: 26px; justify-items: center; }
.statement p.big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 2.35rem);
  line-height: 1.24; letter-spacing: -.028em;
  text-wrap: balance;
}
.statement p.big b { font-weight: 500; color: var(--navy); }

/* ---------- Problem grid ---------- */
.problem { background: var(--paper-2); }
.card-grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.card-grid > .card { background: var(--paper); padding: clamp(26px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.card .card-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; letter-spacing: -.025em; }
.card p { color: var(--text-muted); font-size: 16px; }
.card .card-mark {
  width: 26px; height: 2px; background: var(--marker); border-radius: 2px; margin-bottom: 6px;
}

/* ---------- Pillars: accordion + photo ---------- */
.pillars-layout {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1.02fr .98fr;
  align-items: start;
}
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer;
  padding: 22px 0; min-height: 56px;
  font-family: var(--font-display); font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  font-weight: 500; letter-spacing: -.025em; color: var(--text); text-align: left;
  transition: color var(--dur) var(--ease-out);
}
.acc-trigger:hover { color: var(--navy); }
.acc-sign { position: relative; flex: none; width: 22px; height: 22px; }
.acc-sign::before, .acc-sign::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--navy); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.acc-sign::before { width: 15px; height: 1.5px; }
.acc-sign::after  { width: 1.5px; height: 15px; }
.acc-trigger[aria-expanded="true"] .acc-sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-panel { overflow: hidden; }
.acc-panel[hidden] { display: none !important; }
.acc-panel-inner { padding-bottom: 26px; display: grid; gap: 16px; }
.acc-panel-inner p { color: var(--text-muted); font-size: 16px; max-width: 56ch; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acc-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text-muted); }
.acc-list .tick { flex: none; width: 17px; height: 17px; margin-top: .28em; color: var(--marker-ink); }

.pillars-media { position: relative; padding-bottom: 88px; }
.pillars-media > img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 46%;
  border-radius: var(--radius);
}
.quote-float {
  position: absolute; left: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); bottom: 0;
  background: var(--navy-deep); color: #fff;
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: 0 24px 50px -26px rgba(0,13,38,.7);
  display: grid; gap: 12px;
}
.quote-float blockquote { margin: 0; font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }
.quote-float cite { font-style: normal; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-on-dark-muted); }

/* ---------- Verticals ---------- */
.verticals-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.vert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); }
.vert-list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.vert-list .v-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; }
.vert-list .v-note { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Dark results band ---------- */
.band {
  position: relative; isolation: isolate;
  background: var(--navy-deep); color: #fff;
  padding-block: clamp(76px, 9vw, 150px);
}
.band-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,13,38,.9), rgba(0,13,38,.82));
}
.band h2 { color: #fff; }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(36px, 4.5vw, 60px);
}
.stat {
  background: rgba(0,13,38,.62);
  padding: clamp(24px, 2.8vw, 36px);
  display: grid; gap: 6px; align-content: start;
  backdrop-filter: blur(3px);
}
.stat .s-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.stat .s-value { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.stat .s-note { font-size: 14.5px; color: var(--text-on-dark-muted); }
.band-foot { margin-top: 22px; font-size: 13.5px; color: var(--text-on-dark-muted); max-width: 74ch; }

/* ---------- Pricing tabs ---------- */
.pricing { background: var(--ink); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line-dark); padding-bottom: 18px; margin-bottom: clamp(32px, 4vw, 52px); }
.tab {
  min-height: 48px; padding: 12px 22px; border-radius: 99px;
  background: transparent; border: 1px solid var(--line-dark); color: #cdd6e8;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tab:hover { color: #fff; border-color: rgba(255,255,255,.42); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tabpanel[hidden] { display: none !important; }
.tab-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.plan-price .amt { font-family: var(--font-display); font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; }
.plan-price .per { font-size: 15px; color: var(--text-on-dark-muted); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.plan-meta li {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line-dark); border-radius: 99px; padding: 7px 14px; color: #cdd6e8;
}
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: #cdd6e8; }
.plan-list .tick { flex: none; width: 17px; height: 17px; margin-top: .3em; color: var(--marker); }
.tab-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 58% 42%; border-radius: var(--radius); }
.pricing-foot { margin-top: clamp(30px, 3.6vw, 46px); padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--text-on-dark-muted); max-width: 82ch; }

/* ---------- Testimonials ---------- */
.quotes { background: var(--paper-2); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.2vw, 30px);
  display: grid; gap: 16px;
  grid-template-rows: 1fr auto;   /* attribution sits on one line across all cards */
}
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; letter-spacing: -.022em; line-height: 1.36; }
.quote-card .who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-card .initials {
  flex: none; width: 36px; height: 36px; border-radius: 99px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.quote-card .who-text { display: block; line-height: 1.3; }
.quote-card .who-name { display: block; font-size: 14.5px; font-weight: 600; }
.quote-card .who-role { display: block; font-size: 13px; color: var(--text-muted); }

/* ---------- Platforms band ---------- */
.platforms { background: var(--paper); padding-block: clamp(46px, 5vw, 78px); }
.platforms .wrap { border-top: 1px solid var(--line); padding-top: clamp(26px, 3vw, 40px); }
.platform-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.platform-row {
  display: flex; flex-wrap: wrap; gap: 12px clamp(22px, 3.4vw, 46px);
  list-style: none; margin: 0; padding: 0;
}
.platform-row li {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 500; letter-spacing: -.02em; color: var(--text);
  opacity: .42;
}

/* ---------- Founder two-up ---------- */
.founder { background: var(--paper); }
.founder-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 5vw, 76px); align-items: stretch; }
/* The media column stretches to the text column's height; the image is taken out
   of flow so it can fill that height instead of dictating it. min-height keeps the
   item from collapsing if it ever becomes the taller of the two. */
.founder-media { position: relative; min-height: 480px; border-radius: var(--radius); overflow: hidden; }
.founder-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.cred-list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cred-list li { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cred-list .c-key { flex: none; width: 148px; font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-muted); padding-top: .32em; }
.cred-list .c-val { flex: 1 1 240px; color: var(--text); }

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 74px 1fr 1.35fr; gap: 12px clamp(20px, 3vw, 48px);
  padding: clamp(24px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.steps .step-num { font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--marker-ink); padding-top: .3em; }
.steps .step-title { font-family: var(--font-display); font-size: clamp(1.16rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.025em; }
.steps .step-note { color: var(--text-muted); font-size: 16px; max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(34px, 5vw, 76px); align-items: start; }
.faq-aside {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px); display: grid; gap: 16px; align-content: start;
}
.faq-aside p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Final CTA + form ---------- */
.final { background: var(--navy-deep); color: #fff; }
.final-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.final h2 { color: #fff; }
.contact-lines { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 32px; }
.contact-lines .c-key { font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.contact-lines a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,.45); }
.contact-lines a:hover { text-decoration-color: #fff; }

.form-card {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: #fff; }
.field .req { font-weight: 500; color: var(--text-on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px;
  background: rgba(0,13,38,.5);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-sm);
  color: #fff; font-family: var(--font-body); font-size: 16px;
  padding: 13px 15px;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: #92a0bd; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.42); }
.field .err { font-size: 13.5px; color: #ffb4ae; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff9b93; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
fieldset legend { font-size: 14px; font-weight: 600; color: #fff; padding: 0; margin-bottom: 12px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list label { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 10px 0; font-size: 15px; color: #cdd6e8; cursor: pointer; line-height: 1.45; }
.check-list input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: .1em 0 0; }

.form-status { margin-top: 16px; font-size: 15px; color: #b9f0a0; }
.form-status:empty { margin-top: 0; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--text-on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(48px, 6vw, 80px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand img { height: 26px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  font-size: 15px; color: #cdd6e8; text-decoration: none; border-radius: 99px;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.footer-meta { padding-top: 26px; font-size: 14.5px; color: var(--text-on-dark-muted); line-height: 1.9; }
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.footer-meta a:hover { text-decoration-color: #fff; }
.footer-legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: #8794b0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: #cdd6e8; }

/* ---------- Accessibility statement page ---------- */
.doc-hero { background: var(--navy-deep); color: #fff; padding-top: calc(var(--header-h) + clamp(56px, 7vw, 100px)); padding-bottom: clamp(48px, 6vw, 88px); }
.doc-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 20ch; }
.doc-hero .lede { color: var(--text-on-dark-muted); margin-top: 18px; }
.doc { background: var(--paper); padding-block: clamp(56px, 7vw, 110px); }
.doc .wrap { max-width: 800px; }
.doc h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-top: clamp(38px, 4vw, 56px); }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.16rem; margin-top: 28px; }
.doc p, .doc li { color: var(--text-muted); font-size: 16.5px; }
.doc p { margin-top: 14px; max-width: 70ch; }
.doc ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 9px; max-width: 70ch; }
.doc a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.doc-page .site-header .brand .logo-light { display: block; }
.doc-page .site-header .brand .logo-dark { display: none; }
.doc-page .site-header:not(.is-stuck) .brand .logo-light { display: none; }
.doc-page .site-header:not(.is-stuck) .brand .logo-dark { display: block; }

/* ---------- Scroll reveal (content is visible by default) ---------- */
.pre-reveal { opacity: 0; transform: translateY(18px); }
.is-visible {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .pre-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .pillars-layout,
  .verticals-layout,
  .tab-layout,
  .founder-layout,
  .faq-layout,
  .final-layout { grid-template-columns: 1fr; }

  .quote-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps li { grid-template-columns: 56px 1fr; }
  .steps .step-note { grid-column: 2; }

  .pillars-media, .tab-media, .founder-media { width: 100%; max-width: 560px; }
  .pillars-media > img, .tab-media img { aspect-ratio: 4 / 3; }
  .founder-media { position: static; min-height: 0; overflow: visible; }
  .founder-media img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 22px 44px -28px rgba(0,13,38,.55);
  }
  .nav-links.is-open { display: flex; }
  /* class-based, so it beats the header's colour rules regardless of stuck state */
  .site-header .nav-links a,
  .site-header:not(.is-stuck) .nav-links a { color: var(--text); }
  .site-header .nav-links a:hover { background: rgba(0,25,76,.06); color: var(--navy); }
  .nav-links .nav-cta-mobile { display: block; margin-top: 10px; }
  .site-header .nav-links .btn-solid,
  .site-header:not(.is-stuck) .nav-links .btn-solid { background: var(--navy); color: #fff; width: 100%; }

  .header-cta { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .vert-list { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 84px); padding-bottom: 56px; }
  .hero h1 { font-size: clamp(2.15rem, 8.4vw, 3rem); max-width: 14ch; }
  .hero-media img { object-position: 58% 26%; }
  .hero::after {
    background: linear-gradient(to top, rgba(0,10,32,.95) 0%, rgba(0,10,32,.9) 34%, rgba(0,10,32,.62) 68%, rgba(0,10,32,.66) 100%);
  }

  .quote-float { position: static; width: calc(100% - (var(--gutter) * 0)); margin-top: 16px; }
  .pillars-media { padding-bottom: 0; }

  .steps li { grid-template-columns: 42px 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .stat-grid { grid-template-columns: 1fr; }
  .tabs { gap: 6px; }
  .tab { flex: 1 1 auto; padding: 12px 14px; font-size: 14px; }

  /* Every CTA fills the width on mobile */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; white-space: nowrap; }
  .section .btn:not(.tab):not(.acc-trigger):not(.nav-toggle) { width: 100%; }
  .form-card button[type="submit"] { width: 100%; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cred-list .c-key { width: 100%; padding-top: 0; }
  .steps li { grid-template-columns: 1fr; }
  .steps .step-note { grid-column: 1; }
  .steps .step-num { padding-top: 0; }
  .hero-proof { gap: 12px 24px; }
}

@media (max-width: 380px) {
  .btn { padding-inline: 18px; font-size: 15px; }
}
