/*
  Aster, landing page (concept).
  Three typefaces, each with one job: Plus Jakarta Sans for headlines (close to the wordmark's geometry),
  Geist for reading and for the product, IBM Plex Mono for the small print around the page.
  Colour comes from the mark: Aster blue for emphasis, its light blue for the sky, the wordmark's navy for ink.
  Spacing: 4 8 12 16 20 24 32 40 48 64 96 128.
*/

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/demo/aster/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/demo/aster/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/demo/aster/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --ink: #1b2237;
  --ink-2: #2a3249;
  --body: #4a5266;
  --muted: #6b7388;
  --faint: #9aa1b3;
  --line: #e3e6ed;
  --line-2: #d5dae4;
  --surface: #f4f6f9;
  --paper: #ffffff;
  --black: #000000;
  --ink-deep: #070b1a;
  --blue: #0041ff;
  --blue-deep: #0033cc;
  --sky: #8fb5ff;
  --sky-1: #f1f6ff;
  --sky-2: #dce8ff;
  --green-bg: #d7f4d3;
  --green-ink: #1d6b29;
  --amber-bg: #fff1d6;
  --amber-ink: #8a5300;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgb(27 34 55 / 0.06);
  --shadow-md: 0 1px 2px rgb(27 34 55 / 0.05), 0 8px 24px -8px rgb(27 34 55 / 0.12);
  --shadow-lg: 0 2px 4px rgb(27 34 55 / 0.04), 0 24px 64px -16px rgb(16 40 120 / 0.28);

  --f-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gut: 24px;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.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; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Type ---------- */

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  word-spacing: 0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.display-2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--body);
  text-wrap: pretty;
  max-width: 34em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 1px 2px rgb(27 34 55 / 0.3);
}
.btn-primary:hover { background: #0f1424; }
.btn-secondary {
  background: rgb(255 255 255 / 0.72);
  border-color: rgb(255 255 255 / 0.9);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(27 34 55 / 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-light { height: 42px; padding: 0 16px; font-size: 15px; background: #fff; color: var(--black); }
.btn-light:hover { background: var(--sky-2); }
.btn-light .i { width: 15px; height: 15px; transition: transform 160ms var(--ease); }
.btn-light:hover .i { transform: translateX(2px); }

/* ---------- Archive bar and header ---------- */

.archive {
  background: var(--black);
  color: rgb(255 255 255 / 0.72);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  padding: 9px var(--gut);
}
.archive a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / 0.4); margin-left: 6px; white-space: nowrap; }
.archive a:hover { text-decoration-color: #fff; }

.top {
  display: flex;
  justify-content: center;
  padding: 40px var(--gut) 0;
  background: #fff;
}
.brand { display: inline-flex; border-radius: 6px; color: var(--ink); }
.logo { display: block; height: 40px; width: calc(40px * 327 / 85); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(72px, 9vw, 120px);
}
/* The sky: white at the headline, the mark's light blue where the product sits. It ends halfway
   down the product with the same rounded edge as the steps section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(100% - clamp(160px, 18vw, 260px));
  border-radius: 0 0 48px 48px;
  background: linear-gradient(180deg, #fff 0%, #f3f7ff 20%, #dbe7ff 42%, #adc8ff 66%, #87abff 84%, #7ca3ff 100%);
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero-copy .display { max-width: 15em; }
.hero-copy .lede { margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

.frame {
  position: relative;
  padding: 14px;
  border-radius: 36px;
  background: rgb(255 255 255 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-frame { margin-top: clamp(32px, 4vw, 48px); }
/* The scroll prompt: a quiet label over a hairline that gets plucked now and then and bends
   when the cursor brushes it. It points down at the product and leaves once the page moves. */
.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--ink);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.scroll-cue.is-gone { opacity: 0; transform: translateY(-6px); }
.scroll-cue-label { font-size: 13px; line-height: 1; letter-spacing: 0.01em; color: rgb(27 34 55 / 0.5); }
.scroll-cue-line { display: block; width: 40px; height: 52px; }
/* The product runs off the bottom of the hero into the page. */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: auto -64px -72px;
  height: 52%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0.85) 52%, #fff 74%);
  pointer-events: none;
}

/* ---------- App mock (shared) ---------- */

.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 520px;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(27 34 55 / 0.06);
  font-size: 13px;
  line-height: 1.4;
  user-select: none;
}
.app-side { background: #fafbfc; border-right: 1px solid var(--line); padding: 20px 14px; }
.app-logo { display: block; height: 22px; width: calc(22px * 327 / 85); color: var(--ink); margin: 2px 6px 22px; }
.app-nav { display: grid; gap: 2px; }
.app-nav span { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.app-nav .i { width: 15px; height: 15px; color: var(--muted); }
.app-nav .is-active { background: #eef1f6; color: var(--ink); font-weight: 600; }
.app-nav .is-active .i { color: var(--ink); }

.app-main { padding: 0 20px 24px; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 52px; border-bottom: 1px solid var(--line); margin: 0 -20px 20px; padding: 0 20px; color: var(--muted); }
.app-crumb { padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 8px;
  padding: 14px 16px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.kpi-label { color: var(--muted); font-weight: 500; }
.kpi strong { grid-column: 1 / -1; font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trend .i { width: 12px; height: 12px; color: #1f8a3a; stroke-width: 2.25; }
.trend.is-down .i { color: var(--blue); }

.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 16px 4px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.panel-title { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.filters { display: flex; gap: 8px; }
.field-mock { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.field-mock .i { width: 14px; height: 14px; }
.field-mock.search { width: 200px; }
.field-mock.select { width: 130px; justify-content: space-between; color: var(--ink-2); }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .strong { color: var(--ink); font-weight: 600; }
.table .num { text-align: right; }
.col-check { width: 36px; }
.col-more { width: 36px; color: var(--muted); text-align: right; }
.box { display: inline-block; width: 15px; height: 15px; border: 1px solid var(--line-2); border-radius: 4px; vertical-align: middle; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: #f1f3f7; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #23a046; }
.status.is-paused::before { background: var(--faint); }
.flag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--sky-2); color: var(--blue-deep); font-weight: 600; font-size: 12px; }
.flag.is-quiet { background: transparent; color: var(--muted); font-weight: 500; padding-inline: 0; }

/* ---------- Why ---------- */

.why { padding: clamp(64px, 8vw, 112px) 0 clamp(96px, 11vw, 144px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .display { max-width: 15em; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 20px; }
/* Each card spans the two shared rows, so the dividers and figures line up across all three. */
.pillar {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 40px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
/* Every card keeps room for a label above its title, so the three titles share a line. */
.pillar-copy { position: relative; padding-top: 28px; }
.eyebrow { position: absolute; top: 0; left: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--blue); }
.pillar h3 { font-size: 40px; line-height: 1.1; font-weight: 400; letter-spacing: -0.035em; margin-bottom: 12px; }
.pillar p { font-size: 17px; line-height: 1.5; color: var(--body); max-width: 22em; text-wrap: pretty; }
.pillar-proof { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-2); align-content: start; }
.proof-label { font-size: 15px; color: var(--muted); }
/* The figures fall from Aster blue into ink, as in the first version. */
.proof-figure {
  width: fit-content;
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  background: linear-gradient(180deg, var(--blue) 22%, var(--ink-deep) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.chips li { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--f-display); font-size: 13.5px; font-weight: 600; color: var(--blue-deep); }

/* ---------- Steps ---------- */

.steps-section {
  background: var(--surface);
  border-radius: 0 0 40px 40px;
  padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 112px);
}
.steps-section .section-head { margin-bottom: clamp(40px, 5vw, 56px); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line-2);
}
.step { display: grid; grid-template-rows: 300px auto; border-right: 1px solid var(--line-2); }
/* Every illustration rises out of the divider: anchored to the bottom, its last 20px cut off. */
.step-art {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 76px 32px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.step-num {
  position: absolute;
  top: 20px;
  left: 32px;
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.step-copy { padding: 28px 32px 8px; }
.step h3 { font-family: var(--f-display); font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--body); max-width: 30em; text-wrap: pretty; }

.mini-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px rgb(27 34 55 / 0.07), 0 8px 24px -10px rgb(27 34 55 / 0.18);
  font-size: 12.5px;
  line-height: 1.35;
}

.mini-form { display: grid; gap: 6px; padding: 18px 20px 24px; }
.mini-form label { font-weight: 600; color: var(--ink); margin-top: 6px; }
.mini-form label:first-child { margin-top: 0; }
.input { display: flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.input.is-focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(0 65 255 / 0.14); }
.input.select { justify-content: space-between; }
.input .i { width: 14px; height: 14px; color: var(--muted); }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; background: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mini-stack { display: grid; gap: 12px; width: 100%; max-width: 300px; }
.step-art > div { margin-bottom: -20px; }
.listing { position: relative; display: grid; gap: 3px; padding: 16px 18px; color: var(--body); }
.listing strong { font-size: 14px; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 2px; }
.listing .meta { color: var(--muted); }
.match { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 6px; background: var(--sky-2); color: var(--blue-deep); font-weight: 700; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.match.is-high { background: var(--green-bg); color: var(--green-ink); }

.actions-card { display: grid; gap: 8px; padding: 16px 18px 18px; }
.actions-title { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.action { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.action .i { width: 14px; height: 14px; }
.action.is-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.cursor { position: absolute; right: 22px; bottom: -14px; width: 20px; height: 20px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25)); }

/* ---------- Peek: the interactive demo ---------- */

.peek { padding: clamp(96px, 11vw, 144px) 0 clamp(80px, 9vw, 120px); }
.demo { padding: 12px; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); border-color: #fff; box-shadow: var(--shadow-md); }
.demo-app {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 560px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(27 34 55 / 0.06);
}
.demo-side { display: grid; align-content: start; gap: 20px; padding: 24px; background: #fafbfc; border-right: 1px solid var(--line); }
.clients { display: grid; gap: 4px; }
.clients button {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.clients button:hover { background: #eef1f6; color: var(--ink); }
.clients button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }

.req { display: grid; align-content: start; gap: 12px; padding: 20px 0 4px; border-top: 1px solid var(--line); font-size: 14px; }
.req div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.req dt { color: var(--muted); }
.req dd { color: var(--ink); font-weight: 600; }

.demo-results { display: grid; grid-template-rows: auto auto 1fr; padding: 24px 28px 28px; min-width: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.results-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.results-status { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; color: var(--muted); }

.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; min-height: 28px; }
.platforms span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.platforms span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.platforms span.is-searching { color: var(--blue-deep); border-color: rgb(0 65 255 / 0.3); background: var(--sky-1); }
.platforms span.is-searching::before { animation: pulse 900ms ease-in-out infinite; opacity: 1; }
.platforms span.is-done { color: var(--ink-2); }
.platforms span.is-done::before { background: #23a046; opacity: 1; }
@keyframes pulse { 50% { transform: scale(0.5); opacity: 0.4; } }

.results { display: grid; align-content: start; gap: 10px; }
.result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease), border-color 160ms var(--ease);
}
.result.is-in { opacity: 1; transform: none; }
.result-main { display: grid; gap: 2px; min-width: 0; }
.result-price { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-addr { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); }
.result-addr .i { width: 14px; height: 14px; color: var(--muted); }
.result-meta { font-size: 13px; color: var(--muted); }
.result .match { position: static; align-self: start; font-size: 12.5px; padding: 4px 9px; }
.signals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.signal { display: grid; gap: 6px; font-size: 12.5px; }
.signal-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.signal-top b { color: var(--ink-2); font-weight: 650; }
.meter { height: 4px; border-radius: 999px; background: #edf0f5; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width 700ms var(--ease) 160ms; }
.result.is-in .meter i { width: var(--v); }

.results-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 280px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Closing ---------- */

.closing { padding: clamp(56px, 7vw, 96px) 0 clamp(112px, 12vw, 160px); }
.closing-inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.closing .lede { max-width: 30em; }

.access-form { width: 100%; max-width: 520px; margin-top: 16px; }
.access-form .field { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-md); }
.access-form .field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 65 255 / 0.12), var(--shadow-md); }
.access-form .field input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; font-size: 16px; outline: none; }
.access-form input::placeholder { color: var(--faint); }
.form-error { margin-top: 10px; font-size: 14px; color: #b42318; font-weight: 500; }
.access-form .field:has(input[aria-invalid="true"]) { border-color: #d92d20; }
.access-form.stacked > input[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 4px rgb(217 45 32 / 0.12); }
.access-form.stacked .form-error { margin-top: 0; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.form-done { display: grid; justify-items: center; text-align: center; gap: 8px; width: 100%; max-width: 520px; padding: 20px 24px; border-radius: 14px; background: var(--sky-1); border: 1px solid var(--sky-2); color: var(--ink); }
.form-done strong { font-size: 17px; letter-spacing: -0.01em; }
.form-done p { color: var(--body); font-size: 15px; }
.form-done .tick { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; }
.form-done .tick .i { stroke-width: 2.5; }

/* ---------- Footer ---------- */

.foot { background: var(--black); color: rgb(255 255 255 / 0.64); padding: clamp(64px, 8vw, 96px) 0 32px; }
.foot :focus-visible { outline-color: var(--sky); }
.foot-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.foot-brand { display: grid; justify-items: start; align-content: start; gap: 20px; }
.foot-home { display: inline-flex; color: #fff; border-radius: 8px; }
/* The outlined mark from the first version's footer. */
.foot-mark { display: block; width: 52px; height: 52px; }
.foot-brand p { font-size: 15px; line-height: 1.55; max-width: 22em; }
.foot-brand .btn { margin-top: 4px; }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-col h2 { margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.44); }
.foot-col ul { display: grid; gap: 12px; }
.foot-col a { font-size: 15px; line-height: 1.4; color: rgb(255 255 255 / 0.8); text-decoration: none; transition: color 140ms var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.6);
}
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / 0.72); text-decoration: none; transition: color 140ms var(--ease); }
.foot-top:hover { color: #fff; }
.foot-top .i { width: 14px; height: 14px; }

/* Placeholder links say so instead of jumping to the top. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 12px 32px -8px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(27 34 55 / 0.08);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Dialog ---------- */

.access-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 32px;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgb(16 24 60 / 0.4), 0 0 0 1px rgb(27 34 55 / 0.06);
  color: var(--ink);
}
.access-dialog::backdrop { background: rgb(27 34 55 / 0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.access-dialog[open] { animation: dialog-in 260ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.dialog-close-form { position: absolute; top: 14px; right: 14px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.dialog-mark { width: 36px; height: 36px; margin-bottom: 16px; }
.access-dialog h2 { font-family: var(--f-display); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.access-dialog > p { color: var(--body); font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
.access-form.stacked { display: grid; gap: 8px; margin: 0; max-width: none; }
.access-form.stacked > label { font-size: 14px; font-weight: 600; }
.access-form.stacked > input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 16px;
  outline: none;
}
.access-form.stacked > input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 65 255 / 0.12); }
.roles { display: grid; gap: 8px; margin: 12px 0 8px; padding: 0; border: 0; }
.roles legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roles legend { grid-column: 1 / -1; }
.roles label { position: relative; }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles span { display: grid; place-items: center; height: 40px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; color: var(--body); text-align: center; line-height: 1.2; transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease); }
.roles input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.roles input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.access-form.stacked .btn { margin-top: 8px; }
.access-form.stacked .form-note { text-align: center; margin-top: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--line-2); }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .step-art { border-bottom: 0; border-right: 1px solid var(--line-2); height: 280px; }
  .step-copy { align-self: center; }
  .pillars { grid-template-columns: 1fr; grid-template-rows: none; }
  .pillar { grid-row: auto; grid-template-rows: none; gap: 28px; }
  /* Stacked cards don't share a title line, so the label sits in the flow. */
  .pillar-copy { padding-top: 0; }
  .eyebrow { position: static; display: block; margin-bottom: 6px; }
  .demo-app { grid-template-columns: minmax(0, 1fr); }
  .demo-side { min-width: 0; }
  .demo-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .clients { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .foot-main { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 720px) {
  :root { --gut: 16px; }
  .top { padding-top: 28px; }
  .logo { height: 32px; width: calc(32px * 327 / 85); }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .frame { padding: 8px; border-radius: 22px; }
  .hero::before { border-radius: 0 0 28px 28px; }
  .scroll-cue { margin-top: 24px; }
  .scroll-cue-line { height: 40px; }
  .app { border-radius: 16px; min-height: 0; }
  .app-main { padding: 0 12px 12px; }
  .app-bar { margin: 0 -12px 12px; padding: 0 12px; }
  .filters { display: none; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(6), .table td:nth-child(6), .col-check, .col-more { display: none; }
  .kpi strong { font-size: 24px; }
  .kpi .trend { display: none; }
  .table th:nth-child(5), .table td:nth-child(5) { display: none; }
  .results-head { flex-direction: column; gap: 2px; }
  .step { grid-template-columns: 1fr; }
  .step-art { border-right: 0; border-bottom: 1px solid var(--line-2); padding-inline: 20px; }
  .step-num { left: 20px; }
  .step-copy { padding: 20px 20px 28px; }
  .pillar { padding: 24px; }
  .steps-section { border-radius: 0 0 28px 28px; }
  .demo { padding: 6px; }
  .demo-app { border-radius: 18px; }
  .demo-side, .demo-results { padding: 16px; }
  .signals { grid-template-columns: 1fr; gap: 10px; }
  .access-form .field { flex-direction: column; }
  .access-form .field .btn { width: 100%; }
  .pillar h3 { font-size: 36px; }
  .proof-figure { font-size: 56px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
}

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