/* retrieve-IQ marketing site. Type as on the sign-in page: Cormorant Garamond for the hero headline only, General Sans for everything else.
    The app's own design language (web/src/theme/tokens.css and
   the sign-in page in app.css): one cool neutral scale, one indigo accent kept to actions
   and the lit map, General Sans at 300/400/500, Cormorant Garamond for display lines only,
   hairlines rather than shadows except on the floating cards. Values copied from the app's
   tokens so both read as one product. */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --sidebar: #F7F8F9;
  --selected: #EEF0FB;
  --ink: #16181C;
  --muted: #5A5F68;
  --muted-2: #6B7079;
  --line: #E6E8EB;
  --line-strong: #D3D6DB;
  --accent: #5E6AD2;
  --accent-hover: #4F5ABF;
  --accent-ink: #FFFFFF;
  --link: #4A55B8;
  --focus: #5E6AD2;
  --map-covered: #5E6AD2;
  --map-ready: #B7BCEB;
  --map-none: #E9EBEE;
  --map-line: #F7F8F9;
  --ok-ink: #1B7D44;      --ok-bg: rgba(27, 125, 68, 0.08);
  --warn-ink: #A05C00;    --warn-bg: rgba(160, 92, 0, 0.08);
  --bad-ink: #C93B3B;     --bad-bg: rgba(201, 59, 59, 0.08);
  --appeal-ink: #7C4DD8;  --appeal-bg: rgba(124, 77, 216, 0.08);
  --cat-portfolio: #2F6FCC;
  --cat-compliance: #A05C00;
  --cat-appeals: #7C4DD8;
  --cat-accounting: #1B7D44;
  --shadow-pop: 0 0 0 1px rgba(16, 18, 24, 0.04), 0 8px 24px rgba(16, 18, 24, 0.1);
  --shadow-float: 0 0 0 1px rgba(16, 18, 24, 0.04), 0 24px 60px rgba(16, 18, 24, 0.12);

  --font-sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  --display-xl: calc(clamp(2.5rem, 5.3vw, 4.5rem) * 1.12); /* the sign-in headline's size */
  --display-l: clamp(2.1rem, 4vw, 3.25rem);
  --text-xs: 11px;
  --text-sm: 12.5px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 19px;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 56px; --space-16: 88px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --dur-1: 120ms;
  --dur-2: 180ms;
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: var(--weight-medium); letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); z-index: 20; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.display { font-family: var(--font-display); font-weight: var(--weight-regular); letter-spacing: -0.015em; line-height: 1.02; }
.section-title { font-family: var(--font-display); font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: var(--weight-regular); letter-spacing: -0.015em; line-height: 1.02; margin-bottom: var(--space-6); }
.section-title span { display: block; color: var(--muted-2); }
.centered { text-align: center; margin-inline: auto; }
.section-lede { font-size: var(--text-md); color: var(--muted); line-height: 1.65; max-width: 52ch; margin-bottom: var(--space-5); }
.section-lede.muted { font-size: var(--text-base); }
.fineprint { font-size: var(--text-sm); color: var(--muted-2); line-height: 1.6; max-width: 48ch; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease-std), border-color var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 34px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-lg { min-height: 50px; padding: 0 var(--space-8); font-size: var(--text-md); }
.link-quiet { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.link-quiet:hover { color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--sidebar) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: var(--space-8); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); font-size: 20px; font-weight: var(--weight-medium); letter-spacing: -0.04em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: var(--radius); }
.brand-iq { margin-left: 2px; }
.brand-sm { font-size: 16px; gap: var(--space-2); }
.site-nav { display: flex; gap: var(--space-6); margin-right: auto; }
.site-nav a { color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-5); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: var(--paper); }
/* the country, barely there, behind the words: the sign-in page's quiet backdrop */
.hero-map { position: absolute; left: 50%; top: -6%; width: min(1500px, 115%); transform: translateX(-50%); pointer-events: none; opacity: 0.42; }
.hero-map svg { display: block; width: 100%; height: auto; }
.hero-map .map-ca path { fill: var(--map-none); }
.hero-grid {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  gap: clamp(var(--space-10), 5vw, 64px);
  padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px);
}
.hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.25rem); line-height: 0.98; margin-bottom: var(--space-6); white-space: nowrap; }
.hero h1 span { display: block; color: var(--muted-2); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 40ch; margin: 0 auto var(--space-8); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* the bill that assembles itself: pulled, read, checked, accepted */
.bill {
  margin: 0; width: 100%; max-width: 640px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float); overflow: hidden; font-size: var(--text-sm);
}
.bill-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); background: var(--sidebar); color: var(--ink); }
.bill-where { display: inline-flex; align-items: center; gap: var(--space-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-4); }
.bill-title { font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.02em; }
.bill-status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted-2); margin-top: 2px; transition: color var(--dur-2) var(--ease-std); }
.bill-status .hv-spin { width: 9px; height: 9px; }
.bill-rows { margin: 0; padding: 0 var(--space-5); }
.bill-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); transition: opacity var(--dur-2) var(--ease-std), transform var(--dur-2) var(--ease-std); }
.bill-rows dt { color: var(--ink); }
.bill-rows dd { margin: 0; display: flex; gap: var(--space-5); align-items: baseline; }
.bill-rows dd span { color: var(--muted-2); }
.bill-rows b { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; min-width: 10ch; text-align: right; }
.bill-total dt, .bill-total b { font-weight: var(--weight-medium); }
.bill-total b { font-size: var(--text-md); }
.bill-checks { list-style: none; margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--line); display: grid; gap: var(--space-2); color: var(--muted); }
.bill-checks li { display: flex; align-items: center; gap: var(--space-3); transition: opacity var(--dur-2) var(--ease-std), transform var(--dur-2) var(--ease-std); }
.bill-checks i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: border-color var(--dur-2) var(--ease-std), background var(--dur-2) var(--ease-std); }
.bill-checks i::after { content: ""; position: absolute; left: 3.5px; top: 2px; width: 5px; height: 8px; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(45deg) scale(0); transition: transform var(--dur-2) var(--ease-std); }
.bill-checks li.is-done i { background: var(--ok-ink); border-color: var(--ok-ink); }
.bill-checks li.is-done i::after { transform: rotate(45deg) scale(1); }
.bill [data-stamp] { transition: opacity var(--dur-2) var(--ease-std), transform var(--dur-2) var(--ease-std); }
/* while it plays: the parts that have not arrived yet */
.bill.is-playing .is-pending { opacity: 0; transform: translateY(4px); }
.bill.is-playing [data-stamp].is-pending { transform: scale(0.92); }

/* the app, large, its lower edge dissolving into the page */
.app-section { padding-block: clamp(88px, 11vw, 160px) clamp(40px, 5vw, 64px); }
.app-section .section-title { max-width: none; text-wrap: pretty; margin-bottom: clamp(var(--space-8), 5vw, 56px); }
.app-shot {
  border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  -webkit-mask-image: linear-gradient(#000 66%, transparent 100%);
          mask-image: linear-gradient(#000 66%, transparent 100%);
}
.app-shot img { max-height: 620px; object-fit: cover; object-position: top; }
.hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); line-height: 1; margin-bottom: var(--space-6); white-space: nowrap; }
.hero h1 span { display: block; color: var(--muted-2); }
.lede { font-size: var(--text-lg); line-height: 1.6; color: var(--muted); max-width: 42ch; margin-bottom: var(--space-8); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }

/* maps: land quiet, California lit, a county under the pointer lit further */
[data-map] path { transition: fill var(--dur-2) var(--ease-std); }
.map-us path { fill: var(--map-none); }
.map-ca path { fill: var(--map-ready); }
.map-states, .map-nation { fill: none; stroke: var(--map-line); stroke-width: 1.4; }
@media (hover: hover) {
  [data-map] path:hover { fill: var(--map-covered); }
}

/* ---------------------------------------------------------------- mock product cards */

.mock {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  font-size: var(--text-sm);
}
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); background: var(--sidebar); }
.mock-title { font-weight: var(--weight-medium); color: var(--ink); }
.mock-tag { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); }
.mock-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-3) var(--space-4); padding: var(--space-5) var(--space-5) var(--space-4); }
.mock-strong { font-size: var(--text-md); font-weight: var(--weight-medium); }
.mock-meta { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-rows { margin: 0; padding: 0 var(--space-5); }
.mock-rows > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.mock-rows dt { color: var(--ink); }
.mock-rows dd { margin: 0; display: flex; gap: var(--space-5); align-items: baseline; }
.mock-rows dd span { color: var(--muted-2); }
.mock-rows b { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.mock-total dt, .mock-total b { font-weight: var(--weight-medium); }
.mock-checks { list-style: none; margin: var(--space-2) 0 0; padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--line); display: grid; gap: var(--space-2); color: var(--muted); }
.mock-checks li { display: flex; align-items: center; gap: var(--space-3); }

.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 999px; padding: 3px 10px; font-size: var(--text-xs); font-weight: var(--weight-medium); }
.pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-ok { color: var(--ok-ink); background: var(--ok-bg); }
.pill-appeal { color: var(--appeal-ink); background: var(--appeal-bg); }
.pill-due { color: var(--link); background: var(--selected); }

/* status glyphs: a shape beside the word, never colour alone */
.glyph { flex-shrink: 0; width: 9px; height: 9px; border-radius: 999px; }
.glyph.ok { background: var(--ok-ink); }
.glyph.warn { background: transparent; border: 2px solid var(--warn-ink); }
.glyph.bad { border-radius: 2px; background: var(--bad-ink); transform: rotate(45deg); width: 8px; height: 8px; }

/* ---------------------------------------------------------------- every county, by name */

.counties-band { padding-block: var(--space-10) var(--space-12); border-bottom: 1px solid var(--line); overflow: hidden; }
.band-title { text-align: center; color: var(--muted); font-size: var(--text-base); margin-bottom: var(--space-8); text-wrap: balance; }
.marquee {
  display: grid; gap: var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 140s linear infinite; }
.marquee-reverse { animation-direction: reverse; animation-duration: 160s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px; padding-right: 36px; white-space: nowrap;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem); letter-spacing: -0.025em; color: var(--muted);
}
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--map-ready); }
.marquee-track span:hover { color: var(--ink); }
.marquee-track span:hover::before { background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.section { padding-block: clamp(88px, 11vw, 160px); }
.section-alt { background: var(--sidebar); border-block: 1px solid var(--line); }

.how-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: var(--space-6) var(--space-12); }
.how-head .section-lede { margin-bottom: var(--space-6); }
.how-steps { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.how-step { display: flex; flex-direction: column; }
.how-visual { display: grid; place-items: center; height: 240px; padding: var(--space-6); background: var(--sidebar); border-radius: var(--radius-lg); }
.how-copy { padding: var(--space-6) 0 0; }
.how-meta { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); font-size: var(--text-sm); color: var(--muted-2); }
.how-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--selected); color: var(--link); font-size: var(--text-xs); font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.how-step h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.how-step .how-copy > p:last-child { color: var(--muted); margin: 0; }

/* the little product pictures inside each step */
.hv-card { width: 100%; max-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-float); font-size: 12px; overflow: hidden; }
.hv-bar { display: flex; justify-content: space-between; gap: var(--space-3); padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: var(--weight-medium); color: var(--ink); }
.hv-dim { color: var(--muted-2); font-weight: var(--weight-regular); }
.hv-mono { font-family: "SF Mono", SFMono-Regular, Menlo, ui-monospace, monospace; font-size: 11px; color: var(--ink); }
.hv-rows { list-style: none; margin: 0; padding: 4px 0; }
.hv-rows li { display: flex; align-items: center; gap: var(--space-3); padding: 5px 12px; color: var(--muted); white-space: nowrap; }
.hv-rows li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hv-log li > span:nth-child(2) { color: var(--ink); }
.hv-flag { background: var(--warn-bg); }
.hv-flag > span:nth-child(2) { color: var(--warn-ink); }
.hv-foot { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--muted); }
.hv-warn { color: var(--warn-ink); }
.hv-bad { color: var(--bad-ink); }
.hv-issues li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.hv-issues li > span:nth-child(2) { flex: none; overflow: visible; }
.hv-spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-progress { height: 3px; background: var(--surface-2); }
.hv-progress i { display: block; height: 100%; width: 62%; background: var(--accent); }
.hv-split { padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.hv-split-bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.hv-split-bar i { width: var(--share); background: var(--accent); }
.hv-split-bar b { flex: 1; min-width: 6px; background: var(--warn-ink); }
.hv-split-legend { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: 8px; color: var(--muted); }
.hv-split-legend > span { display: inline-flex; align-items: center; gap: 6px; }

.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(var(--space-10), 6vw, 96px); align-items: center; padding-block: var(--space-12); border-top: 1px solid var(--line); }
.feature:first-of-type { margin-top: var(--space-10); }
.feature-flip .feature-copy { order: 2; }
.feature-kicker { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--link); }
.feature-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.feature-title { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: var(--space-5); }
.feature-title span { display: block; color: var(--muted-2); }
.feature-copy > p:not(.feature-kicker) { color: var(--muted); font-size: var(--text-md); line-height: 1.65; margin-bottom: var(--space-6); max-width: 46ch; }
.facts { margin: 0; border-top: 1px solid var(--line); max-width: 52ch; }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink); font-weight: var(--weight-medium); }
.facts dd { margin: 0; color: var(--muted); line-height: 1.55; }

.inbox-rows, .deadline-rows, .report-rows { list-style: none; margin: 0; padding: var(--space-2) 0; }
.inbox-rows li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-4); padding: 0 var(--space-5); min-height: 46px; border-top: 1px solid var(--line); }
.inbox-rows li:first-child { border-top: 0; }
.row-main { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-why { color: var(--muted); white-space: nowrap; }
.row-amt { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 9ch; text-align: right; }

.deadline-rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); }
.deadline-rows li:first-child { border-top: 0; }
.deadline-rows .date { display: grid; justify-items: start; line-height: 1.2; }
.deadline-rows .date b { font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.deadline-rows .date span, .deadline-rows small { color: var(--muted-2); font-size: var(--text-xs); }
.deadline-rows p { color: var(--ink); }
.deadline-rows small { display: block; font-size: var(--text-sm); color: var(--muted); }

.report-rows li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: 0 var(--space-5); min-height: 44px; border-top: 1px solid var(--line); }
.report-rows li:first-child { border-top: 0; }
.dot { width: 7px; height: 7px; border-radius: 999px; }
.dot-portfolio { background: var(--cat-portfolio); }
.dot-compliance { background: var(--cat-compliance); }
.dot-appeals { background: var(--cat-appeals); }
.dot-accounting { background: var(--cat-accounting); }
.formats { display: flex; gap: 6px; }
.formats i { font-style: normal; font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 1px 6px; letter-spacing: 0.04em; }

/* coverage */
.coverage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--space-10), 6vw, 96px); align-items: center; }
.coverage-grid .btn { margin-top: var(--space-3); }
.ca-map { position: relative; max-width: 340px; justify-self: center; width: 100%; }
.ca-map svg { display: block; width: 100%; height: auto; }
.ca-map .map-ca path { fill: var(--map-ready); stroke: var(--paper); stroke-width: 0.9; }
.map-label { position: absolute; left: 0; top: 0; margin: 0; transform: translate(var(--at-x, 0), var(--at-y, 0)) translate(14px, -130%); white-space: nowrap; pointer-events: none; opacity: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); box-shadow: var(--shadow-pop); transition: opacity var(--dur-2) var(--ease-std); }
.map-label.is-shown { opacity: 1; }

/* security */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(var(--space-8), 6vw, 96px); margin: var(--space-10) 0 0; border-top: 1px solid var(--line-strong); }
.trust > div { padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.trust dt { font-size: var(--text-md); font-weight: var(--weight-medium); margin-bottom: var(--space-2); }
.trust dd { margin: 0; color: var(--muted); max-width: 44ch; }

/* beta */
.beta { background: var(--sidebar); border-block: 1px solid var(--line); }
.beta-inner { display: grid; justify-items: center; text-align: center; }
.beta .section-lede { margin-bottom: var(--space-8); }
.beta .fineprint { margin-top: var(--space-5); max-width: 56ch; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(var(--space-10), 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-size: var(--text-md); font-weight: var(--weight-medium); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: var(--weight-light); font-size: 22px; line-height: 1; transition: transform var(--dur-2) var(--ease-std); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--space-5); max-width: 60ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--sidebar); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); min-height: 72px; padding-block: var(--space-4); font-size: var(--text-sm); }
.footer-row nav { display: flex; gap: var(--space-5); margin-left: auto; }
.footer-row nav a { color: var(--muted); }
.footer-row nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- for terminals and agents */

.dev-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(var(--space-10), 6vw, 88px); align-items: center; }
.dev-lede { color: var(--muted); font-size: var(--text-md); line-height: 1.65; margin-bottom: var(--space-6); max-width: 46ch; }
.facts code { font-family: "SF Mono", SFMono-Regular, Menlo, ui-monospace, monospace; font-size: 0.86em; color: var(--ink); background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }

/* ---------------------------------------------------------------- the terminal: a macOS Terminal window, dark */

.term {
  margin: 0; overflow: hidden;
  background: #0A0A0B;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.07),
              0 30px 80px rgba(10, 12, 20, 0.28), 0 8px 24px rgba(10, 12, 20, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, var(--font-sans);
}
.term-titlebar {
  position: relative; height: 30px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#323234, #29292B);
  border-bottom: 1px solid #000;
}
.term-lights { position: absolute; left: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 8px; }
.term-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.35); }
.term-lights i:nth-child(1) { background: #FF5F57; }
.term-lights i:nth-child(2) { background: #FEBC2E; }
.term-lights i:nth-child(3) { background: #28C840; }
.term-title { font-size: 13px; font-weight: 500; color: #A9A9AD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 160px); }
.term-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #1B1B1D; border-bottom: 1px solid #000; }
.term-tabs button {
  font: inherit; font-size: 12px; color: #8E8E93; height: 26px; padding: 0;
  background: transparent; border: 0; border-left: 1px solid #000; border-radius: 0; cursor: pointer;
  transition: color var(--dur-1) var(--ease-std), background var(--dur-1) var(--ease-std);
}
.term-tabs button:first-child { border-left: 0; }
.term-tabs button:hover { color: #D1D1D6; background: #232325; }
.term-tabs button[aria-selected="true"] { background: #2C2C2E; color: #F2F2F7; }
.term-tabs button:focus { outline: none; }
.term-tabs button:focus-visible { box-shadow: inset 0 0 0 2px #7C86E8; }
/* every panel shares one cell, so the window keeps the tallest one's height and never jumps */
.term-body { display: grid; }
.term-panel { grid-area: 1 / 1; min-width: 0; overflow-x: auto; outline: none; }
.term-panel[hidden] { display: block; visibility: hidden; }
.term-panel:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.term pre {
  margin: 0; padding: 12px 14px 16px;
  font-family: "SF Mono", SFMono-Regular, Menlo, Monaco, ui-monospace, monospace;
  font-size: 12px; line-height: 1.55; color: #D4D4D8; font-variant-ligatures: none;
}
.t-prompt { color: #7C86E8; }
.t-cmd { color: #FFFFFF; }
.t-bright { color: #FFFFFF; }
.t-dim { color: #76767E; }
.t-ok { color: #4CC26E; }
.t-claude { color: #D97757; }
.t-cursor { display: inline-block; width: 7.5px; height: 15px; vertical-align: -3px; background: #D4D4D8; animation: blink 1.1s steps(1) infinite; }
.term.is-typing .t-cursor { animation: none; }
.t-pending { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- real screenshots of the app */

.shot-section { padding-block: clamp(56px, 8vw, 96px) 0; }
.shot-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-8); margin-bottom: var(--space-8); }
.shot-title { font-size: clamp(1.4rem, 2.4vw, 1.875rem); font-weight: var(--weight-regular); letter-spacing: -0.03em; line-height: 1.2; max-width: 26ch; }
.shot-head p { max-width: 52ch; margin: 0; line-height: 1.6; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-float); }
.shot img { display: block; width: 100%; height: auto; }
.shot-chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--space-4); border-bottom: 1px solid var(--line); background: var(--sidebar); }
.shot-chrome i { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
.shot-chrome span { margin-left: var(--space-3); font-size: var(--text-xs); color: var(--muted-2); }

/* a soft rule under the hero: a hairline that fades out at both ends */
.hero-rule { width: min(100% - 2 * var(--gutter), var(--max)); height: 1px; margin: 0 auto; border: 0; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------------------------------------------------------------- documentation */

.docs-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr) 196px; gap: clamp(var(--space-8), 4vw, 64px); padding-block: var(--space-10) clamp(72px, 9vw, 120px); align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 88px; font-size: var(--text-sm); }
.docs-side ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-nav-group { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin: var(--space-5) 0 var(--space-2); }
.docs-nav-group:first-child { margin-top: 0; }
.docs-nav-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 5px 10px; margin-left: -10px; border-radius: 6px; color: var(--muted); }
.docs-nav-item:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.docs-nav-item[aria-current="page"] { color: var(--ink); background: var(--selected); }
.docs-count { font-size: var(--text-xs); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.docs-toc-title { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--space-2); }
.docs-toc li a { display: block; padding: 3px 0; color: var(--muted); }
.docs-toc li a:hover { color: var(--ink); text-decoration: none; }
.docs-toc ul ul { padding-left: var(--space-3); border-left: 1px solid var(--line); margin: 2px 0 var(--space-2); }
.docs-toc ul ul a { font-size: var(--text-xs); }

.docs-main { max-width: 74ch; min-width: 0; }
.docs-head { padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.docs-title { font-size: clamp(2.25rem, 4vw, 3rem); margin-bottom: var(--space-3); }
.docs-lede { color: var(--muted); font-size: var(--text-md); line-height: 1.6; max-width: 60ch; }
.docs-tools { margin-top: var(--space-3); font-size: var(--text-sm); }
.docs-generated { color: var(--muted-2); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.docs-section { padding-block: var(--space-4) var(--space-6); }
.docs-section h2 { font-size: 1.375rem; font-weight: var(--weight-medium); letter-spacing: -0.02em; margin-bottom: var(--space-4); scroll-margin-top: 88px; }
.docs-section p, .docs-section li { line-height: 1.65; }
.docs-section > p, .docs-section > ul, .docs-section > .docs-code, .docs-section > .docs-tabs, .docs-section > .docs-table-wrap { margin-bottom: var(--space-4); }
.docs-section ul { padding-left: 1.2em; }
.docs-section li + li { margin-top: var(--space-2); }
.docs-main code { font-family: "SF Mono", SFMono-Regular, Menlo, ui-monospace, monospace; font-size: 0.88em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
.docs-main pre code { background: none; padding: 0; font-size: inherit; }
.docs-anchor { margin-left: var(--space-2); color: var(--line-strong); font-weight: var(--weight-regular); opacity: 0; }
h2:hover .docs-anchor, h3:hover .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }
.docs-anchor:hover { color: var(--link); text-decoration: none; }

.docs-code { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sidebar); }
.docs-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted-2); }
.docs-copy { font: inherit; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.docs-copy:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.docs-code pre { margin: 0; padding: var(--space-3) var(--space-4); overflow-x: auto; font-family: "SF Mono", SFMono-Regular, Menlo, ui-monospace, monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink); font-variant-ligatures: none; }
.docs-tabs [role="tablist"] { display: flex; gap: 2px; margin-bottom: var(--space-2); }
.docs-tabs [role="tab"] { font: inherit; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--muted-2); background: transparent; border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.docs-tabs [role="tab"]:hover { color: var(--ink); }
.docs-tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--surface-2); }

.docs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.docs-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.docs-table th, .docs-table td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }
.docs-table th { border-top: 0; background: var(--sidebar); font-weight: var(--weight-medium); white-space: nowrap; }
.docs-table td:first-child { white-space: nowrap; }

.docs-entry { padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.docs-entry-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--text-md); margin-bottom: var(--space-2); scroll-margin-top: 88px; }
.docs-entry-title code { font-size: 0.95em; background: none; padding: 0; }
.docs-badge { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; }
.docs-badge.is-mutation { color: var(--warn-ink); border-color: var(--warn-ink); }
.docs-badge.is-query { color: var(--link); border-color: var(--map-ready); }
.docs-tag { font-size: var(--text-xs); color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.docs-tag.is-access { color: var(--link); background: var(--selected); }
.docs-tag.is-deprecated { color: var(--bad-ink); background: var(--bad-bg); }
.docs-entry-meta, .docs-entry-desc { color: var(--muted); margin-bottom: var(--space-2); }
.docs-params { margin-top: var(--space-3); }
.docs-params.is-nested { margin: var(--space-2) 0 0 var(--space-4); padding-left: var(--space-3); border-left: 1px solid var(--line); }
.docs-params-label { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--space-2); }
.docs-param { padding: var(--space-2) 0; }
.docs-param-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.docs-param-name { color: var(--ink); background: none; padding: 0; font-weight: var(--weight-medium); }
.docs-param p { color: var(--muted); font-size: var(--text-sm); margin-top: 2px; }
.docs-example { margin-top: var(--space-3); }
.docs-example summary { cursor: pointer; font-size: var(--text-sm); color: var(--link); margin-bottom: var(--space-2); }
.docs-foot { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.docs-foot-link { display: grid; gap: 2px; color: var(--ink); }
.docs-foot-link span { font-size: var(--text-xs); color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }
.docs-foot-link.is-next { text-align: right; }

@media (max-width: 1180px) { .docs-layout { grid-template-columns: 196px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .docs-side nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
  .docs-side ul { display: flex; flex-wrap: wrap; gap: 2px var(--space-2); }
  .docs-nav-group { width: 100%; margin: var(--space-2) 0 0; }
  .docs-nav-item { margin-left: 0; }
}

/* ---------------------------------------------------------------- reveals */

html.has-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-std), transform 0.7s var(--ease-std); }
html.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 960px) {
  .site-nav { display: none; }
  .feature, .coverage-grid, .faq-wrap, .dev-grid { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .hero h1 { white-space: normal; }
  .hero-map { display: none; }
  .how-head { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-visual { height: auto; min-height: 200px; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-actions .link-quiet { display: none; }
  .header-actions .btn-sm { padding: 0 var(--space-3); }
  .brand { font-size: 18px; }
  .brand img { width: 24px; height: 24px; }
  .header-row { gap: var(--space-4); }
  .brand { margin-right: auto; }
  .mock-rows dd span, .bill-rows dd span, .row-why { display: none; }
  .inbox-rows li { grid-template-columns: 9px minmax(0, 1fr) auto; }
  .row-why { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .term pre { font-size: 10.5px; padding: 10px 12px 14px; }
  .bill-head { flex-direction: column; gap: var(--space-3); }
}

/* the smallest phones: the hero's own button is right below, so the header keeps the name alone */
@media (max-width: 380px) {
  .header-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
