* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif; }
a { color: var(--primary); }
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 48px; }

.testbar { background: #FFF1C2; color: #5A4300; text-align: center; font-size: 14px; padding: 8px 12px; }
.top { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); font-weight: 800; font-size: 20px; }
.mark img { border-radius: 50%; }
.tag { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--accent); font-size: 18px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 24px 0 40px; }
.hero img { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #F6E8D6; border-radius: 18px; border: 4px solid var(--primary); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; color: var(--primary); }
h2 { font-size: 28px; line-height: 1.2; margin: 32px 0 12px; color: var(--primary); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.small { font-size: 15px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 14px; padding: 22px; border-top: 4px solid var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 8px; color: var(--primary); }
.facts li { margin: 0 0 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: #fff; border-radius: 14px; padding: 20px; }
.steps li::before { counter-increment: s; content: counter(s); display: block; font-size: 32px; font-weight: 800; color: var(--accent); }

form.check { max-width: 720px; }
fieldset { border: 0; background: #fff; border-radius: 14px; padding: 22px; margin: 0 0 18px; }
legend { float: left; width: 100%; font-weight: 800; color: var(--primary); font-size: 20px; padding: 0; margin-bottom: 4px; }
legend + * { clear: both; }
.field { margin: 14px 0; }
.field label.q { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=password], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #C9C4D6; border-radius: 10px; background: #fff; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; }
.choice input { width: 22px; height: 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.err { color: #B42318; font-size: 15px; margin-top: 4px; }
.errbox { background: #FEF3F2; color: #B42318; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.notice { background: #fff; border-radius: 14px; padding: 26px; max-width: 720px; }
.ref { font-family: ui-monospace, Menlo, monospace; }

.foot { border-top: 1px solid rgba(0,0,0,.08); padding: 24px 20px 40px; max-width: 1080px; margin: 0 auto; }
.disclosure { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.links { font-size: 14px; margin: 0; }

table.ops { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
table.ops th, table.ops td { border-bottom: 1px solid #eee; padding: 6px 8px; text-align: left; vertical-align: top; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { max-width: 360px; }
  h1 { font-size: 30px; }
  .half { grid-template-columns: 1fr; }
}

.choice input[type=checkbox] { width: 22px; height: 22px; vertical-align: middle; }
.field textarea { font: inherit; resize: vertical; }
.tier { display: inline-block; min-width: 1.6em; text-align: center; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: #eee; }
.tier-A { background: #1f7a3a; color: #fff; } .tier-B { background: #6aa84f; color: #fff; }
.tier-C { background: #f1c232; } .tier-D { background: #ccc; }
.ops ul { padding-left: 16px; margin: 0 0 6px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; font: inherit; font-size: 15px; cursor: pointer; }
.mark img.logo { border-radius: 0; height: 56px; width: auto; }
.bl-hero, .logo-hero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; padding: 16px 0 32px; }
.bl-hero img, .logo-hero img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .bl-hero, .logo-hero { grid-template-columns: 1fr; gap: 16px; }
  .bl-hero img, .logo-hero img { max-width: 240px; margin: 0 auto; display: block; }
}

/* Funnel report: one line per cell, the table scrolls sideways on a phone. */
.ops.funnel th, .ops.funnel td { white-space: nowrap; }
/* The Terms line sits right above the submit button, as large as the form's own text. */
.assent { font-size: 16px; margin: 20px 0 12px; }
.terms h2 { font-size: 20px; margin-top: 28px; }
.choices.stack .choice { display: flex; margin: 10px 0; align-items: flex-start; }
.choices.stack .choice input { flex: none; margin-top: 2px; }
.field .help, .note { font-size: 16px; color: var(--muted); margin: 0 0 8px; }
.note { margin: -10px 0 16px; max-width: 720px; }
.support { background: #fff; border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; max-width: 720px; }
.support p { margin: 4px 0; font-size: 16px; }
[hidden] { display: none !important; }
.quick-exit { position: fixed; right: 10px; bottom: 10px; z-index: 50; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.quick-exit:hover { color: #fff; opacity: .9; }
body:has(.quick-exit) { padding-bottom: 56px; }
.agenav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.agenav a { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 8px 10px; border-left: 6px solid var(--age); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.25; }
.agenav a strong { color: var(--age); font-size: 16px; }
.agenav a.on { box-shadow: 0 0 0 2px var(--age) inset; }
.agenav img { border-radius: 50%; flex: none; }
.kid-story { background: #fff; border-radius: 14px; padding: 6px 22px 10px; margin: 0 0 24px; max-width: 760px; }
.helpbox { background: #fff; border-left: 6px solid var(--accent); border-radius: 12px; padding: 6px 22px 12px; margin: 28px 0 20px; max-width: 760px; }
.helpbox ol { font-size: 19px; padding-left: 22px; }
.helpbox li { margin: 6px 0; }
.grownups { color: var(--muted); max-width: 760px; }
.castcards .card img { border-radius: 50%; float: left; margin: 0 12px 6px 0; }
@media (max-width: 700px) { .agenav { grid-template-columns: 1fr 1fr; } }
/* Case studies and videos, shared; each theme restyles them */
.pagehead { padding: 20px 0 8px; max-width: 760px; }
.stories { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.story { background: #fff; border-radius: 14px; padding: 20px 22px; border-top: 4px solid var(--accent); }
.story h2, .story h3 { margin: 4px 0 8px; font-size: 22px; line-height: 1.25; }
.story h2 a, .story h3 a { color: inherit; text-decoration: none; }
.story h2 a:hover, .story h3 a:hover { text-decoration: underline; }
.story p { margin: 0 0 8px; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--accent); margin: 0; }
.kicker a { color: inherit; }
.more { font-weight: 700; }
.article { max-width: 760px; }
.article h1 { font-size: 38px; }
.article .body h2 { font-size: 24px; margin-top: 28px; }
.article .body ul { padding-left: 22px; }
.sources { margin-top: 28px; font-size: 15px; }
.sources h2 { font-size: 20px; }
.sources ol { padding-left: 20px; }
.cta { background: #fff; border-radius: 14px; padding: 18px 22px; margin: 28px 0; }
.related { margin-top: 24px; }
.stories.mini .story h3 { font-size: 18px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.reel { display: block; text-decoration: none; color: var(--ink); }
.reel img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; background: #ddd; }
.reel-title { display: block; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.reel-len { font-size: 13px; color: var(--muted); }
.reel.wide { grid-column: span 2; }
.reel.wide img { aspect-ratio: 16 / 9; }
.player.wide video { width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #111; }
.money-note { border-left: 3px solid var(--accent); padding: 8px 14px; }
.watchpage { max-width: 760px; }
.player video { width: 100%; max-width: 360px; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; display: block; }
.transcript { margin-top: 18px; }
.voice { font-size: 20px; }

/* Tell us your story: the button on every page of an intake site, and the write-or-say step. */
.story-fab { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 12px 18px 12px 14px;
  border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.story-fab:hover, .story-fab:focus { color: #fff; filter: brightness(1.1); }
body:has(.story-fab) { padding-bottom: 76px; }
body:has(.quick-exit) .story-fab { right: auto; left: 12px; bottom: 10px; }   /* side by side with Quick exit */
@media (max-width: 480px) { .story-fab { font-size: 15px; padding: 10px 15px 10px 12px; } }
@media print { .story-fab { display: none; } }
.story-pick { max-width: 760px; }
.story-cases { display: grid; gap: 12px; margin: 22px 0 16px; }
.story-go { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.story-go a { flex: 1; min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700;
  font-size: 17px; text-decoration: none; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--primary); }
.story-go .go-say { background: var(--primary); color: #fff; }
.story-go .go-write { background: #fff; color: var(--primary); }
.story-case { display: block; background: #fff; border-radius: 14px; padding: 16px 20px; text-decoration: none; color: var(--ink);
  border-left: 6px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.story-case strong { display: block; color: var(--primary); font-size: 20px; margin-bottom: 4px; }
.story-case span { font-size: 16px; color: var(--muted); }

fieldset.story { border-color: var(--accent); }
.story .prompt { margin: 4px 0 14px; }
.story-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.story-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 17px; padding: 12px 10px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--primary); background: #fff; color: var(--primary); }
.story-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.story-panel[hidden] { display: none; }
fieldset.story textarea { width: 100%; min-height: 180px; }
.recorder { text-align: center; padding: 8px 0 4px; }
.rec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 18px;
  border: 0; border-radius: 999px; padding: 16px 26px; cursor: pointer; background: #B3261E; color: #fff; box-shadow: 0 3px 0 #7A1A14; }
.rec-btn.stop { background: var(--ink); box-shadow: 0 3px 0 #000; }
.rec-btn .dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.rec-btn.stop .dot { border-radius: 3px; }
.rec-live { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; font-variant-numeric: tabular-nums; font-size: 20px; }
.rec-live .pulse { width: 12px; height: 12px; border-radius: 50%; background: #B3261E; animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-live .pulse { animation: none; } }
.rec-meter { height: 6px; max-width: 260px; margin: 10px auto 0; background: #E6E2EC; border-radius: 3px; overflow: hidden; }
.rec-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
.rec-done audio { width: 100%; max-width: 420px; margin: 6px 0 10px; }
.rec-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.linkish { font: inherit; font-size: 16px; background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; padding: 6px; }
.rec-upload { margin: 14px 0 0; font-size: 16px; }
.rec-upload input { font-size: 15px; margin-top: 6px; max-width: 100%; }
fieldset.story p.rec-note { font-size: 15px; color: var(--muted); margin: 20px 0 0; }
.rec-kept { background: #EEF6EE; border-radius: 10px; padding: 10px 14px; font-size: 16px; }
.transcript { background: #fff; border-radius: 10px; padding: 6px 18px; max-width: 760px; font-size: 17px; }
.transcript p { margin: 10px 0; }
.story-file { margin-bottom: 14px; }
/* Talk instead of type */
.talk-box { background: #F6F2FB; border-radius: 12px; padding: 4px 16px 10px; margin: 0 0 14px; font-size: 17px; }
.talk-points { margin: 6px 0; padding-left: 22px; }
.talk-points li { margin: 4px 0; }
.rec-btn.fill-btn { background: var(--primary); box-shadow: 0 3px 0 rgba(0,0,0,.35); margin: 4px 0 10px; }
.rec-btn.fill-btn[disabled] { opacity: .6; }
.heard-box { background: #EEF6EE; border-radius: 12px; padding: 4px 16px 8px; margin: 12px 0 0; font-size: 17px; text-align: left; }
.field.heard { background: #F3EFFA; border-radius: 10px; box-shadow: 0 0 0 6px #F3EFFA; }
ul.needs { margin: 4px 0 12px; padding-left: 22px; }
ul.needs li { margin: 6px 0; }
.agree { margin: 18px 0 6px; }
pre.copy { white-space: pre-wrap; font: inherit; font-size: 16px; background: #fff; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.card.post.approved { border-left: 6px solid #2E7D32; }
.story-draft { max-width: 820px; margin-bottom: 18px; }

/* Ask the host: the chat button and panel on character sites */
.chat-fab { position: fixed; right: 14px; bottom: 76px; z-index: 45; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary); border: 2px solid var(--primary); font: inherit; font-weight: 700; font-size: 15px;
  padding: 6px 16px 6px 6px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.2); cursor: pointer; }
.chat-fab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-fab[hidden] { display: none; }
body:has(.quick-exit) .chat-fab { bottom: 60px; }
.chat-panel { position: fixed; right: 12px; bottom: 12px; z-index: 60; width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--primary); color: #fff; }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.chat-head small { font-size: 12px; opacity: .85; }
.chat-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 86%; font-size: 16px; line-height: 1.4; white-space: pre-wrap; }
.chat-msg.from-host { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chat-msg.from-you { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--primary); font-weight: 700; }
.chat-wait { opacity: .6; }
.chat-note { margin: 0; padding: 6px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid rgba(0,0,0,.08); }
.chat-form { display: flex; gap: 8px; padding: 8px 12px 12px; }
.chat-form textarea { flex: 1; font: inherit; font-size: 16px; resize: none; border: 1px solid rgba(0,0,0,.2); border-radius: 10px; padding: 8px 10px; }
.chat-form button { font: inherit; font-weight: 700; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; }
.chat-form button:disabled { opacity: .5; }
@media print { .chat-fab, .chat-panel { display: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.chat-fab) { padding-bottom: 72px; }   /* the last lines of a page scroll clear of the floating buttons */
