/* Humenai — site styles (2026-11 redesign)
   One family (Schibsted Grotesk), cool paper base, spruce ink bands,
   brand teal + signal blue. Amber is reserved for alerts inside data. */

:root {
  --paper: #F3F5F2;
  --surface: #FFFFFF;
  --ink: #10302E;          /* spruce: dark bands */
  --ink-2: #183E3B;
  --text: #15201F;
  --muted: #55625F;
  --faint: #7C8885;
  --line: #D6DDD9;
  --line-soft: #E4E9E6;
  --teal: #2E8C7E;         /* text-safe teal */
  --teal-logo: #45A697;
  --teal-wash: #E1EFEB;
  --blue: #3557D6;
  --blue-dark: #2743B3;
  --amber: #D9962B;
  --on-ink: #E9F0EE;
  --on-ink-muted: #A9BDB9;

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--white { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink a:not(.btn) { color: #9CC3FF; }

/* No tabular figures: in this face tnum also widens commas and periods. */

/* ---------- Type helpers ---------- */
.display { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.section--ink .lede { color: var(--on-ink-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.measure { max-width: 38em; }
.kicker { font-size: var(--step--1); font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.section--ink .kicker { color: #7FD1C2; }
.head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem/1 var(--font);
  padding: 16px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: #B8C3BF; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--teal-wash); color: var(--ink); }
.btn--ghost-light { border-color: rgba(233,240,238,.35); color: var(--on-ink); }
.btn--ghost-light:hover { border-color: var(--on-ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243,245,242,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo img { height: 32px; width: auto; }
.logo span { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.03em; }
.logo b { color: var(--teal-logo); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); color: var(--text); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-drop[open] summary::after { transform: translateY(1px) rotate(225deg); }
.nav-drop summary:hover { border-bottom-color: var(--line); }
.nav-drop summary.is-current { border-bottom-color: var(--teal); }
.nav-drop-panel { position: absolute; left: -18px; top: calc(100% + 14px); width: 330px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 24px 48px rgba(16,48,46,.14); padding: 8px; display: grid; gap: 2px; }
.nav .nav-drop-panel a { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius-s); border-bottom: 0; }
.nav .nav-drop-panel a:hover, .nav .nav-drop-panel a[aria-current="page"] { background: var(--paper); }
.nav-drop-panel b { font-weight: 600; }
.nav-drop-panel span { font-size: 0.86rem; color: var(--muted); font-weight: 400; }
.menu-label { padding: 10px 14px 2px; font-size: 0.82rem; font-weight: 600; color: var(--teal); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 8px; }
.menu-panel a[aria-current="page"] { background: var(--paper); }
.header-cta { padding: 12px 20px; font-size: 0.94rem; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.94rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--text); }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: 0 24px 48px rgba(16,48,46,.14); padding: 8px; display: grid; }
.menu-panel a { padding: 12px 14px; color: var(--text); text-decoration: none; font-weight: 500; border-radius: var(--radius-s); }
.menu-panel a:hover { background: var(--paper); }
.menu-panel .btn { justify-content: center; margin-top: 6px; color: #fff; }
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu { display: block; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }
.hero-note { margin-top: 28px; font-size: var(--step--1); color: var(--faint); max-width: 30em; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Stage: real dashboard + phone chat */
.stage { position: relative; padding: 0 0 72px 0; margin-right: calc(-1 * min(6vw, 80px, var(--gutter))); }
.stage-screen { border-radius: var(--radius-m); overflow: hidden; background: #0b0e13; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -24px rgba(16,48,46,.45); border: 1px solid #1d232a; }
.stage-screen img { width: 100%; }
.stage .phone { position: absolute; left: -36px; bottom: 0; width: min(44%, 268px); }
.stage .chat-body { min-height: 0; }
@media (max-width: 960px) { .stage { margin-right: 0; } }
@media (max-width: 560px) {
  .stage { padding: 0; }
  .stage .phone { position: relative; left: auto; width: 86%; margin: -64px auto 0; }
}

/* ---------- Phone / Telegram-style chat (HTML, not a screenshot) ---------- */
.phone { background: #0f1a19; border-radius: 30px; padding: 9px; box-shadow: 0 30px 60px -18px rgba(16,48,46,.55); }
.phone-screen { border-radius: 22px; overflow: hidden; background: #DDE7D9; display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: 10px; background: #fff; padding: 11px 14px; border-bottom: 1px solid #E3E8E4; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.chat-name { font-weight: 700; font-size: 0.86rem; line-height: 1.2; color: var(--text); }
.chat-sub { font-size: 0.72rem; color: var(--faint); }
.chat-body { padding: 12px 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 0.76rem; line-height: 1.45; color: #1A2321; min-height: 360px; justify-content: flex-end; background-image: radial-gradient(rgba(16,48,46,.06) 1px, transparent 1.4px); background-size: 14px 14px; }
.bubble { max-width: 88%; padding: 8px 11px 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble--me { align-self: flex-end; background: #DFF5C9; border-bottom-right-radius: 4px; }
.bubble--bot { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble > * + * { margin-top: 6px; }
.bubble > time { margin-top: 2px; }
.bubble strong { font-weight: 700; }
.bubble time { display: block; text-align: right; font-size: 0.64rem; color: #7B8A84; margin-top: 2px; }
.bubble .figs { display: grid; grid-template-columns: auto auto; gap: 1px 10px; margin-top: 4px; }
.bubble .figs span:nth-child(even) { text-align: right; font-weight: 600; white-space: nowrap; }
.typing { align-self: flex-start; background: #fff; border-radius: 14px; padding: 10px 12px; display: none; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA8A3; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input { background: #fff; margin: 0; padding: 10px 14px; font-size: 0.74rem; color: #95A29D; border-top: 1px solid #E3E8E4; }

/* One orchestrated load sequence for the chat. Without JS (or with reduced
   motion) every message is simply visible. */
.js .chat-seq [data-step] { opacity: 0; transform: translateY(8px); }
.js .chat-seq.is-playing [data-step].is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.js .chat-seq .typing.is-on { display: inline-flex; }
@media (prefers-reduced-motion: reduce) {
  .js .chat-seq [data-step] { opacity: 1; transform: none; }
  .typing i { animation: none; }
}

/* ---------- Human → Humenai → Human ---------- */
.relay { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; gap: clamp(16px, 2.5vw, 36px); align-items: start; }
.relay h3 { font-size: var(--step-2); margin-bottom: 12px; }
.relay p { color: var(--on-ink-muted); }
.relay .mid h3 { color: #7FD1C2; }
.relay ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.relay li { border-top: 1px solid rgba(233,240,238,.16); padding-top: 10px; color: var(--on-ink); }
.relay li span { display: block; color: var(--on-ink-muted); font-size: var(--step--1); }
.relay-arrow { align-self: center; width: 44px; height: 2px; background: rgba(233,240,238,.35); position: relative; margin-top: -40px; }
.relay-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid rgba(233,240,238,.55); border-right: 0; }
@media (max-width: 900px) {
  .relay { grid-template-columns: 1fr; }
  .relay-arrow { width: 2px; height: 32px; margin: 0 0 0 8px; }
  .relay-arrow::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid rgba(233,240,238,.55); border-bottom: 0; }
}

/* ---------- Product rows (home) ---------- */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.product + .product { margin-top: clamp(72px, 10vw, 128px); }
.product--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.product--flip .product-media { order: 2; }
.product h3 { font-size: var(--step-3); margin-bottom: 18px; }
.product .lede { margin-bottom: 24px; }
.facts { list-style: none; display: grid; gap: 0; margin-bottom: 30px; border-top: 1px solid var(--line); }
.facts li { padding: 13px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; font-size: 0.97rem; }
.facts li b { font-weight: 600; }
.facts li span { color: var(--muted); }
.product .actions { align-items: center; gap: 12px 24px; }
@media (max-width: 960px) {
  .product, .product--flip { grid-template-columns: 1fr; }
  .product--flip .product-media { order: 0; }
}
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

.frame { border-radius: var(--radius-m); overflow: hidden; background: #0b0e13; border: 1px solid #1d232a; box-shadow: 0 30px 60px -28px rgba(16,48,46,.5); }
.frame video, .frame img { width: 100%; }
.frame--light { background: var(--surface); border-color: var(--line); box-shadow: 0 30px 60px -32px rgba(16,48,46,.35); }
.caption { margin-top: 12px; font-size: var(--step--1); color: var(--faint); }

/* ---------- Data safety ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 18px; align-items: stretch; margin-bottom: clamp(40px, 5vw, 64px); }
.flow-col { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-m); padding: 22px; }
.flow-col h3 { font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.flow-col > p { color: var(--muted); font-size: var(--step--1); margin-bottom: 14px; }
.flow-col ul { list-style: none; display: grid; gap: 8px; }
.flow-col li { padding: 10px 12px; border-radius: var(--radius-s); background: var(--paper); font-size: 0.94rem; }
.flow-col li span { display: block; color: var(--muted); font-size: 0.8rem; }
.flow-col--core { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.flow-col--core > p { color: var(--on-ink-muted); }
.flow-col--core li { background: var(--ink-2); }
.flow-col--core li span { color: var(--on-ink-muted); }
.flow-link { align-self: center; display: grid; justify-items: center; gap: 6px; font-size: 0.75rem; color: var(--faint); font-weight: 600; }
.flow-link::before { content: ""; width: 56px; height: 2px; background: var(--teal); }
.flow-link--one::after { content: "read only"; }
.flow-link--two::after { content: "answers"; }
.promises { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.promises li { border-top: 2px solid var(--teal); padding-top: 16px; }
.promises b { display: block; font-size: 1.06rem; margin-bottom: 4px; }
.promises span { color: var(--muted); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-link { grid-auto-flow: column; justify-content: start; padding-left: 22px; }
  .flow-link::before { width: 2px; height: 28px; }
  .promises { grid-template-columns: 1fr; }
}

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 22px 18px 0 0; position: relative; }
.steps li::before { content: counter(step); display: block; font-size: var(--step-2); font-weight: 800; color: var(--teal); letter-spacing: -0.03em; margin-bottom: 10px; }
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.steps b { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 0.94rem; display: block; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Verticals ---------- */
.verticals { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); }
.verticals h3 { font-size: var(--step--1); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.live { list-style: none; display: grid; gap: 14px; }
.live li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; }
.live b { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.live b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FB679; box-shadow: 0 0 0 4px rgba(47,182,121,.16); }
.live span { color: var(--muted); display: block; margin-top: 4px; }
.live a { font-weight: 600; font-size: 0.94rem; display: inline-block; margin-top: 10px; }
.next { list-style: none; display: grid; }
.next li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; font-weight: 600; color: var(--muted); }
@media (max-width: 800px) { .verticals { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--on-ink); border-radius: var(--radius-l); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; }
.cta h2 { font-size: var(--step-3); color: #fff; margin-bottom: 14px; }
.cta p { color: var(--on-ink-muted); max-width: 34em; }
.cta-wrap { padding: 0 0 var(--section); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-grid p { color: var(--muted); font-size: 0.94rem; margin-top: 12px; max-width: 22em; }
.footer-grid h2 { font-size: 0.875rem; font-weight: 600; color: var(--faint); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 0.97rem; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line-soft); padding: 20px 0 28px; font-size: var(--step--1); color: var(--faint); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */
.crumbs { font-size: var(--step--1); color: var(--faint); padding-top: 22px; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { margin: 0 0 22px; max-width: 16em; }
.page-hero .lede { margin-bottom: 32px; }
.page-hero-media { padding-bottom: clamp(64px, 8vw, 112px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* Two ways to use it */
.ways { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.way h3 { font-size: var(--step-2); margin: 22px 0 10px; }
.way ul { list-style: none; display: grid; gap: 6px; margin-top: 14px; }
.way li { padding-left: 18px; position: relative; color: var(--muted); }
.way li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--teal); }
.way .phone { max-width: 320px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }

/* Screen tour tabs */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tour-tabs button { font: 600 0.94rem/1 var(--font); padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.tour-tabs button:hover { border-color: var(--text); }
.tour-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.tour-panel + .tour-panel { margin-top: 48px; }
.js .tour-panel + .tour-panel { margin-top: 0; }
.js .tour-panel[hidden] { display: none; }
.tour-panel h3 { font-size: var(--step-1); margin-bottom: 10px; }
.tour-panel p { color: var(--muted); }
.tour-panel p + p { margin-top: 12px; }
/* Tab controls only make sense with JS; without it every panel is shown. */
html:not(.js) .tour-tabs, html:not(.js) .chain-steps { display: none; }
@media (max-width: 900px) { .tour-panel { grid-template-columns: 1fr; } }

/* Questions */
.questions { list-style: none; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.questions li { break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.06rem; }
.questions li::before { content: "“"; color: var(--teal); font-weight: 800; margin-right: 2px; }
.questions li::after { content: "”"; color: var(--teal); font-weight: 800; }
@media (max-width: 700px) { .questions { columns: 1; } }

.ledger-note { border-left: 3px solid var(--teal); padding: 6px 0 6px 22px; }
.ledger-note .h3 { margin-bottom: 10px; }

/* Definition-style feature index */
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.index > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 13em 1fr; gap: 16px; }
.index dt { font-weight: 700; }
.index dd { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .index { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .index > div { grid-template-columns: 1fr; gap: 4px; } }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 1.5px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; }

.demo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 28px; max-width: 28rem; }
.demo-stats b { display: block; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.demo-stats span { color: var(--on-ink-muted); font-size: 0.94rem; }

/* ---------- Order-to-cash chain (HTML mock with fictional data) ---------- */
.chain-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; }
.chain-steps button { width: 100%; text-align: left; font: inherit; background: none; border: 0; border-top: 3px solid var(--line); padding: 14px 12px 6px 0; cursor: pointer; color: var(--muted); }
.chain-steps button b { display: block; color: var(--text); font-size: 1.04rem; }
.chain-steps button span { font-size: 0.85rem; }
.chain-steps button:hover b { text-decoration: underline; }
.chain-steps button[aria-selected="true"] { border-top-color: var(--teal); }
.chain-steps button[aria-selected="true"] b { color: var(--teal); }
.chain-steps button.is-done { border-top-color: #9ACFC6; }
@media (max-width: 760px) {
  .chain-steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
}
.chain-panel[hidden] { display: none; }

.app { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 440px; font-size: 0.84rem; color: #1E2826; background: #fff; }
.app-side { background: #F7F9F8; border-right: 1px solid #E5EAE7; padding: 16px 12px; }
.app-brand { font-weight: 700; font-size: 0.9rem; }
.app-brand span { display: block; font-weight: 400; color: var(--faint); font-size: 0.74rem; }
.app-nav { list-style: none; margin-top: 16px; display: grid; gap: 2px; }
.app-nav li { padding: 6px 10px; border-radius: 6px; color: #49544F; }
.app-nav li.on { background: var(--ink); color: #fff; }
.app-main { padding: 22px 22px; overflow-x: auto; min-width: 0; }
.app-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.app-title h4 { font-size: 1.15rem; letter-spacing: -0.015em; }
.app-title small { color: var(--faint); }
.app table { width: 100%; border-collapse: collapse; }
.app th { white-space: nowrap; text-align: left; font-weight: 600; color: var(--faint); font-size: 0.76rem; padding: 8px 10px 8px 0; border-bottom: 1px solid #E5EAE7; }
.app td { padding: 10px 10px 10px 0; border-bottom: 1px solid #EFF2F0; }
.app .num { text-align: right; white-space: nowrap; }
.app tfoot td { font-weight: 700; border-bottom: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: #EEF2F0; color: #4A5551; }
.tag--ok { background: #E1F4EA; color: #1F7A4D; }
.tag--warn { background: #FBF0DA; color: #8A5A0B; }
.tag--due { background: #FBE3E1; color: #A23A2C; }
.tag--info { background: #E5EBFB; color: #2C46A8; }
.short { color: #8A5A0B; font-weight: 600; }
.app-note { margin-top: 14px; padding: 9px 12px; border-radius: 8px; background: #FBF0DA; color: #6E4808; font-size: 0.8rem; }
.app-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.app-cards div { border: 1px solid #E5EAE7; border-radius: 8px; padding: 10px 12px; }
.app-cards small { display: block; color: var(--faint); font-size: 0.72rem; }
.app-cards b { font-size: 0.98rem; }
.sig { border: 1px dashed #C9D2CE; border-radius: 8px; padding: 8px 12px; margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.sig svg { width: 160px; height: 52px; color: #1E2826; }
.sig small { color: var(--faint); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.link-row span { font-size: 0.74rem; border: 1px solid #E5EAE7; border-radius: 6px; padding: 3px 8px; color: #49544F; }
.link-row span b { color: var(--teal); font-weight: 600; }
@media (max-width: 700px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } }

.chain-explain { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.chain-explain p { color: var(--muted); max-width: 46em; }
.chain-explain p b { color: var(--text); }
@media (max-width: 700px) { .chain-explain { grid-template-columns: 1fr; } }

.principles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); }
.principles b { display: block; font-size: 1.12rem; margin-bottom: 8px; }
.principles span { color: var(--muted); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

.feature-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px clamp(24px, 3vw, 44px); }
.feature-groups h3 { font-size: 1.06rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.feature-groups ul { list-style: none; display: grid; gap: 8px; }
.feature-groups li { color: var(--muted); }

.rollout { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.rollout li { counter-increment: r; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(233,240,238,.16); }
.rollout li::before { content: counter(r); font-weight: 800; color: #7FD1C2; min-width: 1.2em; }
@media (max-width: 800px) { .rollout { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 42em; }

/* Contact */
.contact-ways { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.contact-ways > div { border-top: 2px solid var(--text); padding-top: 18px; }
.contact-ways h2 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.contact-ways p { color: var(--muted); margin-bottom: 16px; }
.contact-ways .big { font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
.contact-ways .big:hover { text-decoration: underline; color: var(--text); }
@media (max-width: 860px) { .contact-ways { grid-template-columns: 1fr; } }

.pending { border: 1.5px dashed var(--line); border-radius: var(--radius-m); padding: 28px; background: var(--surface); max-width: 40rem; }
.pending p { color: var(--muted); margin-bottom: 18px; }

.error-page { min-height: 60vh; display: grid; align-content: center; padding: var(--section) 0; }
.error-page .code { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: var(--teal); margin-bottom: 20px; }
.error-page h1 { margin-bottom: 14px; }
.error-page p { margin-bottom: 28px; }

/* ---------- Request a demo / booking ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.demo-intro { position: sticky; top: 104px; }
.page-hero--form .display { font-size: var(--step-3); }
.demo-steps { list-style: none; display: grid; gap: 4px; margin: 0 0 28px; counter-reset: d; }
.demo-steps li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 12px 0; color: var(--faint); }
.demo-steps li::before { content: counter(d); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.demo-steps li b { color: inherit; font-weight: 600; }
.demo-steps li span { font-size: var(--step--1); }
.demo-steps li.is-on { color: var(--text); }
.demo-steps li.is-on::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-steps li.is-done::before { content: "✓"; background: var(--teal); border-color: var(--teal); color: #fff; }
.demo-promises { list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }
.demo-promises li { padding-left: 22px; position: relative; }
.demo-promises li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 30px 60px -40px rgba(16,48,46,.35); }
.demo-form { display: grid; gap: 18px; }
.demo-form h2, .demo-booking h2, .demo-done h2 { margin-bottom: 0; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span[aria-hidden] { color: var(--teal); }
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field select { font: 400 0.9375rem/1.3 var(--font); color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 13px 14px; width: 100%; min-height: 50px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,87,214,.18); background-color: #fff; }
.field [aria-invalid="true"] { border-color: #B4372F; background-color: #FDF4F3; }
.field-msg { color: #B4372F; font-size: .88rem; }
.field option { font-size: 0.9375rem; }
@media (max-width: 560px) { .field input, .field select { font-size: 16px; } } /* stops iOS zoom on focus */
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-error { color: #B4372F; font-weight: 600; }
.demo-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.demo-booking, .demo-done { display: grid; gap: 14px; }
.demo-form[hidden], .demo-booking[hidden], .demo-done[hidden], .cal-inline[hidden] { display: none; }
.cal-inline { width: 100%; min-height: 560px; overflow: auto; border-radius: var(--radius-m); }
.cal-fallback { margin-top: 12px; }
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-intro { position: static; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Product film ---------- */
.film { position: relative; margin: 0; }
.film video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #0b0e13; }
.film-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--step--1); color: var(--faint); }
.film-caption details summary { cursor: pointer; color: var(--muted); }
.film-caption details p { margin-top: 8px; max-width: 46em; color: var(--muted); }

/* About */
.about-story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy { display: grid; gap: 18px; font-size: 1.1rem; line-height: 1.65; color: var(--muted); max-width: 40em; }
.about-copy p:first-child { color: var(--text); font-size: 1.22rem; }
.about-copy .actions { margin-top: 8px; }
@media (max-width: 800px) { .about-story { grid-template-columns: 1fr; } }
.film-fallback { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.film-fallback a { color: var(--blue); text-decoration: underline; }
.film-debug { margin-top: 8px; font: 12px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; }
