/* Overpass: a typeface modelled on highway signage lettering. SIL Open Font License. */
@font-face {
  font-family: "Overpass";
  src: url("assets/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("assets/fonts/overpass-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* Brand tokens from FastLaneV2 frontend/src/theme/brand.ts */
:root {
  --ink: #101010;
  --ink-2: #1a1a1a;
  --ink-line: #2a2a2a;
  --coral: #fa6654;
  --coral-text: #d13c28;
  --indigo: #3c4ba6;
  --indigo-soft: #8a96e6;
  --paper: #f5f5f5;
  --white: #fff;
  --line: #e6e6e6;
  --text-2: #3a3a3a;
  --muted: #666;
  --ok: #177f42;
  --progress: linear-gradient(90deg, var(--coral), var(--indigo));
  /* button gradient from FastLaneV2 frontend/src/index.css (--fl-gradient-button) */
  --btn-grad: linear-gradient(110deg, #e0503e 0%, #d43f5e 60%, #cc3366 100%);
  --btn-grad-hover: linear-gradient(110deg, #d4452f 0%, #c63352 60%, #b82a5a 100%);

  --sans: "Overpass", "Segoe UI", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --wrap: 84rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  /* radius by hierarchy: controls 8, windows 14, stages 28 */
  --r-ctl: 8px;
  --r-win: 14px;
  --r-stage: 28px;
  --lift: 0 1px 2px rgba(16,16,16,.06), 0 24px 48px -24px rgba(16,16,16,.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
a { color: var(--coral-text); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--white); padding: .5rem 1rem; }

/* Header: the product's dark bar and coral-to-indigo rule, sticky */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16,16,16,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid; border-image: var(--progress) 1;
}
.bar__inner {
  max-width: var(--wrap); margin-inline: auto; padding: .7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .5rem; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand b { color: var(--coral); font-weight: 800; }
.bar nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.75rem); }
.bar nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .95rem; }
.bar nav a:hover { color: var(--white); }
.bar nav .bar__cta { background: var(--btn-grad); color: var(--white); font-weight: 800; text-shadow: 0 1px 2px rgba(120,20,40,.35); padding: .45rem .95rem; border-radius: var(--r-ctl); }
@media (max-width: 70rem) { .bar nav a:not(.bar__cta) { display: none; } } /* all links need ~1100px */

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; padding: .85rem 1.4rem; border-radius: var(--r-ctl);
  font-weight: 700; text-decoration: none; color: var(--ink);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn--primary { background: var(--btn-grad); color: var(--white); font-size: 1.1875rem; font-weight: 800; padding-block: .75rem; text-shadow: 0 1px 2px rgba(120,20,40,.35); box-shadow: inset 0 0 0 1px #e5556a, 0 10px 24px -12px rgba(204,51,102,.9); }
.btn--primary:hover { background: var(--btn-grad-hover); }
.bar nav .bar__cta:hover { background: var(--btn-grad-hover); }

/* Band: full-width dark sections that give the page a light/dark rhythm */
.band {
  position: relative; color: var(--white); padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: radial-gradient(50% 70% at 0% 100%, rgba(60,75,166,.28), transparent 70%), radial-gradient(40% 60% at 100% 0%, rgba(250,102,84,.1), transparent 70%), var(--ink);
}

/* Windows: faithful recreations of portal screens */
.window { background: var(--white); color: var(--ink); border-radius: var(--r-win); box-shadow: var(--lift); overflow: hidden; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.5; padding: .05rem .55rem; border-radius: 999px; color: var(--muted); background: #f2f2f2; border: 1px solid var(--line); white-space: nowrap; }
.pill--ok { color: var(--ok); background: #f6ffed; border-color: #b7eb8f; }
.pill--info { color: var(--indigo); background: #eef0fa; border-color: #b9c0e8; }
.pill--warn { color: #946010; background: #fff8e6; border-color: #f0d38a; }
.tag { display: inline-block; font-size: .75rem; line-height: 1.5; padding: .05rem .45rem; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.uibtn { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 6px; border: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.uibtn--primary { background: var(--btn-grad); border-color: #e5556a; color: var(--white); }
.portal { max-width: 60rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; font-size: .9rem; }
.portal__top { display: flex; align-items: center; gap: .4rem; background: var(--ink); padding: .55rem .9rem; border-bottom: 2px solid; border-image: var(--progress) 1; }
.portal__brand { display: flex; align-items: center; gap: .35rem; color: var(--white); font-weight: 800; margin-right: .6rem; }
.portal__brand b { color: var(--coral); }
.navpill { font-size: .78rem; color: rgba(255,255,255,.85); border: 1px solid #333; border-radius: 6px; padding: .15rem .55rem; }
.navpill.is-active { background: var(--btn-grad); border-color: #e5556a; color: var(--white); font-weight: 700; }
.portal__main { display: grid; gap: .9rem; padding: 1.4rem 1.6rem 1.6rem; background: var(--paper); text-align: left; }
.apphead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.apphead__title { font-size: 1.3rem; font-weight: 800; margin-right: .25rem; }
.apphead__btns { margin-left: auto; display: flex; gap: .4rem; }
.status, .card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.status { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; }
.status svg { flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status b { display: block; font-weight: 700; color: var(--ink); }
.status p { color: var(--muted); font-size: .85rem; }
.portal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.card { padding: 1rem 1.1rem; }
.card__title { display: flex; align-items: center; gap: .5rem; font-weight: 800; margin-bottom: .6rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.steps li::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: var(--ok); box-shadow: inset 0 0 0 2.5px var(--white), 0 0 0 1.5px var(--ok); }
.steps time { margin-left: auto; color: var(--muted); font-size: .78rem; }
.about { margin: 0; }
.about div { display: flex; gap: .75rem; padding: .3rem 0; }
.about dt { flex: none; width: 7.5rem; color: var(--muted); }
.about dd { margin: 0; font-weight: 600; }
@media (max-width: 40rem) {
  .portal__cols { grid-template-columns: 1fr; }
  .apphead__btns, .portal__top .navpill:not(.is-active) { display: none; }
  .portal__main { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section + .section { padding-top: clamp(1rem, 3vw, 2.5rem); }
.section h2, .agents h2, .perimeter h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; letter-spacing: -.035em; max-width: 20ch; }
.intro { margin-top: 1.25rem; font-size: 1.15rem; color: var(--text-2); max-width: 32rem; }



.panel { font-size: .9rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel__head p { font-weight: 800; }
.panel figcaption { padding: .75rem 1.25rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: #fafafa; }
.newapp__body { display: grid; gap: .9rem; padding: 1.1rem 1.25rem 1.25rem; }
.newapp__hint { color: var(--muted); font-size: .85rem; }
.field { display: grid; gap: .3rem; }
.field small { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.field span { border: 1px solid var(--line); border-radius: 6px; padding: .45rem .65rem; }
.field--area span { min-height: 3.6rem; }
.newapp .uibtn { justify-self: end; font-size: .85rem; padding: .4rem .9rem; }

.inventory table { width: 100%; border-collapse: collapse; }
.inventory th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); background: #fafafa; padding: .6rem 1.25rem; border-bottom: 1px solid var(--line); }
.inventory td { padding: .7rem 1.25rem; border-bottom: 1px solid #f0f0f0; }
.inventory td:first-child { color: var(--coral-text); font-weight: 600; }
.inventory td:last-child { color: var(--muted); white-space: nowrap; }
.inventory tr:last-child td { border-bottom: 0; }
@media (max-width: 36rem) { .inventory th:last-child, .inventory td:last-child { display: none; } }


.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

.gets { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.gets dt { font-weight: 800; font-size: 1.1rem; }
.gets dd { margin: .2rem 0 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 36rem) { .gets { grid-template-columns: 1fr; } }


/* Picker: choose a point on the left, the window shows only its panel.
   Plain radio buttons, so it works with the keyboard and without JavaScript. */
.picker { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.picker--admin { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.picker__tabs { margin: 0; padding: 0; border: 0; display: grid; gap: .5rem; }
.picker__point { display: grid; gap: .3rem; padding: 1rem 1.25rem; border-left: 3px solid var(--line); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; cursor: pointer; color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.picker__point input { position: absolute; opacity: 0; pointer-events: none; }
.picker__point strong { font-size: 1.2rem; font-weight: 800; color: var(--text-2); }
.picker__point span { font-size: 1rem; }
.picker__point:hover { border-left-color: #b9c0e8; }
.picker__point:has(:checked) { background: var(--white); border-left-color: var(--indigo); color: var(--text-2); box-shadow: var(--lift); }
.picker__point:has(:checked) strong { color: var(--ink); }
.picker__point:has(:focus-visible) { outline: 3px solid var(--indigo); outline-offset: 3px; }
.picker__win { font-size: .95rem; }
/* all panels share one cell, so the window keeps the height of the tallest */
.picker__stage { display: grid; }
.picker--admin .picker__stage { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); }
.picker__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; translate: 0 .5rem; transition: opacity .25s, translate .25s, visibility .25s; }
.picker--admin .picker__panel { align-self: center; }
.picker:has([value="1"]:checked) [data-view="1"],
.picker:has([value="2"]:checked) [data-view="2"],
.picker:has([value="3"]:checked) [data-view="3"],
.picker:has([value="4"]:checked) [data-view="4"] { visibility: visible; opacity: 1; translate: 0; }
.picker__panel .mini__tiles b { white-space: nowrap; }
/* browsers without :has show every panel stacked */
@supports not selector(:has(*)) { .picker__panel { grid-area: auto; visibility: visible; opacity: 1; translate: 0; margin-bottom: 1rem; } }
@media (prefers-reduced-motion: reduce) { .picker__point, .picker__panel { transition: none; } }
@media (max-width: 56rem) { .picker { grid-template-columns: 1fr; } .picker__win { order: -1; } }
.mini__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
.mini__row b { display: block; font-weight: 700; }
.mini__row small { display: block; margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.mini__btns { display: flex; gap: .4rem; }
.uibtn--danger { color: #cf1322; border-color: #ffa39e; }
.mini__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mini__tiles > span { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 8px; background: #eef0fa; }
.mini__tiles > span + span { background: #f6ffed; }
.mini__tiles small { color: var(--muted); font-size: .75rem; }
.mini__tiles b { font-size: 1.35rem; font-weight: 800; }
.mini__tiles i { font-style: normal; font-size: .8rem; font-weight: 400; color: var(--muted); }
.mini__list { list-style: none; margin: 0; padding: 0; }
.mini__list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; }
.mini__list li + li { border-top: 1px solid #f0f0f0; }


/* Agents */
.agents__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.agents__grid > div > p { margin-top: 1.25rem; color: rgba(255,255,255,.78); max-width: 34rem; }
.setup { margin: 1.5rem 0 0; padding-left: 1.25rem; color: rgba(255,255,255,.78); }
.setup li + li { margin-top: .5rem; }
.setup strong { color: var(--white); }
.chat { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-win); padding: 1.5rem; }
.chat > * + * { margin-top: 1rem; }
.chat__you { background: #2a2a2a; border-radius: 12px 12px 4px 12px; padding: .8rem 1rem; margin-left: 12%; }
.chat__agent { color: rgba(255,255,255,.9); }
.chat__calls { list-style: none; padding: 0 0 0 1rem; margin-bottom: 0; border-left: 2px solid var(--coral); }
.chat__calls li { padding: .15rem 0; font-size: .95rem; color: var(--coral); }
.chat__calls span { color: rgba(255,255,255,.55); margin-left: .5rem; }
@media (min-width: 56.01rem) { .agents__grid .chat { order: -1; } }
@media (max-width: 56rem) { .agents__grid { grid-template-columns: 1fr; } }

/* Contact and footer */
.foot { padding-block: clamp(2.5rem, 5vw, 3.5rem); font-size: .95rem; color: var(--muted); }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 3rem; }
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand p a { color: var(--ink); font-weight: 600; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; }
.foot__nav a { color: var(--text-2); text-decoration: none; }
.foot__nav a:hover { color: var(--coral-text); text-decoration: underline; }
@media (max-width: 56rem) { .foot__inner { grid-template-columns: 1fr; } .foot__nav { justify-content: flex-start; } }

/* Ideas taken from the Inspiration drafts */

/* Dotted workspace plate behind product windows */
.plate {
  padding: clamp(1rem, 3vw, 2rem); border-radius: 22px; background: #ebebeb;
}


/* FAQ */
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid #dcdcdc; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-size: 1.15rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--coral-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; max-width: 44rem; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
/* answers slide open where the browser can animate to auto height; elsewhere they open instantly */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s cubic-bezier(.3,0,.2,1), content-visibility .3s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}





/* Rubber-duck pass: calmer textures, roomier reading */


/* plates: a quiet tinted frame instead of dots */

/* FAQ in two columns */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq summary { padding: 1.4rem 0; font-size: 1.2rem; }
.faq details p { font-size: 1.0625rem; }
@media (max-width: 56rem) { .faq { grid-template-columns: 1fr; } }

/* Spec builder add-on */
.spec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 56rem) { .spec__head { grid-template-columns: 1fr; } }
.spec__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.spec__points li { padding-left: 1rem; border-left: 3px solid #6f58e0; color: var(--text-2); font-size: 1.0625rem; }
.spec__points strong { display: block; color: var(--ink); }
.sb { background: #141414; border: 1px solid #262626; }
.sb__top { display: flex; align-items: center; gap: 1.1rem; padding: .7rem 1rem; border-bottom: 1px solid #262626; font-size: .82rem; color: rgba(255,255,255,.65); overflow: hidden; white-space: nowrap; }
.sb__app { color: var(--white); font-weight: 800; margin-right: .5rem; }
.sb__top .is-active { color: var(--white); box-shadow: 0 2px 0 #6f58e0; padding-bottom: .15rem; }
.sb__open { font-style: normal; font-size: .7rem; font-weight: 700; color: #f5a524; margin-left: .2rem; }
.sb .picker__panel { display: grid; grid-template-rows: auto 1fr; }
.sb__node > p:not(.sb__name) { color: rgba(255,255,255,.88); }
.sb__body { display: grid; align-content: center; justify-items: start; min-height: 17rem; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); font-size: .85rem; color: rgba(255,255,255,.88);
  background: radial-gradient(circle, #2a2a2a 1px, transparent 1.2px) 0 0 / 16px 16px; }
/* dashed amber outline: the app's mark for items that still need work */
.sb__node { width: min(100%, 28rem); background: #1c1c24; border: 1.5px dashed #c8801e; border-radius: 10px; padding: .9rem 1rem; }
.sb__name { color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: .6rem; }
.sb__fields { margin: 0; display: grid; gap: .6rem; }
.sb__fields dt { font-size: .72rem; color: rgba(255,255,255,.6); }
.sb__fields dd { margin: .1rem 0 0; }
.sb__record { list-style: none; margin: 0; padding: 0; }
.sb__record li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; border-top: 1px solid #2c2c36; }
.sb__record span { color: rgba(255,255,255,.6); }
.sb__questions { width: min(100%, 28rem); border-radius: 10px; padding: .8rem 1rem; background: rgba(245,165,36,.1); }
.sb__questions p { color: #f5a524; font-weight: 700; font-size: .8rem; }
.sb__questions ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.sb figcaption { padding: .6rem 1.25rem; font-size: .8rem; color: rgba(255,255,255,.6); border-top: 1px solid #262626; }

/* Inspiration pass: dark sky with two light lanes in the brand colours */
.sky {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 100%, rgba(60,75,166,.5), transparent 70%),
    radial-gradient(45% 55% at 96% 6%, rgba(250,102,84,.16), transparent 70%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; left: -15%; width: 130%; height: 12px; border-radius: 99px;
  transform: rotate(-21deg); animation: streak 1.6s cubic-bezier(.3,0,.2,1) .15s both;
}
.sky::before {
  top: 50%; background: linear-gradient(90deg, transparent 5%, rgba(250,102,84,.9) 45%, rgba(255,196,186,.6) 85%, transparent);
  box-shadow: 0 0 40px 10px rgba(250,102,84,.25);
}
.sky::after {
  top: 59%; animation-delay: .35s;
  background: linear-gradient(90deg, transparent 5%, rgba(138,150,230,.95) 45%, rgba(222,226,255,.55) 85%, transparent);
  box-shadow: 0 0 40px 10px rgba(60,75,166,.45);
}
@keyframes streak { from { transform: rotate(-21deg) scaleX(0); } }

/* Hero: centred headline in the sky, the portal rising into the page */
.hero {
  --tail: clamp(8rem, 16vw, 13rem);
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(var(--ink) calc(100% - var(--tail)), var(--paper) 0);
}
.hero .sky { bottom: var(--tail); }
.hero__copy { position: relative; text-align: center; padding-top: clamp(4.5rem, 11vw, 9rem); }
.hero h1 { font-size: clamp(3.6rem, 12.5vw, 11rem); font-weight: 900; letter-spacing: -.055em; line-height: .9; }
.lead { margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; max-width: 38rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.85); text-shadow: 0 1px 16px rgba(16,16,16,.9); }
.hero .actions { justify-content: center; }
/* Radiante cloud that draws itself in place after the headline */
/* absolute so it sits beside the line without pushing the centred line off-centre */
.mark { position: absolute; width: .62em; margin: .1em 0 0 -.84em; } /* sits before "Skip", with a gap */
.mark svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mark__cloud path { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.3,0,.2,1) .15s both; /* same curve as the streaks: starts with coral, ends with indigo */ }
}
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 40% { opacity: 1; } to { stroke-dashoffset: 0; } }

.hero .portal { position: relative; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.hero__shot { position: relative; }
.hero__shot::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(80rem, 100%); height: 85%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(45% 45% at 25% 40%, rgba(250,102,84,.45), transparent 70%), radial-gradient(45% 45% at 75% 60%, rgba(138,150,230,.5), transparent 70%);
  filter: blur(50px);
}
.btn--ghost-light { font-size: 1.1875rem; padding-block: .75rem; color: var(--white); background: rgba(16,16,16,.4); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.hero :focus-visible, .band :focus-visible, .closing :focus-visible { outline-color: var(--white); }

/* Why now: the case on the left, sourced numbers on the right */
.whynow h2 { max-width: 22ch; }
.whynow__grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.whynow__case { background: var(--white); border-radius: var(--r-win); box-shadow: var(--lift); padding: clamp(1.75rem, 4vw, 3rem); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.45; }
.whynow__case p + p { margin-top: 1.25rem; }
.whynow__case strong { font-weight: 800; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; }
.stats li { display: grid; gap: .6rem; align-content: center; height: 100%; background: var(--ink); color: var(--white); border-radius: var(--r-win); padding: 1.6rem clamp(1.25rem, 3vw, 2rem); }
.stats b { font-size: clamp(2.8rem, 5vw, 4.25rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--coral); }
.stats p { color: rgba(255,255,255,.88); }
.stats a { font-family: var(--mono); font-size: .8rem; color: rgba(255,255,255,.6); }
@media (max-width: 56rem) { .whynow__grid { grid-template-columns: 1fr; } }

/* Perimeter: what stays inside your company */
.perimeter { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.perimeter h2 { max-width: 14ch; }
.perimeter__text > p { margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 34rem; }
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2.2rem; font-size: 1.0625rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(250,102,84,.2); }
.checks li::after { content: ""; position: absolute; left: .5rem; top: calc(.1em + .28rem); width: .38rem; height: .66rem; border: solid var(--coral); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fence { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.75rem); }
.fence__zone { border: 1.5px solid var(--coral); border-radius: var(--r-win); padding: clamp(.9rem, 2.5vw, 1.4rem); }
.fence__label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; font-family: var(--mono); font-size: .8rem; color: var(--coral); }
.fence__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.fence__tiles li { background: #262626; border-radius: var(--r-ctl); padding: .9rem 1rem; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.fence__tiles .is-key { background: #282c52; color: #e2e5ff; }
.fence__gate { margin-top: .9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; background: var(--white); color: var(--ink); border-radius: var(--r-ctl); padding: .9rem 1.1rem; }
.fence__gate b { font-weight: 800; }
.fence__gate span { font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.fence__note { margin: .5rem 0 .5rem 1.5rem; padding-left: .9rem; border-left: 2px dashed #555; color: rgba(255,255,255,.65); font-size: .9rem; line-height: 2.2; }
.fence__out { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; border: 1.5px dashed #4a4a4a; border-radius: var(--r-win); padding: .8rem 1rem; color: rgba(255,255,255,.78); }
.fence__pill { font-size: .85rem; background: #2a2a2a; border-radius: 999px; padding: .25rem .8rem; }
@media (max-width: 64rem) { .perimeter { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .fence__tiles { grid-template-columns: 1fr 1fr; } }

/* Closing: the same sky, standing still */
.closing { position: relative; overflow: hidden; background: var(--ink); color: var(--white); text-align: center; padding-block: clamp(5rem, 12vw, 9rem); margin-top: clamp(3rem, 6vw, 5rem); }
.closing .sky::before, .closing .sky::after { animation: none; }
.closing__copy { position: relative; }
.closing h2 { font-size: clamp(2.8rem, 7.5vw, 6.5rem); font-weight: 900; letter-spacing: -.05em; line-height: .95; }
.closing p:not(.actions) { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1.15rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 16px rgba(16,16,16,.9); }
.closing .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .sky::before, .sky::after { animation: none; } }

/* Without / with: a quiet grey list, overlapped by the dark Corallo panel */
.versus { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.versus h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.4rem; }
.versus__old { background: #e9e9e9; border-radius: var(--r-win) 0 0 var(--r-win); padding: clamp(1.75rem, 4vw, 2.75rem); padding-right: clamp(3rem, 6vw, 4.5rem); color: #5c5c5c; }
.versus__old h3 { color: var(--text-2); }
.versus__old ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.versus__old li { position: relative; padding-left: 2.2rem; font-size: 1.0625rem; }
.versus__old li::before, .versus__old li::after { content: ""; position: absolute; left: .3rem; top: .72em; width: .85rem; height: 2px; background: #9a9a9a; transform: rotate(45deg); }
.versus__old li::after { transform: rotate(-45deg); }
.versus__new { position: relative; margin-left: clamp(-2rem, -2.5vw, -1rem); background: var(--ink); color: var(--white); border-radius: var(--r-stage); padding: clamp(2rem, 4.5vw, 3.25rem); box-shadow: var(--lift); }
.versus__new h3 { color: var(--coral); }
@media (max-width: 56rem) {
  .versus { grid-template-columns: 1fr; }
  .versus__old { border-radius: var(--r-win) var(--r-win) 0 0; padding-right: clamp(1.75rem, 4vw, 2.75rem); padding-bottom: 3.5rem; }
  .versus__new { margin: -1.5rem 0 0; }
}
.versus li { text-wrap: pretty; }
.versus__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.versus__group { margin: 1.5rem 0 .8rem; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.6); }
.versus__group:first-of-type { margin-top: 0; }
.versus__list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: center; font-size: 1.125rem; font-weight: 600; }
.ico { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 10px; background: rgba(250,102,84,.16); fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* Header has no background over the hero and fades to solid as the hero scrolls away.
   Older browsers keep the solid bar. */
@supports (animation-timeline: scroll()) {
  :root { --bar-h: 63px; } /* header height; pulls the hero up underneath it */
  .bar {
    margin-bottom: calc(-1 * var(--bar-h));
    background: transparent; backdrop-filter: none; border-image: none; border-bottom-color: transparent;
    animation: bar-solid linear both; animation-timeline: scroll(root); animation-range: 40vh 75vh;
  }
  .hero__copy { padding-top: calc(clamp(4.5rem, 11vw, 9rem) + var(--bar-h)); }
  @keyframes bar-solid { to { background: rgba(16,16,16,.92); backdrop-filter: saturate(140%) blur(10px); border-bottom-color: #2a2a2a; } }
}

/* Scroll motion, kept light: the header rule, and headings and pictures rising in.
   Only where scroll-driven animation is supported and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Header rule fills coral to indigo as you read down the page */
    .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--progress); transform-origin: left; animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { from { transform: scaleX(0); } }

    /* Headings and product pictures rise into place as they arrive */
    .section h2, .perimeter h2, .agents h2, .plate, .fence, .picker__win, .picker__tabs {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    @keyframes rise { from { opacity: 0; translate: 0 2.5rem; } }

    /* Perimeter: tiles pop into the fence one column after another */
    .fence__tiles li, .fence__gate { animation: pop linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
    .fence__tiles li:nth-child(3n+2) { animation-range: entry 20% entry 90%; }
    .fence__tiles li:nth-child(3n) { animation-range: entry 30% entry 100%; }
    @keyframes pop { from { opacity: 0; scale: .85; } }

    /* Agents: the conversation plays out message by message as you scroll */
    .chat > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }


    /* Closing: the lanes slide across and the headline grows to full size */
    .closing .sky { animation: sweep linear both; animation-timeline: view(); }
    @keyframes sweep { from { translate: -12% 18%; } to { translate: 12% -18%; } }
    .closing h2 { animation: arrive-big linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes arrive-big { from { scale: .82; opacity: .2; } }

  }
}


.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.portal__note { padding: .55rem 1.6rem; font-size: .8rem; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); text-align: left; }

/* Readability: a soft dark glow behind the smaller hero and closing text, so the light lanes
   fade where they pass under it. The big headlines read fine on their own. */
.hero__copy, .closing__copy { isolation: isolate; }
.lead, .closing__copy > p:not(.actions) { position: relative; }
.lead::before, .closing__copy > p:not(.actions)::before {
  content: ""; position: absolute; z-index: -1; inset: -2.5rem -5rem; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16,16,16,.97), rgba(16,16,16,.9) 60%, rgba(16,16,16,0));
}
