:root {
  /* surfaces: cool near-black, never pure black */
  --ink-0: #0d0e11;
  --ink-1: #13151a;
  --ink-2: #1a1d23;
  --line: #262a33;
  --line-strong: #3a404c;
  /* text: cool greys. --paper-3 still clears AA on --ink-1 */
  --paper: #eef1f7;
  --paper-2: #a9b0bf;
  --paper-3: #7f8797;
  /* blueprint blue = primary (interactive). Fills (--blue) carry white text; --blue-text is for text on dark */
  --blue: #3057e1;
  --blue-hover: #2446c4;
  --blue-text: #4a6de5;
  --blue-tint: #ced8f7;
  --navy: #002082;
  /* hi-vis = heavy accents only, like the vest on site. Text ON hi-vis is always --ink-0 */
  --hivis: #dbff1a;
  --accent-yellow: #eab308; /* mock-only markers */
  --grid: rgba(206,216,247,.045);

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Amicons sharp/line as coloured backgrounds */
  --i-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M22.414 12 12 22.414 10.586 21l8-8H2v-2h16.586l-8-8L12 1.586z'/%3E%3C/svg%3E");
  --i-arrow-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a6de5' d='M22.414 12 12 22.414 10.586 21l8-8H2v-2h16.586l-8-8L12 1.586z'/%3E%3C/svg%3E");
  --i-square-hivis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dbff1a' d='M4 20h3v2H2v-5h2zm11 2H9v-2h6zm7 0h-5.05v-2H20v-3.05h2zM4 15H2V9h2zm18 0h-2V9h2zM7 4H4v3H2V2h5zm15 3h-2V4h-3V2h5zm-7-3H9V2h6z'/%3E%3C/svg%3E");
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink-0);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--hivis); color: var(--ink-0); }
a { color: var(--blue-tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--blue-tint); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.05; margin: 0 0 .6em; color: var(--paper); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.75rem); font-weight: 800; letter-spacing: -.035em; line-height: .96; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.02; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { color: var(--paper-2); margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }

/* inline Amicons */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; overflow: visible; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* small labels: sentence case in the body face */
.eyebrow, .label { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.eyebrow { color: var(--paper-2); margin-bottom: 1.6em; }

/* drafting grid behind hero and beta */
.blueprint {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
}

/* mock-only markers */
.mock-banner {
  background: var(--accent-yellow); color: #111; text-align: center;
  font-size: .82rem; font-weight: 600; padding: 7px 16px;
}
.tbd {
  display: inline-block; background: rgba(234,179,8,.15); color: var(--accent-yellow);
  border: 1px dashed var(--accent-yellow); border-radius: 4px;
  font-size: .75rem; font-weight: 600; padding: 0 6px; margin-right: 4px;
}
.mock-banner .tbd { color: #111; border-color: #111; background: rgba(0,0,0,.08); }

/* header: a row of bordered cells, like a drawing's title strip */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,14,17,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: stretch; justify-content: space-between; height: 63px; }
.logo { align-self: center; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; color: var(--paper); font-size: 1.2rem; }
.logo span { color: var(--blue-text); }
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; margin-left: auto; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: flex; align-items: center; height: 100%; min-width: 118px; padding: 0 16px; border-left: 1px solid var(--line);
  color: var(--paper-2); font-size: .88rem; font-weight: 500; transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--paper); background: var(--ink-1); text-decoration: none; }
.nav-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 196px; padding: 0 16px;
  margin-right: -1px;
  background: var(--blue); color: #fff; font-size: .88rem; font-weight: 600; transition: background-color .15s ease;
}
.nav-cta:hover { background: var(--blue-hover); text-decoration: none; }
.nav-cta::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: var(--i-arrow-white) center / contain no-repeat; transition: transform .2s var(--ease);
}
.nav-cta:hover::after { transform: translateX(3px); }
.nav-cta:focus-visible { outline: 2px solid var(--blue-tint); outline-offset: -4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em; border-radius: 2px; padding: 13px 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary::after {
  content: ""; width: .85em; height: .85em; background: var(--i-arrow-white) center / contain no-repeat; transition: transform .2s var(--ease);
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 104px 0 96px; border-bottom: 1px solid var(--line); }
/* the drafting grid fades out downwards so it doesn't compete with the grid inside the diagram */
.hero.blueprint {
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 30%, var(--ink-0) 68%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
.hero h1 { max-width: 16ch; margin-bottom: .5em; }
.hero h1 .hl { color: var(--hivis); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.lede { font-size: 1.2rem; max-width: 560px; margin: 0; color: var(--paper-2); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero spotlight: a blue glow and a brighter patch of grid that trail the cursor (positions set by the inline script) */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.hero::before {
  background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 30%), rgba(48,87,225,.18), transparent 62%);
}
.hero::after {
  background-image:
    linear-gradient(rgba(206,216,247,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206,216,247,.16) 1px, transparent 1px);
  background-size: 40px 40px; background-position: -1px -1px;
  mask: radial-gradient(300px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 72%),
        linear-gradient(to bottom, #000 30%, transparent 68%);
  mask-composite: intersect;
}
.hero.is-lit::before, .hero.is-lit::after { opacity: 1; }

/* hero workflow strip, drawn as a sheet (interim visual, stands in for a product screenshot) */
.flow {
  position: relative; margin-top: 80px; background: var(--ink-1);
  border: 1px solid var(--line-strong);
}
.flow-body { display: grid; grid-template-columns: auto 1fr; }
.flow-anchor {
  display: flex; align-items: center; gap: 14px; padding: 28px 32px;
  border-right: 1px solid var(--line); background: var(--ink-2);
}
.flow-anchor strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.1rem; letter-spacing: -.01em; }
.flow-anchor small, .flow-steps small { display: block; color: var(--paper-3); font-size: .8rem; line-height: 1.4; }
.flow-steps small .i { width: .8em; height: .8em; vertical-align: -.05em; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.flow-steps li { padding: 24px 20px; border-left: 1px solid var(--line); transition: background-color .15s ease; }
.flow-steps li:first-child { border-left: 0; }
.flow-steps li:hover { background: var(--ink-2); }
.flow-steps strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1rem; line-height: 1.25; letter-spacing: -.01em; margin: 14px 0 4px; }
.flow-num { display: block; color: var(--blue-text); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: .95rem; line-height: 1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* hero diagram (wide screens): the same nodes laid out on a blueprint with wires; the script animates it */
.flow-wires { display: none; }
@media (min-width: 1180px) {
  .flow {
    --p: 1;
    aspect-ratio: 1220 / 256; padding: 0;
    border-color: rgba(206,216,247,.3);
    background-color: rgba(0,32,130, clamp(0, var(--p) * 2.5, 1));
    background-image:
      linear-gradient(rgba(206,216,247,.15) 1px, transparent 1px),
      linear-gradient(90deg, rgba(206,216,247,.15) 1px, transparent 1px),
      linear-gradient(rgba(206,216,247,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(206,216,247,.06) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
  }
  .flow-body { position: absolute; inset: 0; display: block; }
  .flow-wires { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .flow-bus { fill: none; stroke: rgba(206,216,247,.28); stroke-width: 1; stroke-dasharray: 4 5; }
  .flow-key { fill: none; stroke: rgba(206,216,247,.35); stroke-width: 1; stroke-dasharray: 3 4; }
  .flow-wire {
    --t: clamp(0, (var(--p) - var(--s)) / .1, 1);
    fill: none; stroke: rgba(206,216,247,.9); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t));
  }
  .flow-port { fill: var(--blue-tint); stroke: var(--navy); stroke-width: 1.5; }
  .flow-pulse { fill: var(--hivis); filter: drop-shadow(0 0 6px var(--hivis)); }

  /* scroll-drawn: keylines at --p 0, the blueprint fills and each node solidifies in turn up to --p 1.
     --p defaults to 1, so without the script (or with reduced motion) the diagram is simply complete. */
  .flow-anchor, .flow-steps li {
    --t: clamp(0, (var(--p) - var(--s)) / .1, 1);
    position: absolute; left: calc(var(--x) / 1220 * 100%); top: calc(var(--y) / 256 * 100%);
    width: calc(var(--w, 150) / 1220 * 100%); height: calc(128 / 256 * 100%);
    padding: 0; background: rgba(0,22,96, var(--t)); border: 1px dashed rgba(206,216,247,.4);
  }
  .flow-anchor::after, .flow-steps li::after {
    content: ""; position: absolute; inset: -1px; pointer-events: none;
    border: 1px solid rgba(206,216,247,.55); opacity: var(--t); transition: border-color .4s ease, box-shadow .4s ease;
  }
  .flow-anchor > *, .flow-steps li > * { opacity: var(--t); translate: 0 calc((1 - var(--t)) * 6px); }
  .flow-anchor { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 18px; }
  .flow-anchor strong { color: #fff; font-size: 1.1rem; }
  .flow-steps { display: block; }
  .flow-steps li:hover { background: rgba(0,22,96, var(--t)); }
  .flow-num {
    padding: 6px 12px; border: 0; background: rgba(206,216,247, calc(var(--t) * .14)); color: var(--blue-tint);
    font-family: var(--font-body); font-stretch: 100%; font-size: .72rem; font-weight: 600; line-height: 1.3;
    transition: background-color .4s ease, color .4s ease;
  }
  .flow-num::before { content: "Step "; }
  .flow-steps strong { margin: 10px 12px 3px; font-size: .92rem; color: #fff; }
  .flow-steps small, .flow-anchor small { margin: 0 12px; color: var(--blue-tint); font-size: .76rem; }
  .flow-anchor small { margin: 0; }

  /* once drawn, the pulse marks the current step */
  .flow-steps li.current::after { border-color: var(--hivis); box-shadow: 0 0 22px rgba(219,255,26,.25); }
  .flow-steps li.current .flow-num { background: var(--hivis); color: var(--ink-0); }
}

/* architectural line sketches (generated, 2-point perspective). They draw themselves in like a pen:
   construction lines, then structure, then windows and trim, then siding texture, then the neon accent. */
.sketch { display: block; overflow: visible; }
.sketch path, .sketch circle {
  fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.sk-c { stroke: rgba(206,216,247,.16); stroke-width: .75; stroke-dasharray: none; }
.sk-s { stroke: rgba(206,216,247,.82); stroke-width: 1.1; transition: stroke-dashoffset 1s var(--ease) .05s; }
.sk-d { stroke: rgba(206,216,247,.6); stroke-width: .9; transition: stroke-dashoffset .9s var(--ease) .35s; }
.sk-t { stroke: rgba(206,216,247,.26); stroke-width: .7; transition: stroke-dashoffset .9s var(--ease) .6s; }
.sk-a { stroke: var(--hivis); stroke-width: 1.2; transition: stroke-dashoffset .6s var(--ease) .9s; }
.sketch.pending .sk-s, .sketch.pending .sk-d, .sketch.pending .sk-t, .sketch.pending .sk-a { stroke-dashoffset: 1; }
.section-head:has(.sketch-side) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); column-gap: 40px; }
.section-head:has(.sketch-side) > :not(.sketch) { grid-column: 1; }
.sketch-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 100%; max-height: 340px; pointer-events: none; }
@media (max-width: 1180px) {
  .section-head:has(.sketch-side) { display: block; }
  .sketch-side { display: none; }
}

/* sections */
.section { padding: 88px 0; }
.section.alt { background: var(--ink-1); }
/* alternate sections sit on deep blueprint blue (two shades) instead of charcoal. Tokens are re-pointed inside them so
   cards, hairlines and small blue text all adapt and keep AA contrast. */
.section.alt {
  --ink-0: #071235; --ink-1: #0b1a4e; --ink-2: #12246a;
  --line: rgba(206,216,247,.15); --line-strong: rgba(206,216,247,.28);
  --blue-text: #8aa4ff; --paper-3: #9aa4c4;
  background: var(--ink-1);
}
.section.alt.alt-2 { --ink-0: #050d29; --ink-1: #08143b; --ink-2: #0e1e57; }
/* editorial header: mono label left, heading right, heavy rule over both */
.section-head { margin-bottom: 48px; }
.section-head h2 { max-width: 18ch; }
.label { color: var(--paper-2); margin: 0 0 22px; }
.section-intro { font-size: 1.15rem; color: var(--paper-2); margin: 0; max-width: 680px; }

/* hairline grid: shared 1px borders, like a spec sheet */
.grid {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--ink-0); padding: 32px 28px; transition: background-color .15s ease; }
.alt .card { background: var(--ink-1); }
.card:hover { background: var(--ink-1); }
.card h3 { margin-bottom: .7em; }
.card p { margin: 0; font-size: .95rem; line-height: 1.6; }
/* features bento: the property card takes the 2x2 lead cell */
.features { grid-template-columns: repeat(3, 1fr); }
.feature-lead {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  --pad: 40px; padding: var(--pad);
  background-color: var(--ink-1);
}
.feature-lead:hover { background-color: var(--ink-2); }
.feature-lead { overflow: hidden; }
/* the drawing runs edge to edge across the card */
.feature-lead .sketch-lead { flex: none; width: calc(100% + 2 * var(--pad)); height: auto; margin: 0 calc(-1 * var(--pad)) auto; }
.feature-lead h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-top: 32px; }
.feature-lead p { font-size: 1.05rem; max-width: 520px; }

/* automation chain: when -> then, read like a table; both columns top-aligned */
.chain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.chain li {
  --when-fs: clamp(1.2rem, 2vw, 1.55rem);
  display: grid; grid-template-columns: minmax(0, 5fr) 40px minmax(0, 7fr); gap: 20px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
/* arrow centred in its column and on the heading's first line */
.chain li::before {
  content: ""; grid-column: 2; grid-row: 1; justify-self: center; width: 20px; height: 20px;
  margin-top: calc(var(--when-fs) * 1.15 / 2 - 10px);
  background: var(--i-arrow-blue) center / contain no-repeat;
  transition: translate .25s var(--ease);
}
.chain li:hover::before { translate: 4px 0; }
.chain-when {
  grid-column: 1; grid-row: 1; margin: 0; color: var(--paper);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: var(--when-fs); letter-spacing: -.02em; line-height: 1.15;
}
.chain-then { grid-column: 3; grid-row: 1; margin: 0; font-size: 1.02rem; }

/* automation journey: a blueprint node graph pinned while the section scrolls (enabled by the inline script) */
.journey { display: none; }
.journey-on .journey, .journey-static .journey { display: block; }
.journey-on .journey { height: 390vh; }
.journey-sticky { position: sticky; top: 88px; }
.journey-on .journey-sticky { height: calc(100vh - 112px); display: flex; }
.journey-on .journey-panel { display: flex; flex-direction: column; }
.journey-on .journey-graph { flex: none; height: auto; max-height: calc(100vh - 330px); margin: auto 0; }
.journey .journey-graph-tall, .journey.tall .journey-graph-wide { display: none; }
.journey.tall .journey-graph-tall { display: block; }
.journey-static .journey-sticky { position: static; height: auto; }
.journey-static .journey-caption { display: none; }
/* the list stays for screen readers while the diagram is on screen */
.journey-on .chain {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.journey-static .chain { margin-top: 48px; }
.journey-panel {
  width: 100%; border: 1px solid var(--line-strong);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(206,216,247,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206,216,247,.16) 1px, transparent 1px),
    linear-gradient(rgba(206,216,247,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206,216,247,.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.journey-graph { display: block; width: 100%; height: auto; max-height: calc(100vh - 300px); padding: 28px 24px 8px; overflow: visible; }

/* nodes: pending = faint, on = drawn in paper white, current = hi-vis header (like a selected node) */
.node { opacity: .28; transition: opacity .5s var(--ease); }
.node .nb { fill: #001660; stroke: rgba(206,216,247,.55); stroke-width: 1.25; transition: stroke .4s ease; }
.node .nh { fill: rgba(206,216,247,.14); transition: fill .4s ease; }
.node .nk { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--blue-tint); transition: fill .4s ease; }
.node .nt { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 14px; fill: #fff; }
.node-watch .nb { stroke-dasharray: 5 4; }
.node.on { opacity: 1; }
.node.current .nb { stroke: var(--hivis); stroke-width: 1.5; }
.node.current .nh { fill: var(--hivis); }
.node.current .nk { fill: var(--ink-0); }
.node.current { filter: drop-shadow(0 0 14px rgba(219,255,26,.28)); }
.wl { font-family: var(--font-body); font-size: 11px; font-weight: 500; fill: var(--blue-tint); opacity: 0; transition: opacity .5s ease; }
.wl.on { opacity: .8; }

.wire { fill: none; stroke: rgba(206,216,247,.9); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease), stroke .4s ease; }
.wire.on { stroke-dashoffset: 0; }
.wire.current { stroke: var(--hivis); }
.wire-follow { stroke-dasharray: .018 .014; stroke-dashoffset: 0; opacity: 0; transition: opacity .5s ease, stroke .4s ease; }
.wire-follow.on { opacity: 1; }
.wire-follow.current { animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -.064; } }
.port { fill: #001660; stroke: rgba(206,216,247,.7); stroke-width: 1.5; opacity: .28; transition: fill .4s ease, stroke .4s ease, opacity .5s ease; }
.port.on { opacity: 1; fill: var(--blue-tint); }
.port.current { fill: var(--hivis); stroke: var(--hivis); }
.pulse { fill: var(--hivis); filter: drop-shadow(0 0 6px var(--hivis)); }

/* caption: the full sentence for the current step, read from the list */
.journey-caption {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding: 20px 24px 24px; border-top: 1px solid rgba(206,216,247,.2); background: rgba(0,10,50,.45);
}
.journey-count { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--hivis); }
.journey-when { margin: 0 0 .35em; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: #fff; }
.journey-then { margin: 0; color: var(--blue-tint); max-width: 640px; min-height: 3.2em; }
.journey-ticks { display: flex; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.journey-ticks li { width: 22px; height: 3px; background: rgba(206,216,247,.25); transition: background-color .3s ease; }
.journey-ticks li.on { background: var(--hivis); }

/* report package: two document indexes */
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.package { background: var(--ink-0); border: 1px solid var(--line-strong); }
.package h3 {
  margin: 0; padding: 22px 28px; border-bottom: 3px solid var(--blue); font-size: 1.3rem;
}
.package ol { margin: 0; padding: 8px 28px 16px; list-style: none; counter-reset: doc; }
.package li {
  counter-increment: doc; display: flex; gap: 18px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--paper-2); font-size: .95rem;
}
.package li:last-child { border-bottom: 0; }
.package li::before {
  content: counter(doc); color: var(--paper-3); font-size: .85rem;
  font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right;
}
/* boxed cards (Heron-style): label + number row over a dashed rule, then the copy. Used for the report
   points, the real-loan details and the roles; the How it works cards share the header treatment. */
.boxes { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-left: 0; }
.boxes-5 { grid-template-columns: repeat(5, 1fr); }
.box { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--ink-0); }
.alt .box { background: var(--ink-1); }
.box-head, .sc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0;
  padding: 16px 24px; border-bottom: 1px dashed var(--line-strong); color: var(--paper-2); font-size: .95rem; font-weight: 500;
}
.box-num { color: var(--hivis); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: .95rem; }
.box-body { flex: 1; margin: 0; padding: 28px 24px 32px; }
.box-body h3 { font-size: 1.25rem; margin: 0 0 .6em; }
.box-body p { margin: 0; font-size: .97rem; line-height: 1.6; }
.roles .box-head { color: var(--paper); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.05rem; }
.package-points { grid-column: 1 / -1; margin-top: 40px; }

/* how it works: Heron-style cards (label / drawing / text) in a row that scrolls sideways */
#how { overflow-x: clip; }
.steps {
  list-style: none; padding: 0 0 4px; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 84vw); grid-template-rows: auto 1fr auto;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
/* subgrid keeps the label, drawing and text rows level across every card */
.steps li {
  grid-row: span 3; display: grid; grid-template-rows: subgrid; scroll-snap-align: start;
  border: 1px solid var(--line); border-left-width: 0; background: var(--ink-1);
}
.steps li:first-child { border-left-width: 1px; }
.sc-art { height: 280px; display: grid; place-items: center; padding: 16px; overflow: hidden; border-bottom: 1px dashed var(--line-strong); }
.sc-art .sketch { width: 100%; height: auto; max-height: 100%; }
.sc-body { padding: 28px 24px 32px; }
/* while pinned, the card row fills the window under the nav; the drawing row takes the spare height */
.hscroll.hs-on .hs-sticky { position: sticky; top: 88px; height: calc(100vh - 112px); }
.hscroll.hs-on .steps { height: 100%; }
.hscroll.hs-on .sc-art { height: auto; min-height: 220px; }
.hscroll.hs-on .sc-art .sketch { max-height: 340px; }
@media (min-width: 1800px) {
  .steps { grid-auto-columns: minmax(0, 1fr); overflow: visible; }
  .sc-art { height: 220px; padding: 12px 8px; }
}
.nowrap { white-space: nowrap; }
.hscroll.hs-on .steps { overflow: visible; will-change: transform; }
.steps h3 { font-size: 1.35rem; margin: 0 0 .5em; }
.steps p { margin: 0; font-size: .98rem; }

/* roadmap: dashed, like proposed work on a drawing */
.roadmap {
  margin-top: 48px; padding: 36px 40px; border: 1px dashed var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: start;
}
.roadmap .eyebrow { grid-column: 1 / -1; margin-bottom: .6em; }
.roadmap h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0; }
.roadmap ul { margin: 0; padding: 0; list-style: none; color: var(--paper-2); }
.roadmap li { padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); position: relative; }
.roadmap li:first-child { padding-top: 0; }
.roadmap li:last-child { border-bottom: 0; }
.roadmap li::before {
  content: ""; position: absolute; left: -1px; top: calc(8px + .2em); width: 16px; height: 16px;
  background: var(--i-square-hivis) center / contain no-repeat;
}
.roadmap li:first-child::before { top: .2em; }

/* faq: animated open/close where ::details-content is supported, instant elsewhere */
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.25; color: var(--paper); text-wrap: balance;
  transition: color .2s ease;
}
.faq-item summary:hover { color: var(--blue-tint); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--blue-tint); outline-offset: 4px; }
.faq-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); color: var(--blue-text);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.faq-icon .i { grid-area: 1 / 1; width: 18px; height: 18px; vertical-align: 0; transition: transform .35s var(--ease), opacity .25s ease; }
.faq-icon .i-minus { opacity: 0; transform: rotate(-90deg); }
.faq-item summary:hover .faq-icon { border-color: var(--blue-text); }
.faq-item summary:active .faq-icon { transform: scale(.92); }
.faq-item[open] .faq-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-item[open] .faq-icon .i-plus { opacity: 0; transform: rotate(90deg); }
.faq-item[open] .faq-icon .i-minus { opacity: 1; transform: rotate(0); }
.faq-item p { padding: 0 64px 28px 0; margin: 0; max-width: 820px; font-size: 1.02rem; }
@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .35s var(--ease), opacity .3s ease, content-visibility .35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; }
}

/* beta: closes the page on the blueprint blue used by the diagrams; neon only marks the offer and the action */
#beta {
  --grid: rgba(206,216,247,.07);
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--navy); color: #fff; padding: 140px 0 128px;
}
/* a soft light from the top so the block feels lit rather than flat */
#beta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 30% 0%, rgba(48,87,225,.45), transparent 70%);
}
#beta .eyebrow { color: var(--blue-tint); }
#beta h2 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 5.5rem); font-weight: 800; letter-spacing: -.035em; line-height: .96; max-width: 17ch; }
#beta h2 .hl { color: var(--hivis); }
.beta-foot {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(206,216,247,.2);
}
#beta .section-intro { color: var(--blue-tint); font-size: 1.2rem; }
.fine { font-size: .85rem; color: var(--paper-3); margin: 1em 0 0; }
#beta .fine { color: rgba(206,216,247,.75); max-width: 380px; }
.btn-hivis { background: var(--hivis); color: var(--ink-0); }
.btn-hivis:hover { background: #e9ff66; }
.btn-hivis::after {
  content: ""; width: .85em; height: .85em; background: currentColor;
  mask: var(--i-arrow-white) center / contain no-repeat; transition: transform .2s var(--ease);
}
.btn-hivis:hover::after { transform: translateX(3px); }
.btn-hivis:focus-visible { outline-color: var(--hivis); }

/* footer */
.site-footer { padding: 72px 0 0; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-tag { font-size: .85rem; color: var(--paper-3); margin: 6px 0 0; }
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--paper-2); font-size: .9rem; }
.footer-links a:hover { color: var(--paper); }
.disclaimer { font-size: .8rem; color: var(--paper-3); max-width: 820px; }
.copyright { font-size: .8rem; color: var(--paper-3); margin: 0; }
.wordmark {
  margin: 48px 0 -0.16em; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(3rem, 12.8vw, 11.5rem); color: var(--ink-2); user-select: none; white-space: nowrap;
}
.wordmark span { color: var(--navy); }

/* legal pages */
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: .95rem; font-weight: 500; }
.back-link .i { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.back-link:hover .i { transform: translateX(-3px); }
.legal-content h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); letter-spacing: -.03em; }
.legal-content h2 { font-size: 1.45rem; letter-spacing: -.015em; margin-top: 2.2em; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-content h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal-content ul { color: var(--paper-2); padding-left: 1.2em; }
.legal-content li { margin: .3em 0; }
.legal-content li::marker { color: var(--blue-text); }
.legal-content strong { color: var(--paper); }
.legal-content .warning-box, .legal-content .notice-box, .legal-content .doc-info {
  background: var(--ink-1); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  padding: 18px 22px; margin: 24px 0;
}
.legal-content .warning-box { border-left-color: var(--accent-yellow); }
.legal-content .notice-box p:last-child, .legal-content .warning-box p:last-child, .legal-content .doc-info p:last-child { margin-bottom: 0; }

/* stacked node diagrams for narrower screens: the hero workflow (< 1180px) and the automation chain (< 1000px)
   use the blueprint node style, stacked with connectors. The inline script lights the nodes in turn (.cycling). */
@media (max-width: 1179px) {
  .flow {
    padding: 28px 20px; background-color: var(--navy); border-color: rgba(206,216,247,.3);
    background-image:
      linear-gradient(rgba(206,216,247,.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(206,216,247,.12) 1px, transparent 1px);
    background-size: 24px 24px; background-position: -1px -1px;
  }
  .flow-body, .flow-steps { display: flex; flex-direction: column; gap: 26px; }
  .flow-body { max-width: 520px; margin: 0 auto; }
  .flow-anchor, .flow-steps li, .flow-steps li:first-child {
    position: relative; display: block; padding: 0; background: #001660; border: 1px solid rgba(206,216,247,.5);
    transition: opacity .5s var(--ease), border-color .4s ease, box-shadow .4s ease;
  }
  .flow-steps li:hover { background: #001660; }
  .flow-anchor { padding: 16px 16px 14px; }
  .flow-anchor strong { color: #fff; }
  .flow-anchor small { color: var(--blue-tint); }
  .flow-num {
    padding: 6px 14px; border: 0; background: rgba(206,216,247,.14); color: var(--blue-tint);
    font-family: var(--font-body); font-stretch: 100%; font-size: .75rem; font-weight: 600; line-height: 1.3;
    transition: background-color .4s ease, color .4s ease;
  }
  .flow-num::before { content: "Step "; }
  .flow-steps strong { margin: 12px 14px 2px; color: #fff; }
  .flow-steps small { margin: 0 14px 14px; color: var(--blue-tint); }
  .flow-steps li::before {
    content: ""; position: absolute; left: 27px; top: -27px; width: 1.5px; height: 26px; background: rgba(206,216,247,.55);
    transition: background-color .4s ease;
  }
  .flow-steps li::after { content: ""; position: absolute; left: 24px; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-tint); transition: background-color .4s ease; }
  .flow.cycling .flow-anchor:not(.on), .flow.cycling .flow-steps li:not(.on) { opacity: .4; }
  .flow .current { border-color: var(--hivis); box-shadow: 0 0 22px rgba(219,255,26,.25); }
  .flow li.current .flow-num { background: var(--hivis); color: var(--ink-0); }
  .flow li.current::before, .flow li.current::after { background: var(--hivis); }
}
@media (max-width: 999px) {
  #automatic .chain {
    counter-reset: step; display: flex; flex-direction: column; gap: 26px; padding: 28px 20px;
    border: 1px solid rgba(206,216,247,.3);
    background-color: var(--navy);
    background-image:
      linear-gradient(rgba(206,216,247,.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(206,216,247,.12) 1px, transparent 1px);
    background-size: 24px 24px; background-position: -1px -1px;
  }
  #automatic .chain li {
    counter-increment: step; position: relative; display: block; padding: 0; background: #001660;
    border: 1px solid rgba(206,216,247,.5); transition: opacity .5s var(--ease), border-color .4s ease, box-shadow .4s ease;
  }
  #automatic .chain li::before {
    content: "Step " counter(step); display: block; justify-self: stretch; width: auto; height: auto; margin: 0; translate: none; filter: none;
    padding: 6px 14px; background: rgba(206,216,247,.14); color: var(--blue-tint); font-size: .75rem; font-weight: 600; line-height: 1.3;
    transition: background-color .4s ease, color .4s ease;
  }
  #automatic .chain li + li::after {
    content: ""; position: absolute; left: 27px; top: -27px; width: 1.5px; height: 26px; background: rgba(206,216,247,.55);
    transition: background-color .4s ease;
  }
  #automatic .chain-when { margin: 12px 14px 4px; color: #fff; font-size: 1.1rem; }
  #automatic .chain-then { margin: 0 14px 16px; color: var(--blue-tint); font-size: .95rem; }
  #automatic .chain.cycling li:not(.on) { opacity: .4; }
  #automatic .chain li.current { border-color: var(--hivis); box-shadow: 0 0 22px rgba(219,255,26,.25); }
  #automatic .chain li.current::before { background: var(--hivis); color: var(--ink-0); }
  #automatic .chain li.current::after { background: var(--hivis); }
}

/* responsive */
@media (max-width: 1080px) {
  .boxes, .boxes-5 { grid-template-columns: repeat(2, 1fr); }
  /* separate cards once they stack, so each one reads on its own */
  .boxes { gap: 16px; border: 0; }
  .box { border: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .packages { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-lead { grid-row: auto; }
  .site-header nav { display: none; }
  .nav-cta { margin-left: auto; min-width: 0; }
  .roadmap { grid-template-columns: 1fr; padding: 28px; }
  .roadmap h3 { margin-bottom: 16px; }
  .beta-foot { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .grid-4, .features, .boxes, .boxes-5 { grid-template-columns: 1fr; }
  .feature-lead { grid-column: auto; --pad: 28px; }
  .hero { padding: 64px 0 64px; }
  .flow { margin-top: 56px; }
  .section { padding: 72px 0; }
  #beta { padding: 96px 0 88px; }
  .btn-sm { padding: 7px 10px; font-size: .82rem; }
  .btn-sm::after { display: none; }
  .nav-cta { font-size: .8rem; gap: 10px; padding: 0 12px; }
  .faq-item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
