/* Wisterna CareLedger — marketing site.
   Layout: a navy masthead with the live product, then alternating paper and tinted bands; one
   orchestrated motion moment (the clock-in sync), everything else quiet. */
:root {
  --ink: #0F1B2D;          /* body text */
  --muted: #4E5B72;        /* secondary text, blue-biased grey */
  --paper: #FFFFFF;        /* page */
  --tint: #F1F5FB;         /* alternate band */
  --line: #DCE3EE;
  --navy: #0B2447;         /* masthead, brand */
  --blue: #1D5FD1;         /* primary action, links */
  --blue-soft: #E7EFFD;
  --wis: #8B78E6;          /* wisteria accent, used sparingly */
  --wis-soft: #EFEBFD;
  --good: #16683A; --good-bg: #E2F4E8;
  --bad: #A1231A;  --bad-bg: #FDE7E4;
  --warn: #8A4A00; --warn-bg: #FFF1D6;
  --on-navy: #FFFFFF; --on-navy-2: #B9CBE8;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 12px 32px rgba(11, 36, 71, .08);
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1180px;
  --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E6ECF5; --muted: #A3B1C7; --paper: #0C1524; --tint: #111D31; --line: #24344F;
    --navy: #07182F; --blue: #6E9CFF; --blue-soft: #16294A; --wis: #B3A5F5; --wis-soft: #231E44;
    --good: #7FD6A0; --good-bg: #12301F; --bad: #FF9A8F; --bad-bg: #3A1714; --warn: #F5C46B; --warn-bg: #3A2A0E;
    --card: #132036; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #E6ECF5; --muted: #A3B1C7; --paper: #0C1524; --tint: #111D31; --line: #24344F;
  --navy: #07182F; --blue: #6E9CFF; --blue-soft: #16294A; --wis: #B3A5F5; --wis-soft: #231E44;
  --good: #7FD6A0; --good-bg: #12301F; --bad: #FF9A8F; --bad-bg: #3A1714; --warn: #F5C46B; --warn-bg: #3A2A0E;
  --card: #132036; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--wis); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.band { padding-block: clamp(64px, 9vw, 112px); }
.band.tint { background: var(--tint); }
.sec-h { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 95, 209, .3); }
.btn.primary:hover { background: #1A54BA; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.light { background: #fff; color: #0B2447; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo img { width: 38px; height: 38px; }
.logo .lt { display: flex; flex-direction: column; line-height: 1.05; }
.logo .lt small { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-navy-2); margin-bottom: 3px; }
.logo .lt b { font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: #D6E2F5; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; }
@media (max-width: 960px) {
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--navy); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px; font-size: 16px; }
  .nav .menu-btn { display: grid; place-items: center; }
  .nav .cta-nav { display: none; }
}

/* hero */
.hero { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-block: 72px 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #C4B5FD; }
.hero .lede { color: #C9D7EE; }
.hero .copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .eyebrow { color: #C4B5FD; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-navy-2); font-size: 14.5px; }
.hero .proof b { color: #fff; font-family: var(--display); font-size: 22px; display: block; line-height: 1.1; }
.browser { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s ease; min-width: 0; }
.browser:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: #EEF2F8; border-bottom: 1px solid #DCE3EE; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D3E2; }
.browser .bar span { margin-left: 10px; flex: 1; height: 20px; border-radius: 6px; background: #fff; font: 12px/20px var(--mono); color: #6A7891; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 1040 / 650; height: auto; background: #F3F6FB; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 64px; } .browser { transform: none; } }

/* audience strip */
.strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-block: 22px; color: var(--muted); font-size: 15px; }
.strip b { color: var(--ink); font-weight: 600; }
.strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wis); display: inline-block; margin-right: 8px; vertical-align: middle; }

/* leak calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 20px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; }
.field label output { font-family: var(--mono); font-weight: 500; color: var(--blue); font-variant-numeric: tabular-nums; }
.field .hint { font-size: 13.5px; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.field input[type=number] { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 16px var(--mono); background: var(--paper); color: var(--ink); width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.pair .field + .field { margin-top: 0; }
.subhead { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 4px; }
.result .big { font: 800 clamp(40px, 6vw, 64px)/1 var(--display); color: var(--bad); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.result .of { color: var(--muted); margin-top: 8px; }
.leakbars { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.leak { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font-size: 15px; }
.leak .track { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.leak .track i { display: block; height: 100%; border-radius: 6px; background: var(--bad); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.leak .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.leak .fix { grid-column: 1 / -1; font-size: 13.5px; color: var(--good); }
.disclaim { font-size: 13px; color: var(--muted); margin-top: 22px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .pair { grid-template-columns: 1fr; } }

/* feature explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 14px; padding: 16px 18px; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 4px; transition: background .2s, border-color .2s; }
.tab b { font: 700 17px var(--display); display: flex; align-items: center; gap: 10px; }
.tab span { color: var(--muted); font-size: 14.5px; line-height: 1.45; display: none; }
.tab:hover { background: var(--card); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.tab[aria-selected="true"] span { display: block; }
.tab .ix { width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.tab .ix svg { width: 16px; height: 16px; }
.stage { position: relative; min-width: 0; }
.stage .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #F3F6FB; }
.stage .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; animation: rise .45s ease both; }
.stage ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.stage li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink); }
.stage li::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: var(--good-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316683A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes rise { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .tab { flex: 0 0 auto; padding: 10px 14px; }
  .tab span { display: none !important; }
  .stage ul { grid-template-columns: 1fr; }
}

/* sync */
.sync { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hub { grid-column: 1 / -1; background: var(--navy); color: #fff; border-radius: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; position: relative; }
.hub h3 { color: #fff; font-size: 22px; }
.hub .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hub .chips span { font-size: 13.5px; color: #D6E4FF; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 5px 12px; }
.hub .btn { margin-left: auto; }
.wires { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; height: 46px; }
.wire { position: relative; justify-self: center; width: 3px; height: 100%; background: var(--line); border-radius: 2px; overflow: hidden; }
.wire::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(var(--wis), var(--blue)); opacity: 0; }
.sync.run .wire::after { animation: flow .7s ease-in forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes flow { 0% { top: -40%; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.role { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color .3s, box-shadow .3s, transform .3s; }
.role .ix { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.role .ix svg { width: 22px; height: 22px; }
.role .where { font-size: 13px; font-weight: 600; color: var(--blue); }
.role .state { font-size: 15px; color: var(--muted); min-height: 3em; }
.role .pill { align-self: flex-start; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--tint); color: var(--muted); transition: background .3s, color .3s; }
.role.lit { border-color: var(--wis); box-shadow: 0 0 0 4px var(--wis-soft); transform: translateY(-2px); }
.role.lit .pill { background: var(--good-bg); color: var(--good); }
@media (max-width: 960px) { .sync, .wires { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wires { display: none; } .hub .btn { margin-left: 0; } }
@media (max-width: 520px) { .sync { grid-template-columns: 1fr; } }

/* story: caregiver + family */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.story .media { border-radius: 20px; background: var(--tint); border: 1px solid var(--line); padding: 10px; min-width: 0; }
.story .media img { width: 100%; height: auto; border-radius: 14px; }
.story .copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; counter-increment: s; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font: 700 15px/34px var(--display); text-align: center; }
.steps b { display: block; font-family: var(--display); }
.steps p { color: var(--muted); font-size: 15.5px; }
.story.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
.story.flip .media { order: 2; max-width: 420px; justify-self: center; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--wis-soft); color: var(--ink); }
@media (max-width: 900px) { .story, .story.flip { grid-template-columns: 1fr; gap: 32px; } .story.flip .media { order: 0; } }

/* care settings */
.settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.setting-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.setting-card > div { padding: 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; animation: rise .4s ease both; }
.setting-card > div:first-child { border-left: 0; }
.setting-card dt { font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.setting-card dd { margin: 0; font-size: 15.5px; }
.setting-card .t { font: 700 22px/1.2 var(--display); }
.setting-card .unit { font-family: var(--mono); font-size: 13.5px; color: var(--wis); }
@media (max-width: 900px) { .setting-card { grid-template-columns: 1fr 1fr; } .setting-card > div:nth-child(3) { border-left: 0; } .setting-card > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .setting-card { grid-template-columns: 1fr; } .setting-card > div { border-left: 0; } .setting-card > div + div { border-top: 1px solid var(--line); } }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tcard { padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.tcard .ix { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wis-soft); color: var(--wis); }
.tcard .ix svg { width: 22px; height: 22px; }
.tcard p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.pop { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan.pop::before { content: 'For multi-agency owners'; position: absolute; top: -13px; left: 24px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan .price { font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 15px var(--sans); color: var(--muted); }
.plan .who { color: var(--muted); font-size: 15px; min-height: 2.9em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wis); margin-top: 9px; flex-shrink: 0; }
.billing-toggle { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font: 600 14.5px var(--sans); color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 17px var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--sans); color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 70ch; }

/* demo */
.demo { background: var(--navy); color: #fff; }
.demo .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.demo h2 { color: #fff; }
.demo .lede { color: #C9D7EE; }
.demo ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #D6E2F5; }
.demo ul li::before { content: '•'; color: #C4B5FD; margin-right: 10px; }
.form { background: var(--card); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 400 16px var(--sans); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.form textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.form .err { color: var(--bad); font-size: 14px; }
.form .done { background: var(--good-bg); color: var(--good); border-radius: 12px; padding: 16px; }
.form .copyrow { display: flex; gap: 8px; margin-top: 10px; }
.form .copyrow input { font-family: var(--mono); font-size: 14px; }
@media (max-width: 900px) { .demo .wrap { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* footer */
footer { background: var(--paper); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 36px; color: var(--muted); font-size: 14.5px; }
footer .logo { color: var(--ink); }
footer .logo .lt small { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--blue); }

/* reveal: elements are visible at rest; JS only adds a gentle lift when they enter */
.reveal.in { animation: rise .6s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .browser { transform: none; }
}

/* ===== illustrations (no product screens are shown publicly) ===== */
/* hero journey */
.journey { position: relative; min-width: 0; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.j-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.j-title { font: 700 18px var(--display); color: #fff; }
.j-day { font: 500 13px var(--mono); color: #0B2447; background: #C4B5FD; border-radius: 999px; padding: 4px 12px; }
.j-track { --p: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.j-track::before, .j-track::after { content: ''; position: absolute; top: 13px; left: calc(100% / 14); height: 4px; border-radius: 2px; }
.j-track::before { right: calc(100% / 14); background: rgba(255,255,255,.14); }
.j-track::after { width: calc((100% - 100% / 7) * var(--p) / 6); background: linear-gradient(90deg, #8B78E6, #6E9CFF); transition: width .8s cubic-bezier(.4,0,.2,1); }
.j-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: #9FB3D6; text-align: center; line-height: 1.25; }
.j-track li::before { content: ''; width: 30px; height: 30px; border-radius: 50%; background: #13305C; border: 2px solid rgba(255,255,255,.2); transition: background .4s, border-color .4s, transform .4s; }
.j-track li.done { color: #fff; }
.j-track li.done::before { background: #1D5FD1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; border-color: #6E9CFF; }
.j-track li.now::before { background: #8B78E6; border-color: #C4B5FD; transform: scale(1.18); box-shadow: 0 0 0 8px rgba(139,120,230,.22); }
.j-event { display: flex; align-items: center; gap: 12px; background: #fff; color: #0F1B2D; border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.j-event.swap { animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.j-dot { width: 10px; height: 10px; border-radius: 50%; background: #2E9B5C; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(46,155,92,.5); animation: pulse 1.8s infinite; }
.j-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.j-stats > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.j-stats .lbl { font-size: 12px; color: #9FB3D6; }
.j-stats b { font: 700 22px/1.1 var(--display); color: #fff; }
.j-stats b.zero { color: #7FD6A0; }
.j-cap { font-size: 12px; color: #8EA3C7; text-align: right; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,155,92,.45); } 70% { box-shadow: 0 0 0 10px rgba(46,155,92,0); } 100% { box-shadow: 0 0 0 0 rgba(46,155,92,0); } }
@media (max-width: 560px) { .j-track li { font-size: 0; gap: 0; } .j-track li.now { font-size: 11px; gap: 6px; } .journey { padding: 18px; } .j-stats b { font-size: 18px; } }

/* product explorer scene */
.scene { position: relative; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); overflow: hidden; display: flex; flex-direction: column; gap: 26px; min-height: 360px; animation: rise .45s ease both; }
.scene::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 22px 22px; opacity: .7; pointer-events: none; }
.scene > * { position: relative; }
.sc-head { display: flex; align-items: center; gap: 16px; }
.sc-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 24px rgba(11,36,71,.25); }
.sc-icon svg { width: 30px; height: 30px; }
.sc-head h3 { font-size: 24px; }
.sc-head p { color: var(--muted); font-size: 15px; }
.sc-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.sc-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; margin-right: 34px; min-width: 0; animation: litStep 4.8s infinite; animation-delay: calc(var(--i) * 1.2s); }
.sc-step:last-child { margin-right: 0; }
.sc-step:not(:last-child)::after { content: ''; position: absolute; right: -27px; top: 50%; width: 20px; height: 2px; background: var(--line); }
.sc-step:not(:last-child)::before { content: ''; position: absolute; right: -29px; top: calc(50% - 5px); border: 6px solid transparent; border-left-color: var(--line); }
.sc-step .k { font: 500 12px var(--mono); color: var(--wis); }
.sc-step b { font-family: var(--display); font-size: 16px; line-height: 1.3; }
.sc-step span { font-size: 14px; color: var(--muted); }
@keyframes litStep { 0%, 100% { border-color: var(--line); box-shadow: none; } 8%, 30% { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); } 40% { border-color: var(--line); box-shadow: none; } }
.sc-out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 600; }
.sc-out .meter { flex: 1; min-width: 140px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--good) 18%, transparent); overflow: hidden; }
.sc-out .meter i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 4px; animation: fill 2.4s .4s cubic-bezier(.3,.8,.2,1) forwards; }
@keyframes fill { to { width: var(--to, 90%); } }
@media (max-width: 700px) { .sc-flow { grid-template-columns: 1fr; gap: 14px; } .sc-step { margin-right: 0; } .sc-step::before, .sc-step::after { display: none; } }

/* phones */
.phones { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; gap: 0; padding: 58px clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px); }
.phone { position: relative; background: #0B1A33; border-radius: 34px; padding: 10px; box-shadow: 0 24px 50px rgba(11,36,71,.22); max-width: 260px; width: 100%; justify-self: center; }
.phone::before { content: ''; position: absolute; top: 16px; left: 50%; width: 60px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); transform: translateX(-50%); z-index: 2; }
.ph-lab { position: absolute; top: -30px; left: 6px; font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.ph-screen { background: #F3F6FB; border-radius: 26px; min-height: 430px; padding: 38px 16px 18px; display: flex; flex-direction: column; gap: 14px; color: #0F1B2D; overflow: hidden; }
.cg-ring { align-self: center; width: 132px; height: 132px; border-radius: 50%; background: #1D5FD1; color: #fff; display: grid; place-items: center; font: 700 18px var(--display); text-align: center; box-shadow: 0 0 0 10px rgba(29,95,209,.15); transition: background .4s, box-shadow .4s; margin-top: 10px; }
.cg-ring.on { background: #16683A; box-shadow: 0 0 0 10px rgba(22,104,58,.15); animation: pulseG 1.8s infinite; }
.cg-ring.done { background: #0B2447; box-shadow: 0 0 0 10px rgba(11,36,71,.12); }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(46,155,92,.45); } 70% { box-shadow: 0 0 0 18px rgba(46,155,92,0); } 100% { box-shadow: 0 0 0 0 rgba(46,155,92,0); } }
.cg-state { text-align: center; font-size: 14px; color: #4E5B72; }
.cg-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cg-tasks li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #DCE3EE; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.cg-tasks li::before { content: ''; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #B5C2D6; flex-shrink: 0; transition: background .3s, border-color .3s; }
.cg-tasks li.t::before { background: #16683A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: #16683A; }
.phones-link { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phones-link i { width: 9px; height: 9px; border-radius: 50%; background: var(--wis); opacity: .25; animation: hop 1.4s infinite; }
.phones-link i:nth-child(2) { animation-delay: .2s; } .phones-link i:nth-child(3) { animation-delay: .4s; }
@keyframes hop { 0%, 100% { opacity: .2; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(6px); } }
.fam-feed { justify-content: flex-start; }
.note { background: #fff; border: 1px solid #DCE3EE; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 4px 12px rgba(11,36,71,.06); animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.note b { display: block; font-size: 14px; }
.note small { color: #6A7891; }
.note .nd { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: #1D5FD1; }
.note.g .nd { background: #2E9B5C; } .note.w .nd { background: #8B78E6; }
@media (max-width: 560px) { .phones { grid-template-columns: 1fr; gap: 58px; } .phones-link { display: none; } .ph-screen { min-height: 380px; } }

/* family app demo */
.fam-demo { padding: clamp(18px, 3vw, 30px); display: grid; place-items: center; }
.phone.big { max-width: 300px; }
.fd-top { display: flex; align-items: center; gap: 10px; }
.fd-ava { width: 40px; height: 40px; border-radius: 50%; background: #E7EFFD; color: #164BA8; display: grid; place-items: center; font: 700 16px var(--display); }
.fd-top b { display: block; font-family: var(--display); }
.fd-top span { font-size: 12.5px; color: #6A7891; }
.fd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: #E6ECF5; border-radius: 10px; padding: 4px; }
.fd-tabs span { text-align: center; font-size: 12px; font-weight: 600; color: #6A7891; padding: 6px 0; border-radius: 7px; transition: background .3s, color .3s; }
.fd-tabs span.on { background: #fff; color: #1D5FD1; }
.fd-pane { min-height: 270px; display: flex; flex-direction: column; gap: 10px; }
.fd-pane > * { animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.fd-live { background: #E9F7EF; border: 1px solid #A9D9BF; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fd-live b { font: 700 18px/1.25 var(--display); }
.fd-live small { color: #16683A; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.fd-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 12px; background: #fff; border-radius: 14px; border: 1px solid #DCE3EE; }
.fd-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: #1D5FD1; height: 0; animation: grow .8s cubic-bezier(.3,.8,.2,1) forwards; }
.fd-bars i.p { background: #C9DAF7; }
@keyframes grow { to { height: var(--h); } }
.fd-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fd-kpi div { background: #fff; border: 1px solid #DCE3EE; border-radius: 10px; padding: 8px; font-size: 11.5px; color: #6A7891; }
.fd-kpi b { display: block; font: 700 18px var(--display); color: #0F1B2D; }
.bub { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; }
.bub.me { align-self: flex-end; background: #1D5FD1; color: #fff; border-bottom-right-radius: 4px; }
.bub.them { align-self: flex-start; background: #fff; border: 1px solid #DCE3EE; border-bottom-left-radius: 4px; }
.fd-pay { background: #fff; border: 1px solid #DCE3EE; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fd-pay .amt { font: 800 30px var(--display); }
.fd-pay .paid { align-self: flex-start; background: #E2F4E8; color: #16683A; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.fd-pay .bar { height: 40px; border-radius: 10px; background: #1D5FD1; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }

.ff-head { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #DCE3EE; }
.ff-head b { font-family: var(--display); display: block; }
.ff-head small { color: #6A7891; font-size: 12px; }

.plan .per-cg { font-weight: 600; color: var(--ink); background: var(--wis-soft); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }
.estimator { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.estimator h3 { margin-bottom: 14px; }
.pair.two { grid-template-columns: 1fr 1fr; }
.est-out { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 28px; min-width: 0; }
.est-out .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; }
.est-out .row span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.est-out .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 17px; }
.est-out .tot span:last-child { font: 800 28px var(--display); color: var(--blue); }
.est-out .rec { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wis); }
@media (max-width: 800px) { .estimator { grid-template-columns: 1fr; } .est-out { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }

/* product explorer v2: icon strip + problem / how it works / outcome card */
.explorer2 { display: flex; flex-direction: column; gap: 18px; }
.pnav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ptab { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 13.5px/1.25 var(--sans); text-align: center; cursor: pointer; transition: border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.ptab:hover { color: var(--ink); transform: translateY(-2px); }
.ptab .ix { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); transition: background .2s, color .2s; }
.ptab .ix svg { width: 22px; height: 22px; }
.ptab[aria-selected="true"] { color: var(--ink); border-color: var(--blue); box-shadow: var(--shadow); }
.ptab[aria-selected="true"] .ix { background: var(--blue); color: #fff; }
.ptab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); }
.ptab[aria-selected="true"] .prog.run { animation: prog var(--dur, 8s) linear forwards; }
@keyframes prog { to { width: 100%; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; animation: rise .45s ease both; }
.pc-left { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pc-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.pc-who span { background: var(--wis-soft); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.pc-left h3 { font-size: clamp(24px, 2.6vw, 30px); }
.pc-ba { display: grid; gap: 10px; }
.pc-ba > div { border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; }
.pc-ba .lbl { display: block; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.pc-ba .b4 { background: var(--bad-bg); }
.pc-ba .b4 .lbl, .pc-ba .b4 svg { color: var(--bad); }
.pc-ba .af { background: var(--good-bg); }
.pc-ba .af .lbl, .pc-ba .af svg { color: var(--good); }
.pc-ba svg { width: 22px; height: 22px; margin-top: 2px; }
.pc-next { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--blue); font: 600 15px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pc-next:hover { text-decoration: underline; }
.pc-right { position: relative; background: var(--navy); color: #fff; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pc-right::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(196,181,253,.18) 1.2px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.pc-right > * { position: relative; }
.pc-right .eyebrow { color: #C4B5FD; }
.hiw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.hiw li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.hiw li:last-child { padding-bottom: 0; }
.hiw li::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: rgba(255,255,255,.15); }
.hiw li:last-child::after { display: none; }
.hiw .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--display); background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); color: #C9D7EE; transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.hiw li.on .n { background: #1D5FD1; border-color: #6E9CFF; color: #fff; box-shadow: 0 0 0 6px rgba(110,156,255,.2); }
.hiw li.on::after { background: linear-gradient(#6E9CFF, rgba(255,255,255,.15)); }
.hiw .k { font: 500 12px var(--mono); color: #C4B5FD; }
.hiw b { display: block; font: 700 17px/1.3 var(--display); margin: 2px 0 4px; }
.hiw p { color: #B9CBE8; font-size: 14.5px; line-height: 1.5; }
.pc-out { margin-top: auto; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; }
.pc-out svg { width: 26px; height: 26px; color: #7FD6A0; flex-shrink: 0; }
.pc-out span { font-weight: 600; }
.pc-out small { display: block; color: #9FB3D6; font-weight: 400; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1000px) { .pnav { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .ptab { flex: 0 0 104px; } }
@media (max-width: 820px) { .pcard { grid-template-columns: 1fr; } }
.stage .hiw li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; color: #fff; font-size: inherit; }
.stage .hiw li::before { content: none; display: none; }
.stage .hiw b { color: #fff; }
.pc-left h3 { color: var(--ink); }
