/* CareCheck design system (2026-09-29).
   One stylesheet for the site, the agency page and the app. The agency site gets a copy through
   carecheck-site/scripts/sync-agency-assets.mjs; edit THIS file, never the copy.

   Idea: a shared care log. Warm paper, harbor-teal ink, one marigold reserved for the next action.
   Type: Newsreader for display, Atkinson Hyperlegible Next for everything read (built by the Braille
   Institute for low-vision readers; many CareCheck users are older, or caring for someone who is). */

:root {
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --card: #fffdf8;
  --ink: #1b2b30;
  --ink-2: #45585d;
  --ink-3: #6b7b7f;
  --harbor: #1f4e5a;
  --harbor-deep: #153a43;
  --harbor-soft: #d7e5e3;
  --sage: #8fb1aa;
  --mist: #e6eeec;
  --marigold: #f2a93b;
  --marigold-deep: #dc9021;
  --marigold-soft: #fbe8c7;
  --line: #ddd4c4;
  --line-soft: #e9e2d5;
  --high: #a8432c;
  --high-soft: #f6e0d9;
  --medium: #8a5a0f;
  --medium-soft: #f7ead2;
  --low: #45585d;
  --low-soft: #e8ecec;
  --ok: #2f6b4f;
  --ok-soft: #dcebe2;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(27, 43, 48, .04), 0 10px 30px -12px rgba(27, 43, 48, .18);
  --shadow-lg: 0 2px 0 rgba(27, 43, 48, .04), 0 30px 60px -24px rgba(27, 43, 48, .28);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins. Without this, a class that sets display (.auth-wrap is a grid) kept the
   login card on screen for a logged-in user. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--harbor); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--harbor-deep); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marigold-soft); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, .balance { text-wrap: balance; }
p, li, dd, dt, blockquote, figcaption, label, summary, .answer, .pretty, .thread-what, .plan li, .fact dd, .card p, .row-meta, .alert-text { text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 .82rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--harbor); margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.band { background: var(--harbor); color: #eef4f2; }
.band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.band .muted { color: #b9d0cc; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 1.32rem/1 var(--display); letter-spacing: -0.01em; }
.brand-by { font: 400 .78rem/1 var(--text); color: var(--ink-3); margin-left: 2px; }

/* ---------- navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 12px; width: 100%; }
}

/* ---------- buttons ---------- */
.btn { --b: var(--harbor); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.35em; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: #fff; font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--harbor-deep); border-color: var(--harbor-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; transform: none; }
.btn-cta { --b: var(--marigold); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(220, 144, 33, .8); }
.btn-cta:hover { background: var(--marigold-deep); border-color: var(--marigold-deep); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--harbor); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--harbor); color: var(--harbor-deep); }
.band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 1em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 1.7em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--harbor); font: 600 .95rem var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; } .btn-lg { padding-left: 1.2em; padding-right: 1.2em; font-size: 1.02rem; } }
.cta-note { font-size: .9rem; color: var(--ink-3); margin-top: 14px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--harbor-deep); font: 600 .78rem/1 var(--text); letter-spacing: .02em; }
.chip-warm { background: var(--marigold-soft); color: #6b4309; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font: 600 .76rem/1.3 var(--text); background: var(--mist); color: var(--harbor-deep); }

/* ---------- the care thread (signature) ---------- */
.thread { list-style: none; margin: 0; padding: 0; position: relative; }
.thread::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(to bottom, var(--sage) 0 6px, transparent 6px 11px); }
.thread-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 10px 0; }
.thread-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--sage); display: grid; place-items: center; position: relative; z-index: 1; }
.thread-dot svg { width: 13px; height: 13px; color: var(--harbor); }
.thread-item.is-done .thread-dot { background: var(--harbor); border-color: var(--harbor); }
.thread-item.is-done .thread-dot svg { color: #fff; }
.thread-item.is-warn .thread-dot { border-color: var(--marigold-deep); background: var(--marigold-soft); }
.thread-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .86rem; color: var(--ink-3); }
.thread-time { font-weight: 600; color: var(--ink-2); }
.thread-who { color: var(--ink-3); }
.thread-what { font-size: 1rem; color: var(--ink); margin-top: 2px; }
.thread-what q { font-style: italic; color: var(--ink-2); quotes: "\201C" "\201D"; }

/* The hero's example log: one card that writes itself in. */
.log-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px 24px 18px; position: relative; }
.log-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.log-card-title { font: 600 1.15rem/1.2 var(--display); margin: 0; }
.log-card-sub { font-size: .85rem; color: var(--ink-3); margin: 2px 0 0; }
.log-card-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.meter { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); }
.meter-bar { width: 72px; height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--harbor); border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .js .log-card .thread-item { opacity: 0; transform: translateY(8px); animation: write-in .55s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .log-card .thread-item:nth-child(1) { animation-delay: .35s; }
  .js .log-card .thread-item:nth-child(2) { animation-delay: .8s; }
  .js .log-card .thread-item:nth-child(3) { animation-delay: 1.25s; }
  .js .log-card .thread-item:nth-child(4) { animation-delay: 1.7s; }
  .js .log-card .thread-item:nth-child(5) { animation-delay: 2.15s; }
  .js .log-card .thread-item:nth-child(6) { animation-delay: 2.6s; }
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes write-in { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -12vw; top: -10vw; width: 58vw; height: 58vw; max-width: 820px; max-height: 820px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--harbor-soft), rgba(215, 229, 227, 0) 68%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--harbor); }
.hero .lede { margin-bottom: 30px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- facts (cited numbers) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.fact { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact dt { font: 500 clamp(2.1rem, 3.6vw, 3rem)/1 var(--display); color: var(--harbor); margin-bottom: 12px; letter-spacing: -0.02em; }
.fact dd { margin: 0; color: var(--ink-2); font-size: .98rem; }
.source { font-size: .84rem; color: var(--ink-3); margin-top: 22px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-right: 16px; }
}
@media (max-width: 460px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- steps (a horizontal thread) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: repeating-linear-gradient(to right, var(--sage) 0 6px, transparent 6px 11px); }
.step { position: relative; padding-top: 44px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--harbor); }
.section-alt .step::before { background: var(--paper-2); }
.step:last-child::before { background: var(--harbor); }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--sage) 0 6px, transparent 6px 11px); }
  .step { padding: 0 0 24px 44px; }
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--harbor); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; margin-bottom: .3em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--harbor) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.band .checklist li::before { background-color: var(--marigold); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--harbor); box-shadow: var(--shadow-lg); position: relative; }
.plan-flag { position: absolute; top: -13px; left: 26px; }
.plan h3 { font-size: 1.45rem; margin-bottom: .2em; }
.plan-for { color: var(--ink-3); font-size: .95rem; min-height: 3em; }
.plan-price { font: 500 3rem/1 var(--display); letter-spacing: -0.02em; margin: 14px 0 20px; }
.plan-price small { font: 400 1rem var(--text); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; border-top: 1px solid var(--line-soft); position: relative; font-size: .98rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor); transform: rotate(-45deg); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .plan-for { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font: 600 1.14rem/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }

/* ---------- forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--text); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--harbor); box-shadow: 0 0 0 4px var(--harbor-soft); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.code-input { text-align: center; font-size: 1.8rem !important; letter-spacing: .5em; font-weight: 700 !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.error { background: var(--high-soft); color: #6f2a1b; }
.form-status.ok { background: var(--ok-soft); color: #1d4a35; }
.form-done { text-align: center; padding: 28px 8px; }
.form-done h3 { margin-bottom: .4em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d4d2; padding: 64px 0 36px; font-size: .95rem; }
.site-footer a { color: #e9efee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 600 .8rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #8fa6a2; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand-by { color: #8fa6a2; }
.footer-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8fa6a2; font-size: .86rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- long-form pages (privacy, terms) ---------- */
.doc { max-width: 720px; }
.doc h2 { font-size: 1.55rem; margin-top: 2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }

/* =========================================================================================
   APP (dashboard + agency console)
   ========================================================================================= */
.app-body { background: var(--paper); min-height: 100vh; }
.app-top { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.app-user { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.app-user .who { font-weight: 600; }
@media (max-width: 560px) { .app-user .who { display: none; } }
@media (max-width: 480px) { .app-top .brand-name, .app-top .brand-by { display: none; } .app-user { gap: 10px; } .app-user .btn-sm { padding: 0 .8em; } }
.app-main { padding: 28px 0 80px; }
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1, .auth-card h2 { font-size: 2rem; margin-bottom: .3em; }

.strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--mist); color: var(--harbor-deep); margin-bottom: 22px; font-size: .95rem; }
.strip.warm { background: var(--marigold-soft); color: #5e3c07; }
.strip.ok { background: var(--ok-soft); color: #1d4a35; }

.circle-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.circle-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0; }
.circle-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.circle-tab { border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font: 600 .92rem var(--text); cursor: pointer; }
.circle-tab:hover { border-color: var(--harbor); color: var(--ink); }
.circle-tab.active { background: var(--harbor); border-color: var(--harbor); color: #fff; }
.avatars { display: flex; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--harbor-soft); color: var(--harbor-deep); display: grid; place-items: center; font: 700 .9rem var(--text); border: 2px solid var(--card); margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

.actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--card); color: var(--ink); font: 600 .95rem/1.2 var(--text); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.action svg { width: 22px; height: 22px; color: var(--harbor); }
.action:hover { border-color: var(--harbor); transform: translateY(-1px); box-shadow: var(--shadow); }
.action.primary { background: var(--harbor); border-color: var(--harbor); color: #fff; }
.action.primary svg { color: var(--marigold); }
@media (max-width: 900px) { .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.today { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.today-cell { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; }
.today-cell b { display: block; font: 500 1.9rem/1.1 var(--display); color: var(--harbor); }
.today-cell span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 760px) { .today { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.app-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h2 { font-size: 1.3rem; margin: 0; }
.panel .thread { margin-top: 4px; }
.empty { color: var(--ink-3); font-size: .95rem; padding: 8px 0; margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.rows .row:first-child { border-top: 0; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-meta { font-size: .86rem; color: var(--ink-3); overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--harbor); color: var(--harbor); }
.icon-btn svg { width: 16px; height: 16px; }
.dose { display: inline-flex; gap: 4px; margin-left: 2px; vertical-align: middle; }
.dose i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--harbor); }
.dose i.on { background: var(--harbor); }
.tag { display: inline-block; font: 600 .74rem/1.4 var(--text); padding: 1px 8px; border-radius: 6px; background: var(--mist); color: var(--harbor-deep); margin-right: 4px; }
.tag.warn { background: var(--high-soft); color: var(--high); }
.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 12px 0; }
.cond { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .94rem; cursor: pointer; background: #fff; }
.cond.on { border-color: var(--harbor); background: var(--mist); font-weight: 600; }
.tip { border-left: 3px solid var(--sage); padding: 4px 0 4px 14px; margin: 12px 0; }
.tip b { display: block; }
.tip span { color: var(--ink-2); font-size: .94rem; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mood { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 .92rem var(--text); cursor: pointer; color: var(--ink-2); }
.mood.on { border-color: var(--harbor); background: var(--harbor); color: #fff; }
.invite { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--mist); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; }
.invite code { font: 700 1.4rem/1 var(--text); letter-spacing: .18em; color: var(--harbor-deep); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(21, 58, 67, .45); z-index: 80; display: none; align-items: flex-end; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; }
@media (min-width: 640px) { .modal-back { align-items: center; } }
.modal { background: var(--card); border-radius: var(--r-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 22px; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 1.5rem; margin-bottom: .6em; }
.modal .btn-row { margin-top: 8px; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list label { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line-soft); cursor: pointer; }
.check-list li:first-child label { border-top: 0; }
.check-list input { width: 20px; height: 20px; accent-color: var(--harbor); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* agency console */
.console-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.console-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font: 600 .98rem var(--text); color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--marigold); }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.range input { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; font: 400 .95rem var(--text); background: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
table.data th { white-space: nowrap; text-align: left; font: 600 .78rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; }
.pct { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pct .meter-bar { width: 64px; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; }
.alert::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--low); }
.alert.high::before { background: var(--high); box-shadow: 0 0 0 4px var(--high-soft); }
.alert.medium::before { background: var(--marigold-deep); box-shadow: 0 0 0 4px var(--medium-soft); }
.alert-who { font-weight: 600; }
.alert-text { color: var(--ink-2); font-size: .95rem; }
.alert-when { font-size: .85rem; color: var(--ink-3); white-space: nowrap; }
.note-box { background: var(--paper-2); border-radius: var(--r); padding: 14px 16px; font-size: .92rem; color: var(--ink-2); }

/* =========================================================================================
   AGENCY: the operations desk (2026-09-29, Ray: "agency design is poor"). Same brand, a darker,
   more structured register than the family side: a product window, KPIs, ledgers, a roles matrix.
   ========================================================================================= */
.hero-desk { background: radial-gradient(1200px 520px at 78% -10%, #2a6573 0%, rgba(42, 101, 115, 0) 60%), linear-gradient(180deg, var(--harbor-deep) 0%, #10303a 100%); color: #dfeae7; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-desk h1 { color: #fff; max-width: 15em; margin-inline: auto; text-align: center; }
.hero-desk h1 em { color: #f5c77d; font-style: italic; }
.hero-desk .lede { color: #c7dad6; margin: 0 auto 30px; text-align: center; }
.hero-desk .btn-row { justify-content: center; }
.hero-desk .cta-note { color: #9fbcb6; text-align: center; }
.hero-desk .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-desk .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
.desk-stage { margin-top: clamp(36px, 5vw, 56px); position: relative; }
.desk-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(246, 242, 234, 0), var(--paper)); pointer-events: none; }

/* a product window */
.frame { background: var(--paper); border-radius: 16px 16px 0 0; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; color: var(--ink); text-align: left; }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-url { flex: 1; font-size: .8rem; color: var(--ink-3); background: var(--paper); border-radius: 8px; padding: 5px 12px; max-width: 340px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-body { padding: clamp(16px, 2.4vw, 28px); }
.frame-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.frame-head b { font: 600 1.35rem/1.1 var(--display); }
.frame-tabs { display: flex; gap: 18px; font-size: .88rem; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.frame-tabs span { padding: 0 0 9px; white-space: nowrap; }
.frame-tabs span.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--marigold); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.kpi-label { font-size: .8rem; color: var(--ink-3); }
.kpi-value { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); color: var(--harbor); margin-top: 4px; }
.kpi-value.warn { color: var(--high); }
.kpi-note { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .desk-grid { grid-template-columns: minmax(0, 1fr); } }
.desk-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.desk-card h4 { font: 600 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 2px 0 12px; }
.mini-alert { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.mini-alert:first-of-type { border-top: 0; }
.mini-alert::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--low); }
.mini-alert.high::before { background: var(--high); box-shadow: 0 0 0 3px var(--high-soft); }
.mini-alert.medium::before { background: var(--marigold-deep); box-shadow: 0 0 0 3px var(--medium-soft); }
.mini-alert b { display: block; }
.mini-alert span { color: var(--ink-2); }
table.desk { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.desk th { text-align: left; font: 600 .72rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 10px; white-space: nowrap; }
table.desk td { padding: 10px 8px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
table.desk td:first-child, table.desk th:first-child { padding-left: 0; }
@media (max-width: 560px) { table.desk .hide-sm { display: none; } }

/* one morning, three people */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 960px) { .moments { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.moment-when { font: 500 2.4rem/1 var(--display); color: var(--harbor); letter-spacing: -0.02em; }
.moment-who { font-weight: 600; margin: 6px 0 4px; }
.moment p { color: var(--ink-2); font-size: .98rem; }
.phone { background: var(--ink); border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg); margin-top: 18px; max-width: 320px; }
.phone-screen { background: var(--paper); color: var(--ink); text-align: left; border-radius: 26px; padding: 18px 16px 16px; min-height: 300px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--ink-3); margin-bottom: 12px; }
.phone-title { font: 600 1.1rem/1.2 var(--display); margin-bottom: 10px; }
.phone .thread-what { font-size: .9rem; }
.phone .thread-meta { font-size: .76rem; }
.phone .thread-item { padding: 7px 0; }
.phone .mini-alert { font-size: .84rem; }
.phone-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.phone-btns span { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 10px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-soft); font-size: .82rem; font-weight: 600; }
.phone-btns span.on { background: var(--harbor); color: #fff; border-color: var(--harbor); }
.phone-btns svg { width: 16px; height: 16px; }

/* the record: a ledger with a seal */
.ledger { background: #fffef9; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(27, 43, 48, .35); padding: 22px 24px 64px; position: relative; font-size: .86rem; margin: 0 28px 36px 0; }
.ledger::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(143, 177, 170, .22) 31px 32px); pointer-events: none; }
.ledger-meta { color: var(--ink-3); line-height: 1.7; margin-bottom: 10px; position: relative; }
.ledger-meta b { color: var(--ink); }
.ledger-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; line-height: 32px; position: relative; white-space: nowrap; }
.ledger-row span:first-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ledger-row span:last-child { overflow: hidden; text-overflow: ellipsis; }
.seal { position: absolute; right: -26px; bottom: -34px; width: 116px; height: 116px; border-radius: 50%; border: 2px solid var(--harbor); color: var(--harbor); display: grid; place-items: center; text-align: center; background: rgba(255, 254, 249, .92); transform: rotate(-8deg); box-shadow: inset 0 0 0 6px rgba(31, 78, 90, .08); }
.seal b { display: block; font: 700 .78rem/1 var(--text); letter-spacing: .12em; }
.seal code { display: block; font: 600 .74rem/1.3 var(--text); letter-spacing: .06em; margin-top: 6px; }
@media (max-width: 560px) { .ledger { margin-right: 12px; } .seal { width: 96px; height: 96px; right: -10px; bottom: -30px; } .ledger-row { grid-template-columns: 70px 1fr; } }

/* roles matrix */
table.matrix { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; font-size: .96rem; }
table.matrix th, table.matrix td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; }
table.matrix th:first-child, table.matrix td:first-child { text-align: left; }
table.matrix thead th { font: 600 .8rem/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); }
table.matrix tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--harbor); color: #fff; }
.yes svg { width: 13px; height: 13px; }
.no { background: var(--mist); }
.no::after { content: ""; width: 9px; height: 2px; border-radius: 2px; background: var(--sage); }
.matrix-note { font-size: .82rem; color: var(--ink-3); display: block; font-weight: 400; }

/* one plan */
.solo-plan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.solo-plan > div { padding: clamp(24px, 4vw, 40px); }
.solo-plan .solo-price { background: var(--harbor-deep); color: #dfeae7; }
.solo-plan .solo-price h3 { color: #fff; }
.solo-plan .plan-price { color: #fff; }
.solo-plan .plan-price small { color: #9fbcb6; }
@media (max-width: 820px) { .solo-plan { grid-template-columns: minmax(0, 1fr); } }

.desk-band { background: #10303a; color: #dfeae7; }
.desk-band h2, .desk-band h3 { color: #fff; }
.desk-band .lede, .desk-band > .wrap > div > p { color: #c7dad6; }
.desk-band .form-card { color: var(--ink); }
.desk-band .form-card h3 { color: var(--ink); }
.desk-band .form-card .cta-note { color: var(--ink-3); }
.desk-band .checklist li::before, .hero-desk .checklist li::before { background-color: var(--marigold); }
.desk-band .checklist li { color: #dfeae7; }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--r); background: var(--marigold-soft); color: #5e3c07; margin-bottom: 22px; font-size: .95rem; }

/* =========================================================================================
   PRESENTER MODE (/present → /agency?demo=1&present=1): cards for a sales call over Zoom.
   Full-screen story cards between live steps; live steps spotlight part of the console.
   ========================================================================================= */
.pr-full { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 48px 24px 88px; background: radial-gradient(1100px 560px at 80% -10%, #2a6573 0%, rgba(42, 101, 115, 0) 60%), linear-gradient(180deg, var(--harbor-deep), #0f2c35); color: #dfeae7; overflow-y: auto; }
.pr-full[hidden] { display: none !important; }
.pr-inner { width: 100%; max-width: 1040px; }
.pr-kicker { font: 600 .82rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #f5c77d; margin: 0 0 18px; }
.pr-full h1, .pr-full h2 { color: #fff; margin: 0 0 18px; }
.pr-full h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.pr-full h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.pr-full h1 em, .pr-full h2 em { color: #f5c77d; }
.pr-sub { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #c7dad6; max-width: 40em; margin: 0 0 28px; }
.pr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.pr-cols > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 22px; }
.pr-cols b { display: block; font: 600 1.25rem/1.25 var(--display); color: #fff; margin-bottom: 8px; }
.pr-cols span { color: #c7dad6; font-size: 1rem; }
@media (max-width: 760px) { .pr-cols { grid-template-columns: minmax(0, 1fr); } }
.pr-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .pr-split { grid-template-columns: minmax(0, 1fr); } }
.pr-big { font: 500 clamp(3.4rem, 8vw, 6rem)/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.pr-big small { font: 400 1.2rem var(--text); color: #9fbcb6; letter-spacing: 0; }
.pr-full .checklist li { color: #dfeae7; font-size: 1.1rem; }
.pr-full .checklist li::before { background-color: var(--marigold); }
.pr-meta { margin-top: 28px; color: #9fbcb6; font-size: .95rem; }
.pr-meta b { color: #fff; }

/* the card that rides along on live steps */
.pr-card { position: fixed; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 40px)); z-index: 130; background: var(--ink); color: #dfeae7; border-radius: 18px; padding: 20px 22px 16px; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6); }
.pr-card[hidden] { display: none !important; }
.pr-card .pr-step { font: 600 .74rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #f5c77d; margin-bottom: 10px; }
.pr-card h3 { color: #fff; font-size: 1.4rem; margin: 0 0 10px; }
.pr-card ul { margin: 0 0 14px; padding-left: 1.1em; }
.pr-card li { margin: 5px 0; color: #dfeae7; font-size: .98rem; }
.pr-nav { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 140; display: flex; align-items: center; gap: 10px; background: rgba(15, 44, 53, .92); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 8px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.pr-nav button { background: none; border: 0; color: #fff; font: 600 .9rem var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.pr-nav button:hover { background: rgba(255, 255, 255, .1); }
.pr-nav .pr-next { background: var(--marigold); color: var(--ink); }
.pr-nav .pr-next:hover { background: var(--marigold-deep); }
.pr-dots { display: flex; gap: 5px; padding: 0 6px; }
.pr-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pr-dots i.on { background: #f5c77d; }
.pr-live .pr-nav { left: auto; right: 440px; transform: none; }
@media (max-width: 900px) { .pr-live .pr-nav { right: auto; left: 20px; bottom: auto; top: 76px; } }
.pr-spot { position: relative; z-index: 110; border-radius: 14px; box-shadow: 0 0 0 4px var(--marigold), 0 0 0 9999px rgba(15, 44, 53, .5); transition: box-shadow .25s; background: var(--paper); }
.pr-hint { color: #9fbcb6; font-size: .8rem; margin-top: 6px; }
.pr-full .phone-screen { color: var(--ink); text-align: left; }

/* =========================================================================================
   FAMILY HOME, v2 (2026-09-29, Ray: "take the individual page to the next level"). The agency page's
   product-led drama in a warmer register: a phone with live updates floating around it, the group
   text vs. the log, one day seen by three relatives, and a bento of real app components.
   ========================================================================================= */
.hero-home { background: radial-gradient(900px 520px at 50% 108%, rgba(242, 169, 59, .22) 0%, rgba(242, 169, 59, 0) 62%), radial-gradient(1100px 600px at 85% -15%, #2a6573 0%, rgba(42, 101, 115, 0) 58%), linear-gradient(180deg, var(--harbor-deep) 0%, #10303a 100%); color: #dfeae7; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-home h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4.3rem); }
.hero-home h1 em { color: #f5c77d; font-style: italic; display: block; }
.hero-home .lede { color: #c7dad6; }
.hero-home .cta-note { color: #9fbcb6; }
.hero-home .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-home .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
@media (max-width: 920px) { .hero-home .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.stage { position: relative; min-height: 600px; display: grid; place-items: center; }
.stage .phone { margin: 0; width: 300px; max-width: 78vw; position: relative; z-index: 2; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.stage .phone-screen { min-height: 520px; }
.float { position: absolute; z-index: 3; background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 14px 10px 12px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); display: flex; gap: 10px; align-items: center; font-size: .86rem; max-width: 250px; }
.float .thread-dot { flex: none; }
.float b { display: block; font-size: .9rem; }
.float span { color: var(--ink-3); font-size: .78rem; }
/* The floats sit over the phone's empty lower screen and its top bezel, never over the log itself. */
.float.f1 { top: 0; left: 2%; }
.float.f2 { top: 70%; right: 0; }
.float.f3 { bottom: 3%; left: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .js .float { opacity: 0; transform: translateY(10px) scale(.98); animation: float-in .6s cubic-bezier(.2, .7, .2, 1) forwards; }
  .js .float.f1 { animation-delay: .6s; }
  .js .float.f2 { animation-delay: 1.2s; }
  .js .float.f3 { animation-delay: 1.8s; }
}
@keyframes float-in { to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .stage { min-height: 0; padding: 12px 0 8px; } .float { position: relative; inset: auto !important; margin: 10px auto 0; max-width: 300px; } .float.f2, .float.f3 { display: none; } }

/* the group text vs. the log */
.versus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .versus { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.versus-label { font: 600 .8rem/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; text-align: center; }
.versus .phone { margin: 0 auto; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: .88rem; line-height: 1.35; background: #e7e3da; color: var(--ink); }
.bubble.me { align-self: flex-end; background: #3d7c8a; color: #fff; }
.bubble small { display: block; font-size: .7rem; color: var(--ink-3); margin-bottom: 2px; }
.bubble.me small { color: #cfe3df; }
.chat-time { text-align: center; font-size: .72rem; color: var(--ink-3); margin: 4px 0; }

/* facts on a dark band */
.facts-dark { background: #10303a; color: #dfeae7; }
.facts-dark h2 { color: #fff; }
.facts-dark .facts { border-top-color: rgba(255, 255, 255, .14); }
.facts-dark .fact { border-color: rgba(255, 255, 255, .14); }
.facts-dark .fact dt { color: #f5c77d; }
.facts-dark .fact dd { color: #c7dad6; }
.facts-dark .source { color: #9fbcb6; }
.facts-dark .source a { color: #fff; }

/* bento of real components */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tile h3 { font-size: 1.25rem; margin: 0; }
.tile p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.tile .demo-ui { background: var(--paper); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); }
.tile.w3 { grid-column: span 3; }
.tile.w2 { grid-column: span 2; }
.tile.w4 { grid-column: span 4; }
.tile.dark { background: var(--harbor-deep); color: #dfeae7; border-color: var(--harbor-deep); }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: #c7dad6; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.w3, .tile.w2, .tile.w4 { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.mini-row:first-child { border-top: 0; }
.mini-row span { color: var(--ink-3); font-size: .8rem; }
.lock-badge { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #f5c77d; }
.lock-badge svg { width: 26px; height: 26px; }

.cta-band { background: radial-gradient(800px 420px at 50% 120%, rgba(242, 169, 59, .2) 0%, rgba(242, 169, 59, 0) 60%), linear-gradient(180deg, var(--harbor-deep), #10303a); color: #dfeae7; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #c7dad6; margin: 0 auto 28px; }
.cta-band .cta-note { color: #9fbcb6; }

@media print {
  .app-top, .site-nav, .site-footer, .tabs, .actions, .btn, .no-print, .pr-card, .pr-nav, .pr-full { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .panel, .table-wrap { border: 1px solid #ccc; box-shadow: none; }
  table.data { min-width: 0; }
}
