/* Althais landing page - editorial layout: warm off-white canvas, serif display
   headlines with an italic blue accent, mono micro-labels, soft-shadow cards. */

:root {
  --bg: #f8f8f8;
  --ink: #171717;
  --ink-2: #3d3d3d;
  --muted: #6f6f6f;
  --faint: #9a9a9a;
  --line: #e4e4e4;
  --card: #ffffff;
  --accent: oklch(0.56 0.19 258);
  --accent-dark: oklch(0.74 0.13 255);
  --accent-soft: oklch(0.95 0.03 255);
  --accent-bar: oklch(0.8 0.09 255);
  --dark: #111111;
  --amber: #b26a1e;
  --red: #b4432f;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 18px 50px rgba(30, 24, 16, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 24px; }
.em { font-style: italic; color: var(--accent); }
.rot { display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.rot.out { opacity: 0; transform: translateY(6px); }
.dim { color: var(--muted); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.arr { flex: none; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Inter", var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.logo span { padding-left: .2em; }
.logo svg { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
/* header: logo far left, Book A Demo far right, Platform / How It Works / Resources in the middle */
.nav-wide { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; padding-inline: 40px; }
.nav-wide .logo { justify-self: start; }
.nav-end { justify-self: end; display: flex; align-items: center; }
.nav-mid { display: flex; align-items: center; gap: 6px; }
.nav-item { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.nav-item:hover, .nav-dd.open .nav-item { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav-item svg { transition: transform .15s ease; }
.nav-dd { position: relative; }
.nav-dd:hover .nav-item svg, .nav-dd.open .nav-item svg { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); width: 300px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 20px 50px rgba(30, 24, 16, .12); opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-dd:hover .nav-menu, .nav-dd.open .nav-menu, .nav-dd:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: color-mix(in oklab, var(--ink) 5%, transparent); outline: none; }
.nav-menu b { display: block; font-size: 14px; font-weight: 500; }
.nav-menu span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-burger span { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav.sheet-open .nav-burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.sheet-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.sheet-open .nav-burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.nav.sheet-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
.nav-sheet { position: fixed; left: 0; right: 0; top: 68px; bottom: 0; z-index: 49; overflow-y: auto; padding: 12px 20px 32px; background: var(--bg); border-top: 1px solid var(--line); }
.nav-sheet[hidden] { display: none; }
.nav-sheet-group { border-bottom: 1px solid var(--line); }
.nav-sheet-group summary, .nav-sheet-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); text-decoration: none; cursor: pointer; }
.nav-sheet-link { border-bottom: 1px solid var(--line); }
.nav-sheet-group summary::-webkit-details-marker { display: none; }
.nav-sheet-group summary svg { color: var(--muted); transition: transform .2s ease; }
.nav-sheet-group[open] summary svg { transform: rotate(180deg); }
.nav-sheet-group a { display: block; padding: 10px 4px 10px 14px; margin-bottom: 4px; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.nav-sheet-group a:last-child { margin-bottom: 14px; }
.nav-sheet-group a b { display: block; font-size: 15px; font-weight: 500; }
.nav-sheet-group a span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.nav-sheet-cta { margin-top: 24px; width: 100%; justify-content: center; height: 50px; font-size: 15px; }
@media (max-width: 860px) {
  .nav-wide { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .nav-mid { display: none; }
  .nav-end .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}
.nav-links a:not(.btn):hover { color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-lg { height: 42px; padding: 0 16px; font-size: 14px; }
.btn-pill { height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; background: #f8f8f8; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
h1.display { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6.4vw, 92px); line-height: .96; letter-spacing: -.02em; }
.hero p.lede { margin-top: 32px; max-width: 560px; font-size: 20px; line-height: 1.6; color: var(--muted); }
.hero-cta { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card .eyebrow { font-size: 10.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #f5f5f5; font-size: 13px; color: var(--ink); }
.chip small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.hr { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.bignum { display: flex; align-items: baseline; gap: 12px; }
.bignum b { font-family: var(--mono); font-weight: 500; font-size: 28px; color: var(--accent); letter-spacing: -.02em; }
.bignum span { font-size: 14px; color: var(--muted); }

.result-head { display: flex; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.result-head .eyebrow:first-child { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.person { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 16px; display: grid; place-items: center; flex: none; }
.person b { font-family: var(--serif); font-weight: 500; font-size: 18px; display: block; line-height: 1.2; }
.person span { font-size: 14px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding: 9px 24px; font-size: 15px; }
.kv + .kv { border-top: 1px solid #efefef; }
.kv .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.kv .g { color: var(--accent); font-weight: 500; }
.kv-lock { background: #f4f4f3; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; padding: 10px 0; }
.kv-lock .kv { padding-block: 8px; }
.kv-lock .v { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kv-lock .v i { font-style: normal; letter-spacing: .3em; color: var(--faint); }

/* ---------- marquee ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.band-top { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 11.5px; background: #fff; }
.marq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq-track { display: flex; gap: 56px; width: max-content; animation: slide 46s linear infinite; }
.marq-track span { font-family: var(--serif); font-size: 24px; color: var(--ink-2); white-space: nowrap; }
@keyframes slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marq:hover .marq-track { animation-play-state: paused; }
.marq-logos .marq-track { gap: 0; align-items: center; animation-duration: 36s; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); }
.marq-logos img { -webkit-backface-visibility: hidden; backface-visibility: hidden; image-rendering: -webkit-optimize-contrast; }
.marq-logos img { height: var(--h, 50px); width: auto; flex: none; margin-right: 72px; display: block; }
@media (max-width: 640px) { .marq-logos img { height: calc(var(--h, 50px) * .72); margin-right: 44px; } .marq-logos .marq-track { animation-duration: 26s; } }
.marq-logos.rev .marq-track { animation-direction: reverse; }
/* dark mode: the logo strips become a frosted, see-through white panel so every logo keeps its real colours */
html[data-theme-resolved="dark"] .band { margin-inline: 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 24px; color-scheme: light;
  background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(246,247,250,.88));
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 24px 60px rgba(0,0,0,.45); }
html[data-theme-resolved="dark"] .band .eyebrow { color: #7c7f87; }
@media (max-width: 640px) { html[data-theme-resolved="dark"] .band { margin-inline: 8px; border-radius: 20px; } }
.band-2 { margin-top: 120px; }
@media (max-width: 960px) { .band-2 { margin-top: 84px; } }
@media (prefers-reduced-motion: reduce) { .marq-logos .marq-track { animation: none; } }

/* ---------- sections ---------- */
section.block { padding: 120px 0 0; }
.sec-head h2, h2.display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 72px); line-height: 1; letter-spacing: -.015em; margin-top: 20px; }
.sec-head p { margin-top: 26px; max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.sec-head p b { color: var(--ink); font-weight: 400; }
.g2 { color: #8b8b8b; }

/* steps */
.steps { margin-top: 72px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.steps-left { position: sticky; top: 110px; }
.step-mobile { display: none; }
.step-mobile h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; margin-top: 10px; }
.step-mobile p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.step-copy { display: none; }
.step-copy.on { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-copy .eyebrow { display: block; }
.step-copy h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin-top: 14px; }
.step-copy p { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 440px; }
.timeline { list-style: none; margin: 40px 0 0; padding: 0 0 0 0; position: relative; }
.timeline li { position: relative; padding: 9px 0 9px 26px; font-size: 14.5px; color: var(--faint); display: flex; gap: 12px; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #d8d8d8; }
.timeline li::after { content: ""; position: absolute; left: 3px; top: calc(50% + 4px); width: 1px; height: calc(100% - 0px); background: #dcdcdc; }
.timeline li:last-child::after { display: none; }
.timeline li i { font-style: normal; font-family: var(--mono); font-size: 11px; color: #b5b5b5; }
.timeline li.done { color: var(--muted); }
.timeline li.done::before, .timeline li.on::before { background: var(--accent); }
.timeline li.done::after { background: var(--accent); }
.timeline li.on { color: var(--ink); }
.timeline li.on i { color: var(--accent); }

.steps-right { display: flex; flex-direction: column; gap: 120px; padding-bottom: 60px; }
.step-card { display: flex; flex-direction: column; gap: 18px; min-height: 440px; justify-content: center; }
.tarea { min-height: 96px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.55; background: #fff; }
.tarea .caret { display: inline-block; width: 1px; height: 1.1em; background: var(--ink); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.rows { margin-top: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; font-size: 15px; }
.row + .row { border-top: 1px solid #efefef; }
.row .r { font-family: var(--mono); font-size: 14px; }
.row .r.g { color: var(--accent); }
.row .r.a { color: var(--amber); }
.row small { display: block; color: var(--faint); font-size: 12.5px; }
.card.soft { background: #fcfcfc; box-shadow: none; }
.card.soft .eyebrow { color: #b0b0b0; }
.code-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; }
.code-line + .code-line { border-top: 1px solid #efefef; }
.code-line .t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--accent); }
.code-line b { font-family: var(--mono); font-weight: 500; font-size: 17px; margin-right: 8px; }
.code-line span { font-size: 14px; color: var(--muted); }
.code-line .pct { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); }
.tag.n { background: #efefef; color: var(--muted); }
.tag.w { background: #f6e9d9; color: var(--amber); }
.tag.b { background: #f5e1dc; color: var(--red); }
.claims .row { padding: 13px 0; }
.claims .id { font-family: var(--mono); font-size: 13px; }

/* coverage */
.rule-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ink-2); }
.chips-rows { margin-top: 44px; display: grid; grid-template-columns: 170px 1fr; gap: 14px 0; align-items: start; }
.chips-rows .eyebrow { padding-top: 12px; line-height: 1.6; }
.chips-rows .chips { margin: 0; }
.chip-btn { padding: 8px 16px; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; gap: 10px; align-items: center; transition: background .15s, color .15s, border-color .15s; }
.chip-btn:hover { border-color: #bdbdbd; }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-btn small { font-family: var(--mono); font-size: 11.5px; opacity: .55; }
.board { margin-top: 44px; display: grid; grid-template-columns: 312px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.board-l { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.board-l .n { font-family: var(--mono); font-size: 52px; font-weight: 500; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.board-l .lead { margin-top: 18px; font-size: 16px; line-height: 1.4; }
.board-l .sub { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.board-r { padding: 24px 24px 26px; }
.board-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 12.5px; color: var(--faint); }
.tabs { display: inline-flex; gap: 6px; }
.tab { padding: 7px 14px; border-radius: 999px; border: 0; background: transparent; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tab.on { background: var(--ink); color: #fff; }
.bar-row { display: grid; grid-template-columns: 250px 1fr 56px; gap: 14px; align-items: center; padding: 10px 12px; font-size: 15.5px; font-weight: 500; }
.bar-row .track { height: 24px; background: #f4f4f3; border-radius: 3px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; width: 0; background: var(--accent-bar); border-radius: 3px; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar-row .v { font-family: var(--mono); font-size: 14px; text-align: right; font-weight: 400; }

.pillband { margin-top: 84px; border-top: 1px solid var(--line); padding-top: 34px; }
.pillband .eyebrow { margin-bottom: 22px; }
.pills-marq { display: flex; flex-direction: column; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pills-track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.pills-track.rev { animation-direction: reverse; animation-duration: 70s; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; white-space: nowrap; }
.pill b { font-weight: 600; }
.pill em { font-style: normal; color: var(--muted); }
.pill i { font-style: normal; font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* dark action block */
.dark { margin: 120px 16px 0; background: var(--dark); color: #fff; border-radius: 32px; padding: 112px 0 100px; }
.dark .eyebrow { color: var(--accent-dark); }
.dark h2.display { color: #fff; }
.dark .lede2 { margin-top: 26px; max-width: 700px; font-size: 18px; line-height: 1.65; color: #a8a8a8; }
.scn-tabs { margin-top: 44px; display: flex; gap: 10px; flex-wrap: wrap; }
.scn-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid #333; background: transparent; color: #ccc; font-size: 14px; transition: all .15s; }
.scn-tab:hover { border-color: #666; }
.scn-tab.on { background: #fff; color: var(--ink); border-color: #fff; }
.scn { margin-top: 44px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.share .eyebrow { color: #8d8d8d; }
.share-row { display: grid; grid-template-columns: 24px 122px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid #2c2c2c; }
.share-row:first-of-type { margin-top: 14px; border-top: 1px solid #2c2c2c; }
.share-row .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); transform: translateY(-2px); }
.share-row .d.o { background: #6a6a6a; }
.share-row .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; }
.share-row .val { font-family: var(--serif); font-size: 19px; color: #f1f1f1; }
.share-row .val.dimv { color: #8f8f8f; }
.share .note { margin-top: 26px; font-size: 13.5px; line-height: 1.7; color: #8d8d8d; }
.dark .em-dark { font-style: italic; color: var(--accent-dark); }
.chat { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.chat-head b { font-size: 15px; font-weight: 600; display: block; line-height: 1.25; }
.chat-head span { font-size: 13px; color: var(--muted); }
.chat-head .dot.live { margin-left: auto; box-shadow: 0 0 0 4px var(--accent-soft); }
.chat-head .spark { color: #fff; }
.spark { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 17px; flex: none; }
.chat-body { padding: 26px 24px 8px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.6; opacity: 0; animation: fadeUp .5s ease forwards; }
.msg.u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: #f3f5f9; border-bottom-left-radius: 4px; }
.msg mark { background: var(--accent-soft); color: var(--accent); padding: 0 5px; border-radius: 3px; }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; opacity: 0; animation: fadeUp .5s ease forwards; }
.srcs span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chat-foot { margin: 16px 24px 22px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .msg, .srcs { opacity: 1; animation: none; } }

/* quote */
.quote { padding: 110px 0 0; text-align: center; }
.quote hr { max-width: 770px; margin: 0 auto 84px; border: 0; height: 1px; background: var(--line); }
.quote .mark { font-family: var(--serif); font-size: 60px; line-height: .5; color: oklch(0.85 0.07 255); }
.quote blockquote { margin: 28px auto 0; max-width: 620px; font-family: var(--serif); font-size: 30px; line-height: 1.3; }
.quote .by { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.quote .by b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.quote .by span { font-size: 13px; color: var(--muted); }
.qdots { margin-top: 28px; display: flex; justify-content: center; gap: 8px; }
.qdot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: #d6d6d6; }
.qdot.on { background: var(--accent); }
.qfade { transition: opacity .25s ease; }
/* testimonials */
.tm-feature { margin: 56px 0 0; padding: 56px 64px 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); position: relative; }
.tm-mark { display: block; margin-bottom: 22px; color: var(--accent); opacity: .85; }
.tm-feature blockquote { margin: 0; max-width: 900px; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.22; letter-spacing: -.01em; }
.tm-feature figcaption { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-av { width: 52px; height: 52px; font-size: 19px; }
.tm-who b { display: block; font-size: 16px; font-weight: 500; }
.tm-who span { font-size: 14px; color: var(--muted); }
.tm-sep { width: 1px; height: 36px; background: var(--line); margin: 0 6px; }
.tm-logo { height: 34px; width: auto; display: block; }
.tm-org-text { height: auto; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[data-theme-resolved="dark"] .tm-org img.tm-logo { box-sizing: content-box; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.92); }
.tm-fade { transition: opacity .3s ease, transform .3s ease; }
.tm-fade.out { opacity: 0; transform: translateY(6px); }
.tm-nav { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.tm-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tm-arrow:hover { border-color: var(--ink); }
.tm-progress { display: flex; gap: 8px; flex: 1; max-width: 260px; }
.tm-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tm-progress i b { display: block; height: 100%; width: 0; background: var(--accent); }
.tm-progress i.done b { width: 100%; }
.tm-progress i.on b { animation: tmFill var(--tm-ms, 8000ms) linear forwards; }
.tm.paused .tm-progress i.on b { animation-play-state: paused; }
@keyframes tmFill { to { width: 100%; } }
.tm-cards { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tm-card { padding: 26px; display: flex; flex-direction: column; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.tm-card:hover { transform: translateY(-2px); }
.tm-card.on { border-color: var(--accent); }
.tm-card .tag { align-self: flex-start; }
.tm-card p { margin-top: 16px; font-family: var(--serif); font-size: 21px; line-height: 1.35; flex: 1; }
.tm-by { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.tm-by .avatar { width: 38px; height: 38px; font-size: 14px; }
.tm-by b { display: block; font-size: 14px; font-weight: 500; }
.tm-by span { font-size: 12.5px; color: var(--muted); }
.tm-try { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.tm-try:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .tm-cards { grid-template-columns: 1fr; } .tm-feature { padding: 36px 28px 32px; } .tm-mark { width: 32px; height: 26px; margin-bottom: 16px; } }
@media (max-width: 640px) { .tm-sep { display: none; } .tm-feature figcaption { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .tm-progress i.on b { animation: none; width: 100%; } .tm-fade { transition: none; } }

/* savings */
.save { margin-top: 44px; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.save .n { font-family: var(--mono); font-size: 40px; font-weight: 400; letter-spacing: -.02em; margin-top: 12px; }
.save .n.g { color: var(--accent); }
.save .n.d { color: var(--muted); }
.save p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.cmp { margin-top: 40px; }
.cmp-head { display: flex; justify-content: flex-end; gap: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cmp-head b { color: var(--accent); font-weight: 500; }
.cmp-row { display: grid; grid-template-columns: 296px 1fr 124px 84px; gap: 0; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cmp-row b { display: block; font-weight: 500; font-size: 16px; }
.cmp-row small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); max-width: 250px; line-height: 1.4; }
.cmp-bars { padding-top: 6px; padding-right: 30px; }
.cmp-bars .b { height: 5px; border-radius: 3px; background: #d4d4d4; position: relative; }
.cmp-bars .b i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.cmp-row .h, .cmp-row .a { font-family: var(--mono); font-size: 14px; text-align: right; color: var(--muted); }
.cmp-row .a { color: var(--accent); }
.foot-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); }

/* final cta + footer */
.cta { margin: 100px 16px 0; background: var(--dark); color: #fff; border-radius: 32px; padding: 130px 0 120px; text-align: center; }
.cta .eyebrow { color: var(--accent-dark); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 80px); line-height: 1.03; letter-spacing: -.015em; max-width: 780px; margin: 26px auto 0; }
.cta p { margin: 28px auto 0; max-width: 560px; font-size: 18px; line-height: 1.7; color: #a8a8a8; }
.cta .btn-pill { margin-top: 40px; }
.sf { margin-top: 80px; }

/* ---------- getting started: three setup steps ---------- */
.su { margin-top: 56px; }
.su-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.su-tab { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px 24px; border: 1px solid transparent; border-radius: 16px; background: none; font: inherit; font-size: 17px; color: var(--muted); text-align: left; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.su-tab:hover { color: var(--ink); }
.su-tab.on { color: var(--ink); border-color: var(--line); background: var(--card); box-shadow: var(--shadow); }
.su-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--card); transition: background .2s, color .2s, border-color .2s; }
.su-tab.on .su-n { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.su-bar { position: absolute; left: 18px; right: 18px; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.su-bar b { display: block; height: 100%; width: 0; background: var(--accent); }
.su-tab.done .su-bar b { width: 100%; }
.su-tab.on .su-bar b { animation: suFill var(--su-ms, 7000ms) linear forwards; }
.su.paused .su-tab.on .su-bar b { animation-play-state: paused; }
@keyframes suFill { from { width: 0; } to { width: 100%; } }
.su-panel { margin-top: 18px; padding: 18px; border-radius: 28px; }
/* every step sits in the same grid cell, so the panel is always as tall as the tallest step (Connect) */
.su-panel { display: grid; }
.su-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: stretch; }
.su-slide:not(.on) { visibility: hidden; opacity: 0; pointer-events: none; }
.su-slide.on { animation: fadeUp .5s ease; }
.su-copy { align-self: center; }
.su-copy { padding: 40px 24px 40px 40px; }
.su-count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--faint); }
.su-copy h3 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.015em; }
.su-copy p { margin-top: 22px; max-width: 420px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.su-stage { display: flex; flex-direction: column; justify-content: center; padding: 28px;  border-radius: 20px; background: radial-gradient(120% 90% at 85% 0%, var(--accent-soft), transparent 60%), #f3f4f7; }
.su-win { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.su-win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.su-brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Inter", var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; }
.su-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.su-status .dot.live { box-shadow: 0 0 0 4px var(--accent-soft); }
.su-link { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; padding: 34px 22px 26px; }
.su-node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.su-node b { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.su-node small { margin-top: 2px; font-size: 13px; color: var(--muted); }
.su-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line); background: #fafafa; color: var(--ink-2); }
.su-ico.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.su-wire { position: relative; height: 26px; display: grid; place-items: center; }
.su-wire i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); background-size: 200% 100%; animation: suFlow 2.4s linear infinite; }
.su-wire span { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--accent); }
@keyframes suFlow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.su-sync { padding: 6px 26px 24px; }
.su-sync-top { display: flex; justify-content: space-between; font-size: 15px; }
.su-pct { font-family: var(--mono); color: var(--muted); }
.su-meter { margin-top: 12px; height: 5px; border-radius: 5px; background: #eceef2; overflow: hidden; }
.su-meter b { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--accent); transition: width .25s linear; }
.su-sync-items { margin-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.su-sync-items .ok { color: var(--ink-2); }
.su-sync-items .wait { color: var(--faint); }
.su-rows { padding: 4px 22px 8px; margin: 0; }
.su-rows .row { padding: 11px 0; }
.su-paths { list-style: none; padding: 0; margin: 26px 0 0; max-width: 440px; }
.su-paths li { padding: 14px 0; border-top: 1px solid var(--line); }
.su-paths b { display: block; font-weight: 600; font-size: 15px; }
.su-paths span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.su-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #f1f2f4; }
.su-switch button { font: inherit; font-size: 13px; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.su-switch button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.su-modes { flex: 1; display: grid; }
.su-mode { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; }
.su-mode:not(.on) { visibility: hidden; opacity: 0; pointer-events: none; }
.su-mode.on { animation: fadeUp .4s ease; }
.su-pick { padding: 0 26px 18px; }
.su-pick-l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.su-tools { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.su-tool { padding: 6px 12px; border-radius: 999px; border: 1px dashed #cfd3da; font-size: 13px; color: var(--muted); }
.su-tool.on { border-style: solid; border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.su-suite { padding: 24px 22px 8px; }
.su-old, .su-new { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.su-old { opacity: .62; }
.su-old b, .su-new b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.15; }
.su-old small, .su-new small { font-size: 13px; color: var(--muted); }
.su-old .su-ico, .su-new .su-ico { width: 48px; height: 48px; border-radius: 12px; }
.su-new { border-color: transparent; background: var(--accent-soft); }
.su-down { text-align: center; padding: 6px 0; color: var(--faint); }
.su-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 22px 22px; }
.su-grid span { padding: 9px 6px; border-radius: 10px; background: #f6f7f9; font-size: 12.5px; text-align: center; }
.su-toggles { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.su-foot { padding: 0 22px 18px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 960px) {
  .su-tabs { gap: 8px; }
  .su-tab { padding: 14px 12px 20px; font-size: 15px; gap: 10px; }
  .su-bar { left: 12px; right: 12px; }
  .su-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 8px; }
  .su-copy { padding: 24px 12px 8px; }
  .su-stage { padding: 22px 14px; }
}
@media (max-width: 640px) {
  .su-tab { flex-direction: column; align-items: flex-start; font-size: 14px; }
  .su-n { width: 26px; height: 26px; font-size: 12px; }
  .su-panel { padding: 10px; border-radius: 22px; }
  .su-link { grid-template-columns: 1fr 56px 1fr; padding: 24px 8px 18px; }
  .su-ico { width: 52px; height: 52px; }
  .su-node b { font-size: 19px; }
  .su-sync { padding: 4px 16px 18px; }
  .su-win-head { flex-wrap: wrap; }
  .su-pick { padding: 0 16px 16px; }
  .su-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 16px; }
  .su-suite { padding: 18px 14px 6px; }
  .su-old, .su-new { grid-template-columns: auto 1fr; row-gap: 8px; }
  .su-old .tag, .su-new .tag { grid-column: 2; justify-self: start; }
  .su-old b, .su-new b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .su-tab.on .su-bar b { animation: none; width: 100%; } .su-wire i { animation: none; } .su-slide.on { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .nav-links { gap: 14px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero p.lede { font-size: 18px; }
  section.block { padding-top: 84px; }
  .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .steps-left { display: none; }
  .steps-right { gap: 64px; padding-bottom: 0; }
  .step-card { min-height: 0; justify-content: flex-start; }
  .step-mobile { display: block !important; }
  .chips-rows { grid-template-columns: 1fr; }
  .chips-rows .eyebrow { padding-top: 14px; }
  .board { grid-template-columns: 1fr; }
  .board-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .bar-row { grid-template-columns: 1fr 44px; row-gap: 8px; }
  .bar-row > span:first-child { grid-column: 1 / -1; }
  .scn { grid-template-columns: 1fr; gap: 36px; }
  .dark { margin-inline: 8px; padding: 72px 0; border-radius: 24px; }
  .chat-body { min-height: 0; padding: 20px 16px 4px; }
  .msg { max-width: 92%; font-size: 15px; }
  .chat-foot { margin: 14px 16px 18px; }
  .save { grid-template-columns: 1fr; }
  .cmp-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 18px 0; }
  .cmp-row > div:first-child { width: 100%; }
  .cmp-row small { max-width: none; }
  .cmp-bars { order: 2; width: 100%; padding: 4px 0 6px; }
  .cmp-row .h, .cmp-row .a { order: 3; white-space: nowrap; text-align: left; }
  .cmp-row .h::before { content: "By hand "; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .cmp-row .a::before { content: "Althais "; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .cmp-head { display: none; }
  .cta { margin-inline: 8px; padding: 84px 0; border-radius: 24px; }
  .quote blockquote { font-size: 25px; }
}

/* Ask Althea launcher */
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; width: 296px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px rgba(30, 24, 16, .14), 0 1px 6px rgba(30, 24, 16, .06); color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s ease, transform .5s ease, box-shadow .2s ease; }
.ask.show { opacity: 1; transform: none; pointer-events: auto; }
.ask.show:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(30, 24, 16, .18), 0 1px 6px rgba(30, 24, 16, .06); }
.ask-av { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.ask-av svg { width: 38px; height: 38px; }
.ask-tx { flex: 1; min-width: 0; line-height: 1.3; }
.ask-tx b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.ask-tx span { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.ask-go { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; transition: transform .2s ease; }
.ask-go svg { width: 16px; height: 16px; }
.ask:hover .ask-go { transform: translateX(2px); }
@media (max-width: 640px) { .ask { right: 12px; bottom: 12px; width: 280px; } }
@media (prefers-reduced-motion: reduce) { .ask, .ask-go { transition: none; } }

/* Ask Althea chat panel */
.ap { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 372px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 40px)); height: min(600px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 28px 80px rgba(30, 24, 16, .22), 0 2px 10px rgba(30, 24, 16, .06); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.98); transform-origin: bottom right; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.ap.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.ap-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); flex: none; }
.ap-av { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.ap-av svg { width: 36px; height: 36px; }
.ap-id { flex: 1; min-width: 0; line-height: 1.3; }
.ap-id b { display: block; font-size: 16px; font-weight: 600; }
.ap-id span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.ap-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.ap-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s; }
.ap-x:hover { color: var(--ink); border-color: #c9c9c9; }
.ap-theme .t-sun { display: none; }
html[data-theme-resolved="dark"] .ap-theme .t-sun { display: block; }
html[data-theme-resolved="dark"] .ap-theme .t-moon { display: none; }
.ap-head .ap-theme { margin-right: -4px; }
.ap-chips button.ap-mode { display: inline-flex; align-items: center; gap: 7px; }
.ap-chips button.ap-mode svg { flex: none; }
.ap-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.ap .msg { max-width: 88%; padding: 10px 14px; font-size: 14.5px; line-height: 1.58; }
.ap .srcs { padding-top: 2px; margin-top: -4px; }
.ap .srcs span { font-size: 9.5px; padding: 3px 9px; }
.ap-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; opacity: 0; animation: fadeUp .5s ease .15s forwards; }
.ap-cta:hover { background: #000; }
.ap-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; background: #f3f5f9; border-radius: 16px; border-bottom-left-radius: 4px; }
.ap-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b2; animation: apDot 1.1s infinite ease-in-out; }
.ap-typing i:nth-child(2) { animation-delay: .15s; }
.ap-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes apDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.ap-foot { flex: none; padding: 8px 16px 14px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ap-chips:empty { display: none; }
.ap-chips button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ap-chips button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ap-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ap-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px var(--sans); color: var(--ink); height: 36px; }
.ap-form input::placeholder { color: #a9a9a9; }
.ap-send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: opacity .15s; }
.ap-send:disabled { opacity: .35; cursor: default; }
.ap-note { margin: 10px 4px 0; font-size: 11.5px; line-height: 1.5; color: var(--faint); text-align: center; }
.ap-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ap-note a:hover { color: var(--ink); }
@media (max-width: 640px) { .ap { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; height: min(620px, calc(100vh - 24px)); height: min(620px, calc(100dvh - 24px)); } .ap-form input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .ap, .ap.open { transition: none; } .ap-body { scroll-behavior: auto; } .ap-typing i { animation: none; opacity: .7; } .ap-cta { opacity: 1; animation: none; } }

/* hero result card: labels keep the Title Case written in the markup instead of forcing caps */
.result .eyebrow, .result .kv .k { text-transform: none; letter-spacing: .12em; }

/* rolling digits (savings figures) */
.roll { line-height: 1.3; }
.roll .dg { display: inline-block; height: 1.3em; overflow: hidden; vertical-align: top; }
.roll .dgs { display: block; transition: transform 1.9s cubic-bezier(.16, .84, .24, 1); will-change: transform; }
.roll .dgs i { display: block; height: 1.3em; font-style: normal; }
.roll .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Althea section: lift the chat card so its top lines up with the scenario pills (wide desktop only, so it never crowds the pills) */
@media (min-width: 1140px) { .scn .chat { margin-top: -87px; } }

/* ---------- video hero (landing page): full-screen clips behind the header and headline ---------- */
.hero-vid { position: relative; isolation: isolate; min-height: max(640px, 100svh); margin-top: -69px; padding: 0; display: flex; color: #fff; overflow: hidden; background: #0d1117; }
.hv-media { position: absolute; inset: 0; z-index: -1; }
.hv-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hv-clip.on { opacity: 1; }
.hv-shade { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, rgba(8,12,20,.62) 0%, rgba(8,12,20,.38) 38%, rgba(8,12,20,.55) 72%, rgba(8,12,20,.86) 100%); }
.hv-in { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 150px; padding-bottom: 128px; max-width: 1240px; }
.hv-eyebrow { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 14px; font-weight: 500; letter-spacing: .01em; color: #fff; margin-bottom: 22px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(8,12,20,.35); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hv-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 0 3px rgba(130,170,240,.25); }
.hero-vid h1.display { color: #fff; font-size: clamp(56px, 8.4vw, 132px); line-height: .92; max-width: 13ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-vid .em { color: var(--accent-dark); }
.hv-foot { margin-top: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-vid .hero-cta { margin-top: 0; }
.hero-vid p.lede { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); }
.btn-light { background: #fff; color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
/* the header is transparent with white text while it sits on the video */
body.vhero:not(.vhero-past) .nav:not(.sheet-open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .logo,
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-item { color: #fff; }
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-item:hover,
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-dd.open .nav-item { background: rgba(255,255,255,.12); }
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-cta { background: #fff; color: var(--ink); }
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-burger { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
body.vhero:not(.vhero-past) .nav:not(.sheet-open) .nav-burger span { background: #fff; }
body.vhero .nav { transition: background .25s ease, border-color .25s ease; }
@media (max-width: 860px) {
  .hero-vid { min-height: 600px; }
  .hv-in { padding-top: 120px; padding-bottom: 64px; }
  .hv-foot { margin-top: 32px; flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .hv-in { padding-bottom: 72px; }
  }

/* ================= Landing page, editorial grotesque look (body.rcl) =================
   Warm off-white canvas, large light sans headings, a blue eyebrow over each heading, square tiles, thin rules,
   and a black closing section with the footer. Scoped to the landing page; the other site pages are unchanged. */
body.rcl { --bg: #f5f2ee; --tile: #ece7e1; --line: #e2dcd5; --ink: #111; --muted: #5e5a55; --faint: #8a857f; --rsans: "Inter Tight", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); font-family: var(--rsans); }
body.rcl .eyebrow { font-family: var(--rsans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--accent); font-weight: 500; }
body.rcl .card .eyebrow, body.rcl .su-panel .eyebrow, body.rcl .board .eyebrow, body.rcl .chat .eyebrow, body.rcl .share .eyebrow { font-size: 12px; color: var(--faint); }
body.rcl .em, body.rcl .em-dark { font-style: normal; }
body.rcl h1.display, body.rcl h2.display, body.rcl .sec-head h2, body.rcl .cta h2 { font-family: var(--rsans); font-weight: 400; letter-spacing: -.035em; }
body.rcl .sec-head h2 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; margin-top: 14px; }
body.rcl .sec-head p { font-size: 17px; }
body.rcl .sec-head.center { text-align: center; margin-inline: auto; }
body.rcl .sec-head.center p { margin-inline: auto; }
body.rcl .block { padding-top: 120px; }
body.rcl .card { border-radius: 2px; box-shadow: none; border-color: var(--line); }
body.rcl .btn { border-radius: 2px; }
body.rcl .btn-accent { background: var(--accent); color: #fff; }
body.rcl .btn-accent:hover { background: oklch(0.5 0.19 258); }
body.rcl .step-copy h3, body.rcl .su-copy h3 { font-family: var(--rsans); font-weight: 400; letter-spacing: -.025em; }

/* hero: light grotesque, like the rest */
body.rcl .hero-vid h1.display { font-weight: 300; font-size: clamp(60px, 8.6vw, 140px); line-height: .94; letter-spacing: -.045em; max-width: 12ch; text-shadow: none; }
body.rcl .hv-eyebrow { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 22px; font-weight: 400; color: var(--accent-dark); }
body.rcl .hv-eyebrow::before { display: none; }
body.rcl .btn-light { border-radius: 2px; }
body.rcl .hero-vid .btn-light { background: var(--accent); color: #fff; }

/* trusted by */
body.rcl .band { border: 0; padding: 40px 0 8px; }
body.rcl .band-top .eyebrow { font-size: 15px; color: var(--ink); font-weight: 500; }

/* who we serve */
.rc-cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rc-card { position: relative; display: block; padding-bottom: 64px; color: var(--ink); }
.rc-card img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.rc-card .rc-cap { position: absolute; left: 0; bottom: 0; width: 88%; }
.rc-cap { background: var(--bg); padding: 22px 22px 24px; }
.rc-cap h3 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.rc-cap p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.rc-card:hover img { filter: brightness(1.04); }
.rc-card:hover h3 { color: var(--accent); }

/* testimonials, squared */
body.rcl .tm-feature { border-radius: 2px; }
body.rcl .tm-card { border-radius: 2px; }
body.rcl .tm-card.on { background: var(--accent); color: #fff; border-color: var(--accent); }
body.rcl .tm-card.on p, body.rcl .tm-card.on .tm-by span, body.rcl .tm-card.on .tm-try { color: rgba(255,255,255,.9); }
body.rcl .tm-card.on .tag { background: rgba(255,255,255,.18); color: #fff; }
body.rcl .tm-card.on .avatar { background: rgba(255,255,255,.2); color: #fff; }
body.rcl blockquote#tm-text { font-family: var(--rsans); font-weight: 300; letter-spacing: -.025em; }

/* city banner */
.rc-city { margin-top: 120px; min-height: 620px; display: flex; align-items: center; background-size: cover; background-position: center; position: relative; isolation: isolate; color: #fff; }
.rc-city::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,14,26,.72) 0%, rgba(8,14,26,.35) 55%, rgba(8,14,26,.1) 100%); }
.rc-city .eyebrow { color: var(--accent-dark) !important; }
.rc-city h2 { margin: 16px 0 34px; max-width: 640px; font-size: clamp(42px, 5vw, 72px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.rc-city .em { color: var(--accent-dark); }

/* products */
.rc-tool { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; border-top: 1px solid var(--line); }
.rc-tool.flip .rc-tool-copy { order: 2; }
.rc-tool h3 { margin-top: 10px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.rc-tag { margin-top: 12px; font-size: 16px; color: var(--muted); }
.rc-proof-h { margin-top: 30px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.rc-proof-h .rx { color: var(--accent); }
.rc-bul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rc-bul.two { grid-template-columns: 1fr 1fr; }
.rc-bul li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink-2); }
.rc-bul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rc-tiles { margin: 26px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rc-tiles > div { background: var(--tile); padding: 16px 14px 14px; }
.rc-tiles b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.03em; color: var(--ink); }
.rc-tiles span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.rc-tool-img { position: relative; }
.rc-tool-img img { display: block; width: 100%; aspect-ratio: 5 / 4.2; object-fit: cover; }
.rc-cap.sm { position: absolute; left: 22px; bottom: 22px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.6); background: rgba(245,242,238,.94); }
.rc-cap.sm h4 { margin: 0; font-size: 19px; font-weight: 400; letter-spacing: -.015em; }

/* integrations */
.rc-int { background: var(--bg); }
.rc-int-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rc-int h2 { margin-top: 14px; font-size: clamp(36px, 3.8vw, 54px); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.rc-int-copy > p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 460px; }
.rc-int .btn-accent { margin-top: 28px; }
.rc-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rc-logo { background: #fff; height: 104px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rc-logo img { max-width: 80%; object-fit: contain; }
.rc-logo.txt { font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); }

/* closing: black, with security tiles; the footer below continues it */
.rc-close { margin-top: 120px; background: #050505; color: #fff; padding: 96px 0 40px; }
.rc-close-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.rc-close h2 { max-width: 620px; font-size: clamp(36px, 3.8vw, 54px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.rc-close-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rc-hatch { height: 14px; margin: 64px 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 2px, transparent 2px 9px); }
.rc-close .eyebrow { color: var(--accent-dark) !important; }
.rc-sec-h { margin-top: 10px; font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.rc-sec { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rc-sec > div { background: #121212; border: 1px solid #1f1f1f; padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rc-sec-i { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(130,170,240,.12); color: var(--accent-dark); margin-bottom: 8px; }
.rc-sec b { font-size: 15px; font-weight: 500; }
.rc-sec span:not(.rc-sec-i) { font-size: 13px; color: #a3a3a3; line-height: 1.45; }
body.rcl .dark { border-radius: 0; margin: 120px 0 0; }
body.rcl .dark h2.display { font-size: clamp(44px, 5vw, 72px); }

/* footer on the landing page: black, continuing the closing section */
body.rcl .sf { --sf-bg: #050505; --sf-ink: #fff; --sf-ink-2: #c8c8c8; --sf-muted: #9a9a9a; --sf-faint: #7c7c7c; --sf-line: #222; --sf-card: #141414; border-top: 0; }
body.rcl .sf-tag { font-family: var(--rsans) !important; font-size: 22px !important; letter-spacing: -.02em; }
body.rcl .sf-news button { background: var(--accent) !important; }
body.rcl .sf svg { color: #fff; }

@media (max-width: 860px) {
  .rc-cards { grid-template-columns: 1fr; }
  .rc-tool, .rc-int-in { grid-template-columns: 1fr; gap: 28px; }
  .rc-tool.flip .rc-tool-copy { order: 0; }
  .rc-sec { grid-template-columns: 1fr 1fr; }
  .rc-bul.two { grid-template-columns: 1fr; }
  .rc-city { min-height: 480px; }
}
/* the dark Althea section, the black closing and the footer run together with no beige between them */
body.rcl .dark + .rc-close, body.rcl .dark ~ .rc-close { margin-top: 0; }
body.rcl .sf { margin-top: 0 !important; }
body.rcl .tm-card p { font-family: var(--rsans); font-weight: 300; font-size: 19px; letter-spacing: -.015em; }
body.rcl .dark { padding-bottom: 80px; }
body.rcl .hero-vid h1.display { font-size: clamp(54px, 7.4vw, 120px); max-width: none; }

/* landing header at RapidClaims scale: 88px bar, 30px logo, 16px menus, 46px demo button */
body.rcl .nav-in { height: 88px; }
body.rcl .logo { gap: 13px; font-size: 20px; letter-spacing: .3em; }
body.rcl .logo svg { width: 30px; height: 30px; }
body.rcl .nav-mid { gap: 10px; }
body.rcl .nav-item { height: 44px; padding: 0 14px; font-size: 16px; gap: 7px; }
body.rcl .nav-item svg { width: 13px; height: 13px; }
body.rcl .nav-cta { height: 46px; padding: 0 18px; font-size: 14px; font-weight: 700; gap: 10px; }
body.rcl .nav-cta .arr { width: 15px; height: 15px; }
body.rcl .nav-sheet { top: 88px; }
body.rcl .hero-vid { margin-top: -89px; }
body.rcl .hv-in { padding-top: 170px; }
@media (max-width: 860px) {
  body.rcl .nav-in { height: 72px; }
  body.rcl .logo { font-size: 17px; }
  body.rcl .logo svg { width: 26px; height: 26px; }
  body.rcl .nav-sheet { top: 72px; }
  body.rcl .hero-vid { margin-top: -73px; }
}
@media (max-width: 860px) { body.rcl .hv-eyebrow { font-size: 16px; } }

/* landing header layout: logo, menus and buttons inside the 1120px content column; Login + Request Demo side by side */
body.rcl .nav-rc .nav-in.nav-wide { width: min(1120px, calc(100% - 48px)); max-width: none; margin-inline: auto; padding-inline: 0; grid-template-columns: auto 1fr auto; }
body.rcl .nav-rc .nav-mid { justify-self: center; gap: 18px; }
body.rcl .nav-rc .nav-item { padding: 0 6px; }
body.rcl .nav-rc .nav-end { gap: 4px; padding: 4px 0; }
body.rcl .nav-rc .nav-login, body.rcl .nav-rc .nav-cta { height: 46px; padding: 0 16px; border-radius: 4px; font-size: 14px; font-weight: 700; border: 0; }
body.rcl .nav-rc .nav-login { background: rgba(17,17,17,.07); color: var(--ink); }
body.rcl .nav-rc .nav-cta { background: var(--accent); color: #fff; }
body.rcl .nav-rc .nav-cta:hover { background: oklch(0.5 0.19 258); }
body.vhero.rcl:not(.vhero-past) .nav-rc:not(.sheet-open) .nav-login { background: rgba(255,255,255,.1); color: #fff; }
body.vhero.rcl:not(.vhero-past) .nav-rc:not(.sheet-open) .nav-cta { background: var(--accent); color: #fff; }
@media (max-width: 860px) { body.rcl .nav-rc .nav-login { display: none; } }
body.rcl .nav-rc .nav-sheet summary, body.rcl .nav-rc .nav-sheet-link { font-family: var(--rsans); font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
body.rcl .nav-rc .nav-sheet-cta { background: var(--accent); color: #fff; border-radius: 4px; font-weight: 700; }

/* hero laid out like the reference: eyebrow + two-line headline in the upper middle, credential bottom left,
   description with a solid button and an underlined link bottom right; the same edge insets as the header */
body.rcl .nav-rc .nav-in.nav-wide { width: 100%; padding-inline: clamp(24px, 10.6vw, 160px); }
body.rcl .nav-rc .nav-end { padding: 4px; gap: 4px; border-radius: 6px; background: rgba(17,17,17,.06); border: 1px solid rgba(17,17,17,.08); }
body.vhero.rcl:not(.vhero-past) .nav-rc:not(.sheet-open) .nav-end { background: rgba(10,10,10,.35); border-color: rgba(255,255,255,.12); }
body.rcl .nav-rc .nav-login, body.rcl .nav-rc .nav-cta { height: 44px; border-radius: 3px; }
body.rcl .hv-in { width: 100%; max-width: none; margin: 0; padding: 0 clamp(24px, 10.6vw, 160px); min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: max(150px, 25vh); padding-bottom: 44px; }
body.rcl .hero-vid { min-height: max(680px, 100svh); }
body.rcl .hv-shade { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px), linear-gradient(180deg, rgba(12,12,14,.55) 0%, rgba(12,12,14,.5) 50%, rgba(12,12,14,.62) 100%); }
body.rcl .hv-eyebrow { color: #5b9bff; font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; margin: 0 0 clamp(18px, 2.2vw, 30px); letter-spacing: -.01em; opacity: 1; }
body.rcl .hero-vid h1.display { color: #fff; font-weight: 400; font-size: clamp(54px, 8.9vw, 156px); line-height: .98; letter-spacing: -.035em; max-width: 11.5ch; }
body.rcl .hero-vid h1 .em, body.rcl .hero-vid h1 .rot { color: #fff; }
body.rcl .hv-foot { margin-top: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
body.rcl .hv-cred { margin: 0; max-width: 400px; font-size: 18px; line-height: 1.55; color: #fff; }
body.rcl .hv-cred b { font-weight: 600; }
body.rcl .hv-right { width: min(570px, 46%); }
body.rcl .hero-vid p.lede { max-width: none; font-size: 19px; line-height: 1.6; color: #fff; }
body.rcl .hv-right .hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
body.rcl .hv-btn { height: 46px; padding: 0 20px; gap: 22px; font-size: 15px; font-weight: 700; border-radius: 3px; }
body.rcl .hv-link { display: inline-flex; align-items: center; gap: 22px; font-size: 15px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
body.rcl .hv-link:hover { opacity: .85; }
@media (max-width: 860px) {
  body.rcl .hv-in { padding-top: 130px; }
  body.rcl .hv-foot { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  body.rcl .hv-right { width: 100%; }
  body.rcl .hero-vid p.lede { font-size: 16px; }
  body.rcl .hv-cred { font-size: 15px; }
  body.rcl .nav-rc .nav-end { padding: 0; background: none !important; border: 0 !important; }
}
body.rcl .hv-in { padding-bottom: 112px; }
@media (max-width: 860px) { body.rcl .hv-in { padding-bottom: 104px; } }
@media (max-width: 860px) { body.rcl .hv-eyebrow { font-size: 15px; } }

/* the hero always fills exactly one screen: height is the viewport, and type and spacing scale with height too */
body.rcl .hero-vid { height: 100svh; min-height: 560px; }
body.rcl .hv-in { padding-top: clamp(96px, 20vh, 220px); padding-bottom: clamp(84px, 12vh, 112px); }
body.rcl .hv-eyebrow { font-size: clamp(16px, min(1.7vw, 2.7vh), 24px); margin-bottom: clamp(10px, 2.6vh, 30px); }
body.rcl .hero-vid h1.display { font-size: clamp(44px, min(8.9vw, 15vh), 156px); }
body.rcl .hv-foot { margin-top: clamp(16px, 4vh, 48px); }
body.rcl .hero-vid p.lede { font-size: clamp(15px, min(1.3vw, 2.2vh), 19px); }
body.rcl .hv-right .hero-cta { margin-top: clamp(14px, 3.4vh, 36px); }
body.rcl .hv-cred { font-size: clamp(14px, min(1.2vw, 2.1vh), 18px); }
@media (max-width: 860px) {
  body.rcl .hero-vid { min-height: 520px; }
  body.rcl .hv-in { padding-top: clamp(84px, 14vh, 130px); padding-bottom: clamp(88px, 13vh, 104px); }
  body.rcl .hero-vid h1.display { font-size: clamp(36px, min(11vw, 7vh), 56px); }
  body.rcl .hv-foot { gap: clamp(12px, 2.6vh, 28px); }
}

/* over the hero, Althea is just its round icon (so it never covers the hero buttons); it opens back out after the hero */
body.rcl.vhero:not(.vhero-past) .ask { width: 62px; padding: 9px; border-radius: 50%; gap: 0; justify-content: center; }
body.rcl.vhero:not(.vhero-past) .ask .ask-tx, body.rcl.vhero:not(.vhero-past) .ask .ask-go { display: none; }
body.rcl .ask { transition: width .25s ease, border-radius .25s ease, opacity .3s ease, transform .3s ease, box-shadow .2s ease; }
/* two lines, always: "From encounter," / "to <word>." sized so the longest word still fits on the second line */
body.rcl .hero-vid h1.display { max-width: none; font-size: clamp(44px, min(7.5vw, 15vh), 150px); }
body.rcl .hv-l2 { white-space: nowrap; }
@media (max-width: 860px) { body.rcl .hero-vid h1.display { font-size: clamp(32px, min(9.6vw, 7vh), 56px); } }
/* the blue line above the headline: heavier and more solid so it reads as strongly as the other hero text */
body.rcl .hv-eyebrow { font-weight: 500; color: #6aa6ff; -webkit-font-smoothing: auto; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
body.rcl .hv-left { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.6vh, 14px); }
body.rcl .hv-roi { gap: 14px; font-size: clamp(14px, min(1.1vw, 2vh), 16px); }
/* hero: plain dark overlay, no diagonal line texture */
body.rcl .hv-shade { background: linear-gradient(180deg, rgba(12,12,14,.55) 0%, rgba(12,12,14,.5) 50%, rgba(12,12,14,.62) 100%); }
/* the ROI link takes the button's height, so its text sits on the same line as "Join the Pilot" and "Explore Althais" */
body.rcl .hv-roi { min-height: 46px; align-items: center; }
@media (max-width: 860px) { body.rcl .hv-roi { min-height: 0; } }
/* no Althea button over the hero; it appears once you scroll past it */
body.rcl.vhero:not(.vhero-past) .ask { opacity: 0 !important; visibility: hidden; pointer-events: none !important; }

/* after scrolling past the hero: a white bar with a thin rule, and Login + Request Demo inside a white box with a soft shadow */
body.rcl.vhero-past .nav-rc, body.rcl:not(.vhero) .nav-rc { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid #ececec; }
body.rcl.vhero-past .nav-rc .nav-end { background: #fff; border: 1px solid #ededed; box-shadow: 0 2px 10px rgba(17,17,17,.07), 0 1px 2px rgba(17,17,17,.04); }
body.rcl.vhero-past .nav-rc .nav-login { background: #fff; color: #111; }
body.rcl.vhero-past .nav-rc .nav-login:hover { background: #f4f4f4; }
body.rcl.vhero-past .nav-rc .nav-item { color: #111; }
/* scrolled header is solid white: nothing on the page shows through it */
body.rcl.vhero-past .nav-rc, body.rcl:not(.vhero) .nav-rc { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* scrolling over the hero video: dark frosted glass, white menus, the video blurred out behind it */
body.rcl.vhero.vhero-scroll:not(.vhero-past) .nav-rc:not(.sheet-open) { background: rgba(38,38,40,.62) !important; -webkit-backdrop-filter: blur(28px) saturate(1.3) !important; backdrop-filter: blur(28px) saturate(1.3) !important; border-bottom: 1px solid rgba(255,255,255,.06); }
body.rcl.vhero.vhero-scroll:not(.vhero-past) .nav-rc .nav-end { background: rgba(20,20,22,.45); border-color: rgba(255,255,255,.1); }

/* narrower header column with slightly smaller parts; the hero text lines up with it */
body.rcl { --col: min(1120px, calc(100% - 48px)); --col-pad: max(24px, calc((100% - 1120px) / 2)); }
body.rcl .nav-rc .nav-in.nav-wide { width: 100%; padding-inline: var(--col-pad); height: 76px; }
body.rcl .nav-rc .logo { font-size: 17px; gap: 11px; }
body.rcl .nav-rc .logo svg { width: 25px; height: 25px; }
body.rcl .nav-rc .nav-mid { gap: 12px; }
body.rcl .nav-rc .nav-item { height: 38px; font-size: 15px; padding: 0 6px; }
body.rcl .nav-rc .nav-item svg { width: 12px; height: 12px; }
body.rcl .nav-rc .nav-end { padding: 3px; gap: 3px; }
body.rcl .nav-rc .nav-login, body.rcl .nav-rc .nav-cta { height: 38px; padding: 0 14px; font-size: 13.5px; }
body.rcl .nav-rc .nav-cta .arr { width: 13px; height: 13px; }
body.rcl .nav-sheet { top: 76px; }
body.rcl .hero-vid { margin-top: -77px; }
body.rcl .hv-in { padding-inline: var(--col-pad); }
@media (max-width: 860px) {
  body.rcl .nav-rc .nav-in.nav-wide { height: 68px; }
  body.rcl .nav-sheet { top: 68px; }
  body.rcl .hero-vid { margin-top: -69px; }
}

/* ===== below the hero: solutions tabs, who we work with, results ===== */
body.rcl main { background: #fff; }
.sx-head { text-align: center; padding: 0 24px; }
.sx-head .eyebrow { color: var(--accent); font-size: 17px; font-weight: 500; }
.sx-head h2 { margin-top: 14px; font-size: clamp(40px, 4.6vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.sx-head p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 22px); color: #3d3d3d; }
.sx-rot { display: inline-block; color: var(--accent); transition: opacity .3s ease, transform .3s ease; }
.sx-rot.out { opacity: 0; transform: translateY(5px); }

/* solutions */
.sx { padding: 110px 0 0; }
.sx-tabs { margin: 72px auto 0; padding: 0 var(--col-pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sx-tab { position: relative; text-align: left; background: none; border: 0; padding: 0 0 26px; cursor: pointer; color: #111; }
.sx-k { display: block; font-size: 15px; color: #6a6a6a; }
.sx-tab b { display: block; margin-top: 8px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; letter-spacing: -.025em; transition: color .2s; }
.sx-s { display: block; margin-top: 10px; font-size: 16px; color: #111; }
.sx-tab.on b { color: var(--accent); }
.sx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.sx-bar em { display: block; height: 100%; width: 0; background: var(--accent); }
.sx-tab.on .sx-bar em { animation: sxfill 8s linear forwards; }
.sx.still .sx-tab.on .sx-bar em { animation: none; width: 100%; }
@keyframes sxfill { from { width: 0; } to { width: 100%; } }
.sx-tab:hover b { color: var(--accent); }
.sx-panels { background: #f4f3f1; }
.sx-panel { display: none; grid-template-columns: 1fr 1fr; min-height: 640px; }
.sx-panel.on { display: grid; animation: sxin .45s ease; }
@keyframes sxin { from { opacity: 0; } to { opacity: 1; } }
.sx-copy { padding: 88px 56px 88px var(--col-pad); }
.sx-copy .eyebrow { color: var(--accent); font-size: 17px; }
.sx-copy h3 { margin-top: 14px; font-size: clamp(40px, 4.2vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.sx-prob { margin-top: 64px; display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid #dcd9d4; }
.sx-prob b { font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.sx-prob p { font-size: 15.5px; line-height: 1.6; color: #4a4a4a; }
.sx-appr { margin-top: 36px; }
.sx-appr > b { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.sx-appr .rx { color: var(--accent); }
.sx-appr p { margin-top: 14px; padding-left: 25px; font-size: 15.5px; line-height: 1.6; color: #4a4a4a; max-width: 520px; }
.sx-appr ul { margin: 18px 0 0; padding: 0 0 0 25px; list-style: none; display: grid; gap: 10px; }
.sx-appr li { position: relative; padding-left: 18px; font-size: 15.5px; color: #111; }
.sx-appr li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.sx-media { position: relative; overflow: hidden; }
.sx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* who we work with */
.wc { padding: 130px 0 0; }
.wc-wrap { position: relative; margin-top: 64px; }
.wc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wc-track::-webkit-scrollbar { display: none; }
.wc-card { position: relative; display: block; scroll-snap-align: start; padding-bottom: 70px; color: #111; }
.wc-card img { display: block; width: 100%; aspect-ratio: 1 / .86; object-fit: cover; }
.wc-cap { position: absolute; left: 10px; bottom: 0; width: 82%; background: #f4f3f1; padding: 26px 30px 28px; }
.wc-cap h3 { font-size: clamp(22px, 2vw, 32px); font-weight: 400; letter-spacing: -.03em; }
.wc-cap p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: #3d3d3d; }
.wc-card:hover h3 { color: var(--accent); }
.wc-arrow { position: absolute; top: 38%; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(120,120,120,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wc-arrow:hover { background: rgba(80,80,80,.7); }
.wc-arrow.prev { left: var(--col-pad); }
.wc-arrow.next { right: var(--col-pad); }

/* results */
.rs { padding: 130px 0 120px; }
.rs-grid { margin: 64px auto 0; width: calc(100% - 2 * max(24px, calc((100% - 1200px) / 2))); display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 10px; }
.rs-card { margin: 0; display: flex; flex-direction: column; padding: 40px 40px 36px; background: #f4f3f1; min-height: 560px; }
.rs-card.accent { background: var(--accent); color: #fff; }
.rs-card.dark { background: #111; color: #fff; min-height: 0; flex: 1; padding: 30px; }
.rs-card blockquote { margin: 0; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.45; letter-spacing: -.01em; }
.rs-card.dark blockquote { font-size: 16.5px; }
.rs-card figcaption { margin-top: 34px; font-size: 15px; font-weight: 500; }
.rs-card figcaption span { display: block; margin-top: 4px; font-weight: 400; opacity: .75; }
.rs-facts { margin-top: auto; padding-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rs-facts b { display: block; font-size: clamp(34px, 3.2vw, 52px); font-weight: 400; letter-spacing: -.04em; }
.rs-facts span { display: block; margin-top: 8px; font-size: 14px; opacity: .8; }
.rs-side { display: flex; flex-direction: column; gap: 10px; }
.rs-logo { background: #f4f3f1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 40px 24px; min-height: 260px; }
.rs-logo img { max-width: 70%; max-height: 60px; object-fit: contain; }

/* hero runs a little past the first screen; its text stays within the first screen */
body.rcl .hero-vid { height: 112svh; }
body.rcl .hv-in { height: 100svh; min-height: 0; }
body.rcl .hero-vid { align-items: flex-start; }

@media (max-width: 960px) {
  .sx-tabs { grid-template-columns: 1fr; gap: 18px; }
  .sx-panel.on { display: block; }
  .sx-copy { padding: 56px 24px; }
  .sx-prob { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .sx-media { height: 320px; }
  .wc-track { grid-auto-columns: 82%; padding: 0 24px; }
  .wc-arrow { display: none; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-card { min-height: 0; }
}

/* product screenshots in the solutions panels: framed on a soft blue field instead of a full-bleed photo */
.sx-media.shot { display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: radial-gradient(120% 90% at 70% 20%, #dce8fb 0%, #eaf1fc 45%, #f4f3f1 100%); }
.sx-media.shot img { position: static; width: auto; height: auto; max-width: 100%; max-height: 560px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(17,24,39,.08); box-shadow: 0 30px 70px rgba(20,40,80,.18), 0 4px 14px rgba(20,40,80,.08); background: #fff; }
/* the trusted-by strip on the white page, under the hero */
body.rcl .band { background: #fff; padding: 56px 0 8px; }
@media (max-width: 960px) { .sx-media.shot { height: auto; padding: 28px 20px; } .sx-media.shot img { max-height: 420px; } }
/* every product screenshot sits in the same 4:3 frame */
.sx-media.shot img { width: 100%; max-width: 620px; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; }
/* more breathing room between the hero video and the trusted-by strip */
body.rcl .band { padding-top: 96px; }
@media (max-width: 860px) { body.rcl .band { padding-top: 64px; } }

/* results: three equal quote cards */
.rs-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; align-items: stretch; }
.rs-card { min-height: 0 !important; padding: 36px 34px 30px !important; background: #f4f3f1; border-radius: 4px; }
.rs-card.accent { background: var(--accent); color: #fff; }
.rs-q { color: var(--accent); opacity: .9; }
.rs-card.accent .rs-q { color: #fff; opacity: .55; }
.rs-card blockquote { margin: 22px 0 0 !important; flex: 1; font-size: clamp(18px, 1.4vw, 21px) !important; line-height: 1.5 !important; }
.rs-card figcaption { margin-top: 32px !important; padding-top: 22px; border-top: 1px solid rgba(17,17,17,.1); display: flex; align-items: center; gap: 12px; font-weight: 400 !important; }
.rs-card.accent figcaption { border-color: rgba(255,255,255,.25); }
.rs-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: #fff; color: var(--accent); }
.rs-card.accent .rs-av { background: rgba(255,255,255,.2); color: #fff; }
.rs-who { min-width: 0; flex: 1; }
.rs-who b { display: block; font-size: 15px; font-weight: 600; }
.rs-who span { display: block !important; margin-top: 2px !important; font-size: 13px; opacity: .72; }
.rs-org { flex: none; display: flex; align-items: center; }
.rs-org img { height: 30px; max-width: 110px; object-fit: contain; }
.rs-card.accent .rs-org img { filter: brightness(0) invert(1); opacity: .9; }
.rs-txt { font-size: 18px; font-weight: 700; letter-spacing: .04em; opacity: .7; }
@media (max-width: 960px) { .rs-grid { grid-template-columns: 1fr !important; } }
.rs-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.rs-card blockquote { margin-top: 26px !important; }
.rs-card figcaption { margin-top: auto !important; min-height: 86px; }
.rs-card blockquote { margin-bottom: 32px !important; }
.rs-av { display: flex !important; margin: 0 !important; padding: 0; line-height: 1; }
.rs-who span { white-space: normal; }
.rs-org img { height: 28px; max-width: 130px; }

/* footer on the landing page: white, with dark text and a thin rule on top */
body.rcl .sf { --sf-bg: #fff; --sf-ink: #111; --sf-ink-2: #3d3d3d; --sf-muted: #6f6f6f; --sf-faint: #8a8a8a; --sf-line: #e6e6e6; --sf-card: #fff; border-top: 1px solid #ececec !important; }
body.rcl .sf svg { color: #111; }

/* a thin gray rule between each section, the same one the footer uses */
body.rcl .sx, body.rcl .wc, body.rcl .rs { border-top: 1px solid #ececec; }
body.rcl .band { padding-bottom: 64px; }
body.rcl .sx { margin-top: 0; }
body.rcl .wc { margin-top: 130px; padding-top: 110px; }
body.rcl .rs { margin-top: 130px; padding-top: 110px; }
/* Tarin Health keeps its own green on the blue card, on a small white badge so it stays legible */
.rs-card.accent .rs-org img { filter: none; opacity: 1; }
.rs-card.accent .rs-org { background: #fff; padding: 7px 12px; border-radius: 6px; }
.rs-card.accent .rs-org img { height: 24px; }
/* blue card: no badge; MCH shows as white lettering */
.rs-card.accent .rs-org { background: none; padding: 0; }
.rs-card.accent .rs-txt { color: #fff; opacity: .9; }
/* tighter trusted-by strip */
body.rcl .band { padding-top: 56px; padding-bottom: 40px; }
body.rcl .band-top { margin-bottom: 18px; }
body.rcl .sx { padding-top: 88px; }
@media (max-width: 860px) { body.rcl .band { padding-top: 40px; padding-bottom: 28px; } }

/* ===== phones ===== */
@media (max-width: 760px) {
  /* Althea: just the round icon, so it never covers the page */
  .ask { width: 56px !important; height: 56px; padding: 8px !important; border-radius: 50% !important; gap: 0 !important; justify-content: center; right: 14px !important; bottom: 14px !important; }
  .ask .ask-tx, .ask .ask-go { display: none !important; }

  /* solutions: the three tabs become one swipeable row */
  .sx { padding-top: 64px !important; }
  .sx-tabs { display: flex !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; margin-top: 32px !important; padding: 0 20px 4px !important; }
  .sx-tabs::-webkit-scrollbar { display: none; }
  .sx-tab { flex: none; padding: 10px 16px 12px !important; border: 1px solid #e3e3e3; border-radius: 999px; }
  .sx-tab .sx-k, .sx-tab .sx-s { display: none; }
  .sx-tab b { margin: 0 !important; font-size: 16px !important; white-space: nowrap; }
  .sx-tab.on { background: var(--accent); border-color: var(--accent); }
  .sx-tab.on b { color: #fff !important; }
  .sx-bar { display: none; }
  .sx-panels { margin-top: 20px; }
  .sx-copy { padding: 40px 20px 28px !important; }
  .sx-copy h3 { font-size: 38px !important; }
  .sx-prob { margin-top: 28px !important; padding-bottom: 24px !important; }
  .sx-appr p, .sx-appr ul { padding-left: 0 !important; }
  .sx-media.shot { padding: 0 16px 32px !important; background: none !important; }
  .sx-head h2 { font-size: 36px !important; }

  /* who we work with: caption under the photo, not on top of it */
  .wc { padding-top: 64px !important; margin-top: 64px !important; }
  .wc-wrap { margin-top: 32px !important; }
  .wc-track { grid-auto-columns: 80% !important; gap: 12px !important; padding: 0 20px !important; scroll-padding: 0 20px; }
  .wc-card { padding-bottom: 0 !important; background: #f4f3f1; }
  .wc-card img { aspect-ratio: 4 / 3 !important; }
  .wc-cap { position: static !important; width: auto !important; padding: 18px 18px 20px !important; }
  .wc-cap h3 { font-size: 21px !important; }
  .wc-cap p { font-size: 14px !important; }

  /* results */
  .rs { margin-top: 64px !important; padding: 64px 0 72px !important; }
  .rs-grid { width: calc(100% - 40px) !important; margin-top: 32px !important; }
  .rs-card { padding: 28px 22px 22px !important; }
  .rs-card blockquote { font-size: 18px !important; }

  /* trusted by + hero spacing */
  body.rcl .hero-vid h1.display { font-size: 42px !important; }
}
