/* =========================================================
   Arik Health — site stylesheet
   One file for every page. Sections:
   1. Tokens   2. Base   3. Layout   4. Type   5. Buttons & badges
   6. Header & mobile menu   7. Footer   8. Cards & grids
   9. Product UI mockups (chat, receipt, phone, browser, bill, routing)
   10. Page sections (ledger, stats, steps, timeline, compare, FAQ)
   11. Utilities   12. Motion
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  /* Brand */
  --slate: #1F3D5A;
  --slate-deep: #0F2236;
  --emerald: #0FA68E;
  --emerald-ink: #0A7F6D;      /* emerald for text/buttons (passes contrast) */
  --emerald-deep: #0A6B5C;
  --emerald-tint: #E3F5F1;
  --mint: #7FE0CC;             /* emerald on dark backgrounds */
  --sky: #7EC6F4;
  --sky-tint: #E8F3FC;
  --stone: #F1F4F6;
  --offwhite: #FAFBFC;
  --white: #FFFFFF;

  /* Text */
  --ink: #1F3D5A;
  --text-2: #3D5873;
  --text-3: #4A6279;
  --muted: #5B7186;
  --on-dark: #FFFFFF;
  --on-dark-2: #C8D5E2;
  --on-dark-3: #B4C4D4;

  /* Lines & surfaces */
  --line: rgba(31, 61, 90, 0.12);
  --line-soft: rgba(31, 61, 90, 0.08);
  --line-strong: rgba(31, 61, 90, 0.22);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Alerts (billing flags) */
  --warn-bg: #FFF4EC;
  --warn-chip: #FFE2CF;
  --warn-ink: #8A2E0C;
  --warn: #9A3412;

  /* Type */
  --font-head: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --shadow-sm: 0 8px 30px rgba(31, 61, 90, 0.07);
  --shadow-md: 0 24px 60px rgba(31, 61, 90, 0.12);
  --shadow-lg: 0 40px 100px rgba(31, 61, 90, 0.14);

  --wrap: 1180px;
  --gutter: 24px;
}

/* 2. BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--emerald-ink); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--slate); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. LAYOUT ------------------------------------------------ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.wrap-mid { max-width: 1080px; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-flush-top { padding-top: 0; }
.bg-stone { background: var(--stone); }
.bg-white { background: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-top { align-items: start; }
.split-end { align-items: end; }
.split-wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }

/* 4. TYPE -------------------------------------------------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald-ink); }
.eyebrow-sky { color: var(--sky); }
.display { font-size: clamp(38px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; }
.page-title { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; }
.h4 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-3); line-height: 1.55; }
.quote-h { font-weight: 500; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -0.025em; }
.accent { color: #0C8C78; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.small { font-size: 15px; }
.xsmall { font-size: 13px; }
.mono { font-family: var(--font-mono); }
.source { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.on-dark .source { color: #9FB2C5; }
.center { text-align: center; }
.prose p + p { margin-top: 16px; }
.prose { color: var(--text-2); font-size: 18px; }

/* 5. BUTTONS & BADGES -------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--emerald-ink); color: #fff; }
.btn-primary:hover { background: #086A5B; color: #fff; }
.btn-dark { background: var(--slate); color: #fff; }
.btn-dark:hover { background: var(--slate-deep); color: #fff; }
.btn-ghost { background: var(--white); color: var(--slate); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--slate); color: var(--slate); }
.btn-light { background: #fff; color: var(--slate); }
.btn-light:hover { background: var(--stone); color: var(--slate); }
.btn-text { background: transparent; color: var(--slate); padding: 0 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--slate); }
.arrow-link:hover { color: var(--emerald-ink); }
.arrow-link svg { transition: transform 0.15s; }
.arrow-link:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: var(--emerald-tint); color: var(--emerald-deep); }
.badge-next { background: #FFF1D6; color: #6E4300; }
.badge-building { background: var(--sky-tint); color: var(--slate); }
.badge-later { background: var(--stone); color: var(--muted); }
.badge-warn { background: var(--warn-chip); color: var(--warn-ink); }
.badge-solid { background: var(--emerald-ink); color: #fff; }
.on-dark .badge-building, .is-plus .badge-building { background: rgba(126, 198, 244, 0.18); color: #CFE8FA; }
.on-dark .badge-next, .is-plus .badge-next { background: rgba(255, 207, 138, 0.18); color: #FFDDA8; }
.on-dark .badge-live, .is-plus .badge-live { background: rgba(127, 224, 204, 0.16); color: var(--mint); }

.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 16px 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--text-2); text-decoration: none; line-height: 1.35;
}
.announce:hover { border-color: var(--line-strong); color: var(--slate); }

/* 6. HEADER & MOBILE MENU ---------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 16px 0; }
.nav {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  padding: 8px 8px 8px 22px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--text-3); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--slate); background: var(--stone); }
.nav-links a[aria-current="page"] { color: var(--slate); font-weight: 600; background: var(--stone); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--slate); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
.site-header.is-open .nav-toggle .i-open { display: none; }
.site-header.is-open .nav-toggle .i-close { display: block; }
.mobile-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: 10px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.site-header.is-open .mobile-menu { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
  border-radius: 14px; text-decoration: none; font-size: 17px; font-weight: 600; color: var(--slate);
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { background: var(--stone); }
.mobile-menu .menu-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 6px; }
.mobile-menu .menu-small a { font-weight: 500; font-size: 16px; min-height: 46px; color: var(--text-2); }
.mobile-menu .menu-cta { display: grid; gap: 8px; padding: 10px 6px 6px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
.mobile-menu .menu-cta .btn { width: 100%; }

@media (max-width: 1100px) {
  .nav-links, .nav-actions .nav-employers { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .nav { padding-left: 16px; gap: 8px; }
  .brand img { height: 30px; }
  .nav-actions .nav-try { padding: 0 14px; font-size: 14px; min-height: 44px; }
}

/* 7. FOOTER ------------------------------------------------ */
.site-footer { background: var(--slate); color: var(--on-dark-2); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 340px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.footer-col ul { list-style: none; margin-top: 14px; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; color: #fff; text-decoration: none; }
.footer-col a:hover { color: var(--mint); text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* 8. CARDS & GRIDS ----------------------------------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card-stone { background: var(--stone); border-color: transparent; }
.card-dark { background: var(--slate); color: #fff; border-color: transparent; }
.card-mint { background: var(--emerald-tint); border-color: transparent; }
.card-lg { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.card h3 { font-size: 21px; letter-spacing: -0.015em; }
.card p { margin-top: 8px; color: var(--text-3); font-size: 16px; }
.card-dark p { color: var(--on-dark-2); }
.card-mint p { color: #2F4A44; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--sky-tint); display: grid; place-items: center; color: var(--slate); margin-bottom: 18px; }
.card-mint .icon-tile { background: #fff; color: var(--emerald-deep); }
.panel-dark { position: relative; overflow: hidden; background: var(--slate); color: #fff; border-radius: var(--r-2xl); padding: clamp(28px, 6vw, 80px); }
.panel-dark .glow { position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 166, 142, 0.35), rgba(15, 166, 142, 0)); pointer-events: none; }
.panel-dark > *:not(.glow) { position: relative; }
.panel-stone { background: var(--stone); border-radius: var(--r-2xl); padding: clamp(24px, 5vw, 64px); }

/* Product cards (home) */
.product-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.product-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card h3 { font-size: 28px; }
.product-card p { color: var(--text-3); font-size: 16px; }
.product-card .for { font-size: 15px; font-weight: 600; color: var(--emerald-ink); }
.product-card .arrow-link { margin-top: auto; padding-top: 8px; }
.product-card.is-dark { background: var(--slate); color: #fff; border-color: transparent; }
.product-card.is-dark p { color: var(--on-dark-2); }
.product-card.is-dark .for { color: var(--mint); }
.product-card.is-dark .arrow-link { color: #fff; }
.mini { background: var(--stone); border-radius: var(--r-md); padding: 16px; font-size: 14px; }
.is-dark .mini { background: rgba(255, 255, 255, 0.08); }

/* Feature tiles with small title + text */
.tile { padding: 16px 18px; border-radius: var(--r-md); background: var(--stone); }
.tile strong { display: block; }
.tile span { display: block; font-size: 15px; color: var(--muted); }

/* Numbered list */
.numbered { list-style: none; display: grid; gap: 18px; }
.numbered li { display: flex; gap: 14px; align-items: flex-start; }
.numbered .num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald-deep); font-family: var(--font-mono); font-size: 14px; display: grid; place-items: center; }
.numbered.on-white .num { background: #fff; border: 1px solid var(--line); }
.numbered .txt { padding-top: 5px; }
.numbered .txt span { color: var(--text-3); }

/* Check list */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 22px; margin-top: 2px; color: var(--emerald-ink); }

/* Callout */
.callout { padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.callout strong { color: var(--slate); }

/* 9. PRODUCT UI MOCKUPS ------------------------------------ */
.mock-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Hero demo shell: conversation + case file */
.demo-shell { max-width: 1080px; margin: 64px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.chat { background: var(--stone); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.bubble { padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.5; max-width: 85%; }
.bubble-user { align-self: flex-end; background: var(--slate); color: #fff; border-bottom-right-radius: 6px; }
.arik-row { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.arik-row .bubble { max-width: none; }
.bubble-arik { background: #fff; border-bottom-left-radius: 6px; border: 1px solid var(--line-soft); }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald-deep); font-family: var(--font-head); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.avatar-spacer { flex: 0 0 34px; }
.attachment { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; }
.attachment .doc { flex: 0 0 40px; height: 48px; border-radius: 6px; background: var(--sky-tint); display: grid; place-items: center; color: var(--slate); }
.attachment strong { display: block; font-size: 15px; }
.attachment span { font-size: 13px; color: var(--muted); }
.casefile { padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.casefile .amount { font-family: var(--font-head); font-weight: 600; font-size: 44px; letter-spacing: -0.03em; line-height: 1.1; }
.progress { list-style: none; display: grid; gap: 12px; font-size: 15px; }
.progress li { display: flex; gap: 10px; align-items: center; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--emerald-ink); color: #fff; display: grid; place-items: center; }
.tick-open { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sky); }
.note { padding: 12px 14px; border-radius: 14px; background: var(--stone); font-size: 14px; color: var(--text-2); }
.note strong { color: var(--slate); }
.casefile .btn { margin-top: auto; }

/* Trust row */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 32px; font-size: 15px; color: var(--text-3); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--emerald-ink); flex: 0 0 18px; }

/* Receipt */
.receipt { background: var(--slate); color: #fff; border-radius: 26px; padding: 28px; box-shadow: 0 30px 70px rgba(31, 61, 90, 0.22); }
.receipt .line { display: flex; justify-content: space-between; gap: 12px; }
.receipt .was { margin-top: 22px; padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, 0.25); color: var(--on-dark-2); }
.receipt .was s { font-family: var(--font-mono); }
.receipt .now { margin-top: 14px; align-items: baseline; }
.receipt .price { font-family: var(--font-head); font-weight: 600; font-size: 54px; letter-spacing: -0.03em; color: var(--mint); line-height: 1; }
.receipt .price small { font-size: 18px; color: #fff; }
.receipt .saved { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(15, 166, 142, 0.22); font-weight: 600; font-size: 15px; }
.receipt .meta { margin-top: 18px; font-size: 14px; color: var(--on-dark-2); line-height: 1.7; }

/* Small "moment" mock cards (Medicare block, disputed, counter) */
.moment { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: 15px; }
.moment .big { font-family: var(--font-head); font-weight: 600; font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; }
.moment .blocked { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.moment .disputed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 10px; }
.moment .code { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--slate); color: #fff; font-size: 15px; }
.moment .code strong { color: var(--mint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; }
.chip.is-on { background: var(--slate); color: #fff; border-color: var(--slate); }

/* Phone */
.phone { width: 100%; max-width: 380px; margin: 0 auto; background: var(--slate-deep); border-radius: 52px; padding: 12px; box-shadow: 0 40px 90px rgba(31, 61, 90, 0.28); }
.phone-screen { background: var(--offwhite); border-radius: 42px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 22px 20px 14px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.app-bar strong { display: block; font-family: var(--font-head); font-size: 16px; }
.app-bar span { font-size: 12px; color: var(--emerald-ink); }
.app-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.app-body .bubble { font-size: 14.5px; padding: 10px 14px; border-radius: 18px; }
.app-body .bubble-user { border-bottom-right-radius: 6px; }
.app-body .bubble-arik { border-bottom-left-radius: 6px; max-width: 92%; }
.snap { align-self: flex-end; width: 150px; height: 96px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.snap .bar { height: 5px; border-radius: 3px; background: #DCE3EA; }
.snap .tot { margin-top: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-align: right; }
.flags { background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; max-width: 94%; }
.flags .flag { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.flags .flag strong { display: block; }
.flags .flag span { font-size: 12.5px; color: var(--muted); }
.flags .flag .amt { font-family: var(--font-mono); font-weight: 500; color: var(--warn); font-size: 14px; }
.flags .total { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--emerald-tint); color: var(--emerald-deep); font-weight: 600; }
.flags .total b { font-family: var(--font-head); font-size: 18px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-actions .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.composer { margin: 0 14px 16px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 7px 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: #6B7F92; }
.composer span { flex: 1; }
.composer i { width: 34px; height: 34px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; }
.mock-caption { margin-top: 18px; font-size: 15px; color: var(--text-3); }
.mock-caption strong { color: var(--slate); }

/* Browser window */
.browser { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 40px 90px rgba(31, 61, 90, 0.16); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--stone); border-bottom: 1px solid var(--line-soft); }
.browser-bar .dot { flex: 0 0 11px; height: 11px; border-radius: 50%; background: #C5D2DE; }
.browser-bar .url { margin-left: 10px; flex: 1 1 auto; min-width: 0; max-width: 360px; padding: 5px 12px; border-radius: 8px; background: #fff; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { padding: 26px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.browser-side { display: flex; flex-direction: column; gap: 14px; }

/* Bill table */
.bill { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; }
.bill-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-soft); align-items: start; }
.bill-row:first-child { border-top: 0; }
.bill-head { background: var(--stone); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bill-row .code { font-family: var(--font-mono); color: var(--muted); }
.bill-row .amt { text-align: right; font-family: var(--font-mono); }
.bill-row.is-flag { background: var(--warn-bg); }
.bill-row.is-flag .code, .bill-row.is-flag .amt { color: var(--warn); }
.bill-row .flag-chip { display: inline-block; margin-top: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--warn-chip); color: var(--warn-ink); font-weight: 600; }
.bill-total { font-weight: 600; border-top: 1px solid var(--line); }
.stat-card { background: var(--slate); color: #fff; border-radius: var(--r-md); padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--on-dark-3); }
.stat-card .value { font-family: var(--font-head); font-weight: 600; font-size: 44px; letter-spacing: -0.03em; color: var(--mint); line-height: 1.1; }
.stat-card .sub { font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.why { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.why ul { margin-top: 10px; padding-left: 18px; font-size: 14px; color: var(--text-2); display: grid; gap: 6px; }

/* Letter preview */
.letter { background: var(--stone); border-radius: 16px; padding: 16px; font-size: 13.5px; line-height: 1.55; color: var(--slate); }
.letter p { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--sky-tint); }
.tracker { background: var(--stone); border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.tracker div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; }
.tracker .won { color: var(--emerald-deep); font-weight: 600; }
.tracker .wait { color: var(--slate); font-weight: 600; }

/* Prescription routing (clinics) */
.rx-console { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.rx-console-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 20px; background: var(--slate); color: #fff; }
.rx-console-head strong { font-family: var(--font-head); }
.rx-console-head span { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-3); }
.rx-console-body { padding: 20px; }
.rx-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rx-meta .k { font-size: 13px; color: var(--muted); }
.rx-meta .v { font-weight: 600; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.route.is-best { border: 2px solid var(--emerald); background: #F1FBF8; }
.route .what { flex: 1 1 200px; min-width: 0; }
.route .what strong { display: block; }
.route .what span { font-size: 13px; color: var(--text-3); }
.route .cost { font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.route.is-best .cost { color: var(--emerald-deep); }
.routes { display: grid; gap: 10px; margin-top: 10px; }
.rx-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; align-items: center; justify-content: space-between; }
.text-msg { max-width: 400px; width: 100%; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(31, 61, 90, 0.12); display: flex; gap: 12px; font-size: 14.5px; line-height: 1.45; }
.text-msg strong { display: block; }

/* Employer report */
.report { background: var(--stone); border-radius: 22px; padding: 22px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.report-grid div { background: #fff; border-radius: 14px; padding: 14px; }
.report-grid span { display: block; font-size: 13px; color: var(--muted); }
.report-grid b { font-family: var(--font-head); font-weight: 600; font-size: 26px; }

/* 10. PAGE SECTIONS ---------------------------------------- */
/* Hero */
.hero { position: relative; padding: 88px 0 40px; text-align: center; }
.hero-glow { position: absolute; left: 50%; top: 20px; width: min(900px, 100%); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(126, 198, 244, 0.28), rgba(126, 198, 244, 0)); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero .display { margin-top: 28px; }
.hero .lead { max-width: 680px; margin: 24px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 36px; }
.page-hero { position: relative; padding: 80px 0 56px; }
.page-hero .lead { margin-top: 20px; max-width: 680px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

/* Ledger (their AI vs Arik) */
.ledger { margin-top: 52px; border-top: 1px solid var(--line-dark); }
.ledger-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 48px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); font-size: 19px; }
.ledger-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 0; }
.ledger-head span:first-child, .ledger .theirs { color: var(--on-dark-3); }
.ledger-head span:last-child { color: var(--mint); }
.ledger .ours { font-weight: 600; }
.ledger .tag-m { display: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; margin-top: 56px; }
.stat-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(46px, 5vw, 62px); letter-spacing: -0.04em; line-height: 1; }
.stats p { margin-top: 10px; color: var(--on-dark-2); font-size: 16px; }

/* Steps */
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--emerald-ink); }
.step h3 { font-size: 22px; margin-top: 36px; }
.step p { margin-top: 8px; font-size: 16px; color: var(--text-3); }
.step.is-dark { background: var(--slate); color: #fff; border-color: transparent; }
.step.is-dark .n { color: var(--mint); }
.step.is-dark p { color: var(--on-dark-2); }
.step-long { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.step-long .n { font-family: var(--font-head); font-weight: 600; font-size: 44px; color: var(--emerald-ink); line-height: 1; letter-spacing: -0.03em; }
.step-long h2 { font-size: clamp(24px, 2.6vw, 32px); }
.step-long p { margin-top: 12px; color: var(--text-2); font-size: 18px; }

/* Promise rows */
.promise-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.promise-row:last-child { border-bottom: 1px solid var(--line); }
.promise-row h3 { font-size: 28px; color: #0C8C78; }
.promise-row p { color: var(--text-2); }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 52px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--emerald) 0 25%, var(--sky) 25% 100%); opacity: 0.6; }
.timeline li { position: relative; }
.timeline .dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); }
.timeline .is-live .dot { background: var(--emerald); border-color: var(--emerald); box-shadow: 0 0 0 6px rgba(15, 166, 142, 0.18); }
.timeline .is-later .dot { border-color: #C5D2DE; }
.timeline .phase { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-2); }
.timeline .is-live .phase { color: var(--emerald-deep); }
.timeline p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* Roadmap detail list */
.road-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.road-item h3 { font-size: 20px; }
.road-item p { margin-top: 6px; color: var(--text-3); font-size: 16px; }

/* Compare table */
.compare-wrap { margin-top: 48px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare col.c-feature { width: 50%; }
.compare col.c-plan { width: 25%; }
.compare th, .compare td { padding: 16px 18px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare th[scope="row"] { text-align: left; padding-left: 0; font-weight: 400; }
.compare th[scope="row"] strong { display: block; font-weight: 600; }
.compare th[scope="row"] span { display: block; font-size: 14px; color: var(--muted); }
.compare thead th { padding-top: 24px; padding-bottom: 24px; vertical-align: bottom; }
.compare thead .plan-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.2; }
.compare thead .plan-price { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.compare .is-plus { background: var(--slate); color: #fff; border-bottom-color: var(--line-dark); }
.compare thead .is-plus { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.compare thead .is-plus .plan-price { color: var(--on-dark-2); }
.compare tfoot td { border-bottom: 0; padding-top: 22px; }
.compare tfoot .is-plus { border-radius: 0 0 var(--r-lg) var(--r-lg); padding-bottom: 24px; }
.compare .yes { color: var(--emerald-ink); }
.compare .is-plus .yes { color: var(--mint); }
.compare .no { display: inline-block; width: 14px; height: 2px; background: #C5D2DE; vertical-align: middle; }
.compare .cell-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 20px; transition: transform 0.2s; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text-2); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.founder img { border-radius: var(--r-xl); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder .name { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin-top: 4px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.pill-list li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* CTA pair */
.cta-card { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-card .for { font-size: 15px; font-weight: 600; color: var(--emerald-ink); }
.cta-card h3 { font-size: 28px; line-height: 1.2; }
.cta-card .btn { margin-top: 8px; }
.cta-card.is-dark { background: var(--slate); color: #fff; }
.cta-card.is-dark .for { color: var(--mint); }
.cta-card.is-light { background: #fff; border: 1px solid var(--line); }

/* 11. UTILITIES -------------------------------------------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 52px; } .mt-6 { margin-top: 72px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; } .wrap-gap { flex-wrap: wrap; gap: 10px; } .items-center { align-items: center; }
.w-full { width: 100%; }
.placeholder { background: #FFF6D8; color: #6E4300; padding: 0 4px; border-radius: 4px; }
.on-dark .placeholder, .card-dark .placeholder, .receipt .placeholder, .stat-card .placeholder { background: rgba(255, 221, 168, 0.2); color: #FFDDA8; }

/* RESPONSIVE ----------------------------------------------- */
@media (max-width: 960px) {
  .split, .split-wide-left { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .browser-body { grid-template-columns: minmax(0, 1fr); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder img { max-width: 320px; }
}
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); margin-top: 48px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-left: 38px; }
  .timeline::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--emerald) 0 22%, var(--sky) 22% 100%); }
  .timeline .dot { position: absolute; left: -38px; top: 2px; }
  .timeline .phase { margin-top: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 56px 0 24px; }
  .page-hero { padding: 48px 0 32px; }
  .panel-dark, .panel-stone { border-radius: 28px; }
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); font-size: 17px; padding: 18px 0; }
  .ledger .tag-m { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; font-weight: 400; }
  .ledger .theirs .tag-m { color: var(--on-dark-3); }
  .ledger .ours .tag-m { color: var(--mint); }
  .ledger .ours { margin-top: 6px; }
  .step-long { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  .promise-row { grid-template-columns: minmax(0, 1fr); }
  .road-item { grid-template-columns: minmax(0, 1fr); }
  .card, .step, .product-card { padding: 22px; }
  .cta-card { padding: 26px; }
  .compare th, .compare td { padding: 14px 8px; }
  .compare th[scope="row"] { padding-left: 0; padding-right: 10px; }
  .compare th[scope="row"] strong { font-size: 15px; }
  .compare th[scope="row"] span { font-size: 13px; }
  .compare thead .plan-name { font-size: 17px; }
  .compare thead .plan-price { font-size: 13px; }
  .compare col.c-feature { width: 46%; }
  .compare col.c-plan { width: 27%; }
  .compare .badge { font-size: 11.5px; padding: 3px 7px; letter-spacing: 0.02em; }
  .compare tfoot .btn { padding: 0 12px; font-size: 14px; min-height: 44px; width: 100%; }
}
@media (max-width: 560px) {
  .btn-row:not(.keep-inline) > .btn { width: 100%; }
  .chat { padding: 16px; }
  .bubble, .arik-row { max-width: 100%; }
  .avatar-spacer { display: none; }
  .casefile { padding: 18px 10px 10px; }
  .browser-body { padding: 16px; }
  .browser-bar .url { font-size: 12px; }
  .bill-head { display: none; }
  .bill-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .bill-row .code { grid-column: 1 / -1; font-size: 12px; }
  .bill-row:not(.bill-head):first-child, .bill-head + .bill-row { border-top: 0; }
  .report-grid b { font-size: 22px; }
  .receipt { padding: 22px; }
  .receipt .price { font-size: 46px; }
  .moment .big { font-size: 30px; }
}
@media (max-width: 420px) {
  .phone { border-radius: 40px; padding: 8px; }
  .phone-screen { border-radius: 32px; }
  .flags { max-width: 100%; }
  .app-body .bubble-arik { max-width: 100%; }
}

/* 12. MOTION ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Polish ---------------------------------------------------- */
.product-card > .badge, .card > .badge { align-self: flex-start; }
.display, .page-title, .h2, .h3, .quote-h { text-wrap: balance; }
.lead { text-wrap: pretty; }
.compare tfoot .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .compare tfoot .btn { padding: 0 8px; }
}

/* Founder co-op excerpt (about.html) */
.coop { margin-left: 0; margin-right: 0; background: var(--slate); color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.coop blockquote { margin: 18px 0 0; padding-left: 20px; border-left: 3px solid var(--emerald); }
.coop blockquote p { color: var(--on-dark-2); font-size: 17px; line-height: 1.65; }
.coop blockquote p:first-child { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: clamp(19px, 2vw, 22px); line-height: 1.4; }
.coop blockquote p + p { margin-top: 14px; }
.coop figcaption { margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
@media (max-width: 560px) { .coop blockquote { padding-left: 14px; } }
.road-item > .badge { justify-self: start; align-self: start; }
