/* Zolveo — site styles
   Design tokens, then layout, then components. Letter-spacing is in em so
   headings keep the same optical tightness at every viewport size. */

:root {
  --ink: #0E1116;
  --ink-2: #171C24;
  --ink-3: #2A313B;
  --ink-4: #2F3744;
  --footer: #080A0D;
  --paper: #EEF0EA;
  --white: #fff;
  --muted: #8A93A0;
  --muted-light: #C9CED6;
  --muted-dark: #5B6470;
  --lime: #C8F135;
  --blue: #3D5AFE;
  --amber: #FFB020;
  --orange: #FF7A3D;
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(64px, 9vw, 120px);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Metric-matched fallback so the swap to Space Grotesk causes less layout
   shift on the very large headings. Values are approximate; tune with
   https://screenspan.net/fallback if you want them exact. */
@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 104%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: inherit; }

html {
  scroll-padding-top: 80px;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { text-decoration: none; color: inherit; }

/* Focus and hover states (previously none) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark a:focus-visible, .dark button:focus-visible { outline-color: var(--white); }
.lime a:focus-visible { outline-color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
}

/* Skip link */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
}
.skip:focus { top: 16px; }

/* Layout */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--hero { padding-top: clamp(88px, 14vw, 200px); padding-bottom: clamp(88px, 14vw, 200px); }
.section--hero-sub { padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(72px, 11vw, 150px); }
.section--cta { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }

.dark { background: var(--ink); color: var(--white); }
.lime { background: var(--lime); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.paper { background: var(--paper); color: var(--ink); }

/* Type */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}
.h-hero {
  font-size: clamp(60px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.h-hero-sub {
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 960px;
  margin-bottom: 24px;
}
.h-xl {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin-bottom: 24px;
}
.h-l {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.h-m {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.h-card { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 10px; }
.h-item { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.h-small { font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 8px; }

.lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; max-width: 600px; margin: 0 0 40px; }
.lead--tight { margin-bottom: 0; }
.lead--strong { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; font-weight: 500; max-width: 680px; margin: 0; }
.sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; max-width: 680px; margin: 0 0 48px; }
.sub--wide { max-width: 760px; line-height: 1.5; margin-bottom: 0; }
.body { font-size: 18px; line-height: 1.5; margin: 0; }
.dark .sub, .dark .body, .dark .lead { color: var(--muted-light); }
.white .sub, .white .body, .paper .sub, .paper .body { color: var(--ink-3); }
.note { margin: 24px 0 0; font-size: 14px; color: var(--muted-dark); }

.accent-lime { color: var(--lime); }
.accent-blue { color: var(--blue); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--hero { margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #D6F75A; box-shadow: 0 6px 20px rgba(200, 241, 53, 0.25); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-3); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hint under the hero CTA */
.cta-hint { margin: 20px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted-light); max-width: 520px; }

/* Header */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.035em;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.logo--footer { font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 16px; }
.nav-link { color: var(--muted-light); display: inline-flex; align-items: center; min-height: 44px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lime); }
.btn--nav {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 700px) { .nav-link { display: none; } }

/* Numbered column grids (benefits, process) */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.cols--process { gap: 32px; }
.col { border-top: 3px solid var(--ink); padding-top: 20px; }
.num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

/* Callout panels */
.panel {
  margin-top: 56px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
}
.panel--dark { background: var(--ink); color: var(--white); }
.panel--lime { background: var(--lime); color: var(--ink); margin-top: 48px; padding: clamp(28px, 4vw, 48px); }
.panel-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 820px;
}

/* Work section */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.case {
  background: var(--ink);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case .body { color: var(--muted-light); }
.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.screen {
  background: var(--ink-2);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: auto;
}
.screen--timeline { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.screen-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Vehicle assessment mock */
.shot { position: relative; border-radius: 12px; overflow: hidden; line-height: 0; }
.shot img { width: 100%; display: block; }
.shot-box {
  position: absolute;
  border: 3px solid var(--lime);
  border-radius: 10px;
  box-shadow: 0 0 0 5px rgba(200, 241, 53, 0.28);
}
.shot-pill {
  position: absolute;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.shot-pill .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--lime);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.closeups { width: 100%; display: block; margin-top: 10px; border-radius: 12px; }

.estimate { padding-top: 16px; }
.estimate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--ink-3);
}
.estimate-head {
  border-top: 0;
  padding: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.estimate-head span:not(:first-child), .price { text-align: right; }
.estimate-item { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 500; }
.estimate-item .dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--lime); color: var(--ink);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.estimate-item .dot--blank { background: transparent; }
.estimate-total .estimate-item { font-weight: 700; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--lime); white-space: nowrap; }
.item-note { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price--total { font-size: 20px; }

/* On narrow phones the close-up strip shrinks to ~250px and its labels are
   unreadable; the pill also lands on the second highlight box. Hide the
   strip and nudge the pill up. */
@media (max-width: 480px) {
  .closeups { display: none; }
  .shot-pill--2 { top: 42% !important; }
}

/* Debtor-chasing timeline */
.timeline { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tl-step { display: flex; gap: 16px; flex: 1; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; padding-top: 3px; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.tl-line { flex: 1; width: 2px; background: var(--ink-4); margin-top: 6px; min-height: 22px; }
.tl-body { padding-bottom: 20px; }
.tl-step:last-child .tl-body { padding-bottom: 0; }
.tl-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 14px;
  color: var(--ink);
}
.c-blue { background: var(--blue); color: var(--white); }
.c-lime { background: var(--lime); }
.c-amber { background: var(--amber); }
.c-orange { background: var(--orange); }
.c-white { background: var(--white); }

/* Small work cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card { background: var(--white); border-radius: 20px; padding: 32px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* Process teaser */
.process-note { margin: 56px 0 24px; font-size: 20px; line-height: 1.4; font-weight: 500; }

/* Trust / security */
.security { margin-top: 64px; padding: clamp(32px, 5vw, 56px); }
.security .sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 700px; margin-bottom: 36px; color: var(--muted-light); }
.security .checks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 28px 40px; }
.security .check h3 { color: var(--white); }
.security .check p { color: var(--muted-light); }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.check { display: flex; gap: 14px; align-items: flex-start; }
.check svg { flex: none; margin-top: 3px; }
.check h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
.check p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-3); }

/* CTA */
.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.4;
  color: #E5E7EB;
}
.cta-points li { display: flex; align-items: center; gap: 10px; }
.cta-points svg { flex: none; }

/* Footer */
.site-footer { background: var(--footer); color: var(--muted-light); font-size: 14px; line-height: 1.6; }
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.legal { color: var(--muted); }
.legal a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 10px 0;
}
.legal a:hover { color: var(--lime); }

/* How-it-works page */
.steps { border-top: 0; }
.step {
  border-top: 3px solid var(--ink);
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  width: 80px;
  flex: none;
}
.step h2 { font-size: 30px; letter-spacing: -0.02em; flex: 1 1 260px; }
.step p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-3); flex: 2 1 320px; max-width: 560px; }

.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.way { border-radius: 20px; padding: 40px; }
.way--white { background: var(--white); color: var(--ink); }
.way--dark { background: var(--ink); color: var(--white); }
.way h3 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 12px; }
.way p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-3); }
.way--dark p { color: var(--muted-light); }
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.pill--ink { background: var(--ink); color: var(--white); }
.pill--lime { background: var(--lime); color: var(--ink); }

/* Link cards on the home page */
.cards--links { margin-top: 0; }
.card--link { display: flex; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); border: 1px solid transparent; }
.card--link:hover { border-color: var(--ink); }
.card--link .num { margin-bottom: 16px; }
.card--link .body { color: var(--ink-3); margin-bottom: 20px; }
.card-cta { margin-top: auto; font-weight: 500; color: var(--ink); }
.card-cta::after { content: " \2192"; color: var(--blue); }
.card--link:hover .card-cta { text-decoration: underline; text-underline-offset: 4px; }

/* About page */
.prose-2col { max-width: 760px; }

/* Footer nav */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; width: 100%; }
.footer-nav a { color: var(--muted-light); display: inline-block; padding: 10px 0; }
.footer-nav a:hover { color: var(--lime); }
.site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }

/* Header: on small screens the page links move to a non-sticky row under the sticky header */
.subnav { display: none; }
@media (max-width: 700px) {
  .nav-link { display: none; }
  .subnav { display: flex; gap: 22px; background: var(--ink); padding: 2px var(--gutter) 10px; font-size: 14px; }
  .subnav a { color: var(--muted-light); display: inline-flex; align-items: center; min-height: 36px; white-space: nowrap; }
  .subnav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--lime); }
}

/* Work page: areas. Open grid on desktop, accordion on phones. */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.area summary { display: flex; align-items: flex-start; gap: 14px; list-style: none; cursor: default; }
.area summary::-webkit-details-marker { display: none; }
.area-tick { flex: none; margin-top: 2px; line-height: 0; }
.area-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.area-chev { display: none; }
.area p { margin: 6px 0 0 36px; font-size: 17px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 700px) {
  .areas { display: block; border-top: 1px solid #D5D9D0; }
  .area { border-bottom: 1px solid #D5D9D0; }
  .area summary { cursor: pointer; padding: 14px 0; align-items: center; min-height: 44px; }
  .area summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
  .area-title { font-size: 18px; flex: 1; }
  .area-chev { display: block; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .15s ease; }
  .area[open] .area-chev { transform: rotate(-135deg); margin-bottom: -4px; }
  .area p { margin: 0 0 16px 36px; }
}

/* Home: before/after story */
.eyebrow--blue { color: var(--blue); }
.story-h { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.story-fig { margin: 0; position: relative; }
.story-tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; margin-bottom: 8px; }
.story-tag--before { background: var(--paper); color: var(--ink); border: 1px solid #D5D9D0; }
.story-tag--after { background: var(--lime); color: var(--ink); }
.story-fig svg { width: 100%; height: auto; display: block; }
.story-fig figcaption { margin: 20px 0 0; text-align: left; font-size: 17px; line-height: 1.5; color: var(--ink-3); max-width: 440px; }
.story-fig figcaption strong { color: var(--ink); font-weight: 500; }
.story-arrow { display: flex; justify-content: center; align-self: center; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-arrow svg { transform: rotate(90deg); }
  .story-fig svg { max-width: 480px; margin: 0 auto; }
}

/* Billing case mock */
.screen--billing { flex: 1; display: flex; flex-direction: column; }
.inv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ink-3); font-size: 14px; }
.inv-row:first-of-type { border-top: 0; padding-top: 0; }
.inv-id { color: var(--muted-light); font-weight: 500; }
.inv-amt { font-family: var(--font-display); font-weight: 700; color: var(--white); }
.rev-chart { display: flex; gap: 10px; align-items: flex-end; height: 96px; margin-top: 6px; }
.rev-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; height: 100%; }
.rev-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px; overflow: hidden; background: transparent; }
.rev-def { display: block; background: var(--ink-4); }
.rev-rec { display: block; background: var(--lime); }
.rev-m { font-size: 11px; color: var(--muted); text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.rev-totals { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--muted-light); }
.rev-totals strong { color: var(--white); font-family: var(--font-display); margin-left: 6px; }
.rev-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.rev-key--rec { background: var(--lime); }
.rev-key--def { background: var(--ink-4); }

/* Estimate table: stack when the card is narrow (phone, or three-up desktop columns) */
.screen { container-type: inline-size; }
@container (max-width: 400px) {
  .closeups { display: none; }
  /* Stack the estimate: item on its own line, the two prices below it with labels */
  .estimate-head { display: none; }
  .estimate-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .estimate-item { grid-column: 1 / -1; }
  .price { text-align: left; }
  .price[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .estimate-total .price { padding-top: 2px; }
  .estimate-item .dot--blank { display: none; }
}
@media (max-width: 480px) {
  /* Stack the estimate: item on its own line, the two prices below it with labels */
  .estimate-head { display: none; }
  .estimate-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .estimate-item { grid-column: 1 / -1; }
  .price { text-align: left; }
  .price[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .estimate-total .price { padding-top: 2px; }
  .estimate-item .dot--blank { display: none; }
}
.rev-chart { flex: 1; min-height: 96px; }

/* "Also built" strip under the main case studies */
.more-head { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.cards--more { margin-top: 24px; }
.card--more { background: transparent; border: 1px solid #CFD4CA; padding: 24px; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start; }
.card--more .icon { width: 40px; height: 40px; border-radius: 11px; margin: 0; grid-row: 1 / span 2; }
.card--more .icon svg { width: 22px; height: 22px; }
.card--more h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.card--more .body { font-size: 16px; }

/* Finance panel on the work page */
.fin-panel { background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(28px, 4vw, 44px); margin: 8px 0 44px; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 32px 48px; align-items: start; }
.fin-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; }
.fin-item { display: flex; gap: 14px; align-items: flex-start; }
.fin-item svg { flex: none; margin-top: 2px; }
.fin-item h3 { font-size: 19px; letter-spacing: -0.015em; margin-bottom: 4px; color: var(--white); }
.fin-item p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted-light); }
@media (max-width: 860px) { .fin-panel { grid-template-columns: 1fr; gap: 24px; } }
.area p { font-size: 16px; }

/* How it works: step cards */
.stepcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; counter-reset: step; position: relative; }
.stepc { position: relative; background: var(--paper); border-radius: 20px; padding: 28px 26px 30px; }
.stepc--hi { background: var(--ink); color: var(--white); }
.stepc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.stepc-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); }
.stepc--hi .stepc-num { background: var(--lime); color: var(--ink); }
.stepc-icon { color: var(--blue); display: inline-flex; }
.stepc--hi .stepc-icon { color: var(--lime); }
.stepc h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.stepc p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-3); }
.stepc--hi p { color: var(--muted-light); }
/* connector arrows between cards on wide screens */
@media (min-width: 1040px) {
  .stepc:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 42px; width: 12px; height: 12px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); opacity: 0.5; }
}
/* Three ways */
.ways { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.way--lime { background: var(--lime); color: var(--ink); }
.way--lime p { color: var(--ink); }

/* FAQ */
.faqs { max-width: 820px; border-top: 1px solid #D5D9D0; }
.faq { border-bottom: 1px solid #D5D9D0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: 0 6px 4px 0; transition: transform .15s ease; }
.faq[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.faq p { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 720px; }

/* Articles */
.article { max-width: 720px; }
.article p { font-size: 19px; line-height: 1.65; color: var(--ink-3); margin: 0 0 22px; }
.article h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 44px 0 14px; }
.article h3 { font-size: 22px; letter-spacing: -0.015em; margin: 32px 0 10px; }
.article ul { margin: 0 0 22px; padding-left: 22px; }
.article li { font-size: 18px; line-height: 1.6; color: var(--ink-3); margin-bottom: 8px; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--blue); }
.article strong { color: var(--ink); font-weight: 500; }
.callout { background: var(--ink); color: var(--white); border-radius: 18px; padding: 24px 28px; margin: 28px 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; }
.related { max-width: 720px; margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.related ul { list-style: none; margin: 0 0 16px; padding: 0; }
.related li { margin-bottom: 8px; }
.related a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.related a:hover { color: var(--blue); }
.related p { margin: 0; color: var(--ink-3); }
.related p a { font-weight: 400; }
