/* Applied Efficiency — styles. Tokens are defined once in :root (see CLAUDE.md). */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  /* brand */
  --black: #0A0E14;         /* Near Black, page */
  --blue: #3882F6;          /* Electric Blue */
  --mint: #2FE6A8;          /* Mint Green */
  --silver: #C0C6D4;        /* Silver */

  /* derived from the brand colors; every text pair below is AA on every surface */
  --surface: #0E1420;       /* alternating sections */
  --card: #141B29;          /* panels, inputs, cards */
  --line: #1E2838;
  --line-2: #2C3A50;
  --field-line: #66758C;    /* input borders: 3:1 against --card and --black (WCAG 1.4.11) */
  --ink: #EEF2F7;           /* body text */
  --ink-2: #C0C6D4;         /* secondary text (Silver) */
  --ink-3: #8D97A8;         /* small meta text */
  --link: #6FA6FF;          /* Electric Blue lightened for text on dark */
  --error: #FF9A9A;

  --grad-primary: linear-gradient(100deg, var(--blue), var(--mint));
  --grad-text: linear-gradient(90deg, #5B98FF, var(--mint));
  --chrome: linear-gradient(180deg, #FFFFFF, #E6E9EF 50%, var(--silver));
  --glow: 0 6px 24px rgba(56, 130, 246, .32);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 5cqi, 64px);
  --header-h: 69px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
.page { container: page / inline-size; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--black); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow { font: 600 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--mint); }
/* Each part stays whole, so a long eyebrow only breaks between parts. */
.eyebrow__part { white-space: nowrap; }

.wrap {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(48px, 6cqi, 88px) var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 700 16px/1.1 var(--font); text-align: center; text-decoration: none;
  border: 0; border-radius: 0; color: var(--black);
  transition: filter .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { color: var(--black); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn--primary { background: var(--grad-primary); box-shadow: var(--glow); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--outline { border: 2px solid var(--line-2); color: var(--ink); background: transparent; padding: 0 20px; }
.btn--outline:hover { border-color: var(--silver); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(10, 14, 20, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand img { width: 80px; height: auto; flex: none; }
.brand__name {
  font-weight: 800; font-stretch: 112%; font-size: 17px; letter-spacing: -0.01em;
  text-transform: uppercase; white-space: nowrap;
}
.site-header__wide { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--mint); }
.menu-btn {
  display: none;
  font: 700 14px var(--font); color: var(--ink);
  background: transparent; border: 2px solid var(--line-2); padding: 0 14px; height: 44px;
}
.menu-btn[aria-expanded="true"] { border-color: var(--ink); }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--black);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 16px; }
/* As a popover (js/nav.js) it sits in the top layer, so it is placed against the viewport, just under the header. */
.mobile-nav[popover] {
  position: fixed; inset: var(--header-h) 0 auto; margin: 0; width: auto; height: auto;
  max-height: calc(100dvh - var(--header-h)); overflow: auto;
  border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-nav[popover]:not(:popover-open) { display: none; }

@container page (max-width: 959px) {
  .site-header__wide { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@container page (min-width: 960px) {
  .mobile-nav { display: none !important; }
}
@container page (max-width: 400px) {
  .brand img { width: 64px; }
  .brand__name { font-size: 14px; }
  .brand { gap: 8px; }
}

/* ---------- section headings ---------- */
.sec-head {
  display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--blue); padding-top: 16px;
  margin-bottom: clamp(28px, 4cqi, 48px);
}
.sec-head__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.sec-num { font: 600 13px var(--mono); color: var(--mint); }
.sec-title {
  font-weight: 800; font-stretch: 110%; font-size: clamp(30px, 4.6cqi, 54px);
  line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance;
}
.sec-lede { font-size: clamp(17px, 1.8cqi, 20px); color: var(--ink-2); max-width: 60ch; }
.tag-chip { font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- motion ---------- */
.motion [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
/* Browsers with scroll-driven animations reveal in CSS alone; js/motion.js then skips its observer. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] { animation: ae-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes ae-reveal { from { opacity: 0; transform: translateY(24px); } }

/* Examples tab change: a short cross-fade of the box (js/examples.js). */
.ex__box { view-transition-name: ex-box; }
::view-transition-group(ex-box), ::view-transition-old(ex-box), ::view-transition-new(ex-box) { animation-duration: .25s; }

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

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(0, 32, 66, .9), transparent 70%),
    var(--black);
  border-bottom: 1px solid var(--line);
}
.hero__wrap {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5cqi, 64px); align-items: center;
  padding-top: clamp(36px, 7cqi, 96px); padding-bottom: clamp(40px, 7cqi, 96px);
}
.hero__lead { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__title {
  font-weight: 850; font-stretch: 112%; font-size: clamp(40px, 10cqi, 80px);
  line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em; /* keep descender-free caps from clipping the gradient */
}
.hero__title .line { display: block; }
.hero__sub { font-size: clamp(18px, 1.9cqi, 22px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.hero__visual { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3cqi, 32px); }
/* The deal: the business model in three steps. On phones it comes before the logo. */
.deal { order: -1; width: 100%; max-width: 560px; padding: 18px 20px 20px; background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--blue); }
.deal__title { font: 600 13px/1.4 var(--mono); letter-spacing: .03em; color: var(--mint); text-transform: uppercase; }
.deal__steps { list-style: none; margin-top: 6px; }
.deal__steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.deal__n { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--mint); font: 600 14px var(--mono); color: var(--mint); }
.deal__steps p { color: var(--ink-2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.deal__steps strong { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.deal__own { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font-weight: 700; color: var(--ink); }
.deal__own span { color: var(--mint); }
@container page (min-width: 900px) {
  .hero__wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero__title { font-size: clamp(52px, 5.4cqi, 84px); }
  .deal { order: 0; }
}
/* Stacked hero (phones, tablets): the header already shows the logo, so the big one would only push the page down. */
@container page (max-width: 899px) {
  .hero__logo { display: none; }
}
/* The logo sits on navy; lighten drops its dark pixels into the hero and the mask fades the edges, so no box shows. */
.hero__logo { width: 100%; max-width: 620px; }
.hero__logo img {
  width: 100%; height: auto; mix-blend-mode: lighten;
  --fade-x: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  --fade-y: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y); mask-composite: intersect;
}

/* ---------- marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  background: var(--surface); padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; animation: ae-marq 40s linear infinite; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__seq { display: flex; flex: none; align-items: center; gap: 26px; padding-right: 26px; }
.marquee span, .marquee i { font: 800 clamp(17px, 2cqi, 22px)/1 var(--font); white-space: nowrap; }
.marquee span { font-stretch: 112%; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.marquee i { font-style: normal; color: var(--mint); }
.marquee__pause {
  position: absolute; right: 0; top: 0; bottom: 0;
  padding: 0 16px 0 28px; border: 0;
  font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  background: linear-gradient(90deg, transparent, var(--surface) 22px);
}
.marquee__pause:hover { color: var(--ink); }
@keyframes ae-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; width: auto; }
  .marquee__seq { flex: 1; flex-wrap: wrap; justify-content: center; row-gap: 12px; padding: 0 var(--gutter); }
  .marquee__seq + .marquee__seq, .marquee__pause { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.footer__wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer__brand img { width: 64px; height: auto; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__list a { overflow-wrap: anywhere; }
.footer__copy { font: 500 12px var(--mono); color: var(--ink-3); flex-basis: 100%; }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 719px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 14, 20, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-2);
  }
  .callbar .btn { min-height: 48px; padding: 0 14px; font-size: 15px; }
  .callbar__call { flex: 0 0 auto; }
  .callbar__book { flex: 1; }
  /* Room for the bar so it never covers the last of the page, or whatever has keyboard focus.
     --callbar-h is the bar's measured height (js/nav.js); the fallback fits it at default text size. */
  .page { padding-bottom: var(--callbar-h, calc(68px + env(safe-area-inset-bottom))); }
  html { scroll-padding-bottom: calc(var(--callbar-h, calc(68px + env(safe-area-inset-bottom))) + 12px); }
}

/* ---------- 01 sound familiar ---------- */
.pain__list { list-style: none; counter-reset: pain; border-top: 1px solid var(--line-2); }
.pain__list li {
  counter-increment: pain;
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line-2);
  font-size: clamp(19px, 2.2cqi, 26px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty;
}
.pain__list li::before { content: counter(pain, decimal-leading-zero); font: 600 13px var(--mono); color: var(--ink-3); }
.pain__close {
  margin-top: clamp(32px, 5cqi, 56px);
  font-weight: 850; font-stretch: 110%; font-size: clamp(28px, 4.2cqi, 50px); line-height: 1.05; letter-spacing: -0.025em;
  max-width: 22ch; text-wrap: balance;
}

/* ---------- 02 time calculator ---------- */
.calc { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2px; background: var(--line-2); border: 2px solid var(--line-2); margin: 0;
}
.calc__inputs { background: var(--card); padding: clamp(20px, 3.4cqi, 36px); display: flex; flex-direction: column; gap: 22px; }
.slider { display: flex; flex-direction: column; gap: 4px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider label { font-weight: 700; font-size: 17px; }
.slider label span { font-weight: 400; color: var(--ink-2); font-size: 15px; }
.slider output { font: 600 20px var(--mono); color: var(--mint); font-variant-numeric: tabular-nums; }
.calc__out { background: var(--black); padding: clamp(20px, 3.4cqi, 36px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.calc__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.calc__num output {
  font-weight: 850; font-stretch: 112%; font-size: clamp(48px, 7cqi, 84px);
  line-height: .95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
}
.calc__num--money output { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.calc__num span { font: 600 15px var(--mono); color: var(--ink-2); }
.calc__note { color: var(--ink-2); font-size: 15px; max-width: 44ch; }

/* range slider */
.range { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; --p: 16%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--mint) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--grad-primary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--blue); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--blue); }
.range:focus-visible { outline-offset: 2px; }

/* ---------- 03 what we do ---------- */
.cards {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2px; background: var(--line-2); border: 2px solid var(--line-2);
}
.card { background: var(--card); padding: clamp(22px, 3cqi, 32px); display: flex; flex-direction: column; gap: 12px; position: relative; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-primary); opacity: 0; transition: opacity .2s; }
.card:hover::before { opacity: 1; }
.card__n { font-weight: 850; font-stretch: 120%; font-size: 48px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--silver); }
.card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); text-wrap: pretty; }
.serve { display: grid; gap: 10px; margin-top: clamp(24px, 4cqi, 40px); padding: clamp(20px, 3cqi, 28px); background: var(--card); border-left: 4px solid var(--mint); }
.serve__title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.serve p { font-size: 18px; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }

/* Built for and trusted by (hidden until CONFIG.clients has a real client) */
.clients { border-top: 1px solid var(--line); }
.clients__title { font: 600 14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); text-align: center; margin-bottom: clamp(20px, 3cqi, 32px); }
.clients__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, 150px); justify-content: center; gap: clamp(12px, 3cqi, 28px); }
.clients__item { display: grid; place-items: center; min-height: 88px; padding: 16px; background: var(--card); border: 1px solid var(--line-2); }
.clients__item img { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; }
.clients__item a { display: block; }

/* Scrolling strips (logos and reviews): two equal lists side by side, the track slides one list's width and starts
   over. Hover, keyboard focus or the Pause button stops it. Without .is-moving (reduced motion) they stay a still grid. */
.strip__pause { display: none; }
.is-moving .clients__strip, .is-moving .reviews__strip {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.is-moving .clients__track, .is-moving .reviews__track { display: flex; width: max-content; animation: ae-marq var(--strip-dur, 30s) linear infinite; }
.is-moving .clients__list, .is-moving .reviews__list { display: flex; flex: none; gap: clamp(12px, 3cqi, 28px); padding-right: clamp(12px, 3cqi, 28px); }
.is-moving .clients__item { width: 150px; flex: none; }
.is-moving .review { width: min(340px, 80vw); flex: none; }
.is-paused .clients__track, .is-paused .reviews__track,
.clients__strip:hover .clients__track, .clients__strip:focus-within .clients__track,
.reviews__strip:hover .reviews__track, .reviews__strip:focus-within .reviews__track { animation-play-state: paused; }
.is-moving .strip__pause {
  display: block; margin: 16px auto 0; padding: 8px 16px; border: 1px solid var(--line-2); background: none;
  font: 600 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.strip__pause:hover { color: var(--ink); }

/* What clients say (hidden until CONFIG.reviews has a real review) */
.reviews { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 3cqi, 28px); }
.review figure { height: 100%; display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3cqi, 32px); background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--mint); }
.review blockquote { flex: 1; font-size: clamp(18px, 1.9cqi, 21px); color: var(--ink); text-wrap: pretty; }
.review blockquote p::before { content: '\201C'; }
.review blockquote p::after { content: '\201D'; }
.review__by { display: flex; flex-direction: column; gap: 2px; }
.review__name { font-weight: 800; color: var(--ink); }
.review__biz { font: 500 14px var(--mono); color: var(--ink-2); }

/* ---------- 04 examples ---------- */
.ex__chip { color: var(--black); background: var(--mint); padding: 7px 10px; }
.ex__box { border: 2px solid var(--line-2); background: var(--card); }
/* Tabs wrap onto two rows on phones; the 1px gaps show the line color as dividers. */
.ex__tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-2); border-bottom: 2px solid var(--line-2); }
.ex__tabs [role="tab"] {
  flex: 1 1 110px; min-height: 52px; padding: 8px 6px; border: 0;
  background: var(--card); color: var(--ink-2); font: 700 15px/1.2 var(--font);
}
.ex__tabs [role="tab"]:hover { color: var(--ink); }
.ex__tabs [role="tab"][aria-selected="true"] { background: var(--grad-primary); color: var(--black); }
.ex__tabs [role="tab"]:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.ex__panel { padding: clamp(18px, 3cqi, 32px); display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.ex__panel:focus-visible { outline-offset: -4px; }
.ex__line { font-size: clamp(18px, 2cqi, 22px); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.ex__line strong { color: var(--ink); }
.ex__status { grid-column: 1 / -1; font: 600 14px var(--mono); color: var(--mint); opacity: 0; transition: opacity .4s; }
.ex__status::before { content: '✓ '; }
.ex__status.is-on { opacity: 1; }
.ex__foot { padding: 0 clamp(18px, 3cqi, 32px) clamp(18px, 3cqi, 32px); }

/* mock tool screens */
.mock { background: var(--black); border: 1px solid var(--line-2); font-size: 14px; min-width: 0; }
.mock__bar { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font: 600 12px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.js .mock [data-step] { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.js .mock [data-step].is-on { opacity: 1; transform: none; }
.pill { display: inline-block; padding: 2px 8px; font: 600 11px var(--mono); background: rgba(47, 230, 168, .14); color: var(--mint); white-space: nowrap; }
.pill--warn { background: rgba(255, 154, 154, .12); color: var(--error); }

.sched { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); }
.sched__col { background: var(--black); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.sched__head { font: 600 11px var(--mono); color: var(--ink-3); }
.job { background: var(--card); border-left: 3px solid var(--blue); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; line-height: 1.3; }
.job b { font: 600 12px var(--mono); color: var(--ink); }

.roof { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.roof__photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.roof__photos span {
  aspect-ratio: 1; display: flex; align-items: flex-end; padding: 6px; font: 600 10px/1.2 var(--mono); color: var(--ink);
  background: linear-gradient(160deg, #2C3A50, #141B29 60%), repeating-linear-gradient(135deg, transparent 0 8px, rgba(192, 198, 212, .06) 8px 9px);
  background-blend-mode: overlay;
}
.roof__meas { font: 600 12px var(--mono); color: var(--mint); }
.quote { background: var(--card); padding: 10px 12px; display: flex; flex-direction: column; }
.quote__head { font-weight: 800; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.quote__row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.quote__row span:last-child { font-family: var(--mono); color: var(--ink-2); }
.quote__row span.pill { color: var(--mint); }
.quote__row span.pill--warn { color: var(--error); }
.brd { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.brd .quote__row { gap: 12px; align-items: baseline; }
.brd .quote__row span:last-child { text-align: right; }

.mock--phone { background: transparent; border: 0; display: flex; justify-content: center; }
.phone { width: min(100%, 290px); min-height: 300px; border: 2px solid var(--line-2); border-radius: 26px; padding: 14px; background: var(--black); display: flex; flex-direction: column; gap: 10px; }
.phone__top { text-align: center; font: 600 11px var(--mono); color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bubble { background: var(--card); padding: 10px 12px; border-radius: 14px 14px 14px 4px; max-width: 92%; line-height: 1.4; }
.bubble ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bubble--me { align-self: flex-end; background: var(--blue); color: var(--black); font-weight: 600; border-radius: 14px 14px 4px 14px; }
.bubble--typing { display: flex; gap: 4px; width: max-content; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: ae-dot 1s infinite ease-in-out; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
.bubble--typing.is-on:has(~ .is-on) { display: none; }
.bubble__src { display: block; margin-top: 8px; font: 600 11px var(--mono); color: var(--mint); }
@keyframes ae-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.inv { display: flex; flex-direction: column; }
.inv__row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inv__row span:nth-child(2) { font: 500 12px var(--mono); color: var(--ink-2); }
.inv__row .pill { grid-column: 3; grid-row: 1; }
.inv__row .pill.is-on ~ *, .inv__row .pill--warn:has(+ .pill.is-on) { visibility: hidden; }
@container page (max-width: 420px) {
  .ex__tabs [role="tab"] { font-size: 13px; }
}

/* ---------- ★ wish board (restored from v1; v1 tokens mapped to the current ones) ---------- */
.wishboard { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wishboard .sec-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; }
.wishboard .sec-head__title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.wishboard__head { margin-bottom: 12px; }
.wishboard__star { color: var(--mint); }
.wishboard__count { color: var(--ink-2); }
.wishboard__lede { margin-bottom: clamp(28px, 4cqi, 44px); max-width: 56ch; color: var(--ink-2); }
.wishboard__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 2px; background: var(--line); border: 2px solid var(--line);
}
.wishform { background: var(--black); padding: clamp(20px, 3.4cqi, 40px); display: flex; flex-direction: column; gap: 18px; margin: 0; }
.wishform__eyebrow { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--link); }
.wishform .field__label { font: 600 12px var(--mono); letter-spacing: .04em; }
.field__label--split { display: flex; justify-content: space-between; }
.field__count { color: var(--ink-3); }
.wishform .field-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.wishform__msg { font: 600 13px var(--mono); }
.wishform__msg:empty { display: none; }
.wishform__msg.is-error { color: var(--error); }
.wishform__msg.is-ok { color: var(--mint); }
.wishform__submit { height: 56px; width: 100%; }
.wishform__submit[disabled] { filter: saturate(.6) brightness(.85); cursor: progress; }
.wishform__note { font-size: 13px; color: var(--ink-2); }

.board { background: var(--black); padding: clamp(16px, 3cqi, 32px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.board__cols {
  display: grid; gap: 10px; height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.board.has-pending .board__cols { height: 440px; }
.board__col { min-width: 0; }
.board__track { display: flex; flex-direction: column; animation: ae-up var(--dur, 30s) linear infinite; }
.board__col:nth-child(even) .board__track { animation-direction: reverse; }
.board__col:hover .board__track, .board__col:focus-within .board__track { animation-play-state: paused; }
.board__track .wcard { margin-bottom: 10px; }
@keyframes ae-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* Static board (reduced motion): each column scrolls by hand instead. */
.board--static .board__cols { -webkit-mask-image: none; mask-image: none; }
.board--static .board__col { overflow-y: auto; padding-right: 4px; }
.board--static .board__track { animation: none; }
.board--few .board__cols { height: auto; }

.wcard {
  background: var(--card); color: var(--ink); border: 2px solid var(--line-2);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
}
.wcard__idea { font-size: 18px; font-weight: 700; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere; }
.wcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 600 11px var(--mono); color: var(--ink-2); }
.wcard__biz { background: rgba(56, 130, 246, .18); color: #CFE0FF; padding: 3px 7px; }
.wcard__tag { color: var(--ink-3); }
.wcard--pending { border-color: var(--blue); animation: ae-pin .6s cubic-bezier(.2, .7, .2, 1); }
.wcard--pending .wcard__tag { color: var(--mint); }
@keyframes ae-pin { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.board__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.board__ghosts { display: flex; flex-direction: column; gap: 10px; }
.wcard--ghost { min-height: 92px; background: transparent; border-style: dashed; }
.wcard--ghost:nth-child(2) { opacity: .6; }
.wcard--ghost:nth-child(3) { opacity: .3; }
.wcard--ghost::before, .wcard--ghost::after { content: ''; height: 12px; background: var(--line-2); }
.wcard--ghost::before { width: 78%; }
.wcard--ghost::after { width: 40%; height: 9px; background: var(--line); }
.board__empty-text { color: var(--ink-2); font-size: 15px; text-align: center; }

/* ---------- founding client program ---------- */
.founding { border-top: 1px solid var(--line); }
.founding__box {
  position: relative; max-width: 880px; padding: clamp(24px, 4cqi, 48px);
  border: 2px solid var(--mint); background: linear-gradient(135deg, rgba(47, 230, 168, .08), rgba(56, 130, 246, .06) 60%, transparent);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.founding__title { font-weight: 850; font-stretch: 110%; font-size: clamp(28px, 4cqi, 46px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.founding__text { font-size: clamp(18px, 2cqi, 21px); color: var(--ink-2); max-width: 52ch; }
.founding__left { font: 600 15px var(--mono); color: var(--mint); }

/* ---------- 05 faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__list { border-top: 1px solid var(--line-2); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: clamp(18px, 2cqi, 22px); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 600 24px/1 var(--mono); color: var(--mint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mint); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }
/* Answers slide open where the browser can animate to height: auto; elsewhere they open at once. */
@supports (interpolate-size: allow-keywords) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- final call to action ---------- */
.final__band { background: var(--grad-primary); color: var(--black); }
.final__wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: clamp(56px, 9cqi, 112px); padding-bottom: clamp(56px, 9cqi, 112px); }
.final__title {
  font-weight: 850; font-stretch: 115%; font-size: clamp(36px, 6cqi, 80px);
  line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; max-width: 16ch; text-wrap: balance;
}
.final :focus-visible { outline-color: var(--black); }
.btn--dark { background: var(--black); color: var(--ink); }
.btn--dark:hover { background: var(--card); color: var(--ink); }

/* ---------- contact form ---------- */
.contact { max-width: 880px; }
.cform { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.cform__title { font-size: clamp(22px, 2.6cqi, 30px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 700; font-size: 16px; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--field-line); border-radius: 0; background: var(--card); color: var(--ink);
  font: 500 17px var(--font);
}
.field input { height: 54px; padding: 0 14px; }
.field textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform__msg { font: 600 14px/1.5 var(--mono); }
.cform__msg:empty { display: none; }
.cform__msg.is-error { color: var(--error); }
.cform__submit { align-self: flex-start; }
.cform__submit[disabled] { filter: saturate(.6) brightness(.85); cursor: progress; }
.cform__note { font-size: 14px; color: var(--ink-2); }
.cform__done { border: 2px solid var(--mint); padding: clamp(20px, 3cqi, 32px); }
.cform__done:focus-visible { outline-offset: 4px; }

/* ---------- leave a review ---------- */
.reviews__cta { margin-top: clamp(20px, 3cqi, 32px); text-align: center; }
.footer__link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__link:hover { color: var(--ink); }
.rdialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: clamp(20px, 4cqi, 32px);
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-top: 3px solid var(--mint);
}
.rdialog::backdrop { background: rgba(5, 8, 12, .8); }
.rdialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rdialog__close { flex: none; width: 44px; height: 44px; border: 2px solid var(--line-2); background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.rdialog__close:hover { border-color: var(--silver); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--mint); }
.check:has([aria-invalid="true"]) { color: var(--error); }
.cform__msg.is-ok { color: var(--mint); }

/* ---------- privacy page ---------- */
.legal { max-width: 760px; }
.legal__lede { margin: 16px 0 8px; font-size: 20px; color: var(--ink-2); }
.legal h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 800; }
.legal p { color: var(--ink-2); margin-bottom: 12px; max-width: 64ch; }

/* Windows high contrast: gradient text would vanish, so fall back to the system text color. */
@media (forced-colors: active) {
  .hero__title, .grad-text, .calc__num--money output, .card__n { background: none; color: CanvasText; -webkit-text-stroke: 0; }
  .btn--primary, .ex__tabs [role="tab"][aria-selected="true"] { border: 2px solid ButtonText; }
}
.field__opt { font-weight: 400; color: var(--ink-2); }
