/* ==========================================================================
   A to Z — sales site for medspas & aesthetic clinics
   ========================================================================== */

:root {
  --ink: #121413;
  --ink-2: #2a2e2c;
  --muted: #4f5653;
  --muted-2: #7f8683;
  --bg: #f4f3ef;
  --bg-2: #ebe9e3;
  --white: #ffffff;
  --line: rgba(18, 20, 19, 0.11);
  --line-2: rgba(18, 20, 19, 0.06);
  --accent: #0e6b55;
  --accent-2: #0b5544;
  --accent-soft: #dcebe4;
  --blush: #efe3db;
  --blush-2: #e2cdc0;
  --gold: #b08d57;
  --dark: #121413;
  --on-dark: #f2f1ec;
  --on-dark-muted: rgba(242, 241, 236, 0.6);

  /* product UI (the clinic's brand, deliberately not ours) */
  --ui-ink: #1c1a18;
  --ui-paper: #f6f2ee;
  --ui-card: #ffffff;
  --ui-blush: #f0e4dc;
  --ui-sand: #e9d9c6;
  --ui-gold: #9c7a45;
  --ui-muted: #6e6762;
  --ui-line: rgba(28, 26, 24, 0.08);
  --ui-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;

  --display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; }

/* --------------------------------------------------------- typography */
.d1, .d2, .d3, .d4 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  text-wrap: balance;
}
.d1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.025em; }
.d2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.022em; }
.d3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.015em; line-height: 1.12; }
.d4 { font-size: clamp(18px, 1.7vw, 21px); letter-spacing: -0.01em; line-height: 1.25; }
.d1 strong, .d2 strong { font-weight: 600; color: var(--accent); }
.dark .d1 strong, .dark .d2 strong { color: #8fd6bd; }

.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker .n { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.dark .kicker { color: #8fd6bd; }

.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.dark .lede { color: var(--on-dark-muted); }
.body { font-size: 16px; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.small { font-size: 13.5px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.blush { background: var(--blush); }
.section.white { background: var(--white); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lede { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  border-radius: var(--r); background: var(--ink); color: var(--on-dark);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background 0.25s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(14, 107, 85, 0.7); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-2); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.line:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.on-dark { background: var(--on-dark); color: var(--ink); }
.btn.on-dark:hover { background: #fff; color: var(--ink); }
.btn.sm { height: 42px; padding: 0 16px; font-size: 14px; }
.textlink { font-weight: 500; color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.textlink:hover { border-color: currentColor; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60;
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled { background: rgba(244, 243, 239, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); display: inline-block; transform: rotate(45deg); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 59; background: var(--bg); padding: 16px var(--gutter) 40px; display: none; flex-direction: column; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; font-family: var(--sans); font-size: 15px; border: 0; }

/* chapter rail */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 14px; }
.rail a { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.rail a i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.3s var(--ease); }
.rail a span { opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.3s var(--ease); white-space: nowrap; }
.rail a.is-active { color: var(--accent); }
.rail a.is-active i { transform: scale(1.6); }
.rail:hover a span, .rail a.is-active span { opacity: 1; transform: none; }
.rail.on-dark a { color: var(--on-dark-muted); }
.rail.on-dark a.is-active { color: #8fd6bd; }
@media (min-width: 1440px) { .rail { display: flex; } }

/* --------------------------------------------------------------- hero */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .d1 { max-width: 16ch; font-size: clamp(38px, 4.5vw, 58px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; min-height: 600px; }
.hero-backdrop { position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(160deg, var(--blush) 0%, #f5ede6 55%, var(--bg-2) 100%); }
.hero-backdrop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(60% 50% at 70% 20%, rgba(255,255,255,0.7), transparent 70%); }

/* owner dashboard, browser-framed */
.hero-dash {
  position: absolute; left: 4%; top: 7%; width: 74%; z-index: 1;
  background: #f7f5f2; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18,20,19,0.45), 0 0 0 1px rgba(28,26,24,0.08);
  color: var(--ui-ink); font-size: 13px;
}
.hd-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--ui-line); }
.hd-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3dfd9; }
.hd-bar span { margin-left: 8px; flex: 1; text-align: center; font-size: 11.5px; color: #9a938d; background: #f3f0ec; border-radius: 6px; padding: 4px 10px; }
.hd-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.hd-head { display: flex; justify-content: space-between; align-items: center; }
.hd-head .ui-wordmark { font-size: 20px; }
.hd-range { font-size: 12px; color: var(--ui-muted); background: #fff; border: 1px solid var(--ui-line); border-radius: 8px; padding: 6px 10px; }
.hd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hd-tiles .tile { padding: 12px 14px; gap: 6px; }
.hd-tiles .tile .l { font-size: 12px; }
.hd-tiles .tile .v { font-size: 24px; }
.hd-tiles .tile .d { font-size: 12px; }
.hd-tiles .tile.flash { box-shadow: 0 0 0 2px var(--accent); }
.hd-recent { padding: 12px 14px; gap: 8px; }
.hd-recent h4 { font-size: 13px; }
.hd-recent .list > div { padding: 8px 0; font-size: 12.5px; }
.hd-recent .list .s { font-size: 11.5px; }
.hd-recent .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-recent .list > div.new { background: var(--accent-soft); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }

/* patient phone, in front */
.hero-phone-wrap { position: absolute; right: 3%; bottom: 3%; width: 240px; z-index: 3; }
.hero-phone-wrap .phone { width: 240px; border-radius: 38px; padding: 7px; }
.hero-phone-wrap .screen { inset: 7px; border-radius: 31px; font-size: 11px; }
.hero-phone-wrap .island { width: 74px; height: 21px; top: 8px; }
.hero-phone-wrap .statusbar { padding: 11px 20px 0; font-size: 11px; }
.hero-phone-wrap .panel { padding: 40px 12px 10px; gap: 9px; }
.hero-phone-wrap .ui-wordmark { font-size: 18px; }
.hero-phone-wrap .ui-title { font-size: 20px; }
.hero-phone-wrap .ui-title small { font-size: 11px; }
.hero-phone-wrap .ui-hero { padding: 12px; border-radius: 14px; }
.hero-phone-wrap .ui-hero .ttl { font-size: 15px; }
.hero-phone-wrap .ui-hero .meta { font-size: 11px; }
.hero-phone-wrap .ui-btn { padding: 10px; font-size: 12px; border-radius: 10px; }
.hero-phone-wrap .ui-cell { padding: 9px 10px; }
.hero-phone-wrap .ui-cell .n { font-size: 12px; }
.hero-phone-wrap .ui-cell .s { font-size: 10.5px; }
.hero-phone-wrap .ui-ic { width: 30px; height: 30px; }
.hero-phone-wrap .ui-tab { font-size: 9px; padding-top: 8px; }
.hero-phone-wrap .ui-tab svg { width: 18px; height: 18px; }
.hero-phone-wrap .ui-avatar { width: 26px; height: 26px; font-size: 10px; }

.push {
  position: absolute; z-index: 8; top: -22px; left: 50%; transform: translateX(-50%);
  width: 300px;
  background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 12px 14px; box-shadow: 0 20px 40px -18px rgba(18,20,19,0.45);
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; font-size: 12.5px;
  opacity: 0; will-change: transform, opacity;
}
.push .app { width: 34px; height: 34px; border-radius: 9px; background: var(--ui-ink); color: #fff; display: grid; place-items: center; font-family: var(--ui-serif); font-size: 18px; }
.push .t { font-weight: 600; }
.push .s { color: var(--muted); font-size: 12px; line-height: 1.35; }
.push .time { font-size: 11px; color: var(--muted-2); align-self: start; }

.toast {
  position: absolute; z-index: 5; bottom: 18%; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--on-dark); border-radius: 12px; padding: 10px 14px 10px 12px;
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap;
  box-shadow: 0 16px 32px -14px rgba(18,20,19,0.6); opacity: 0; will-change: transform, opacity;
}
.toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.toast i svg { width: 12px; height: 12px; }
.toast b { font-weight: 600; }
.toast span { color: var(--on-dark-muted); }

.hero-labels span { position: absolute; z-index: 4; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; box-shadow: 0 6px 16px -10px rgba(18,20,19,0.4); }
.hero-labels .lab-owner { left: 4%; top: 7%; transform: translate(12px, -50%); }
.hero-labels .lab-patient { right: 3%; bottom: 3%; transform: translate(-8px, 50%); }

/* --------------------------------------------------- product: phone UI */
.phone {
  width: 300px; aspect-ratio: 300 / 640; border-radius: 46px; background: #0b0b0b; padding: 9px;
  box-shadow: 0 40px 70px -30px rgba(18,20,19,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative; flex: none;
}
.phone::before { content: ""; position: absolute; left: -2px; top: 120px; width: 3px; height: 34px; border-radius: 2px; background: #2a2a2a; }
.phone::after { content: ""; position: absolute; right: -2px; top: 150px; width: 3px; height: 60px; border-radius: 2px; background: #2a2a2a; }
.screen { position: absolute; inset: 9px; border-radius: 38px; background: var(--ui-paper); overflow: hidden; color: var(--ui-ink); font-family: var(--sans); font-size: 13px; line-height: 1.35; }
.screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #0b0b0b; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; padding: 14px 24px 0; font-size: 13px; font-weight: 600; }
.statusbar .sig { display: flex; gap: 4px; align-items: flex-end; }
.statusbar .sig i { display: inline-block; width: 3px; background: currentColor; border-radius: 1px; }
.panel { position: absolute; inset: 0; padding: 50px 16px 12px; display: none; flex-direction: column; gap: 12px; }
.panel.is-active { display: flex; }
.ui-top { display: flex; align-items: center; justify-content: space-between; }
.ui-wordmark { font-family: var(--ui-serif); font-weight: 600; font-size: 22px; letter-spacing: 0.02em; color: var(--ui-ink); line-height: 1; }
.ui-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ui-sand); display: grid; place-items: center; font-weight: 600; font-size: 11px; color: var(--ui-ink); }
.ui-title { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.ui-title small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ui-muted); font-weight: 400; letter-spacing: 0; margin-bottom: 2px; }
.ui-hero {
  border-radius: 18px; padding: 16px; position: relative; overflow: hidden; display: grid; gap: 6px;
  background: linear-gradient(135deg, #f3e6dc 0%, #e8d3c2 55%, #d9bfa8 100%); color: var(--ui-ink);
}
.ui-hero::before { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,0.75), rgba(255,255,255,0)); }
.ui-hero .lbl { font-size: 12px; color: var(--ui-muted); font-weight: 500; }
.ui-hero .ttl { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ui-hero .meta { font-size: 13px; color: #3c3733; }
.ui-hero .ui-btn { margin-top: 8px; }
.ui-btn { background: var(--ui-ink); color: #fff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 600; font-size: 14px; position: relative; }
.ui-btn.light { background: #fff; color: var(--ui-ink); }
.ui-sec { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ui-muted); margin-top: 2px; display: flex; justify-content: space-between; }
.ui-sec a { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ui-gold); }
.ui-group { background: var(--ui-card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(28,26,24,0.04); }
.ui-cell { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--ui-line); }
.ui-cell:first-child { border-top: 0; }
.ui-cell .n { font-weight: 600; font-size: 14px; }
.ui-cell .s { font-size: 12.5px; color: var(--ui-muted); margin-top: 1px; }
.ui-cell .r { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ui-ink); }
.ui-cell .r::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #b5aea8; border-top: 1.5px solid #b5aea8; transform: rotate(45deg); }
.ui-cell .r.no::after { display: none; }
.ui-cell.with-ic { grid-template-columns: 36px 1fr auto; }
.ui-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ui-blush); display: grid; place-items: center; }
.ui-ic svg { width: 18px; height: 18px; color: var(--ui-ink); }
.ui-progress { height: 6px; border-radius: 3px; background: var(--ui-blush); overflow: hidden; margin-top: 8px; }
.ui-progress i { display: block; height: 100%; width: var(--w, 60%); background: var(--ui-gold); border-radius: inherit; }
.ui-tab { margin-top: auto; display: flex; justify-content: space-around; align-items: flex-end; padding: 10px 6px 2px; border-top: 1px solid var(--ui-line); font-size: 10.5px; font-weight: 500; color: #9a938d; }
.ui-tab span { display: grid; justify-items: center; gap: 4px; }
.ui-tab svg { width: 22px; height: 22px; }
.ui-tab .on { color: var(--ui-ink); font-weight: 600; }
.ui-chips { display: flex; gap: 8px; }
.ui-chip { padding: 8px 12px; border-radius: 999px; background: var(--ui-card); font-size: 13px; font-weight: 500; }
.ui-chip.on { background: var(--ui-ink); color: #fff; }
.ui-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ui-day { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: var(--ui-card); font-size: 12px; color: var(--ui-muted); }
.ui-day b { font-size: 15px; color: var(--ui-ink); font-weight: 600; }
.ui-day.on { background: var(--ui-ink); color: rgba(255,255,255,0.7); }
.ui-day.on b { color: #fff; }
.ui-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-slot { padding: 10px 4px; text-align: center; border-radius: 12px; background: var(--ui-card); font-size: 13px; font-weight: 500; }
.ui-slot.on { background: var(--ui-ink); color: #fff; }
.ui-slot.off { color: #b5aea8; text-decoration: line-through; }
.ui-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; font-size: 13px; color: var(--ui-muted); }
.ui-total b { font-family: var(--display); font-size: 20px; color: var(--ui-ink); font-weight: 600; }
.ui-member {
  border-radius: 18px; padding: 18px 16px; display: grid; gap: 6px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #6b5138 0%, #2b241f 55%, #1c1a18 100%);
}
.ui-member .lbl { font-family: var(--ui-serif); font-size: 20px; letter-spacing: 0.02em; }
.ui-member .price { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ui-member .price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 0; }
.ui-member .meta { font-size: 12.5px; color: rgba(255,255,255,0.65); }
.ui-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--ui-line); font-size: 13.5px; }
.ui-check:first-child { border-top: 0; }
.ui-check svg { width: 16px; height: 16px; color: var(--accent); }
.ui-points { display: grid; gap: 4px; padding: 16px; background: var(--ui-card); border-radius: 18px; }
.ui-points .big { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ui-points .s { font-size: 13px; color: var(--ui-muted); }
.ui-referral { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; background: linear-gradient(135deg, #f3e6dc, #e8d3c2); border-radius: 16px; }
.ui-referral b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; }
.ui-referral span { font-size: 12.5px; color: #3c3733; }
.ui-referral .code { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 8px 10px; border-radius: 8px; background: #fff; }
.ui-dim { position: absolute; inset: 0; background: rgba(28,26,24,0.45); z-index: 5; border-radius: 38px; }
.ui-notif { position: absolute; left: 10px; right: 10px; top: 48px; z-index: 6; background: rgba(255,255,255,0.97); border-radius: 18px; padding: 12px 14px; box-shadow: 0 16px 34px -14px rgba(0,0,0,0.5); display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 13px; }
.ui-notif .app { width: 34px; height: 34px; border-radius: 9px; background: var(--ui-ink); color: #fff; font-family: var(--ui-serif); font-size: 18px; display: grid; place-items: center; }
.ui-notif b { display: block; font-size: 13.5px; }
.ui-notif span { color: var(--ui-muted); }
.ui-notif .t { position: absolute; right: 14px; top: 12px; font-size: 11px; color: #9a938d; }
.tap { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); background: rgba(14,107,85,0.25); opacity: 0; pointer-events: none; z-index: 7; }

/* ------------------------------------------------------- 01 the math */
.math-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(24px, 3vw, 40px); }
.fact { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .big { font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1; font-weight: 600; }
.fact .big small { font-size: 0.45em; color: var(--muted); letter-spacing: 0; font-weight: 500; margin-left: 4px; }
.fact p { color: var(--muted); font-size: 15px; text-wrap: pretty; }
.fact .src { font-size: 12px; color: var(--muted-2); }

.calc { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.calc-in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; align-content: start; }
.calc-in h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.calc-in .hint { color: var(--muted); font-size: 14px; margin-top: -12px; }
.field-r { display: grid; gap: 8px; }
.field-r .lab { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; gap: 12px; }
.field-r .lab output { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.field-r .lab small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--bg-2) var(--p, 50%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--bg-2); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); margin-top: -8.5px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--accent); cursor: pointer; }
.calc-out { background: var(--dark); color: var(--on-dark); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.calc-out .lab { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.calc-out .val { font-family: var(--display); font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.02em; line-height: 1; font-weight: 600; color: #8fd6bd; }
.calc-out .sub { font-size: 14px; color: var(--on-dark-muted); }
.calc-out .rows { display: grid; gap: 0; border-top: 1px solid rgba(242,241,236,0.14); margin-top: 6px; }
.calc-out .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(242,241,236,0.14); font-size: 14px; }
.calc-out .rows span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-out .x { display: flex; align-items: baseline; gap: 10px; }
.calc-out .x b { font-family: var(--display); font-size: 30px; letter-spacing: -0.01em; font-weight: 600; }
.calc-out .note { font-size: 12px; color: var(--on-dark-muted); margin-top: 4px; }

/* ------------------------------------------------------- 02 the app */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.app-sticky { position: sticky; top: clamp(calc(var(--nav-h) + 16px), calc(50vh - 380px), 300px); }
.app-stage { position: relative; display: grid; place-items: center; width: 100%; padding: 40px 0; }
.app-stage::before { content: ""; position: absolute; inset: 0 6%; border-radius: 28px; background: var(--white); }
.features { display: grid; }
.feature { padding: clamp(36px, 7vh, 72px) 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; opacity: 0.35; transition: opacity 0.5s; cursor: pointer; }
.feature.is-on { opacity: 1; }
.feature:first-child { padding-top: 0; }
.feature .k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.feature h3 { font-family: var(--display); font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
.feature p { color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.feature .why { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); background: var(--accent-soft); padding: 12px 14px; border-radius: var(--r); margin-top: 6px; max-width: 46ch; }
.feature .why svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }

.screen-tabs { display: none; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; position: relative; }
.screen-tabs button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 500; color: var(--muted); }
.screen-tabs button.is-on { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
@media (max-width: 1040px) { .screen-tabs { display: flex; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }

/* ---------------------------------------------------- 03 dashboard */
.dash-wrap { margin-top: clamp(28px, 4vw, 48px); border-radius: 18px; background: #e6e2dc; padding: clamp(8px, 1vw, 12px); box-shadow: 0 40px 70px -40px rgba(18,20,19,0.5), inset 0 0 0 1px rgba(255,255,255,0.6); }
.dash { background: #f7f5f2; border-radius: 12px; overflow: hidden; color: var(--ui-ink); font-family: var(--sans); font-size: 13.5px; display: grid; grid-template-columns: 200px 1fr; min-height: 600px; box-shadow: inset 0 0 0 1px rgba(28,26,24,0.06); }
.dash-side { background: #fff; border-right: 1px solid var(--ui-line); padding: 20px 14px; display: grid; gap: 2px; align-content: start; }
.dash-side .ui-wordmark { padding: 4px 10px 18px; font-size: 22px; }
.dash-side a { padding: 9px 10px; border-radius: 8px; color: var(--ui-muted); font-weight: 500; display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.dash-side a.on { background: var(--ui-paper); color: var(--ui-ink); font-weight: 600; }
.dash-side svg { width: 16px; height: 16px; }
.dash-side .loc { margin-top: auto; padding: 12px 10px 4px; font-size: 12px; color: var(--ui-muted); display: grid; gap: 6px; }
.dash-side .loc b { font-weight: 600; color: var(--ui-ink); font-size: 13px; }
.dash-main { padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash-head h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.dash-head .sel { display: flex; gap: 8px; }
.dash-head .sel span { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--ui-line); background: #fff; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.dash-head .sel span::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #9a938d; border-bottom: 1.5px solid #9a938d; transform: rotate(45deg) translateY(-2px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--ui-line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.tile .l { font-size: 13px; color: var(--ui-muted); font-weight: 500; }
.tile .v { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; line-height: 1; font-weight: 600; }
.tile .d { font-size: 12.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.tile .d i { display: inline-block; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); font-style: normal; }
.tile .d.gold { color: var(--ui-gold); }
.tile .d.gold i { background: #f3ebdd; }
.tile .d span { font-weight: 400; color: var(--ui-muted); }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.card { background: #fff; border: 1px solid var(--ui-line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.card h4 { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.card h4 span { font-weight: 400; color: var(--ui-muted); font-size: 12.5px; }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-items: end; height: 150px; padding-top: 8px; }
.bars div { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; align-items: center; height: 100%; }
.bars i { display: block; width: 100%; max-width: 34px; height: calc(var(--h) - 18px); flex: none; border-radius: 6px 6px 3px 3px; background: var(--ui-ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s var(--ease); }
.bars i.hi { background: var(--accent); }
.is-in .bars i { transform: none; }
.bars b { font-size: 11px; color: var(--ui-muted); font-weight: 500; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ui-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ui-ink); vertical-align: -1px; margin-right: 6px; }
.legend i.g { background: var(--accent); }
.list { display: grid; }
.list > div { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--ui-line); font-size: 13px; }
.list > div:first-child { border-top: 0; }
.list .av { width: 30px; height: 30px; border-radius: 50%; background: var(--ui-blush); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.list .s { color: var(--ui-muted); font-size: 12px; }
.list .due { font-size: 12px; font-weight: 600; color: #b4562f; background: #fbe9e1; padding: 3px 8px; border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--ui-muted); padding: 6px 0 8px; border-bottom: 1px solid var(--ui-line); font-size: 12px; }
.table td { padding: 10px 0; border-bottom: 1px solid var(--ui-line); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: right; }
.table td:first-child { font-weight: 600; }
.table .up { color: var(--accent); font-weight: 600; }
.dash-caption { margin-top: 14px; font-size: 13px; color: var(--muted-2); text-align: center; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.outcome { padding: 26px 26px 26px 0; display: grid; gap: 8px; align-content: start; }
.outcome + .outcome { padding-left: 26px; border-left: 1px solid var(--line); }
.outcome h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.outcome p { color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* ---------------------------------------------------- 04 HIPAA */
.hipaa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hipaa-grid > div:first-child { display: grid; gap: 18px; }
.hipaa-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; justify-self: start; }
.hipaa-badge i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hipaa-badge i svg { width: 16px; height: 16px; }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.control { padding: 22px 22px 22px 0; display: grid; gap: 8px; align-content: start; }
.control + .control { padding-left: 22px; border-left: 1px solid var(--line); }
.control svg { width: 22px; height: 22px; color: var(--accent); }
.control h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.control p { color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.vs { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vs div { padding: 16px 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: 4px; }
.vs div b { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.vs div span { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.vs div.us { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.vs div.us b { color: #8fd6bd; }
.hipaa-line { margin-top: 22px; font-family: var(--display); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }

/* ----------------------------------------------- 04 website + AI search */
.aeo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.aeo-grid .d2 { font-size: clamp(28px, 3vw, 40px); }
.aeo-grid > div:first-child { display: grid; gap: 18px; }
.aeo-list { display: grid; gap: 0; border-top: 1px solid rgba(242,241,236,0.14); margin-top: 8px; }
.aeo-list li { padding: 16px 0; border-bottom: 1px solid rgba(242,241,236,0.14); display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 15px; }
.aeo-list li b { display: block; font-weight: 600; }
.aeo-list li span { color: var(--on-dark-muted); font-size: 14px; }
.aeo-list li em { font-style: normal; font-weight: 700; color: #8fd6bd; font-size: 12px; letter-spacing: 0.06em; padding-top: 3px; }
.aeo-stage { display: grid; gap: 14px; }
.chat { background: #1c1f1e; border: 1px solid rgba(242,241,236,0.1); border-radius: 14px; padding: 16px; display: grid; gap: 12px; font-size: 13.5px; }
.chat .q { justify-self: end; background: rgba(242,241,236,0.1); padding: 10px 14px; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.chat .a { display: grid; gap: 10px; color: var(--on-dark-muted); line-height: 1.5; }
.chat .a .who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.chat .a .who i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #8fd6bd, #0e6b55); }
.chat .a p { color: var(--on-dark); }
.chat .cite { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; background: rgba(143,214,189,0.12); color: #8fd6bd; font-size: 12px; font-weight: 600; width: max-content; max-width: 100%; }
.chat .cite svg { width: 12px; height: 12px; flex: none; }
.serp { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-size: 13px; }
.serp .sbar { height: 34px; border-radius: 999px; background: var(--bg); display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 13px; gap: 8px; }
.serp .sbar svg { width: 14px; height: 14px; }
.serp .ai { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, #eef4ff, #f6efff); font-size: 12.5px; }
.serp .ai .t { font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #4c5cc5; display: flex; gap: 6px; align-items: center; }
.serp .ai p { color: var(--ink-2); line-height: 1.45; }
.serp .ai p b { font-weight: 600; }
.serp .res { display: grid; gap: 2px; padding-top: 4px; }
.serp .res .u { font-size: 11px; color: var(--muted); }
.serp .res .h { color: #1a0dab; font-weight: 500; }
.serp .stars { color: #e8a413; font-size: 11px; letter-spacing: 1px; }

/* --------------------------------------------------------- 05 proof */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.number { padding: clamp(26px, 3vw, 40px) 26px clamp(26px, 3vw, 40px) 0; display: grid; gap: 6px; }
.number + .number { padding-left: 26px; border-left: 1px solid var(--line); }
.number .v { font-family: var(--display); font-size: clamp(44px, 4.8vw, 66px); letter-spacing: -0.025em; line-height: 1; font-weight: 600; display: flex; align-items: baseline; gap: 4px; }
.number .v .suf { font-size: 0.55em; color: var(--accent); font-weight: 600; }
.number p { color: var(--muted); font-size: 14.5px; max-width: 24ch; text-wrap: pretty; }
.numbers-note { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; }
.quotes { columns: 3; column-gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.quote { break-inside: avoid; margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.quote p { font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.4; text-wrap: pretty; }
.quote .who { display: grid; gap: 1px; font-size: 13px; }
.quote .who b { font-weight: 600; }
.quote .who span { color: var(--muted); }
.quote .stat { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.quote .stat b { font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; color: var(--accent); font-weight: 600; }
.quote .stat span { font-size: 12.5px; color: var(--muted); }
.quote.placeholder { outline: 1.5px dashed var(--blush-2); outline-offset: -1.5px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.trust svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------------------------------------------------- 06 plan / price */
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.plan-price { padding: clamp(26px, 3vw, 44px); border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: var(--blush); }
.plan-price .from { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.plan-price .amt { font-family: var(--display); font-size: clamp(48px, 5.4vw, 72px); letter-spacing: -0.03em; line-height: 1; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amt small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.plan-price p { color: var(--muted); font-size: 15px; max-width: 32ch; text-wrap: pretty; }
.plan-price .btn { justify-self: start; margin-top: 8px; }
.plan-price .you { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(18,20,19,0.12); font-size: 13.5px; color: var(--ink); }
.plan-price .you b { display: block; font-weight: 600; margin-bottom: 4px; }
.plan-incl { padding: clamp(26px, 3vw, 44px); display: grid; gap: 22px; align-content: start; }
.plan-incl h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.incl li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.incl li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.incl li small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.addon { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.addon b { display: block; font-weight: 600; font-size: 15px; }
.addon span { color: var(--muted); font-size: 13.5px; }
.addon .tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.step { padding: 24px 22px 8px 0; display: grid; gap: 8px; align-content: start; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.step h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 14px; text-wrap: pretty; }
.step .t { font-size: 12px; color: var(--muted-2); font-weight: 500; }

/* ------------------------------------------------------------- 07 FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; transition: background 0.25s, border-color 0.25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--on-dark); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .a { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 64ch; text-wrap: pretty; }
.faq .a p + p { margin-top: 10px; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-side .expect { display: grid; gap: 10px; border-top: 1px solid rgba(242,241,236,0.14); padding-top: 18px; }
.contact-side .expect li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--on-dark-muted); }
.contact-side .expect li b { color: var(--on-dark); font-weight: 600; font-family: var(--display); }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--on-dark); background: rgba(242,241,236,0.06); border: 1px solid rgba(242,241,236,0.16); border-radius: var(--r); padding: 12px 14px; transition: border-color 0.2s, background 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8fd6bd; background: rgba(242,241,236,0.09); }
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { font-size: 14px; color: #8fd6bd; min-height: 1.4em; }
.form-note { font-size: 12.5px; color: var(--on-dark-muted); }

/* ------------------------------------------------------------- footer */
.footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid rgba(242,241,236,0.1); padding-block: 40px 32px; font-size: 13.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer .logo { color: var(--on-dark); }
.footer h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; font-weight: 600; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--on-dark); }
.footer .tag { margin-top: 12px; max-width: 30ch; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(242,241,236,0.1); padding-top: 18px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; }

/* ----------------------------------------------------------- blog */
.blog-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(32px, 4vw, 56px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(18,20,19,0.4); }
.post-card .cat { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.post-card h2, .post-card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.post-card p { color: var(--muted); font-size: 14.5px; }
.post-card .meta { font-size: 12.5px; color: var(--muted-2); margin-top: auto; }
.article { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }
.article .wrap { max-width: 760px; }
.article-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.article-head .meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.article-head .cat { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-top: 2em; color: var(--ink); }
.prose h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 1.6em; color: var(--ink); }
.prose p strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--bg-2); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .callout { background: var(--accent-soft); border-radius: var(--r-lg); padding: 20px 22px; font-size: 16px; }
.prose .callout p { margin: 0; }
.prose .callout p + p { margin-top: 0.6em; }
.article-cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); display: grid; gap: 14px; }
.article-cta h3 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.article-cta p { color: var(--on-dark-muted); max-width: 56ch; }
.article-cta .btn { justify-self: start; }
.article-more { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 16px; }
.article-more h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* ----------------------------------------------------------- motion */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(14px); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.07s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.14s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.21s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.35s; }
.no-js [data-reveal], .no-js [data-reveal-stagger] > * { opacity: 1; transform: none; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-grid, .split, .app-grid, .aeo-grid, .faq-grid, .contact-grid, .plan, .calc { grid-template-columns: 1fr; }
  .hero-visual { min-height: 640px; }
  .hero-dash { width: 78%; }
  .app-sticky { position: static; margin-bottom: 24px; }
  .feature { opacity: 1; }
  .quotes { columns: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hipaa-grid { grid-template-columns: 1fr; }
  .vs { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .plan-price { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: grid; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-visual { min-height: 0; display: grid; gap: 14px; padding: 16px; }
  .hero-backdrop { inset: 0; }
  .hero-dash { position: relative; left: auto; top: auto; width: 100%; }
  .hd-tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hd-tiles .tile { padding: 10px; }
  .hd-tiles .tile .v { font-size: 18px; }
  .hd-tiles .tile .l { font-size: 10.5px; }
  .hd-recent .list > div:nth-child(n+3) { display: none; }
  .hero-phone-wrap { position: relative; right: auto; bottom: auto; width: 240px; margin: 28px auto 0; }
  .hero-labels { display: none; }
  .phone { width: 270px; }
  .math-grid, .outcomes, .numbers { grid-template-columns: 1fr; }
  .fact + .fact, .outcome + .outcome, .number + .number { padding-left: 0; border-left: 0; }
  .fact, .number { padding-right: 0; }
  .outcome { border-bottom: 1px solid var(--line); padding-right: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .controls, .vs { grid-template-columns: 1fr; }
  .control + .control { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .incl, .form .row2, .steps, .footer .wrap, .post-grid { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; }
  .addon { grid-template-columns: 1fr; }
  .d1 { font-size: clamp(38px, 10.5vw, 52px); }
  .push { width: min(280px, 92vw); top: -18px; }
  .calc-out .val { font-size: 44px; }
  .dash-main { padding: 14px; }
  .table th:nth-child(5), .table td:nth-child(5) { display: none; }
  .dash-head .sel span:last-child { display: none; }
  .tile .v { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .push { opacity: 1 !important; transform: translateX(-50%) !important; }
  .toast { display: none; }
  .feature { opacity: 1; }
  .bars i { transform: none; transition: none; }
}
