/* ==========================================================================
   Homepage (2026-10-07 revamp; hero rebuilt around the evidence path 2026-10-14).
   Loaded by index.html only, after styles.css.
   The app mockups (.app-*, .chat-*) copy the real app's look: blue #2563eb,
   light grey canvas, navy nav. Their words are real assistant replies from the
   fictional demo case (Alex, Jordan, Sam), captured by CustodyCommanderMarketing
   (marketing_materials/app-screens/ai-transcripts.json).
   ========================================================================== */

:root {
  --app-blue: #2563eb;
  --app-blue-deep: #1d4ed8;
  --app-canvas: #f0f3f9;
  --app-ink: #0f172a;
  --app-soft: #475569;
  --app-line: #dfe5ef;
  --app-nav: #0b1220;
  --app-ok: #047857;
  --app-ok-soft: #ecfdf5;
  --app-bad: #b91c1c;
  --app-bad-soft: #fef2f2;
}

/* `.section-head p` (styles.css) outranks `.eyebrow`; keep section eyebrows small. */
.section-head p.eyebrow { font-size: var(--fs-xs); color: var(--accent-deep); }
.section-navy .section-head p.eyebrow { color: #f0a26b; }

/* In-page targets clear the sticky header. */
main [id] { scroll-margin-top: 5rem; }

/* ---------- Hero: the rapid evidence path (2026-10-14) ----------
   For the parent with a hearing in days: headline, one main button (sign up,
   then the app's Evidence screen), the free 2-minute check beside it, the
   "Built for one parent" badge, then three steps with real demo-case screens. */
.hx { padding: clamp(2.25rem, 1.5rem + 3.5vw, 4.75rem) 0 clamp(2.75rem, 2rem + 3vw, 4.75rem); overflow: hidden; }
.hx-head { text-align: center; max-width: 56rem; margin: 0 auto; }
.hx-head .eyebrow { justify-content: center; }
.hx h1 { max-width: 17ch; margin-inline: auto; font-size: clamp(2.1rem, 1.45rem + 3.3vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.08; }
.hx h1 em { font-style: normal; color: #f0a26b; }
@media (min-width: 36rem) { .hx h1 em { display: block; } }
.hx .lede { margin-inline: auto; max-width: 58ch; }
.hx .lede strong { color: #fff; font-weight: 650; }
.hx .hero-actions { justify-content: center; }
.hx-go svg { flex: none; width: 21px; height: 21px; }
@media (max-width: 35.99rem) {
  .hx .eyebrow::before { display: none; }
  .hx .lede { font-size: 1.06rem; margin-bottom: 1.4rem; }
  .hx .hero-actions .btn { width: 100%; }
  .hx .btn-lg { padding: 0.95rem 0.9rem; font-size: 1.02rem; text-wrap: balance; }
  .hx-go svg { display: none; }
  .hx .hx-proof { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0.5rem 1rem; text-align: left; font-size: var(--fs-xs); }
}
.hx-fine { margin: 0.85rem auto 0; max-width: 56ch; font-size: var(--fs-xs); line-height: 1.5; color: #93a1bd; }
/* "Built for one parent": the biggest difference from the shared co-parenting
   apps, as a badge right by the main button (2026-10-14). */
.hx-solo { display: inline-flex; align-items: center; gap: 0.65rem; margin: 1.15rem auto 0; padding: 0.5rem 1.15rem 0.5rem 0.5rem; border: 1px solid rgba(127, 212, 168, 0.45); border-radius: var(--radius-pill); background: rgba(127, 212, 168, 0.1); color: #dbe5f3; font-size: var(--fs-sm); line-height: 1.4; text-align: left; }
.hx-solo svg { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: #7fd4a8; color: var(--navy-950); }
.hx-solo strong { color: #fff; }
@media (max-width: 35.99rem) { .hx-solo { border-radius: var(--radius); } }
/* The free 2-minute check: the low-commitment option, set apart from the main CTA. */
.btn-quiz { background: rgba(240, 162, 107, 0.12); color: #fff; border-color: #f0a26b; }
.btn-quiz:hover { background: rgba(240, 162, 107, 0.26); color: #fff; }
.btn-quiz svg { flex: none; width: 20px; height: 20px; color: #f0a26b; }
.hx-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-size: var(--fs-sm); color: #b9c4da; }
.hx-proof li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hx-proof svg { width: 17px; height: 17px; color: #7fd4a8; flex: none; }

/* The three steps: white cards on the navy hero. A phone stacks them; from
   60rem they sit side by side with the screens lined up along the bottom. */
.ev { position: relative; margin-top: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem); }
.ev::before { content: ""; position: absolute; inset: 10% -10% 0; background: radial-gradient(closest-side, rgba(93, 141, 240, 0.28), transparent); filter: blur(10px); pointer-events: none; }
.ev-steps { position: relative; display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 60rem) { .ev-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.ev-step { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; color: var(--ink); text-align: left; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.ev-copy { padding: 1.25rem 1.25rem 1.1rem; }
.ev-copy h3 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.5rem; font-size: 1.22rem; letter-spacing: -0.015em; color: var(--ink); }
.ev-n { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 800; letter-spacing: 0; }
.ev-copy p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.85rem 0 0; padding: 0; }
.ev-tags li { padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); background: #eef4ff; color: #1e40af; font-size: 0.74rem; font-weight: 700; }
.ev-tags li:last-child { background: var(--app-ok-soft); color: var(--app-ok); }
/* A real app screen peeking up from the bottom of each card. */
.ev-shot { margin-top: auto; padding: 0 1.25rem; background: linear-gradient(#fff 0%, var(--app-canvas) 100%); }
.ev-shot img { display: block; width: 100%; height: 12.5rem; object-fit: cover; object-position: top; border: 1px solid var(--app-line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 22px -12px rgba(15, 23, 42, 0.35); -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
@media (min-width: 60rem) { .ev-shot img { height: 15rem; } }
.ev-shot-drop img, .ev-shot-full img { height: auto; -webkit-mask-image: none; mask-image: none; }
@media (min-width: 60rem) { .ev-shot-drop img, .ev-shot-full img { height: auto; } }
/* Step 1: a few (made-up) files about to be dropped in. */
.ev-files { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.85rem 0 0; padding: 0; }
.ev-files li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.32rem 0.6rem; border: 1px dashed #b3c1d8; border-radius: 8px; background: #fff; color: var(--app-soft); font: 600 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ev-files li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--app-blue); }
.ev-files .f-img::before { background: #059669; }
.ev-files .f-aud::before { background: #7c3aed; }
.ev-files .f-pdf::before { background: #dc2626; }
.ev-foot { position: relative; margin-top: 1.75rem; text-align: center; }
.ev-foot p { margin: 0.9rem auto 0; max-width: 62ch; font-size: var(--fs-xs); line-height: 1.55; color: #93a1bd; }
.ev-foot a:not(.btn) { color: #f0a26b; font-weight: 650; text-underline-offset: 3px; }
.ev-foot a:not(.btn):hover { color: #fff; }
@media (max-width: 35.99rem) { .ev-foot .btn { width: 100%; } }

/* ---------- Hearing in 7 days? A quick plan, then the free tools ---------- */
.d7 { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.d7-card { display: grid; gap: 1.25rem 3rem; padding: clamp(1.35rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
@media (min-width: 60rem) { .d7-card { grid-template-columns: 0.75fr 1.25fr; align-items: start; } .d7-actions { grid-column: 2; } }
.d7-head .eyebrow { margin-bottom: 0.6rem; }
.d7-head h2 { margin: 0 0 0.5rem; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem); }
.d7-head p:not(.eyebrow) { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.d7-days { display: grid; list-style: none; margin: 0; padding: 0; }
.d7-days li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.9rem; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft); }
.d7-days li:first-child { padding-top: 0; border-top: 0; }
.d7-days b { padding-top: 0.12rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
@media (max-width: 29.99rem) { .d7-days li { grid-template-columns: 1fr; gap: 0.15rem; } }
.d7-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; }
.d7-link { font-weight: 650; text-decoration: none; }
.d7-link:hover { text-decoration: underline; }
@media (max-width: 35.99rem) { .d7-actions .btn { width: 100%; } }
.tools-row { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
@media (min-width: 40rem) { .tools-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tools-row { grid-template-columns: repeat(4, 1fr); } }
.tools-k { grid-column: 1 / -1; margin: 0 0 0.15rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tool-chip { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); font-size: var(--fs-xs); line-height: 1.4; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tool-chip:hover { border-color: var(--indigo); box-shadow: var(--shadow-md); color: var(--ink-soft); }
.tool-chip svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); }
.tool-chip b { display: block; margin-bottom: 0.1rem; font-size: var(--fs-sm); color: var(--ink); }

/* The app window (the assistant demo below uses it). */
.app-win { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; color: var(--app-ink); text-align: left; }
.app-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; background: #e9edf4; border-bottom: 1px solid var(--app-line); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfd6e2; }
.app-bar i:nth-child(1) { background: #f87171; }
.app-bar i:nth-child(2) { background: #fbbf24; }
.app-bar i:nth-child(3) { background: #34d399; }
.app-url { margin: 0 auto; padding: 0.2rem 1rem; border-radius: 999px; background: #fff; font-size: 0.72rem; color: var(--app-soft); letter-spacing: 0.01em; }
.app-main { display: flex; flex-direction: column; background: var(--app-canvas); min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; background: #fff; border-bottom: 1px solid var(--app-line); }
.app-top b { font-size: 1.02rem; letter-spacing: -0.01em; }
.app-top span { font-size: 0.75rem; color: var(--app-soft); border: 1px solid var(--app-line); border-radius: 8px; padding: 0.2rem 0.6rem; }
/* Chat thread (the assistant demo) */
.chat-thread { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.1rem; flex: 1; }
.chat-me { align-self: flex-end; max-width: 82%; background: var(--app-blue); color: #fff; padding: 0.65rem 0.95rem; border-radius: 16px 16px 4px 16px; font-size: 0.9rem; line-height: 1.45; }
.chat-ai { display: flex; gap: 0.65rem; align-items: flex-start; max-width: 94%; font-size: 0.9rem; line-height: 1.5; color: var(--app-ink); }
.chat-ai > .chat-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--app-blue); color: #fff; }
.chat-av svg { width: 16px; height: 16px; }
.chat-ai > div { min-width: 0; }
.chat-ai p { margin: 0 0 0.45rem; }
.chat-ai p:last-child { margin-bottom: 0; }
.chat-ai ol { margin: 0.2rem 0 0.45rem; padding-left: 1.2rem; }
.chat-ai li { margin-bottom: 0.25rem; }
.chat-chip { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; max-width: 100%; padding: 0.3rem 0.65rem; border: 1px solid #a7f3d0; border-radius: 8px; background: var(--app-ok-soft); color: var(--app-ok); font-size: 0.78rem; font-weight: 600; }
.chat-chip b { font-size: 0.66rem; letter-spacing: 0.08em; }
.chat-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-chip svg { width: 13px; height: 13px; flex: none; }
.chat-compose { display: flex; align-items: center; gap: 0.6rem; margin: 0 1.1rem 1.1rem; padding: 0.45rem 0.45rem 0.45rem 1rem; border: 1px solid var(--app-line); border-radius: 14px; background: #fff; font-size: 0.85rem; color: #94a3b8; }
.chat-compose span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-compose i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--app-blue); color: #fff; flex: none; }
.chat-compose i svg { width: 16px; height: 16px; }

/* ---------- Features: one tabbed panel, grouped Organize / Prepare / Protect ----------
   (2026-10-14, after OurFamilyWizard's "Powerful features" block). The tabs are
   pills under their pillar label; on a phone they become one swipeable row with
   the pillar names as dividers. home.js runs the tabs and opens the pane a link
   points at (#message-logs, #comms-guard, …). */
.fx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.25rem; margin-bottom: 1.5rem; }
.fx-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.fx-pillar { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fx-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.fx-tab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.15rem; border: 1.5px solid #d3dce9; border-radius: var(--radius-pill); background: #eef2f8; color: var(--ink); font: 600 0.97rem/1.2 var(--font); white-space: nowrap; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.fx-tab:hover { border-color: #9fb2cf; background: #fff; }
.fx-tab[aria-selected="true"] { border-color: var(--indigo); background: #fff; color: var(--indigo-deep); box-shadow: 0 6px 18px -10px rgba(37, 64, 122, 0.65); }
.fx-tab svg { flex: none; width: 16px; height: 16px; }
/* Comms Guard carries a little more weight: the safety net for the reply you're about to send. */
.fx-tab-guard { border-color: rgba(217, 122, 60, 0.55); background: var(--accent-soft); color: var(--accent-deep); }
.fx-tab-guard:hover { border-color: var(--accent); background: #fff; }
.fx-tab-guard[aria-selected="true"] { border-color: var(--accent-deep); color: var(--accent-deep); box-shadow: 0 6px 18px -10px rgba(184, 95, 36, 0.7); }
@media (max-width: 47.99rem) {
  .fx-tabs { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 0.45rem; overflow-x: auto; margin-inline: -1.25rem; padding: 0.25rem 1.25rem 0.6rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
  .fx-tabs::-webkit-scrollbar { display: none; }
  .fx-group, .fx-pills { display: contents; }
  .fx-pillar { flex: none; margin-left: 0.5rem; font-size: 0.64rem; }
  .fx-group:first-child .fx-pillar { margin-left: 0; }
  .fx-tab { flex: none; scroll-snap-align: start; scroll-margin-left: 1.25rem; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
}

.fx-pane { display: grid; gap: 2rem; align-items: center; padding: clamp(1.4rem, 0.9rem + 3vw, 3.75rem); border: 1px solid #dbe3ee; border-radius: var(--radius-lg); background: #edf1f7; }
.fx-pane > * { min-width: 0; }
.fx-pane[hidden] { display: none; }
.fx-pane.fx-in { animation: pop 0.3s ease both; }
@media (min-width: 56rem) { .fx-pane { grid-template-columns: 1fr 1fr; gap: 3.5rem; min-height: 35rem; } }
.fx-kicker { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); }
.fx-kicker .tag-add, .fx-kicker .tag-price { margin-left: 0; }
.fx-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 0.6em; }
.fx-copy h3 b { font-weight: 800; }
.fx-copy > p:not([class]) { color: var(--ink-soft); }
.fx-copy .checklist { margin: 1.25rem 0 1.6rem; gap: 0.7rem; }
.fx-note { margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.fx-art { position: relative; display: flex; justify-content: center; }
.fx-art::before { content: ""; position: absolute; inset: 4% 6%; border-radius: 40px; background: radial-gradient(closest-side, rgba(93, 141, 240, 0.22), transparent); pointer-events: none; }
.fx .phone { width: min(80%, 16.5rem); }
.fx .phone img { max-height: 29rem; }
.fx .phone-pair .phone { width: min(60%, 15rem); }
.fx .doc-frame { width: min(100%, 28rem); }
@media (max-width: 55.99rem) { .fx .phone img { max-height: 21rem; } .fx .phone-pair .phone + .phone { margin-top: 2.5rem; } }
.fx-foot { display: flex; align-items: center; justify-content: center; gap: 0.75rem; max-width: 46rem; margin: 1.5rem auto 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.fx-foot svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--app-blue); color: #fff; }
.fx-foot strong { color: var(--ink); }
.fx-foot a { font-weight: 650; white-space: nowrap; }

/* ---------- Why this exists: the founder story, right under the features ---------- */
.why { padding: clamp(2.75rem, 2rem + 3vw, 4.25rem) 0; background: var(--navy-900); color: #c4cee2; }
.why-grid { display: grid; gap: 1.5rem 3.5rem; align-items: center; }
@media (min-width: 56rem) { .why-grid { grid-template-columns: 0.9fr 1.1fr; } }
.why .eyebrow { color: #f0a26b; }
.why .eyebrow::before { background: #f0a26b; }
.why h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.05rem); }
.why-quote { margin: 0; }
.why-quote p { margin: 0; padding-left: 1.3rem; border-left: 4px solid var(--accent); font-size: var(--fs-lg); line-height: 1.6; font-style: italic; color: #e8edf7; }
.why-quote figcaption { margin-top: 0.9rem; padding-left: 1.3rem; font-size: var(--fs-sm); color: #93a1bd; }

/* ---------- Assistant demo ---------- */
.ask { display: grid; gap: 1.5rem; align-items: start; }
.ask > * { min-width: 0; }
@media (min-width: 60rem) { .ask { grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; } }
.ask-tabs { display: grid; gap: 0.55rem; }
.ask-tab { display: flex; gap: 0.8rem; align-items: flex-start; width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.ask-tab:hover { border-color: var(--line-strong); }
.ask-tab[aria-selected="true"] { border-color: var(--app-blue); background: #f5f8ff; box-shadow: 0 8px 24px -14px rgba(37, 99, 235, 0.55); }
.ask-tab svg { flex: none; width: 20px; height: 20px; margin-top: 0.15rem; color: var(--accent-deep); }
.ask-tab[aria-selected="true"] svg { color: var(--app-blue); }
.ask-tab b { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }
.ask-tab span { display: block; font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 59.99rem) {
  .ask-tabs { grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: thin; }
  .ask-tab { scroll-snap-align: start; }
}
@media (min-width: 60rem) { .ask-win { position: sticky; top: 6rem; } }
.chat-chip.upd { border-color: #fcd9a8; background: #fffbeb; color: #b45309; }
.ask-win .app-main { min-height: 22rem; }
@media (min-width: 60rem) { .ask-win .app-main { min-height: 31rem; } }
.ask-pane { flex: 1; display: flex; flex-direction: column; }
.ask-pane[hidden] { display: none; }
/* home.js adds .play to replay a conversation: the question, a moment of
   "typing", then the answer. Without JS (or with reduced motion) the answer
   simply shows. */
.chat-typing { display: none; }
.ask-pane.play .chat-me { animation: pop 0.35s ease both; }
.ask-pane.play .chat-typing { display: inline-flex; gap: 4px; align-self: flex-start; margin-left: 2.3rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: #fff; border: 1px solid var(--app-line); overflow: hidden; animation: typing 1.25s ease both; }
.ask-pane.play .chat-ai { animation: pop 0.4s ease 1.15s both; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: blink 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes typing { 0%, 20% { opacity: 0; max-height: 3rem; } 30%, 85% { opacity: 1; max-height: 3rem; } 100% { opacity: 0; max-height: 0; padding-block: 0; margin-block: -0.9rem 0; border-width: 0; } }
.ask-note { margin: 0.9rem 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.can { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.can h3 { font-size: 1.1rem; text-align: center; margin-bottom: 1rem; }
.can-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.can-list li { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); color: var(--ink-soft); }
.can-list li q { quotes: "“" "”"; color: var(--ink); }
.rails { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 48rem) { .rails { grid-template-columns: repeat(3, 1fr); } }
.rail { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-soft); }
.rail svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 0.1rem; }
.rail strong { display: block; color: var(--ink); }

/* ---------- Shared by the feature panes ---------- */
.feat-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; align-items: center; }
.feat-links a:not(.btn) { font-weight: 650; text-decoration: none; }
.feat-links a:not(.btn):hover { text-decoration: underline; }
.tag-add { display: inline-block; margin-left: 0.4rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: #efe9fb; color: #5b3aa8; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.tag-price { display: inline-block; margin-left: 0.4rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }

/* A real screen from the app, in a phone frame */
.phone { position: relative; width: min(100%, 19.5rem); border: 9px solid var(--app-nav); border-radius: 38px; background: var(--app-canvas); box-shadow: var(--shadow-lg); overflow: hidden; }
.phone img { width: 100%; height: auto; max-height: 34rem; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.phone.short img { max-height: none; -webkit-mask-image: none; mask-image: none; }
.phone-pair { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.phone-pair .phone { width: min(64%, 19rem); }
.phone-pair .phone + .phone { margin-left: -12%; margin-top: 3.5rem; }
.badge-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.85rem; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.badge-float svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.badge-float.tl { top: 8%; left: 0; }
.badge-float.br { bottom: 12%; right: 0; }
@media (min-width: 56rem) { .badge-float.tl { left: -1rem; } .badge-float.br { right: -1rem; } }
.doc-frame { position: relative; width: min(100%, 30rem); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); transform: rotate(-1.2deg); }
.doc-frame img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* Three steps */
.steps-3 { counter-reset: s; display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 52rem) { .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.steps-3 li { position: relative; padding: 1.5rem 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.steps-3 li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.9rem; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800; font-size: 0.95rem; }
.steps-3 h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps-3 p { color: var(--ink-soft); font-size: var(--fs-sm); }
.steps-3 q { quotes: "“" "”"; color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .ask-pane.play .chat-me, .ask-pane.play .chat-ai, .chat-typing i { animation: none !important; }
  .ask-pane.play .chat-typing { display: none; }
  .fx-tab, .ask-tab { transition: none; }
  .fx-pane.fx-in { animation: none; }
}
@media print {
  .ev-shot, .fx-tabs, .ask-win { display: none !important; }
  .fx-pane[hidden] { display: grid !important; margin-top: 1rem; }
}

/* Apps section: a "Try it today" strip right above the app waitlist box. */
.apps-actions { display: grid; gap: 1rem; }
.apps-try { display: grid; gap: 0.35rem 1.2rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: var(--radius-lg); background: var(--navy-900); color: #c4cee2; box-shadow: var(--shadow-md); }
@media (min-width: 40rem) { .apps-try { grid-template-columns: 1fr auto; } .apps-try .btn { grid-row: 1 / span 2; grid-column: 2; } }
.apps-try h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.apps-try p { margin: 0; color: #b9c4da; }
.apps-try .btn { white-space: nowrap; }

/* ---------- Comparison matrix (navy section, 2026-10-14) ----------
   A white card on the navy band. Below 56rem each row becomes its own card,
   with every cell labelled by its product (data-label), so nothing scrolls sideways. */
.cmp-wrap { overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.cmp { width: 100%; min-width: 50rem; border-collapse: separate; border-spacing: 0; color: var(--ink); font-size: var(--fs-sm); line-height: 1.45; }
.cmp th, .cmp td { padding: 0.95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp td { position: relative; padding-left: 2.6rem; color: var(--ink-soft); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { padding-block: 1.1rem; background: #f6f4ef; font-size: 0.88rem; font-weight: 750; white-space: nowrap; vertical-align: bottom; }
.cmp thead th:not(:first-child) { padding-left: 2.6rem; }
.cmp thead th img { display: inline-block; margin: 0 0.45rem 0 -1.6rem; border-radius: 5px; vertical-align: -5px; }
.cmp tbody th { width: 22%; font-weight: 650; color: var(--ink); }
.cmp th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
.cmp thead th:first-child { background: #f6f4ef; }
.cmp td.cmp-us { background: #fdf4ec; color: var(--ink); font-weight: 600; }
.cmp thead th.cmp-us { background: var(--accent); color: #fff; }
.cmp td b { display: block; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.cmp td.cmp-us b { color: var(--accent-deep); }
.cmp-i { position: absolute; top: 0.95rem; left: 1rem; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.cmp-i svg { width: 12px; height: 12px; }
.cmp-i.yes { background: var(--ok-soft); color: var(--ok); }
.cmp-i.no { background: #fbe7e3; color: var(--warn); }
.cmp-i.part { background: #fdf1d3; color: #a16207; }
.cmp-i.dash { background: #eef0f4; color: #8a93a6; }
@media (max-width: 55.99rem) {
  .cmp-wrap { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { margin-bottom: 0.9rem; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6); }
  .cmp tbody th { position: static; width: auto; padding: 0.8rem 1rem; background: #f6f4ef; box-shadow: none; font-size: 0.98rem; }
  .cmp td { padding: 0.6rem 1rem 0.65rem 2.6rem; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.68rem; font-weight: 800; line-height: 1.45; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .cmp td.cmp-us::before { color: var(--accent-deep); }
  .cmp-i { top: 1.75rem; }
}

/* Phone section: why the browser app is enough today. */
.apps-perks { display: grid; gap: 0.6rem; margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-soft); }
.apps-perks li { display: flex; gap: 0.6rem; align-items: flex-start; }
.apps-perks svg { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; color: var(--ok); }
.apps-perks strong { color: var(--ink); }
