/* HALO brand (Softriver, 2026): Geist; Regal Blue #00416A, White, Black; Cloud/Smoke/Steel ramp.
   Pairings used: Regal Blue on white, white on black, white on Regal Blue.
   Dim text ramp and dark dashboard surface per brand.md deviations. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
:root {
  --regal: #00416A;
  --white: #FFFFFF;
  --black: #000000;
  --cloud: #EDEFF7;
  --smoke: #D3D6E0;
  --steel: #BCBFCC;
  --space: #9DA2B3;
  --text: #00416A;
  --dim: #545662;
  --faint: #686F87;
  --on-black-dim: #9DA2B3;
  --surface-dark: #0E141C;
  --ok: #4E9A78;
  --warn: #C9A34A;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --bar-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--regal); outline-offset: 3px; border-radius: 6px; }
.topbar :focus-visible { outline-color: var(--white); }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 100; height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
.shell {
  position: absolute; top: 0; left: clamp(.5rem, 1vw, .75rem); right: clamp(.5rem, 1vw, .75rem);
  background: var(--black); color: var(--white);
  border-radius: 0 0 22px 22px;
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.35);
}
.bar { display: flex; align-items: center; gap: 2rem; height: var(--bar-h); }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
.nav-item {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none;
  padding: .5rem 1rem; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-item:hover { background: rgba(255,255,255,.1); }
.nav-item[aria-expanded="true"], .nav-item[aria-current="page"] { background: var(--white); color: var(--black); }
.nav-item .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-item[aria-expanded="true"] .chev { transform: rotate(180deg); }
.bar .btn { margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--regal); color: var(--white); text-decoration: none;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  padding: .8rem 1.35rem; border-radius: 999px; transition: gap .3s var(--ease);
}
.btn:hover { gap: .85rem; }
.btn svg { width: 16px; height: 16px; }
.btn-outline { background: transparent; color: var(--regal); box-shadow: inset 0 0 0 1px var(--steel); }

/* Mega panels */
.mega { display: none; padding: 1.5rem 0 2.5rem; }
.mega.open { display: block; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) 1px minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
.mega-rule { background: rgba(255,255,255,.18); }
.mega-lead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 1.75rem; }
.mega-lead h2 { font-weight: 500; font-size: 1.75rem; letter-spacing: -0.03em; margin: 0 0 .5rem; }
.mega-lead p { margin: 0; color: var(--on-black-dim); max-width: 44ch; }
.more { display: inline-flex; align-items: center; gap: .4rem; color: var(--on-black-dim); text-decoration: none; white-space: nowrap; font-size: 1rem; }
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.more:hover { color: var(--white); }
.more:hover svg { transform: translateX(3px); }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.mega-link { text-decoration: none; display: block; border-radius: 12px; margin: -.75rem; padding: .75rem; transition: background .2s; }
.mega-link:hover { background: rgba(255,255,255,.07); }
.mega-link strong { display: block; font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.02em; margin-bottom: .3rem; }
.mega-link span { color: var(--on-black-dim); font-size: 1rem; line-height: 1.45; }
.feature-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: var(--cloud); color: var(--regal); border-radius: 18px; padding: 1.75rem;
  text-decoration: none; min-height: 100%;
}
.feature-card h3 { margin: 0 0 .75rem; font-weight: 500; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; }
.feature-card p { margin: 0; color: var(--dim); }
.feature-card .more { color: var(--regal); }
.feature-card:hover .more svg { transform: translateX(3px); }

.mobile-menu { display: none; padding: .5rem 0 1.5rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; text-decoration: none; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 1.125rem; }
.mobile-menu .group { color: var(--on-black-dim); font-size: .9375rem; padding: 1.25rem 0 .25rem; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ---------- Page frame (one screen) ---------- */
.page { flex: 1; display: grid; align-content: center; padding: clamp(2rem, 5vh, 3.5rem) 0; }
.h1 { font-weight: 500; font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.h2 { font-weight: 500; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.025em; margin: 0; }
.lede { font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.45; letter-spacing: -0.02em; color: var(--dim); margin: 1.25rem 0 0; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.muted { color: var(--dim); }

/* Home diagram */
.flow { background: var(--cloud); border-radius: 24px; padding: clamp(.75rem, 2vw, 1.5rem);
  background-image: radial-gradient(var(--smoke) 1px, transparent 1px); background-size: 20px 20px; }
.flow svg { width: 100%; height: auto; max-height: 60vh; }
.flow .node { fill: var(--white); stroke: var(--smoke); }
.flow .core { fill: var(--regal); }
.flow .lbl { font-family: var(--font); font-size: 13px; fill: var(--regal); }
.flow .sub { font-family: var(--font); font-size: 11px; fill: var(--faint); }
.flow .lbl-core { font-family: var(--font); font-size: 13px; font-weight: 500; fill: var(--white); }
.flow .wire { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.flow .pulse { fill: none; stroke: var(--regal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 190; animation: flow 3.2s linear infinite; }
.flow .pulse.d2 { animation-delay: -.8s; } .flow .pulse.d3 { animation-delay: -1.6s; } .flow .pulse.d4 { animation-delay: -2.4s; }
.flow .pulse.out { animation-duration: 2.4s; }
.flow .ok { fill: var(--ok); } .flow .warn { fill: var(--warn); }
@keyframes flow { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

/* Product features */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 5vh, 3rem); }
.tile { border: 1px solid var(--smoke); border-radius: 18px; padding: 1.5rem; scroll-margin-top: 6rem; }
.tile .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--cloud); display: grid; place-items: center; margin-bottom: 2.5rem; }
.tile .icon svg { width: 22px; height: 22px; color: var(--regal); }
.tile p { margin: .5rem 0 0; color: var(--dim); font-size: 1.0625rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.head-row .lede { margin-bottom: 0; }

/* How it works */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1.1rem 0; border-top: 1px solid var(--smoke); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--faint); font-size: 1rem; padding-top: .15rem; font-variant-numeric: tabular-nums; }
.steps p { margin: .3rem 0 0; color: var(--dim); font-size: 1.0625rem; }

.panel { background: var(--surface-dark); color: var(--white); border-radius: 20px; padding: clamp(1.1rem, 2.2vw, 1.6rem); box-shadow: 0 40px 80px -48px rgba(0,65,106,.55); }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9375rem; }
.panel-head .meta { color: #838E9E; font-variant-numeric: tabular-nums; }
.site-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.1fr) 4.25rem; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9375rem; }
.site-row:last-of-type { border-bottom: 0; }
.site-name { font-weight: 500; }
.site-name small { display: block; font-weight: 400; color: #838E9E; font-size: .8125rem; }
.state { display: inline-flex; align-items: center; gap: .5rem; color: #98A3B4; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(78,154,120,.18); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(201,163,74,.18); }
.spark { width: 100%; height: 26px; }
.spark polyline { fill: none; stroke: var(--space); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.site-row.is-warn .spark polyline { stroke: var(--warn); }
.ms { text-align: right; font-variant-numeric: tabular-nums; }
.ms small { color: #838E9E; }
.panel-note { margin: .75rem 0 0; font-size: .8125rem; color: #838E9E; }

/* Lists in cards (pricing, security, contact) */
.card { border: 1px solid var(--smoke); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; padding: 1.1rem 0; border-top: 1px solid var(--cloud); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts svg { width: 22px; height: 22px; margin-top: .15rem; color: var(--regal); }
.facts strong { display: block; font-weight: 500; letter-spacing: -0.02em; }
.facts span { color: var(--dim); font-size: 1.0625rem; }
.card .actions { margin-top: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-2 .card { padding: 1.5rem; }
.grid-2 .card svg { width: 24px; height: 24px; color: var(--regal); margin-bottom: 1.75rem; }
.grid-2 .card p { margin: .4rem 0 0; color: var(--dim); font-size: 1.0625rem; }
.big-mail { display: inline-block; font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -0.03em; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: .1em; overflow-wrap: anywhere; }
.contact-list { margin: 2rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .9rem 2rem; }
.contact-list dt { color: var(--faint); }
.contact-list dd { margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--cloud); font-size: .9375rem; color: var(--faint); }
.foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.1rem; padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Legal (long by nature; scrolls) */
.legal { padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3rem, 7vh, 5rem); }
.legal-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.legal-side { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
.legal-side a { display: block; text-decoration: none; color: var(--faint); padding: .35rem 0; font-size: 1rem; }
.legal-side a:hover, .legal-side a[aria-current="page"] { color: var(--text); }
.legal-body { max-width: 68ch; }
.legal-body .effective { color: var(--faint); margin: .75rem 0 2.5rem; }
.legal-body p, .legal-body li { color: var(--dim); }
.legal-body h2 { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.025em; color: var(--text); margin: 2.25rem 0 .5rem; }
.legal-body .intro { font-size: 1.25rem; color: var(--text); }
.legal-body ul { padding-left: 1.25rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body strong { font-weight: 500; color: var(--text); }

/* Entrance */
.js .rise > * { opacity: 0; transform: translateY(14px); }
.js.loaded .rise > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js.loaded .rise > :nth-child(2) { transition-delay: .07s; }
.js.loaded .rise > :nth-child(3) { transition-delay: .14s; }
.js.loaded .rise > :nth-child(4) { transition-delay: .21s; }

/* Responsive */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile .icon { margin-bottom: 1.25rem; }
}
@media (max-width: 900px) {
  .nav, .bar .btn { display: none; }
  .menu-toggle { display: inline-block; }
  .mega.open { display: none; }
  .split, .legal-grid { grid-template-columns: 1fr; }
  .legal-side { position: static; display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .page { align-content: start; }
}
@media (max-width: 560px) {
  .tiles, .grid-2 { grid-template-columns: 1fr; }
  .site-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4rem; }
  .site-row .spark { display: none; }
  .contact-list { grid-template-columns: 1fr; gap: .2rem; }
  .contact-list dd { margin-bottom: .75rem; }
}
@media (max-height: 780px) and (min-width: 901px) {
  .steps li { padding: .8rem 0; }
  .steps { margin-top: 1.25rem; }
  .page { padding: 1.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise > * { opacity: 1 !important; transform: none !important; }
}

/* Privacy summary table */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 .5rem; }
.summary { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.summary th, .summary td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--smoke); }
.summary thead th { font-weight: 500; color: var(--text); border-bottom: 1px solid var(--text); font-size: .9375rem; }
.summary tbody th { font-weight: 400; color: var(--dim); width: 44%; }
.summary tbody th strong { display: block; color: var(--text); }
.summary tbody th span { display: block; font-size: .9375rem; margin-top: .15rem; }
.summary td { color: var(--dim); }

/* Product screenshots */
.shot { margin: 0; }
.shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--smoke); box-shadow: 0 40px 80px -50px rgba(0,65,106,.55); background: var(--white); }
.shot-frame img { width: 100%; height: auto; }
.shot[data-mode="light"] .shot-dark, .shot[data-mode="dark"] .shot-light { display: none; }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: .85rem; font-size: .9375rem; color: var(--faint); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cloud); }
.seg button { font-size: .875rem; padding: .3rem .8rem; border-radius: 999px; color: var(--dim); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.js .shot figcaption .seg { display: inline-flex; }
html:not(.js) .shot .seg { display: none; }

/* Product page list */
.split-product { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.feature-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.75rem; }
.feature-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; scroll-margin-top: 6rem; }
.feature-list .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--cloud); display: grid; place-items: center; }
.feature-list .icon svg { width: 19px; height: 19px; color: var(--regal); }
.feature-list .h2 { font-size: 1.1875rem; }
.feature-list p { margin: .3rem 0 0; color: var(--dim); font-size: 1rem; line-height: 1.45; }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }
.split-product .h1 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.split-product .feature-list { margin-top: 1.5rem; gap: 1.1rem 1.5rem; }
.split-product .feature-list p { font-size: .9375rem; }
@media (max-height: 780px) and (min-width: 901px) {
  .split-product .h1 { font-size: 2.5rem; }
  .split-product .feature-list { gap: .9rem 1.5rem; }
}

.narrow { max-width: 40rem; }
.card-title { margin-bottom: 1.25rem; }
