/* Agenda Horizon landing page, modelled on ramp.com, in AgendaX colours.
   White ground, warm-grey stages with a fine dot grid, medium-weight
   type, two-tone headings, detailed product slices. Cobalt is the one
   action colour; red means risk and nothing else. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-variable.woff2") format("woff2-variations"), url("../fonts/geist-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Naira";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-naira.woff2") format("woff2-variations"), url("../fonts/archivo-naira.woff2") format("woff2");
  unicode-range: U+20A6;
}

:root {
  --font: "Geist", "Naira", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --white: #ffffff;
  --stage: #f6f5f2;
  --line: #e9e6e0;
  --line-2: #dcd8d0;
  --ink: #141416;
  --grey: #6a6a6a;
  --grey-2: #716e67;  /* 5.1:1 on white, 4.7:1 on the stage */
  --dots: rgb(20 20 20 / .085);
  /* The action colour is AgendaX ink; the old cobalt names are kept so
     every rule below follows. Red is the logo red and means risk only. */
  --cobalt: #141416;
  --cobalt-hover: #2c2c33;
  --cobalt-soft: #ececf0;
  --red: #c5081c;
  --red-soft: #fbe4e6;
  --red-text: #a50e26;
  --watch-soft: #f5e6c6;
  --watch-text: #6e4a08;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1312px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cobalt); color: #fff; }
input { caret-color: var(--cobalt); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.trap { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 0; border-radius: 6px; padding: 12px 20px; background: var(--cobalt); color: #fff; font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s var(--ease); }
.btn:hover { background: var(--cobalt-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: var(--stage); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish--quiet { color: var(--grey); min-height: 44px; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 4px; background: var(--red-soft); color: var(--red-text); font-size: 12px; font-weight: 600; margin-right: 8px; }

/* Ramp's two-tone headings: the claim in ink, the rest in grey */
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; max-width: 24ch; }
.two span { color: var(--grey-2); }
.sub { color: var(--grey); font-size: 18px; max-width: 52ch; margin-top: 14px; }
.fine { color: var(--grey); font-size: 15px; margin-top: 20px; max-width: 80ch; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.brand picture img { display: block; height: 34px; width: auto; }
.brand > span { padding-left: 10px; border-left: 1px solid var(--line-2); }
.only-dark { display: none; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); text-decoration: none; opacity: .78; }
.nav__links a:hover { opacity: 1; }
.nav .btn { margin-left: auto; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.stat { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.stat b { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--stage); }
h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; margin-top: 18px; }
.lede { color: var(--grey); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; margin: 12px 0 26px; }
.field { display: flex; align-items: center; gap: 6px; max-width: 520px; padding: 5px 5px 5px 16px; background: var(--white); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.field:has([aria-invalid="true"]) { border-color: var(--red); }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: 17px var(--font); padding: 8px 0; }
.field input::placeholder { color: var(--grey); }
.field input::-webkit-search-cancel-button { display: none; }
.field--pilot input + input { border-left: 1px solid var(--line); padding-left: 14px; }
.field--pilot.js .field__step2 { display: none; }
.field--pilot.js.step2 .field__step2 { display: block; animation: rise .35s var(--ease); }
.field--pilot.js.step2 { max-width: 640px; }
.hint { color: var(--grey); font-size: 15px; margin-top: 12px; overflow-wrap: anywhere; }
.hint.err { color: var(--red-text); }
.hint.ok { color: var(--ink); }
.hint [data-try] { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.notyet { max-width: 520px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--stage); }
.notyet__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.notyet__body { color: var(--grey); font-size: 15px; margin-top: 4px; }
.msg { color: var(--grey); font-size: 15px; margin-top: 10px; overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.err { color: var(--red-text); }

/* ── The stage: Ramp's calm panel with one object changing in place ── */
.stage { position: relative; height: 580px; margin-top: 36px; border-radius: 16px; overflow: hidden; background-color: var(--stage); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 14px 14px; border: 1px solid var(--line); }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 52% at 50% 48%, var(--stage) 30%, transparent 75%); pointer-events: none; }
.trails { position: absolute; inset: 0; width: 100%; height: 100%; }
.trails path { fill: none; stroke: #bdb8ae; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 10; animation: flow 2.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40.4; } }
.srcs li { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; padding: 6px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--grey); box-shadow: 0 6px 16px -10px rgb(0 0 0 / .25); }

.obj { position: absolute; left: 50%; top: 47%; width: min(430px, 86%); translate: -50% -50%; height: 268px; }
.face, .ghost { position: absolute; left: 0; right: 0; top: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 48px -28px rgb(20 20 20 / .3); transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s var(--ease); }
.face { padding: 18px 20px; min-height: 236px; }
.face__src { font-size: 13px; color: var(--grey); }
.face__src b { color: var(--ink); font-weight: 600; }
.face__head { font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; margin-top: 10px; }
.face__row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.face__meta { font-size: 14px; color: var(--grey); margin-top: 10px; }
.face__meta b { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { padding: 4px 9px; border-radius: 5px; background: var(--stage); border: 1px solid var(--line); font-size: 13px; font-weight: 500; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tags span.neg { background: var(--red-soft); border-color: transparent; color: var(--red-text); }
.tags span:nth-child(2) { transition-delay: .12s; }
.tags span:nth-child(3) { transition-delay: .24s; }
.count { position: absolute; right: 16px; bottom: 14px; font-size: 13px; font-weight: 600; color: var(--cobalt); transition: opacity .4s var(--ease); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(transparent, rgb(20 20 22 / .06) 70%, rgb(197 8 28 / .55) 98%, transparent); border-radius: 14px 14px 0 0; opacity: 0; pointer-events: none; }
.ghost { padding: 9px 20px; font-size: 14px; color: var(--grey); height: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghost span { display: inline !important; margin-right: 8px; }
.ghost span { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

.big { font-size: 76px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.big small { font-size: 20px; color: var(--grey); letter-spacing: 0; margin-left: 2px; }
.spark { display: block; width: 100%; height: 56px; margin-top: 10px; }
.spark__line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); vector-effect: non-scaling-stroke; }
.spark__area { fill: rgb(197 8 28 / .08); transition: opacity .8s .6s var(--ease); }

.alert { position: absolute; left: 50%; top: -76px; translate: -50% 0; display: flex; align-items: center; gap: 12px; width: max-content; max-width: 110%; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .5); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.alert__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--red); }
.alert__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alert span:last-child { font-size: 13px; color: #b9b9b9; line-height: 1.35; }
.alert b { display: block; font-size: 15px; font-weight: 600; color: #fff; }

.draft { font-size: 17px; line-height: 1.5; margin-top: 12px; min-height: 5.6em; }
.draft.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -3px; background: var(--cobalt); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.face__actions { display: flex; gap: 8px; margin-top: 14px; }
.pill { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.pill--go { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transition: box-shadow .4s var(--ease); }

/* States. Without the script the stage rests on the draft. */
.stage .face, .stage .ghost, .stage .alert { opacity: 0; pointer-events: none; }
.stage .face--story { transform: translateY(14px) scale(.98); }
.stage .face--score, .stage .face--draft { transform: translateY(18px) scale(.97); filter: blur(4px); }
.stage .ghost { transform: translateY(0) scale(.94); }
.stage .alert { transform: translateY(-14px) scale(.96); }
.stage .tags span, .stage .count { opacity: 0; }
.stage .tags span { transform: translateY(4px); }

.stage[data-state="read"] .face--story,
.stage[data-state="tagged"] .face--story,
.stage[data-state="detect"] .face--story { opacity: 1; transform: none; pointer-events: auto; }
.stage[data-state="read"] .scan { animation: scan 1s var(--ease) .15s both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-64px); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(200px); } }
.stage[data-state="tagged"] .tags span,
.stage[data-state="detect"] .tags span { opacity: 1; transform: none; }
.stage[data-state="detect"] .ghost--1 { opacity: 1; transform: translateY(-34px) scale(.95); }
.stage[data-state="detect"] .ghost--2 { opacity: .7; transform: translateY(-64px) scale(.9); }
.stage[data-state="detect"] .count { opacity: 1; }

.stage[data-state="score"] .face--story,
.stage[data-state="alert"] .face--story { opacity: 0; transform: translateY(-22px) scale(.96); filter: blur(4px); }
.stage[data-state="score"] .face--score,
.stage[data-state="alert"] .face--score { opacity: 1; transform: none; filter: none; }
.stage:not([data-state="score"]):not([data-state="alert"]) .spark__line { stroke-dashoffset: 420; transition: none; }
.stage:not([data-state="score"]):not([data-state="alert"]) .spark__area { opacity: 0; transition: none; }
.stage[data-state="alert"] .alert { opacity: 1; transform: none; }
.stage[data-state="alert"] .face--score { transform: translateY(10px) scale(.98); }

.stage[data-state="draft"] .face--draft { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.stage[data-state="draft"].approved .pill--go { box-shadow: 0 0 0 4px var(--cobalt-soft); }

.stage__foot { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 16px; }
.stage__cap { font-size: 14px; color: var(--grey); }
.steps { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }
.steps li { padding: 5px 12px; border-radius: 5px; font-size: 14px; color: var(--grey); transition: background .3s, color .3s; }
.steps li.on { background: var(--ink); color: #fff; }
.replay { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--grey); font: 500 14px var(--font); cursor: pointer; }
.replay:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .trails path { animation: none; }
  .face, .ghost, .alert, .tags span { transition: none; }
}

/* Risk bands */
.band { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s; }
.band--base { background: var(--stage); color: var(--grey); }
.band--watch { background: var(--watch-soft); color: var(--watch-text); }
.band--elevated { background: var(--red-soft); color: var(--red-text); }
.band--critical { background: var(--red); color: #fff; }

/* Ticker: Ramp's "agents at work" row, with the replay numbers */
.ticker { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; overflow-x: auto; scrollbar-width: none; }
.ticker__in p { flex: none; display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.ticker__in p + p { padding-left: 20px; border-left: 1px solid var(--line); }
.ticker__in b { font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--ink); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--stage); font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: center; }
.ticker__k { color: var(--ink) !important; font-weight: 600; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); }

/* Live check */
.check { padding: clamp(80px, 9vw, 128px) 0 0; }
.check__box { position: relative; max-width: 760px; margin-top: 32px; }
.field--check { max-width: none; }
.check__list { position: absolute; z-index: 5; left: 0; right: 0; top: 58px; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 20px 40px -24px rgb(0 0 0 / .35); }
.check__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.check__list li span { color: var(--grey); font-size: 14px; }
.check__list li[aria-selected="true"], .check__list li:hover { background: var(--stage); }
.snapshot { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: rise .35s var(--ease); }
.snapshot__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 22px; background-color: var(--stage); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 14px 14px; border-bottom: 1px solid var(--line); }
.snapshot__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.snapshot__sector { color: var(--grey); font-size: 14px; }
.snapshot__score { margin-left: auto; display: flex; align-items: baseline; gap: 10px; }
.snapshot__score b { font-size: 44px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.snapshot__score small { color: var(--grey); font-size: 15px; }
.snapshot__body { padding: 16px 22px 20px; }
.snapshot__stats { color: var(--grey); font-size: 15px; }
.snapshot__stats b { color: var(--ink); }
.snapshot__note { color: var(--grey); font-size: 15px; margin-top: 6px; }
.snapshot__heads { margin-top: 12px; border-top: 1px solid var(--line); }
.snapshot__heads li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.snapshot__heads i { width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; background: var(--grey-2); }
.snapshot__heads i.neg { background: var(--red); }
.snapshot__heads a { text-decoration: none; }
.snapshot__heads a:hover { text-decoration: underline; }
.snapshot__heads small { grid-column: 2; color: var(--grey); font-size: 13px; }
.snapshot__pro { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--stage); }
.snapshot__pro p { font-size: 15px; color: var(--grey); }
.snapshot__pro b { color: var(--ink); font-weight: 600; }

/* Proof grid: outlets that covered the incidents, cases down the right */
.proof { padding: clamp(80px, 9vw, 128px) 0 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); grid-template-rows: repeat(2, 128px); grid-auto-flow: dense; margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid__cell--name { display: grid; place-items: center; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--grey-2); }
.grid__case { grid-column: 5; position: relative; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 2px 12px; padding: 0 22px; border-top: 0; border-left: 0; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.grid__case:hover { background: var(--stage); }
.grid__co { grid-column: 1; font-size: 14px; color: var(--grey); }
.grid__big { grid-column: 1; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.grid__line { grid-column: 1; font-size: 13px; color: var(--grey); }
.grid__arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.grid__case.is-on { background: var(--ink); color: #fff; }
.grid__case.is-on .grid__co, .grid__case.is-on .grid__line { color: #b9b9b9; }
.grid__case.is-on .grid__arrow { background-color: #2a2a2a; border-color: #3a3a3a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.grid__case:nth-of-type(1) { grid-row: 1; }
.grid__case:nth-of-type(2) { grid-row: 2; }
.case { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; padding: 32px 0 0; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .case { animation: none; } }
.case h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.case p { color: var(--grey); margin-top: 8px; }
.case__src { font-size: 14px; }
.tl { border-left: 1px solid var(--line-2); padding-left: 22px; }
.tl li { position: relative; padding-bottom: 16px; font-size: 15px; line-height: 1.45; }
.tl li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--grey-2); }
.tl li.tl--risk::before { background: var(--red); border-color: var(--red); }
.tl b { display: block; font-weight: 600; }
.tl span { color: var(--grey); }

/* Bento: Ramp's product tiles */
.product { padding: clamp(80px, 9vw, 128px) 0; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 460px; padding: 26px 28px 0; border: 1px solid var(--line); border-radius: 14px; background-color: var(--stage); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 14px 14px; text-decoration: none; transition: border-color .2s, box-shadow .3s var(--ease); }
.tile:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -32px rgb(0 0 0 / .35); }
.tile--wide { grid-column: span 3; }
.tile:not(.tile--wide) { grid-column: span 2; height: 400px; }
.tile h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; padding-right: 52px; max-width: 26ch; }
.tile__go { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 15px no-repeat; transition: transform .25s var(--ease); }
.tile:hover .tile__go { transform: translate(2px, -2px); }
.ui { margin-top: auto; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -10px 30px -24px rgb(0 0 0 / .25); padding: 16px 18px; transition: transform .4s var(--ease); }
.tile:hover .ui { transform: translateY(-4px); }
.ui__k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }

.ui--search .ui__field { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 15px; }
.ui--search .ui__field span { padding: 5px 10px; border-radius: 5px; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 500; }
.ui__result { display: flex; align-items: center; gap: 10px; padding: 14px 2px 10px; border-bottom: 1px solid var(--line); }
.ui__result b { font-weight: 600; }
.ui__result strong { margin-left: auto; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ui__heads li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 2px; font-size: 14px; border-bottom: 1px solid var(--line); }
.ui__heads i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-2); align-self: center; }
.ui__heads i.neg { background: var(--red); }
.ui__heads small { color: var(--grey); font-size: 12px; }

.ui--table { padding: 0; overflow: hidden; }
.ui__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--grey); }
.ui__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ui__bar span { margin-left: 8px; }
.ui--table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ui--table th { text-align: left; font-weight: 500; color: var(--grey); font-size: 13px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.ui--table td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui--table td:first-child { white-space: normal; }
.t { padding: 2px 7px; border-radius: 4px; background: var(--stage); font-size: 12px; font-weight: 600; color: var(--grey); }
.t--neg { background: var(--red-soft); color: var(--red-text); }
.t--pos { background: #e3f3ea; color: #17703f; }

.ui--chart svg { display: block; width: 100%; height: 150px; margin-top: 10px; overflow: visible; }
.ui__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey); margin-top: 6px; padding-bottom: 6px; }

.ui--mail { padding: 12px; background: transparent; border: 0; box-shadow: none; }
.mail { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 30px -24px rgb(0 0 0 / .35); }
.mail__dot { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--red); }
.mail b { display: block; font-size: 13px; color: var(--grey); font-weight: 500; }
.mail span { display: block; font-size: 16px; font-weight: 600; }
.mail small { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }

.ui--doc p:not(.ui__k) { font-size: 15px; line-height: 1.5; margin-top: 8px; }

/* Pricing */
.pricing { padding: 0 0 clamp(80px, 9vw, 128px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--line); }
.plan { display: flex; flex-direction: column; padding: 28px 40px 0 0; }
.plan + .plan { border-left: 1px solid var(--line); padding-left: 40px; }
.plan__name { font-size: 16px; color: var(--grey); }
.plan__price { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin: 6px 0 20px; }
.plan__price--tbd { font-size: 28px; letter-spacing: -0.03em; }
.plan__price small { display: block; font-size: 15px; color: var(--grey); letter-spacing: 0; margin-top: 6px; }
.plan li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 6px; border-left: 1.5px solid var(--cobalt); border-bottom: 1.5px solid var(--cobalt); rotate: -45deg; }
.plan .btn { align-self: flex-start; margin-top: 24px; }

/* Final call: Ramp's soft field with one big input */
.join { position: relative; overflow: hidden; margin: 0 var(--gutter); border-radius: 18px; padding: clamp(80px, 9vw, 128px) 0; background:
  radial-gradient(ellipse 50% 70% at 18% 30%, #f6e4e6 0%, transparent 70%),
  radial-gradient(ellipse 45% 60% at 82% 75%, #efe9df 0%, transparent 70%),
  #f3f2ef; }
.join__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.join__lines path { fill: none; stroke: #d9cdce; stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.join__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.join h2 { max-width: 20ch; }
.join-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px; width: min(760px, 100%); margin-top: 32px; padding: 6px; background: var(--white); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 20px 40px -30px rgb(0 0 0 / .35); text-align: left; }
.join-form label { display: block; }
.join-form label + label { border-left: 1px solid var(--line); }
.join-form input { width: 100%; border: 0; outline: none; background: none; color: var(--ink); font: 17px var(--font); padding: 12px 14px; border-radius: 6px; }
.join-form input:focus-visible { box-shadow: inset 0 0 0 2px var(--cobalt); }
.join-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.join-form input::placeholder { color: var(--grey); }
.join .msg { margin-top: 14px; }

/* Footer */
.foot { padding: 48px 0 56px; }
.foot__in { display: grid; gap: 8px; color: var(--grey); font-size: 15px; }
.foot__brand b { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ── About page ── */
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.ab-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); }
.ab-hero h1 { max-width: 18ch; }
.ab-split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.ab-label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); padding-top: 10px; border-top: 1px solid var(--ink); align-self: start; position: sticky; top: 96px; }
.ab-letter { padding-bottom: clamp(72px, 8vw, 112px); }
.letter { max-width: 64ch; border-top: 1px solid var(--line); padding-top: 8px; }
.letter p { font-size: 20px; line-height: 1.6; color: #2c2c30; margin-top: 18px; }
.letter .letter__open { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); }
.letter__sign { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.letter__sign p { margin: 0; font-size: 16px; line-height: 1.35; }
.letter__sign b { display: block; font-weight: 600; color: var(--ink); }
.letter__sign span { color: var(--grey); font-size: 14px; }

.ab-numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-color: var(--stage); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 14px 14px; }
.ab-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-nums div { padding: 36px 24px 32px; }
.ab-nums div:first-child { padding-left: 0; }
.ab-nums div + div { border-left: 1px solid var(--line); }
.ab-nums b { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.ab-nums span { display: block; color: var(--grey); font-size: 15px; margin-top: 10px; max-width: 24ch; }

.ab-manifesto, .ab-time, .ab-team { padding: clamp(80px, 9vw, 120px) 0 0; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.principles div { border-top: 1px solid var(--ink); padding-top: 18px; }
.principles h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.principles p { color: var(--grey); margin-top: 8px; }

.rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; position: relative; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.rail li { position: relative; padding: 32px 24px 0 0; }
.rail li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-2); }
.rail li.rail__done::before { background: var(--ink); border-color: var(--ink); }
.rail li.rail__now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.rail b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); font-weight: 600; }
.rail .rail__now b { color: var(--red-text); }
.rail h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.rail p { color: var(--grey); font-size: 15px; margin-top: 6px; }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.person { display: flex; flex-direction: column; }
.person__pic { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; place-items: center; background-color: var(--stage); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 14px 14px; }
.person__pic img { width: 100%; height: 100%; object-fit: cover; }
.person__pic span { font-size: clamp(56px, 6vw, 88px); font-weight: 500; letter-spacing: -0.05em; color: var(--ink); }
.person h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.person__role { color: var(--red-text); font-size: 15px; font-weight: 500; margin-top: 2px; }
.person__bio { color: var(--grey); font-size: 15px; margin-top: 10px; }
.person__link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.person__link::after { content: "\2197"; margin-left: 6px; }

.ab-reach { padding: clamp(80px, 9vw, 120px) 0; }
.ab-reach__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 40px; border-radius: 18px; background:
  radial-gradient(ellipse 50% 90% at 10% 20%, #f6e4e6 0%, transparent 70%), #f3f2ef; }
.ab-reach__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .rail { grid-template-columns: 1fr; }
  .rail::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .rail li { padding: 0 0 28px 40px; }
  .ab-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-nums div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ab-nums div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .srcs { display: none; }
  .tile--wide, .tile:not(.tile--wide) { grid-column: span 6; height: 420px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 96px; }
  .grid__case { grid-column: span 3; grid-row: auto !important; min-height: 104px; }
  .case { grid-template-columns: 1fr; gap: 24px; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ab-split { grid-template-columns: 1fr; gap: 20px; }
  .ab-label { position: static; }
  .letter p { font-size: 18px; }
  .principles, .people { grid-template-columns: 1fr; gap: 28px; }
  .ab-reach__in { padding: 28px 22px; }
  .stage { height: 540px; }
  .obj { top: 46%; }
  .face__head { font-size: 18px; }
  .big { font-size: 60px; }
  .stage__foot { flex-wrap: wrap; justify-content: center; gap: 8px; bottom: 12px; }
  .stage__cap { width: 100%; text-align: center; }
  .steps li { padding: 4px 8px; font-size: 13px; }
  .alert { top: -70px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 60px; }
  .grid__cell--name { font-size: 14px; text-align: center; padding: 0 6px; }
  .grid__case { grid-column: span 3; min-height: 96px; }
  .tile { padding: 22px 20px 0; }
  .ui--table td:nth-child(2), .ui--table th:nth-child(2) { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding-right: 0; padding-bottom: 28px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .join { margin: 0 12px; }
  .join-form { grid-template-columns: 1fr; }
  .join-form label + label { border-left: 0; border-top: 1px solid var(--line); }
}
