/* ==========================================================================
   Keyrox marketing site · styles
   1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Header & footer · 6 Components
   7 Home · 8 Interior pages & demos · 9 Motion & print
   ========================================================================== */

/* 1. Fonts — self-hosted variable fonts (SIL OFL, see assets/fonts/LICENSES.txt) */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  --font-display: "Outfit", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;

  /* Brand (sampled from the supplied logo files) */
  --navy: #0C1525;
  --navy-2: #101C33;
  --navy-3: #16243F;
  --blue: #0B49F4;
  --blue-hover: #0839C7;
  --blue-ink: #0A33B0;
  --blue-bright: #5B8CFF;
  --blue-soft: #EAF0FF;
  --blue-line: #C9D7FF;
  --mint: #00DFBD;
  --mint-soft: #D8FAF2;
  --mint-line: #9FEBD8;
  --mint-ink: #006A57;

  /* Status */
  --red: #C9283B;
  --red-soft: #FDECEE;
  --red-line: #F6C5CB;
  --amber: #8F4A00;
  --amber-soft: #FFF2DA;
  --amber-line: #F3D9A6;

  /* Surfaces & text */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FD;
  --surface: #FFFFFF;
  --text: #0C1525;
  --text-2: #38435B;
  --text-3: #5A6680;
  --line: #E3E8F1;
  --line-strong: #CBD3E3;
  --grid: rgba(11, 73, 244, .065);

  /* Dark "stage" panels used for live demos (dark in every theme) */
  --stage: #0A1120;
  --stage-2: #0F192D;
  --stage-3: #15233B;
  --stage-line: rgba(255, 255, 255, .095);
  --stage-text: #E9EDF8;
  --stage-dim: #93A0BC;
  --stage-ok: #3DF0CF;
  --stage-no: #FF8E9A;

  /* Shape & depth */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 26px;
  --shadow-s: 0 1px 2px rgba(12, 21, 37, .05), 0 1px 1px rgba(12, 21, 37, .03);
  --shadow-m: 0 14px 32px -14px rgba(12, 21, 37, .18), 0 3px 8px rgba(12, 21, 37, .05);
  --shadow-l: 0 40px 70px -28px rgba(8, 15, 29, .55), 0 16px 30px -16px rgba(8, 15, 29, .35);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4.2vw, 2.5rem);
  --section-y: clamp(4.25rem, 2.6rem + 6vw, 7.75rem);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.5rem); line-height: 1.03; letter-spacing: -.03em; word-spacing: .04em; font-weight: 650; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.85rem); letter-spacing: -.026em; word-spacing: .035em; font-weight: 620; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); letter-spacing: -.014em; word-spacing: .02em; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 1rem; }
h1 + .lead, h2 + .lead { margin-top: 1.2rem; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, samp { font-family: var(--font-mono); font-size: .88em; }
strong { color: var(--text); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }

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

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

.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 100;
  padding: .7rem 1rem; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Inline SVG sprite container (kept out of the layout, not display:none so <use> works everywhere) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icons */
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* 4. Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

.section { position: relative; padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--flush-top { padding-top: 0; }

.section__head { max-width: 780px; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.section__head h2 { margin-top: 1rem; }
.section__head .lead { margin-top: 1.1rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, .6rem + 1.2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; }
.split--start { align-items: start; }
.split--wide-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split--wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 900px) { .split, .split--wide-right, .split--wide-left { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: var(--stack, 1rem); }
.mt-sm { margin-top: 1.1rem; }
.mt-md { margin-top: 1.75rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: clamp(3rem, 5vw, 5rem); }

/* Typography helpers */
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.small { font-size: .875rem; line-height: 1.55; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 500 .75rem/1.2 var(--font-mono);
  text-transform: uppercase; letter-spacing: .11em; color: var(--text-3);
}
/* The mint parallelogram echoes the step in the Keyrox mark */
.eyebrow::before {
  content: ""; flex: none; width: 16px; height: 9px; background: var(--mint);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}


/* 5. Header & footer -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { height: 28px; width: auto; }

.nav { flex: 1; margin-left: .75rem; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .2rem; }
.nav__link {
  display: inline-flex; align-items: center; padding: .55rem .85rem; border-radius: 10px;
  font: 500 .9375rem/1 var(--font-body); color: var(--text-2); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav__link:hover { background: var(--bg-soft); color: var(--text); }
.nav__link[aria-current="page"] { color: var(--blue-ink); background: var(--blue-soft); }
.nav__cta-item { display: none; }
.nav__console-item { display: none; }
.nav__link--console { gap: .3rem; }
.nav__link--console .i { width: 14px; height: 14px; stroke-width: 2.2; color: var(--text-3); transition: transform .2s var(--ease), color .15s; }
.nav__link--console:hover .i { color: var(--blue); transform: translate(1px, -1px); }

.site-header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--text);
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i--close { display: none; }
.nav-toggle[aria-expanded="true"] .i--menu { display: none; }
.nav-toggle[aria-expanded="true"] .i--close { display: block; }

@media (max-width: 960px) {
  .site-header__actions .btn, .site-header__actions .nav__link--console { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    margin: 0; padding: .75rem var(--gutter) 1.4rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-m);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { padding: .95rem .8rem; font-size: 1.0625rem; width: 100%; }
  .nav__console-item { display: block; }
  .nav__cta-item { display: block; margin-top: .75rem; }
  .nav__cta-item .btn { width: 100%; }
}

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 4.75rem) 2rem; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 1rem + 3vw, 3rem); }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { max-width: 32ch; margin-top: 1.1rem; color: var(--text-3); }
.footer__col h2 { font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--text-3); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: .65rem; }
.footer__col a { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); text-decoration: none; }
.footer__col a .i { width: 13px; height: 13px; stroke-width: 2.2; opacity: .7; }
.footer__col a:hover { color: var(--blue); text-decoration: underline; }
.footer__legal { margin-top: clamp(2rem, 4vw, 3.25rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: var(--text-3); font-size: .875rem; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* 6. Components ------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.3rem; border-radius: 12px; border: 1px solid transparent;
  font: 600 .9375rem/1.1 var(--font-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .2s, transform .2s var(--ease);
}
.btn .i { width: 1.1em; height: 1.1em; stroke-width: 2; transition: transform .22s var(--ease); }
.btn:hover .i--nudge, .link-arrow:hover .i--nudge { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn--sm { padding: .62rem 1rem; font-size: .875rem; border-radius: 10px; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -10px rgba(11, 73, 244, .75); }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--secondary { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); }
.btn--stage { background: rgba(255, 255, 255, .08); color: #fff; border-color: var(--stage-line); }
.btn--stage:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn--mint { background: var(--mint); color: #04231D; }
.btn--mint:hover { background: #2CF0D1; color: #04231D; }
.btn--onDark { background: #fff; color: var(--navy); }
.btn--onDark:hover { background: #E8EEFF; color: var(--navy); }
.btn--ghostDark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghostDark:hover { border-color: #fff; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9688rem; text-decoration: none; color: var(--blue); }
.link-arrow .i { width: 1.05em; height: 1.05em; stroke-width: 2.1; transition: transform .22s var(--ease); }
.link-arrow:hover { color: var(--blue-hover); }
.link-arrow--stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Chips & tags */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px;
  font: 600 .75rem/1.2 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line);
}
.chip .i { width: .95em; height: .95em; stroke-width: 2.25; }
.chip--blue { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-line); }
.chip--mint { background: var(--mint-soft); color: var(--mint-ink); border-color: var(--mint-line); }
.chip--red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.chip--amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.chip--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }

/* Cards */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); box-shadow: var(--shadow-s);
}
.card--hover { transition: transform .28s var(--ease), border-color .2s, box-shadow .28s; }
.card--hover:hover { transform: translateY(-3px); border-color: var(--blue-line); box-shadow: var(--shadow-m); }
.card--soft { background: var(--bg-soft); box-shadow: none; }
.card h3 + p, .card h4 + p { margin-top: .6rem; }

.icon-tile { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.icon-tile .i { width: 23px; height: 23px; }
.icon-tile--mint { background: var(--mint-soft); color: var(--mint-ink); }
.icon-tile--navy { background: var(--navy); color: var(--mint); }

/* Lists */
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .7rem; align-items: start; font-size: .9688rem; line-height: 1.55; color: var(--text-2); }
.checklist .i { width: 20px; height: 20px; margin-top: .12rem; color: var(--blue); stroke-width: 2.2; }
.checklist--mint .i { color: var(--mint-ink); }
.checklist--sm li { font-size: .9062rem; gap: .6rem; }

.facts { list-style: none; display: grid; gap: 1.1rem; }
.facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; }
.facts h3, .facts h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
.facts p { font-size: .9375rem; margin-top: .2rem; line-height: 1.55; }

/* Inline code & endpoints */
.code {
  padding: .12em .42em; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-mono); font-size: .84em; overflow-wrap: anywhere;
}
.endpoint {
  display: inline-flex; align-items: baseline; gap: .65rem; max-width: 100%;
  padding: .55rem .85rem; border-radius: 10px; background: var(--navy); color: #E8ECF7;
  font: 500 .8125rem/1.45 var(--font-mono); overflow-wrap: anywhere;
}
.endpoint b { flex: none; color: var(--mint); font-weight: 600; letter-spacing: .02em; }

/* Notes */
.note {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .75rem; align-items: start;
  padding: 1rem 1.15rem; border-radius: var(--radius-m);
  background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--text-2);
  font-size: .9375rem; line-height: 1.55;
}
.note .i { width: 20px; height: 20px; margin-top: .1rem; color: var(--blue); }
.note--mint { background: var(--mint-soft); border-color: var(--mint-line); }
.note--mint .i { color: var(--mint-ink); }
.note--amber { background: var(--amber-soft); border-color: var(--amber-line); }
.note--amber .i { color: var(--amber); }

.caption { margin-top: 1rem; font-size: .8438rem; line-height: 1.5; color: var(--text-3); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-s); }
.table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); line-height: 1.55; }
.table thead th { font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); background: var(--bg-soft); }
.table tbody th { font-weight: 600; color: var(--text); }
.table tbody tr:last-child > * { border-bottom: 0; }

/* Phones: stack each row into a card instead of scrolling sideways (cells carry data-label) */
@media (max-width: 680px) {
  .table--stack { min-width: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; }
  .table--stack tr { padding: 1.15rem 1.2rem; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack th, .table--stack td { padding: 0; border: 0; }
  .table--stack tbody th { margin-bottom: .55rem; font-size: 1.0625rem; }
  .table--stack td + td { margin-top: .8rem; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .25rem; font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
}

/* Forms */
.field { display: grid; gap: .45rem; }
.field > label, .field > .field__label, .fieldset > legend { font: 600 .8125rem/1.3 var(--font-body); color: var(--text); padding: 0; }
/* Fieldsets: the float keeps <legend> in normal flow so spacing works like any other block */
.fieldset, fieldset.qform__q { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend, fieldset.qform__q > legend { float: left; width: 100%; padding: 0; margin: 0 0 .7rem; }
.fieldset > legend + *, fieldset.qform__q > legend + * { clear: both; }
.fieldset > :not(legend) + :not(legend) { margin-top: .6rem; }
.input {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--text); font-size: .9688rem; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: #AEB9D0; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 73, 244, .16); }

/* Segmented radio control */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented__opt > span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1rem; border-radius: 10px;
  font: 600 .875rem/1.1 var(--font-body); color: var(--text-2); transition: background-color .15s, color .15s, box-shadow .15s;
}
.segmented__opt:hover > span { color: var(--text); }
.segmented__opt input:checked + span { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(12, 21, 37, .12), 0 0 0 1px var(--line-strong); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

/* Switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.switch:hover { border-color: var(--line-strong); }
.switch__text { display: grid; gap: .1rem; }
.switch__text b { font: 600 .9062rem/1.3 var(--font-body); color: var(--text); }
.switch__text small { font-size: .8125rem; color: var(--text-3); line-height: 1.4; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 21, 37, .3); transition: transform .22s var(--ease); }
.switch input:checked ~ .switch__track { background: var(--blue); }
.switch input:checked ~ .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible ~ .switch__track { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

/* Generic tabs (progressively enhanced: without JS every panel simply shows) */
.tabs__list { display: none; }
.js .tabs__list { display: flex; }

/* Details / accordion */
.accordion { display: grid; gap: .75rem; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; font: 600 1rem/1.4 var(--font-body); color: var(--text); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .i { width: 20px; height: 20px; color: var(--text-3); transition: transform .25s var(--ease); }
.accordion details[open] summary .i { transform: rotate(180deg); }
.accordion details > div { padding: 0 1.25rem 1.2rem; color: var(--text-2); font-size: .9688rem; }


/* 7. Home -------------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(2.75rem, 1.5rem + 4.5vw, 5.25rem) clamp(3.25rem, 2rem + 5vw, 6rem);
  background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 80%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 90% at 74% 18%, #000 0, transparent 76%);
  mask-image: radial-gradient(70% 90% at 74% 18%, #000 0, transparent 76%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.25rem, 1rem + 5vw, 4.5rem); align-items: center; }
.hero__copy h1 { margin-top: 1.35rem; }
.hero__copy .lead { margin-top: 1.45rem; max-width: 30em; }
.hl { color: var(--blue); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__note { margin-top: 1.4rem; font-size: .9062rem; color: var(--text-3); max-width: 40ch; }
.hero__live { display: flex; align-items: center; gap: .75rem; margin-top: 1.6rem; max-width: 44ch; font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.hero__live .led { flex: none; }
.hero__live a { font-weight: 600; }
.hero__stage { margin: 0; min-width: 0; }
.hero__console { position: relative; }
/* Mint "step", borrowed from the logo, tucked under the console */
.hero__console::before {
  content: ""; position: absolute; z-index: -1; left: -22px; bottom: -22px; width: 44%; height: 58px;
  background: var(--mint); clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
}
.hero__caption { margin-top: 2.1rem; font-size: .8438rem; line-height: 1.5; color: var(--text-3); max-width: 52ch; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } .hero__console::before { left: -10px; bottom: -14px; } }

/* Live access console */
.console {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; color: var(--stage-text);
  background: linear-gradient(180deg, #101D35 0%, #0A1120 64%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-l), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.console__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stage-line); font: 500 .6875rem/1 var(--font-mono); color: var(--stage-dim); }
.console__live { display: inline-flex; align-items: center; gap: .7rem; color: #CBD5EC; text-transform: uppercase; letter-spacing: .12em; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 223, 189, .18); }
.console__badge { padding: .32rem .65rem; border: 1px solid var(--stage-line); border-radius: 999px; text-transform: uppercase; letter-spacing: .1em; }
.console__tabs { gap: 6px; padding: .85rem 1rem 0; }
.console__tab {
  display: inline-flex; align-items: center; gap: .55rem; padding: .62rem .95rem; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--stage-dim);
  font: 600 .875rem/1 var(--font-body); white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.console__tab .i { width: 1.1em; height: 1.1em; }
.console__tab:hover { color: #fff; }
.console__tab[aria-selected="true"] { background: rgba(255, 255, 255, .08); border-color: var(--stage-line); color: #fff; }
@media (max-width: 560px) {
  .console__tabs { padding-inline: .7rem; }
  .console__tab { padding: .6rem .7rem; gap: .4rem; font-size: .8125rem; }
  .console__ctx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console__ctx > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--stage-line); }
  .console__checks li { padding: .8rem .85rem; }
  .console__checks b { font-size: .9375rem; }
}
.console__panel { padding: 1rem 1.1rem 1.2rem; }
.console__panel + .console__panel { border-top: 1px solid var(--stage-line); }
.console__panel-title { margin-bottom: .95rem; color: var(--stage-dim); }
.js .console__panel-title { display: none; }

.console__ctx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--stage-line); border-radius: 14px; overflow: hidden; background: var(--stage-2); }
.console__ctx > div { padding: .8rem 1rem; border-left: 1px solid var(--stage-line); min-width: 0; }
.console__ctx > div:first-child { border-left: 0; }
.console__ctx dt { font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--stage-dim); }
.console__ctx dd { margin: .5rem 0 0; font: 600 .9375rem/1.25 var(--font-body); color: #F4F7FD; overflow-wrap: anywhere; }
.role { display: inline-flex; padding: .18rem .55rem; border-radius: 7px; background: rgba(91, 140, 255, .2); color: #B3C8FF; font-weight: 600; }

.console__checks { list-style: none; display: grid; gap: 8px; margin: .9rem 0 0; }
.console__checks li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem;
  border-radius: 14px; border: 1px solid var(--stage-line); background: rgba(255, 255, 255, .025);
}
.console__checks b { display: block; font: 600 .9688rem/1.3 var(--font-body); color: #F4F7FD; }
.console__checks small { display: block; margin-top: .22rem; font-size: .8125rem; line-height: 1.4; color: var(--stage-dim); }
.console__checks li.is-flash { animation: flash .9s ease-out; }
.console__foot { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--stage-line); }
.console__hint { flex: 1 1 13rem; font-size: .8125rem; line-height: 1.45; color: var(--stage-dim); }

/* Verdict pills (shared by every demo) */
.verdict { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem .4rem .6rem; border-radius: 999px; font: 600 .78rem/1 var(--font-body); white-space: nowrap; flex: none; }
.verdict .i { width: 14px; height: 14px; stroke-width: 2.6; }
.verdict.is-allowed { background: rgba(0, 223, 189, .13); color: var(--stage-ok); }
.verdict.is-denied { background: rgba(255, 107, 122, .14); color: var(--stage-no); }
.verdict.is-pending { background: rgba(255, 255, 255, .08); color: #B9C4DD; }
.verdict.is-pending .i { animation: spin .9s linear infinite; }
.verdict.is-info { background: rgba(91, 140, 255, .16); color: #B3C8FF; }

/* Proof strip: one scannable line */
.proof { background: #fff; border-block: 1px solid var(--line); }
.proof__row { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .9rem 2rem; padding-block: 1.35rem; }
.proof__row li { display: flex; align-items: center; gap: .65rem; font: 600 .9375rem/1.2 var(--font-body); color: var(--text); }
.proof__row .i { width: 20px; height: 20px; color: var(--blue); }
@media (max-width: 760px) { .proof__row { justify-content: flex-start; gap: .85rem 1.75rem; } }

/* Who owns what (used on the Developers and Permissions pages) */
.arch { display: grid; grid-template-columns: minmax(0, .8fr) 100px minmax(0, 1.15fr) 100px minmax(0, 1.15fr); align-items: stretch; }
.arch__box { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-s); }
.arch__box h3 { font-size: 1.3rem; }
.arch__box--keyrox { background: var(--navy); border-color: var(--navy); color: #C5D0E8; box-shadow: var(--shadow-m); }
.arch__box--keyrox h3 { color: #fff; }
.arch__box--keyrox .checklist li { color: #C5D0E8; }
.arch__box--keyrox .checklist .i { color: var(--mint); }
.arch__label { font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--text-3); }
.arch__box--keyrox .arch__label { color: #8E9CBA; }
.arch__callers { list-style: none; display: grid; gap: .6rem; }
.arch__callers li { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font: 600 .9375rem/1.2 var(--font-body); color: var(--text); }
.arch__callers .i { color: var(--blue); }
.arch__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding-inline: .35rem; color: var(--text-3); font: 500 .625rem/1.35 var(--font-mono); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.arch__link svg { width: 100%; height: 14px; overflow: visible; }
.arch__foot { margin-top: 1.25rem; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-m); font-size: .9375rem; color: var(--text-2); background: rgba(255, 255, 255, .6); }
.arch__foot .i { color: var(--blue); }
@media (max-width: 920px) {
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch__link { flex-direction: row; justify-content: center; padding: .6rem 0; gap: 1rem; }
  .arch__link svg { width: 48px; height: 14px; margin: 17px -17px 17px 0; transform: rotate(90deg); order: -1; }
}

/* See it work: three short flows */
.story { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.4vw, 2rem); }
.story > .chip { align-self: flex-start; }
.story h3 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.7rem); }
.story__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.story .link-arrow { margin-top: .25rem; padding-top: .25rem; }
@media (min-width: 681px) and (max-width: 1020px) { .stories > :last-child { grid-column: 1 / -1; } }

/* Start where you are */
.start { display: flex; flex-direction: column; gap: .8rem; }
.start h3 { font-size: 1.25rem; }
.start .link-arrow { margin-top: auto; padding-top: .6rem; }
.start__more { margin-top: 1.75rem; }

/* Audiences (Use cases page) */
.audience { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.js .audience__tabs { display: grid; gap: 6px; align-content: start; }
.audience__tab {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: .95rem 1.1rem; border-radius: 14px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); font: 600 1rem/1.3 var(--font-body);
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.audience__tab .i { color: var(--text-3); transition: color .15s; }
.audience__tab:hover { background: rgba(255, 255, 255, .8); color: var(--text); }
.audience__tab[aria-selected="true"] { background: #fff; border-color: var(--line-strong); color: var(--text); box-shadow: var(--shadow-s); }
.audience__tab[aria-selected="true"] .i { color: var(--blue); }
.audience__panels { display: grid; gap: 1rem; }
.audience__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); box-shadow: var(--shadow-m); }
.audience__name { margin-bottom: 1.1rem; }
.js .audience__name { display: none; }
.audience__panel h3 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); line-height: 1.15; letter-spacing: -.026em; max-width: 24ch; }
.audience__label { margin-top: 1.9rem; font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--text-3); }
.audience__steps { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; counter-reset: s; }
.audience__steps li { counter-increment: s; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .6rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font: 600 .875rem/1.25 var(--font-body); }
.audience__steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #fff; color: var(--blue); font: 600 .75rem/1 var(--font-mono); }
.audience__panel .link-arrow { margin-top: 1.9rem; }
@media (max-width: 900px) {
  .audience { grid-template-columns: minmax(0, 1fr); }
  .js .audience__tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: .4rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .audience__tab { flex: none; width: auto; white-space: nowrap; scroll-snap-align: start; padding: .75rem 1rem; border-color: var(--line); background: #fff; }
}

/* Use cases (Use cases page) */
.filters { display: none; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.js .filters { display: flex; }
.filter { padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text-2); font: 600 .875rem/1 var(--font-body); transition: background-color .15s, color .15s, border-color .15s; }
.filter:hover { border-color: var(--text); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.usecase { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.usecase__head { display: flex; align-items: center; gap: .85rem; }
.usecase__head h3 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -.012em; }
.usecase dl { display: grid; gap: .85rem; margin: 0; }
.usecase dt { font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--text-3); }
.usecase dd { margin: .35rem 0 0; font-size: .9062rem; line-height: 1.55; color: var(--text-2); }
.usecase .chip { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) { .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .usecases { grid-template-columns: minmax(0, 1fr); } }

/* Developer journey */
.journey { background: var(--stage); color: var(--stage-text); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-xl); padding: clamp(1.4rem, 1rem + 1.8vw, 2.4rem); box-shadow: var(--shadow-l); }
.journey__step { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.6rem; }
.journey__step:last-child { padding-bottom: 0; }
.journey__step:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: linear-gradient(var(--stage-line), transparent); }
.journey__n { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 223, 189, .12); color: var(--mint); font: 600 1.0625rem/1 var(--font-display); }
.journey h3 { font-size: 1.125rem; color: #fff; letter-spacing: -.012em; }
.journey p { margin-top: .35rem; font-size: .9375rem; line-height: 1.55; color: var(--stage-dim); }
.journey .endpoint { margin-top: .8rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--stage-line); }
.surfaces { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.surfaces li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 11px; background: #fff; border: 1px solid var(--line); font: 600 .875rem/1 var(--font-body); color: var(--text); }
.surfaces .i { color: var(--blue); width: 1.1em; height: 1.1em; }

/* Closing call to action */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); background: var(--navy); color: #C5D0E8; padding: clamp(2.25rem, 1.4rem + 4.2vw, 4.75rem); }
.cta::before { content: ""; position: absolute; z-index: -1; right: -2%; bottom: -20%; width: min(40%, 430px); aspect-ratio: 978 / 893; background: url("../img/keyrox-mark.svg") center / contain no-repeat; opacity: .17; }
.cta::after { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(70% 90% at 100% 100%, rgba(11, 73, 244, .5), transparent 70%), radial-gradient(50% 60% at 0% 0%, rgba(0, 223, 189, .12), transparent 70%); }
.cta h2 { color: #fff; max-width: 17ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); letter-spacing: -.034em; }
.cta .lead { margin-top: 1.2rem; max-width: 44ch; color: #B7C3DD; }
.cta .cta-row { margin-top: 2rem; }
.cta .eyebrow { color: #93A0BC; }


/* Home: "doors, locks, and keys", a dark statement section right under the hero */
.section--navy { position: relative; isolation: isolate; overflow: clip; background: var(--navy); color: #B7C3DD; }
.section--navy::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 82% 18%, #000 0, transparent 75%);
  mask-image: radial-gradient(70% 80% at 82% 18%, #000 0, transparent 75%);
}
.section--navy::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(55% 70% at 85% 28%, rgba(11, 73, 244, .38), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(0, 223, 189, .1), transparent 70%);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy strong { color: #fff; }
.section--navy .eyebrow { color: #93A0BC; }
.section--navy .lead { color: #B7C3DD; }
.section--navy .link-arrow { color: var(--mint); }
.section--navy .link-arrow:hover { color: #5FF0D6; }

.doorkeys__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 1rem + 4vw, 4rem); align-items: center; }
.doorkeys h2 { margin-top: 1rem; max-width: 17ch; font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.7rem); line-height: 1.04; letter-spacing: -.034em; }
.doorkeys .lead { margin-top: 1.4rem; max-width: 42ch; }
.doorkeys__agent {
  max-width: 40ch; margin-top: 1.9rem; padding-left: 1.1rem; border-left: 3px solid var(--mint);
  font: 500 clamp(1.0625rem, 1rem + .4vw, 1.25rem)/1.5 var(--font-display); letter-spacing: -.01em; color: #E8EDF9;
}
.doorkeys__art { width: 100%; max-width: 560px; height: auto; justify-self: center; }
.doorkeys__label { margin: clamp(2.5rem, 2rem + 3vw, 4rem) 0 1.1rem; font: 600 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--font-display); letter-spacing: -.02em; }

.doorsteps {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-xl);
}
.doorsteps > li { display: flex; background: #0E182B; }
.doorstep {
  position: relative; display: grid; flex: 1; gap: .55rem; align-content: start;
  padding: clamp(1.4rem, 1rem + 1vw, 1.9rem); color: #A9B6D0; text-decoration: none; transition: background-color .2s;
}
.doorstep:hover { background: #13213B; color: #A9B6D0; }
.doorstep:focus-visible { outline-offset: -4px; border-radius: 0; }
.doorstep__n { font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--mint); }
.doorstep h3 { font-size: 1.25rem; letter-spacing: -.014em; }
.doorstep p { font-size: .9375rem; line-height: 1.5; }
.doorstep .i { position: absolute; right: 1.25rem; top: 1.3rem; width: 16px; height: 16px; stroke-width: 2.2; color: #6B7A99; transition: color .2s, transform .2s var(--ease); }
.doorstep:hover .i { color: var(--mint); transform: translate(2px, -2px); }
.doorkeys__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; margin-top: 1.75rem; color: #C5D0E8; }

@media (max-width: 1020px) { .doorsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .doorkeys__top { grid-template-columns: minmax(0, 1fr); } .doorkeys__art { max-width: 340px; justify-self: start; } }
@media (max-width: 560px) { .doorsteps { grid-template-columns: minmax(0, 1fr); } }


/* 8. Interior pages & demos ---------------------------------------------------- */

/* Page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(2.5rem, 1.4rem + 4vw, 4.5rem) clamp(2.75rem, 1.8rem + 4vw, 4.75rem);
  background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 92%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 100% at 80% 0%, #000 0, transparent 75%);
  mask-image: radial-gradient(70% 100% at 80% 0%, #000 0, transparent 75%);
}
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .98fr); gap: clamp(2rem, 1rem + 4vw, 4.25rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.1vw, 3.8rem); margin-top: 1.2rem; }
.page-hero .lead { margin-top: 1.3rem; }
.page-hero .cta-row { margin-top: 1.9rem; }
@media (max-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.page-hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.page-hero__grid--single .page-hero__copy { max-width: 760px; }

.glance { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); overflow: hidden; }
.glance li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1.3rem 1.5rem; border-top: 1px solid var(--line); }
.glance li:first-child { border-top: 0; }
.glance__title { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -.012em; color: var(--text); }
.glance li p + p { margin-top: .3rem; font-size: .9062rem; line-height: 1.55; }

/* ------- Customer sign-in: brand lab ------- */
.brandlab { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
.brandlab__controls { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.swatches { display: flex; flex-wrap: wrap; gap: .65rem; }
.swatch { position: relative; display: block; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s var(--ease), box-shadow .15s; }
.swatch:hover span { transform: translateY(-2px); }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.swatch input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 6px; }
.swatch--blue { --c: #0B49F4; } .swatch--teal { --c: #0C9A8A; } .swatch--violet { --c: #7A3FF2; }
.swatch--orange { --c: #E0600A; } .swatch--rose { --c: #D6336C; } .swatch--slate { --c: #26344F; }
.brandlab__hint { font-size: .8438rem; color: var(--text-3); line-height: 1.5; }

.hosted { --accent: #0B49F4; border-radius: var(--radius-xl); overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-m); }
.hosted__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hosted__dots { display: flex; gap: 6px; }
.hosted__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.hosted__body { display: grid; gap: 1.05rem; max-width: 400px; margin-inline: auto; padding: clamp(1.5rem, 1rem + 2vw, 2.4rem) clamp(1.1rem, .8rem + 1.5vw, 1.6rem); }
.hosted__logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--accent); color: #fff; font: 700 1.45rem/1 var(--font-display); transition: background-color .25s; }
.hosted__title { font-size: 1.65rem; word-break: break-word; }
.hosted__sub { font-size: .9375rem; color: var(--text-3); margin-top: -.5rem; }
.hosted__field { display: grid; gap: .4rem; }
.hosted__field > span { font: 600 .8125rem/1.2 var(--font-body); color: var(--text); display: flex; justify-content: space-between; }
.hosted__field .hosted__link { color: var(--accent); }
.hosted__input { padding: .72rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-3); font-size: .9375rem; background: #fff; }
.hosted__btn { padding: .85rem 1rem; border-radius: 10px; background: var(--accent); color: #fff; text-align: center; font-weight: 600; font-size: .9688rem; transition: background-color .25s; }
.hosted__or { display: flex; align-items: center; gap: .8rem; color: var(--text-3); font-size: .8125rem; }
.hosted__or::before, .hosted__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hosted__alt { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .78rem 1rem; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font-weight: 600; font-size: .9375rem; }
.hosted__alt .i { color: var(--accent); }
.hosted__foot { text-align: center; font-size: .875rem; color: var(--text-3); }
.hosted__foot b { color: var(--accent); font-weight: 600; }
.hosted [data-show][hidden] { display: none; }
@media (max-width: 900px) { .brandlab { grid-template-columns: minmax(0, 1fr); } }

/* ------- Round trip (vertical stepper built on <details name>) ------- */
.trip { display: grid; max-width: 780px; }
.trip details { position: relative; padding: 0 0 1.4rem 68px; }
.trip details::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line-strong); }
.trip details:last-child { padding-bottom: 0; }
.trip details:last-child::before { display: none; }
.trip summary { list-style: none; cursor: pointer; display: grid; gap: .4rem; min-height: 44px; padding: .15rem 0; }
.trip summary::-webkit-details-marker { display: none; }
.trip__n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); color: var(--text); font: 600 1.0625rem/1 var(--font-display);
  transition: background-color .2s, color .2s, border-color .2s;
}
.trip details[open] .trip__n { background: var(--blue); border-color: var(--blue); color: #fff; }
.trip summary:hover .trip__n { border-color: var(--text); }
.trip__lane { font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.trip summary b { font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -.012em; color: var(--text); }
.trip__body { display: grid; gap: .85rem; padding-top: .55rem; font-size: .9688rem; color: var(--text-2); max-width: 60ch; }
.trip__travels { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.trip__travels > span:first-child { font: 500 .6875rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-right: .3rem; }

/* ------- Waiting list demo ------- */
.wl { background: var(--stage); color: var(--stage-text); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); overflow: hidden; }
.wl__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--stage-line); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stage-dim); }
.wl__head b { color: #CBD5EC; font-weight: 500; }
.wl__list { list-style: none; }
.wl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem 1rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--stage-line); }
.wl__row:first-child { border-top: 0; }
.wl__who b { display: block; font-weight: 600; font-size: .9688rem; color: #F4F7FD; overflow-wrap: anywhere; }
.wl__who small { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--stage-dim); line-height: 1.4; }
.wl__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--stage-line); font-size: .875rem; color: var(--stage-dim); }
@media (max-width: 560px) { .wl__row { grid-template-columns: minmax(0, 1fr) auto; } .wl__row .btn { grid-column: 1 / -1; } }
.wl__mode { padding: .85rem 1.25rem; border-bottom: 1px solid var(--stage-line); }
.wl .segmented { background: rgba(255, 255, 255, .06); border-color: var(--stage-line); }
.wl .segmented__opt > span { color: var(--stage-dim); }
.wl .segmented__opt:hover > span { color: #fff; }
.wl .segmented__opt input:checked + span { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }

.option-list { list-style: none; display: grid; gap: .85rem; }
.option-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); }
.option-list h3 { font-size: 1.0625rem; letter-spacing: -.01em; }
.option-list p { margin-top: .25rem; font-size: .9375rem; line-height: 1.55; }

/* ------- Signup rules demo ------- */
.rules { display: grid; gap: 1.25rem; }
.rules__table { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: #fff; box-shadow: var(--shadow-s); }
.rules__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: center; padding: 1.05rem 1.3rem; border-top: 1px solid var(--line); }
.rules__row:first-child { border-top: 0; }
.rules__row b { display: block; font-weight: 600; color: var(--text); font-size: .9688rem; }
.rules__row small { display: block; margin-top: .15rem; font-size: .8438rem; color: var(--text-3); }
.rules__row .chip { min-width: 9.5rem; justify-content: center; transition: background-color .25s, color .25s, border-color .25s; }
.rules__desc { font-size: .9688rem; color: var(--text-2); min-height: 3em; }
@media (max-width: 560px) { .rules__row { grid-template-columns: minmax(0, 1fr); } .rules__row .chip { justify-self: start; } }

/* ------- Setup questions ------- */
.qform { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); }
div.qform__q { display: grid; gap: .7rem; min-width: 0; }
.qform__q legend, .qform__q > label { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; padding: 0; font: 600 .9688rem/1.4 var(--font-body); color: var(--text); }
.qform__q textarea { min-height: 5.5rem; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 .875rem/1.2 var(--font-body); color: var(--text-2); background: #fff; transition: background-color .15s, border-color .15s, color .15s; }
.choice:hover span { border-color: var(--text); }
.choice input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.qtypes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }

/* ------- Two-way cards ------- */
.way { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); }
.way > .chip { align-self: flex-start; }
.way h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
.way .checklist { margin-top: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }

/* Light segmented tabs */
.pilltabs { flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.js .pilltabs { display: inline-flex; }
.pilltab { padding: .6rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 .875rem/1.1 var(--font-body); transition: background-color .15s, color .15s, box-shadow .15s; }
.pilltab:hover { color: var(--text); }
.pilltab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(12, 21, 37, .12), 0 0 0 1px var(--line-strong); }
.qform[role="tabpanel"] { margin-top: 1.1rem; }


/* ------- Product permissions ------- */

/* Account models */
.models { display: grid; gap: 1.5rem; }
.models__controls { display: none; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem 2.5rem; }
.js .models__controls { display: flex; }
.models__stage { display: grid; gap: 2rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.js .models__stage { min-height: 22rem; }
.model { display: grid; gap: 1.25rem; align-content: start; }
.js .model:not(.is-active) { display: none; }
.model.is-active { animation: pop .35s var(--ease) both; }
.model__lead { max-width: 56ch; font-size: 1.0625rem; color: var(--text-2); }
.model__foot { display: flex; }
.people { list-style: none; display: grid; gap: .55rem; }
.person { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 11px; font: 600 .9375rem/1.2 var(--font-body); color: var(--text); }
.person .chip { margin-left: auto; }
.avatar { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font: 600 .75rem/1 var(--font-body); }
.avatar--dark { width: 36px; height: 36px; background: rgba(91, 140, 255, .2); color: #B3C8FF; font-size: .875rem; }
.orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; align-items: start; }
.org, .space { display: grid; gap: .8rem; padding: 1.1rem; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-l); }
.org .space { padding: .9rem; background: var(--bg-soft); border-color: var(--line); border-radius: var(--radius-m); }
.org .space .person { background: #fff; }
.org__name { display: flex; align-items: center; gap: .6rem; font: 600 1.0625rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.org__name .i { color: var(--blue); }
.space__label { font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.space__name { margin-top: -.45rem; font: 600 1rem/1.2 var(--font-display); color: var(--text); }

/* Role stack + even three-column flow */
.rolestack { list-style: none; display: grid; gap: .6rem; margin-top: .15rem; }
.rolestack li { display: grid; gap: .4rem; justify-items: start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.rolestack small { font-size: .875rem; line-height: 1.45; color: var(--text-3); }
@media (min-width: 921px) { .arch--even { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 84px minmax(0, 1fr); } }

/* Field Notes demo */
.fn__steps { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.fn__steps li { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem .5rem .55rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; font: 600 .875rem/1.3 var(--font-body); color: var(--text); }
.fn__steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font: 600 .75rem/1 var(--font-mono); }

.fn { display: grid; grid-template-columns: minmax(0, 1.2fr) 64px minmax(0, 1fr); align-items: stretch; }
.fn__app { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-m); overflow: hidden; }
.fn__chrome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.fn__brand { display: flex; align-items: center; gap: .6rem; font: 700 1.05rem/1 var(--font-display); color: var(--text); }
.fn__brand i { width: 22px; height: 22px; border-radius: 7px; background: #F5B731; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .09); }
.fn__user { display: flex; align-items: center; gap: .5rem; font: 600 .875rem/1 var(--font-body); color: var(--text); }
.fn__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.fn__ws { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.fn__ws b { font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.fn__tools { display: flex; gap: .5rem; }
.fn__btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); font: 600 .8125rem/1 var(--font-body); cursor: default; }
.fn__btn .i { width: 15px; height: 15px; }
.fn__btn--primary { background: var(--text); border-color: var(--text); color: #fff; }
.fn__btn.is-leaving { animation: leave .3s var(--ease) both; }
.fn__btn.is-entering { animation: pop .35s var(--ease) both; }
@keyframes leave { to { opacity: 0; transform: scale(.9); } }
.fn__notes { list-style: none; }
.fn__notes li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; border-top: 1px solid var(--line); font-size: .9688rem; color: var(--text); }
.fn__notes li:first-child { border-top: 0; }
.fn__session { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .85rem 1.1rem; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .8438rem; line-height: 1.4; color: var(--text-3); transition: background-color .3s, color .3s; }
.fn__session.is-stale { background: var(--amber-soft); color: var(--amber); }
.fn__session.is-stale .btn { border-color: var(--amber); color: var(--amber); }
.fn__session .btn.is-busy .i { animation: spin .9s linear infinite; }
.fn__link { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.fn__link svg { width: 48px; height: 14px; }
.fn__kx { display: flex; flex-direction: column; min-width: 0; background: var(--stage); color: var(--stage-text); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; }
.fn__kxhead { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--stage-line); font: 500 .6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #CBD5EC; }
.fn__member { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--stage-line); }
.fn__member b { display: block; font-weight: 600; color: #F4F7FD; }
.fn__member small { display: block; font-size: .8125rem; color: var(--stage-dim); }
.fn__member .role { margin-left: auto; }
.fn__kxbody { display: grid; gap: 1.1rem; align-content: start; padding: 1.2rem; }
.fn__access { display: grid; margin: 0; border: 1px solid var(--stage-line); border-radius: 12px; overflow: hidden; background: var(--stage-2); }
.fn__access > div { padding: .75rem .95rem; border-top: 1px solid var(--stage-line); }
.fn__access > div:first-child { border-top: 0; }
.fn__access dt { font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--stage-dim); }
.fn__access dd { margin: .4rem 0 0; font-size: .9062rem; line-height: 1.45; color: #F4F7FD; }
.fn__access dd.is-flash { animation: flashText .9s ease-out; }
@keyframes flashText { 0% { color: var(--blue-bright); } 100% { color: #F4F7FD; } }
.fn__audit { display: flex; align-items: center; gap: .6rem; font-size: .8438rem; line-height: 1.4; color: var(--stage-dim); }
.fn__audit .i { width: 16px; height: 16px; color: var(--mint); }
@media (max-width: 960px) {
  .fn { grid-template-columns: minmax(0, 1fr); }
  .fn__link { padding: 1.4rem 0; }
  .fn__link svg { transform: rotate(90deg); }
}

/* Environments */
.env { display: flex; flex-direction: column; gap: 1rem; }
.env > .chip { align-self: flex-start; }
.env h3 { font-size: 1.3rem; }
.env--prod { border-color: var(--mint-line); background: linear-gradient(180deg, #F2FEFA 0%, #fff 62%); }


/* ------- Agent access ------- */

/* Four identities */
.actor { display: flex; flex-direction: column; gap: 1.1rem; }
.actor__head { display: flex; align-items: center; gap: 1rem; }
.actor__head .arch__label { display: block; }
.actor__head h3 { margin-top: .4rem; font-size: 1.3rem; }
.actor__rows { display: grid; margin: 0; border-top: 1px solid var(--line); }
.actor__rows > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.actor__rows dt { font: 500 .6875rem/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); }
.actor__rows dd { margin: 0; font-size: .9688rem; color: var(--text-2); }
.actor__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: auto; padding-top: .4rem; }
@media (max-width: 560px) { .actor__rows > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* KineDrop walkthrough */
.kd { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start; }
.kd__steps { list-style: none; display: grid; gap: .7rem; }
.kd__step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; padding: 1.05rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); opacity: .78;
  transition: opacity .25s, border-color .25s, box-shadow .25s;
}
.kd__step.is-done, .kd__step.is-current { opacity: 1; }
.kd__step.is-current { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 73, 244, .1); }
.kd__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); color: var(--text-2); font: 600 1rem/1 var(--font-display); transition: background-color .25s, color .25s; }
.kd__step.is-current .kd__n { background: var(--blue); color: #fff; }
.kd__step.is-done .kd__n { background: var(--mint-soft); color: var(--mint-ink); }
.kd__step h3 { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -.01em; }
.kd__step p { margin-top: .3rem; font-size: .9062rem; line-height: 1.55; }
.kd__step code { padding: .08em .35em; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .86em; color: var(--text); }
.kd__act { margin-top: .85rem; }
.kd__try { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.kd__revoke { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.kd__revoke:hover { background: #FBDDE1; color: var(--red); }
/* Phones: the activity panel sits below the steps, so echo the latest result next to the buttons */
.kd__last { display: none; margin-top: .85rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; line-height: 1.45; color: var(--text-2); }
.kd__last b { display: inline-block; margin-right: .45rem; padding: .12rem .55rem; border-radius: 999px; background: #fff; font-size: .75rem; line-height: 1.4; }
.kd__last small { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--text-3); }
.kd__last.is-allowed { background: var(--mint-soft); border-color: var(--mint-line); }
.kd__last.is-allowed b { color: var(--mint-ink); }
.kd__last.is-denied { background: var(--red-soft); border-color: var(--red-line); }
.kd__last.is-denied b { color: var(--red); }
.kd__last.is-info { background: var(--blue-soft); border-color: var(--blue-line); }
.kd__last.is-info b { color: var(--blue-ink); }
@media (max-width: 960px) { .kd__last:not([hidden]) { display: block; } }

.kd__stage {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; gap: 1rem; padding: 1.1rem; background: var(--stage); color: var(--stage-text);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-xl); box-shadow: var(--shadow-l);
}
.kd__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.kd__card { padding: .95rem 1rem; background: var(--stage-2); border: 1px solid var(--stage-line); border-radius: 14px; }
.kd__card h4 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--stage-dim); }
.kd__card h4 .verdict { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: .72rem; padding: .32rem .6rem; }
.kd__card dl { display: grid; gap: .55rem; margin: .9rem 0 0; }
.kd__card dl > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .8438rem; }
.kd__card dt { color: var(--stage-dim); }
.kd__card dd { margin: 0; color: #F4F7FD; font-weight: 600; text-align: right; }
.kd__logtitle { margin-bottom: .6rem; font: 500 .625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; color: var(--stage-dim); }
.kd__log { list-style: none; display: grid; gap: .45rem; max-height: 22rem; overflow: auto; }
.kd__log li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--stage-line); border-radius: 12px; background: rgba(255, 255, 255, .025); font-size: .875rem; line-height: 1.35; color: #E9EDF8; animation: pop .3s var(--ease) both; }
.kd__log li small { display: block; margin-top: .15rem; font-size: .78rem; color: var(--stage-dim); }
.kd__log .kd__empty { justify-content: flex-start; border-style: dashed; color: var(--stage-dim); }
.kd__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding-top: .9rem; border-top: 1px solid var(--stage-line); }
.kd__hint { flex: 1 1 14rem; font-size: .8125rem; line-height: 1.45; color: var(--stage-dim); }
@media (max-width: 960px) { .kd { grid-template-columns: minmax(0, 1fr); } .kd__stage { position: static; } .kd__log { max-height: none; } }
@media (max-width: 560px) { .kd__cards { grid-template-columns: minmax(0, 1fr); } }

/* Five checks */
.checks5 { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.checks5 li { display: grid; gap: .55rem; padding: 1.1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.checks5 b { font: 600 1.0625rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 1020px) { .checks5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .checks5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ------- Developers ------- */

.toc { padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-m); }
.toc ol { list-style: none; display: grid; gap: .15rem; margin-top: 1rem; }
.toc a { display: flex; align-items: center; gap: .85rem; padding: .65rem .75rem; border-radius: 11px; color: var(--text); font: 600 .9688rem/1.3 var(--font-body); text-decoration: none; transition: background-color .15s, color .15s; }
.toc a:hover { background: var(--blue-soft); color: var(--blue-ink); }
.toc a span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft); color: var(--text-3); font: 600 .75rem/1 var(--font-mono); }
.toc a:hover span { background: #fff; color: var(--blue); }

.stepcard { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 1rem + 1.4vw, 2rem); }
.stepcard__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--navy); color: #fff; font: 600 1.25rem/1 var(--font-display); }
.stepcard h3 { font-size: 1.3rem; }
.stepcard .checklist { padding-top: 1rem; border-top: 1px solid var(--line); }
.stepcard__result { display: grid; gap: .55rem; justify-items: start; margin-top: auto; padding-top: .5rem; font-size: .9062rem; line-height: 1.55; }

.linkcard { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; color: var(--text-2); text-decoration: none; }
.linkcard:hover { color: var(--text-2); }
.linkcard__t { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.014em; color: var(--text); }
.linkcard .link-arrow { margin-top: auto; padding-top: .35rem; }

.nest { display: grid; }
.nest__box { display: grid; gap: .65rem; padding: 1rem 1.05rem 1.05rem; background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-l); }
.nest__box .nest__box { background: var(--bg-soft); border-style: dashed; }
.nest__box .nest__box .nest__box { background: #fff; border-style: solid; border-color: var(--blue-line); }
.nest__tenant { border-color: var(--navy); box-shadow: var(--shadow-s); }
.nest__label { display: flex; align-items: center; gap: .55rem; font: 600 1rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.nest__label .i { width: 18px; height: 18px; color: var(--blue); }
.nest__sub { margin-top: -.35rem; font-size: .8438rem; line-height: 1.45; color: var(--text-3); }

.terms { display: grid; margin: 0; border-top: 1px solid var(--line-strong); }
.terms > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-strong); }
.terms dt { font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -.012em; color: var(--text); }
.terms dd { margin: 0; color: var(--text-2); }
@media (max-width: 560px) { .terms > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }

.eplist { list-style: none; display: grid; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-s); overflow: hidden; }
.eplist li { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; padding: 1.4rem 1.5rem; border-top: 1px solid var(--line); }
.eplist li:first-child { border-top: 0; }
.eplist .endpoint { justify-self: start; }
.eplist h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.eplist p { margin-top: .3rem; font-size: .9375rem; line-height: 1.55; }
@media (max-width: 820px) { .eplist li { grid-template-columns: minmax(0, 1fr); gap: .9rem; } }

.golive { list-style: none; display: grid; gap: .6rem; }
.golive li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .85rem; align-items: start; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); font-size: .9688rem; line-height: 1.55; }
.golive .i { width: 22px; height: 22px; margin-top: .1rem; color: var(--mint-ink); stroke-width: 2.4; }


/* 404 */
.notfound { padding-block: clamp(4rem, 3rem + 8vw, 9rem); text-align: center; background: linear-gradient(180deg, #F2F6FF 0%, #fff 70%); }
.notfound__mark { width: 96px; height: auto; margin: 0 auto 1.75rem; }
.notfound .eyebrow { justify-content: center; }
.notfound h1 { margin-top: 1rem; }
.notfound .lead { margin: 1.2rem auto 0; }
.notfound .cta-row { justify-content: center; }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: 2.25rem; }
.notfound__links a { font-weight: 600; text-decoration: none; }
.notfound__links a:hover { text-decoration: underline; }


/* 9. Motion & print ---------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes led { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 223, 189, .2); } 50% { box-shadow: 0 0 0 9px rgba(0, 223, 189, 0); } }
@keyframes flash { 0% { background: rgba(91, 140, 255, .26); border-color: rgba(91, 140, 255, .65); } 100% { background: rgba(255, 255, 255, .025); border-color: var(--stage-line); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(6px) scale(.985); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .led { animation: led 2.6s ease-in-out infinite; }
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .hero__stage { animation: rise .9s .12s var(--ease) both; }
  .page-hero__copy > * { animation: rise .7s var(--ease) both; }
  .page-hero__copy > :nth-child(2) { animation-delay: .06s; }
  .page-hero__copy > :nth-child(3) { animation-delay: .12s; }
  .page-hero__copy > :nth-child(4) { animation-delay: .18s; }
  .page-hero__aside { animation: rise .9s .12s var(--ease) both; }
}

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

@media print {
  .site-header, .nav-toggle, .skip-link, .cta, .console__tabs { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1.5rem; }
}
