:root {
  color-scheme: light;
  --paper: #f9f4e6;
  --paper-2: #fffdf6;
  --paper-3: #f3ecd9;
  --green: #2a8a4c;
  --green-deep: #1d6b39;
  --green-ink: #1e4630;
  --sage: #9db89f;
  --sage-soft: #dfe9dc;
  --blush: #f2c6c2;
  --blush-soft: #f9e3df;
  --rose: #b85f5a;
  --ink: #2a2924;
  --ink-2: #4a473f;
  --muted: #776f61;
  --line: #e6dcc6;
  --shadow: 0 1px 2px rgba(60, 50, 30, .06), 0 10px 30px rgba(60, 50, 30, .08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --italic: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 110% -10%, rgba(242, 198, 194, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(157, 184, 159, .20), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--green-ink); line-height: 1.15; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; flex: none; white-space: nowrap; align-items: baseline; gap: 5px; text-decoration: none; color: var(--green-ink); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand em { font-family: var(--italic); font-style: italic; font-size: 1.05em; color: var(--rose); }
.nav { display: flex; gap: 18px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--green-deep); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 12px; font-size: .88rem; } .nav a { white-space: nowrap; } .brand { font-size: 1.02rem; } }
@media (max-width: 899px) { .hero-art { order: -1; max-width: 400px; } }

.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.script { font-family: var(--italic); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1.02rem/1 var(--sans); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(42, 138, 76, .28); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green-deep); border: 1.5px solid var(--sage); }
.btn-ghost:hover { background: var(--sage-soft); }

/* watercolor art helpers */
.wc { mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.portrait {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 62%, transparent 100%);
}

/* ---------- landing ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding: 20px 0 48px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 40px 0 72px; } }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); letter-spacing: -.01em; margin: 12px 0 6px; }
.hero .sub { font-family: var(--italic); font-style: italic; font-size: clamp(1.4rem, 3.6vw, 1.9rem); color: var(--rose); margin: 0 0 18px; line-height: 1.25; }
.hero p.lead { max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; max-width: 560px; width: 100%; margin: 0 auto; padding: 0 0 6% 8%; }
.hero-art .portrait { width: 100%; }
.hero-art .cover {
  position: absolute; left: 0; bottom: 0; width: 28%; border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 18px 40px rgba(30, 60, 40, .28); transform: rotate(-5deg);
}
.hero-art .bflies { position: absolute; right: 0; top: -4%; width: 24%; opacity: .9; }

section.block { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 10px 0 10px; }
.section-head p { color: var(--ink-2); margin: 0; }

/* book page mockup */
.page-demo { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .page-demo { grid-template-columns: minmax(0, 520px) 1fr; gap: 56px; } }
.book-page {
  position: relative; background: #fffdf8; border-radius: 4px 10px 10px 4px; padding: 34px 30px 30px;
  box-shadow: inset 14px 0 18px -14px rgba(80, 60, 30, .25), 0 1px 2px rgba(0,0,0,.08), 0 22px 50px rgba(60, 50, 30, .16);
  font-family: var(--serif); color: #2e2c27; max-width: 520px; width: 100%;
}
@media (min-width: 560px) { .book-page { padding: 44px 46px 38px; } }
.book-page .running { display: flex; justify-content: space-between; gap: 8px; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #a39a86; margin-bottom: 22px; }
.book-page p { font-size: .98rem; line-height: 1.7; margin: 0 0 .7em; hyphens: auto; }
.book-page p.close-line { font-style: italic; }
.book-page .orn { text-align: center; color: var(--green); letter-spacing: .4em; margin: 18px 0 16px; font-size: .9rem; }
.talk-box {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  border: 1.5px solid var(--green); border-radius: 12px; padding: 16px 16px 16px 20px;
  background: linear-gradient(135deg, #f4f9f2, #fdf3f1);
}
.talk-box h4 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--green-ink); margin: 0 0 6px; line-height: 1.25; }
.talk-box p { font: .86rem/1.45 var(--sans); color: var(--ink-2); margin: 0; }
.talk-box .qr { width: 118px; height: 118px; background: #fff; border-radius: 8px; padding: 6px; }
.talk-box .qr svg, .talk-box .qr img { width: 100%; height: 100%; display: block; }
@media (max-width: 420px) { .talk-box { grid-template-columns: 1fr; justify-items: start; } .talk-box .qr { width: 132px; height: 132px; } }
.book-page .folio { text-align: center; font: .78rem var(--serif); color: #a39a86; margin-top: 18px; }

.callouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.callouts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.callouts .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-soft); color: var(--rose); font: 600 1.1rem var(--serif); }
.callouts h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.callouts p { margin: 0; color: var(--ink-2); }

/* how it works */
.how { position: relative; overflow: hidden; border-radius: 28px; background: var(--paper-2); box-shadow: var(--shadow); padding: 40px 20px; }
@media (min-width: 720px) { .how { padding: 56px 48px; } }
.how .lake { position: absolute; left: 0; right: 0; bottom: -12%; width: 100%; opacity: .5; }
.how .section-head, .how .steps { position: relative; }
.steps { position: relative; display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: rgba(255, 253, 246, .88); backdrop-filter: blur(2px); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; position: relative; }
.step .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--green-deep); margin-bottom: 14px; }
.step .ico svg { width: 24px; height: 24px; }
.step .k { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.step h3 { font-size: 1.35rem; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (min-width: 980px) { .step:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 38px; color: var(--sage); font-size: 1.2rem; } }

.teaser { display: grid; gap: 24px; align-items: center; background: var(--green); color: #fff; border-radius: 28px; padding: 36px 24px; position: relative; overflow: hidden; }
@media (min-width: 820px) { .teaser { grid-template-columns: 1.2fr 1fr; padding: 48px 52px; } }
.teaser h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.5rem); margin: 10px 0 10px; }
.teaser .eyebrow { color: var(--blush); }
.teaser p { color: rgba(255,255,255,.88); margin: 0 0 22px; }
.teaser .btn-light { background: #fff; color: var(--green-deep); }
.teaser .btn-light:hover { background: var(--blush-soft); }
.teaser .quotes { display: grid; gap: 10px; }
.teaser .q { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 12px 16px; font-family: var(--italic); font-style: italic; font-size: 1.2rem; line-height: 1.3; }
.teaser .q small { display: block; font: 600 .7rem/1.4 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--blush); margin-top: 4px; }
.teaser .note { font-size: .78rem; color: rgba(255,255,255,.7); margin: 4px 0 0; }

footer.foot { padding: 40px 0 48px; text-align: center; color: var(--muted); font-size: .88rem; }
footer.foot a { color: inherit; text-underline-offset: 3px; }
footer.foot a:hover { color: var(--green-deep); }
footer.foot .rule { width: 80px; height: 1px; background: var(--line); margin: 0 auto 16px; }

/* ---------- talk page ---------- */
.talk-body { min-height: 100vh; min-height: 100dvh; }
.talk { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.talk .top { width: 100%; padding: 14px 0 6px; }
.day-pick { position: relative; }
.day-pick select {
  appearance: none; -webkit-appearance: none; font: 600 .9rem var(--sans); color: var(--green-ink);
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d6b39' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 30px 8px 12px; max-width: 190px; text-overflow: ellipsis; cursor: pointer;
}
.avatar { position: relative; width: min(66vw, 280px); aspect-ratio: 1; margin: 8px auto 4px; }
.avatar .ring { position: absolute; inset: 6%; border-radius: 50%; border: 2px solid var(--blush); opacity: 0; transform: scale(1); transition: opacity .3s; }
.avatar .ring.r2 { border-color: var(--sage); }
.avatar .face { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 10px 30px rgba(60, 50, 30, .16); transform: scale(var(--pulse, 1)); transition: transform .08s linear; }
.avatar .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.35); }
.avatar .bfly { position: absolute; width: 28%; right: -6%; top: -6%; }
.st-speaking .avatar .ring, .st-listening .avatar .ring { opacity: 1; animation: ripple 2.4s ease-out infinite; }
.st-listening .avatar .ring { border-color: var(--sage); animation-duration: 3.2s; }
.avatar .ring.r2 { animation-delay: 1.2s !important; }
.st-listening .avatar .ring.r2 { animation-delay: 1.6s !important; }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.32); opacity: 0; } }
.talk .daylabel { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin-top: 14px; }
.talk h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 8px 0 4px; }
.talk .part { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }
.talk-btn { width: 100%; min-height: 64px; font-size: 1.2rem; }
.talk-btn .mic { width: 22px; height: 22px; }
.disclose { font-size: .86rem; color: var(--muted); margin: 12px 4px 0; }
.state { display: none; width: 100%; }
.live .state { display: block; }
.live .idle-only { display: none; }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green-ink); margin: 4px 0 14px; }
.status .bars { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.status .bars i { width: 4px; height: 6px; border-radius: 2px; background: var(--green); transition: height .08s linear; }
.status .timer { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.captions { width: 100%; text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.captions .empty { color: var(--muted); font-size: .95rem; text-align: center; margin: 6px 0; }
.cap { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.cap b { display: block; font: 600 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.cap.agent { align-self: flex-start; background: var(--blush-soft); }
.cap.agent b { color: var(--rose); }
.cap.user { align-self: flex-end; background: var(--sage-soft); }
.cap.user b { color: var(--green-deep); }
.end-btn { margin-top: 16px; background: #fff; color: var(--rose); border: 1.5px solid var(--blush); min-height: 48px; }
.end-btn:hover { background: var(--blush-soft); }
.msg { width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #fff4f2; border: 1px solid var(--blush); color: #7d2f2a; text-align: left; font-size: .95rem; }
.msg.ok { background: var(--sage-soft); border-color: var(--sage); color: var(--green-ink); }
.msg[hidden] { display: none; }
.talk-foot { margin-top: 28px; font-size: .8rem; color: var(--muted); }
.talk-foot a { color: var(--muted); }

/* ---------- dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 12px 0 18px; }
.dash-head h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); margin-top: 8px; }
.dash-head .who { display: flex; gap: 14px; align-items: center; }
.dash-head .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; box-shadow: var(--shadow); }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 .9rem var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.banner { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-size: .95rem; }
.banner.sample { background: var(--blush-soft); border: 1px dashed var(--rose); color: #7d2f2a; }
.banner.live { background: var(--sage-soft); border: 1px solid var(--sage); color: var(--green-ink); }
.banner .dot { width: 9px; height: 9px; align-self: flex-start; margin-top: .55em; border-radius: 50%; background: currentColor; flex: none; }
.banner.live .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(42,138,76,.18); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(60,50,30,.04); }
.kpi .label { font-size: .86rem; color: var(--muted); }
.kpi .value { font: 500 clamp(2rem, 4.4vw, 2.7rem)/1.1 var(--serif); color: var(--green-ink); margin: 6px 0 2px; }
.kpi .hint { font-size: .82rem; color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: span 2; } }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; min-width: 0; }
.card h2 { font-size: 1.45rem; margin: 0 0 4px; }
.card .cap-line { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 34px; gap: 10px; align-items: center; margin: 7px 0; font-size: .95rem; }
.hbar .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 14px; background: transparent; position: relative; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--green); min-width: 3px; }
.hbar:hover .fill { background: var(--green-deep); }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.daychart svg { width: 100%; height: auto; display: block; overflow: visible; }
.daychart .bar { fill: var(--green); }
.daychart .bar:hover, .daychart g:hover .bar { fill: var(--green-deep); }
.daychart .ax { font: 12px var(--sans); fill: var(--muted); }
.daychart .vl { font: 600 12px var(--sans); fill: var(--ink-2); }
.daychart .grid-l { stroke: var(--line); stroke-width: 1; }
.qlist { list-style: none; padding: 0; margin: 0; max-height: 440px; overflow-y: auto; }
.qlist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.qlist li:last-child { border-bottom: 0; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--sage-soft); color: var(--green-deep); white-space: nowrap; }
.qlist .q { color: var(--ink); }
.qlist .when { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.dreams { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 2px; }
.dream { background: var(--blush-soft); border-radius: 14px; padding: 14px 16px; font-family: var(--italic); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: #5b2e2b; }
.dream:nth-child(3n+2) { background: var(--sage-soft); color: var(--green-ink); }
.dream:nth-child(5n+3) { background: #fbf0d9; color: #5d4a22; }
.ideas { list-style: none; padding: 0; margin: 0; counter-reset: idea; }
.ideas li { counter-increment: idea; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ideas li::before { content: counter(idea); font: 600 1rem var(--serif); color: var(--rose); }
.ideas .tag { margin-left: 6px; }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: 1.8rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); max-width: 520px; margin: 0 auto 18px; }
.muted { color: var(--muted); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; font-size: .84rem; padding: 7px 10px; border-radius: 8px; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .1s; }
.tip.on { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* home: link band to /for-publishers */
.pub-band { position: relative; overflow: hidden; display: grid; gap: 16px; align-items: center; grid-template-columns: minmax(0, 1fr); text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .pub-band { grid-template-columns: 1fr auto; padding: 28px 36px 28px 140px; } }
.pub-band img { position: absolute; right: -30px; top: -30px; width: 130px; opacity: .45; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
@media (min-width: 720px) { .pub-band img { right: auto; left: -30px; width: 170px; opacity: .55; } }
.pub-band .txt { position: relative; display: block; }
.pub-band strong { display: block; font: 500 clamp(1.3rem, 3vw, 1.65rem)/1.25 var(--serif); color: var(--green-ink); margin-top: 8px; }
.pub-band .btn { position: relative; justify-self: start; }
.pub-band:hover .btn { background: var(--green-deep); }

/* dashboard: demo tag, theme labels wrap on phones */
.demo-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--blush-soft); color: var(--rose); border: 1px dashed var(--rose); }
@media (max-width: 560px) {
  .hbar { grid-template-columns: minmax(0, 42%) 1fr 30px; align-items: start; }
  .hbar .name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; overflow-wrap: anywhere; }
  .hbar .track { margin-top: 3px; }
}

/* round 2: byline, real book photo, phone nav wraps instead of hiding links */
.hero .byline { font-size: .98rem; color: var(--muted); margin: 0 0 12px; }
.hero-art .cover.book3d { width: 34%; left: -3%; bottom: -3%; border-radius: 0; box-shadow: none; transform: rotate(-2deg); }
@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .top .nav { width: 100%; flex-wrap: wrap; gap: 6px 16px; }
  .nav .hide-sm { display: inline; }
}

/* round 3 */
.seg[hidden] { display: none; }
.ideas .idea-theme { font-weight: 600; color: var(--green-ink); }
.ideas .idea-n { font-size: .82rem; color: var(--muted); }
/* one nav everywhere; tidy 2x2 on phones */
@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .top .nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .9rem; }
  .top .nav a { white-space: nowrap; padding: 4px 0; }
}
/* hero figure + cover caption */
.hero-fig { margin: 0; }
.hero-fig .hero-art { margin: 0 auto; }
.hero-art .cover.book3d { left: 2%; }
.cover-cap { max-width: 400px; margin: 14px auto 0; text-align: center; font-family: var(--italic); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--ink-2); }
.cover-cap b { font-weight: 500; color: var(--green-ink); }
@media (max-width: 899px) { .hero-fig { order: -1; width: 100%; } }
/* talk page: nav row, day picker row, what to expect */
.talk .top .nav { justify-content: flex-end; }
.talk .day-row { width: 100%; display: flex; justify-content: center; margin: 4px 0 0; }
.expect { width: 100%; margin: 18px 0 0; text-align: left; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.expect p { margin: 0 0 8px; font-size: .95rem; color: var(--ink-2); }
.expect ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.expect li { font-family: var(--italic); font-style: italic; font-size: 1.02rem; background: var(--blush-soft); color: #5b2e2b; border-radius: 999px; padding: 5px 12px; }
.talk .top .nav { text-align: left; }
.talk .day-pick select { max-width: 280px; }
.nav a { white-space: nowrap; }
.talk .top { flex-wrap: wrap; row-gap: 6px; }
@media (min-width: 561px) { .talk .top .nav { gap: 16px; font-size: .9rem; } }

.book-page p.ellip { text-align: center; color: #a39a86; margin: 0 0 .5em; letter-spacing: .2em; }

/* ---------- Reader Insights: login ---------- */
.login { display: grid; place-items: center; padding: 24px 0 40px; }
.login-card { position: relative; width: 100%; max-width: 440px; text-align: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 28px; padding: 34px 26px 30px; box-shadow: var(--shadow); overflow: hidden; }
.login-bfly { position: absolute; right: -10px; top: -14px; width: 110px; opacity: .8; }
.login-face { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 26px rgba(60, 50, 30, .16); background: var(--paper); }
.login-face img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 42%; transform: scale(1.3); }
.login-card h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); margin: 8px 0 6px; }
.login-card h1 .script { color: var(--rose); font-size: .9em; }
.login-sub { color: var(--ink-2); margin: 0 0 20px; }
.login-card form { display: grid; gap: 12px; text-align: left; }
.login-card input { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: 1.05rem var(--sans); background: #fff; color: var(--ink); }
.login-card input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(42, 138, 76, .15); }
.login-card input[aria-invalid="true"] { border-color: var(--rose); }
.login-err { margin: -2px 2px 0; color: #9a3b35; font-size: .93rem; }
.login-card .btn { width: 100%; }

/* ---------- Reader Insights: header, states ---------- */
.dash-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.signout { font-size: .9rem; color: var(--muted); text-underline-offset: 3px; }
.signout:hover { color: var(--green-deep); }
.kpi.sk span, .sk-card span { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #efe7d5, #f8f2e4, #efe7d5); background-size: 200% 100%; animation: sk 1.4s linear infinite; margin: 6px 0 14px; }
.kpi.sk span:last-child { height: 30px; width: 50%; }
.sk-card { margin-top: 18px; } .sk-card span:nth-child(2) { width: 80%; } .sk-card span:nth-child(3) { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }
.empty-state { position: relative; overflow: hidden; }
.empty-art { position: absolute; right: -10px; top: -10px; width: 120px; opacity: .6; }
.dream small { display: block; margin-top: 6px; font: 600 .7rem/1.3 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }

/* ---------- Reader Insights: conversations ---------- */
.conv-list { list-style: none; padding: 0; margin: 0; }
.conv { border-top: 1px solid var(--line); }
.conv:first-child { border-top: 0; }
.conv-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 14px 4px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: 12px; }
.conv-row:hover { background: rgba(157, 184, 159, .12); }
.conv-row:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blush-soft); color: var(--rose); font: 600 1.15rem var(--serif); }
.conv:nth-child(3n+2) .av { background: var(--sage-soft); color: var(--green-deep); }
.conv-main { display: grid; gap: 3px; min-width: 0; }
.conv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conv-top strong { font-size: 1.05rem; color: var(--ink); }
.conv-meta { font-size: .88rem; color: var(--muted); }
.conv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font: 600 .74rem/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.chip.ok { background: var(--sage-soft); border-color: transparent; color: var(--green-deep); }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(45deg); justify-self: center; transition: transform .15s; }
.conv-row[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.conv-detail { padding: 2px 4px 20px 62px; }
@media (max-width: 640px) { .conv-detail { padding-left: 4px; } }
.detail-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sage-soft); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.detail { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.detail h3 { font-size: 1.05rem; margin: 0 0 8px; }
.detail-top { display: grid; gap: 18px; }
@media (min-width: 820px) { .detail-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.detail audio { width: 100%; display: block; }
.no-audio { margin: 0; font-size: .92rem; }
.sum p { margin: 0 0 10px; color: var(--ink-2); }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: .93rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.tr-h { margin-top: 20px !important; }
.transcript { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding: 4px 2px; }
.bubble-row { display: flex; }
.bubble-row.reader { justify-content: flex-end; }
.bubble-row .bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .97rem; line-height: 1.45; overflow-wrap: anywhere; }
.bubble-row .bubble b { display: block; font: 600 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.bubble-row.betsy .bubble { background: var(--blush-soft); border-bottom-left-radius: 4px; }
.bubble-row.betsy .bubble b { color: var(--rose); }
.bubble-row.reader .bubble { background: var(--sage-soft); border-bottom-right-radius: 4px; }
.bubble-row.reader .bubble b { color: var(--green-deep); }
.detail-err { padding: 8px 0; }
.conv-row { align-items: start; }
.conv-row .chev { margin-top: 16px; }
@media (max-width: 640px) {
  .conv-row { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 10px; }
  .av { width: 36px; height: 36px; font-size: 1rem; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .detail { padding: 14px; }
  .bubble-row .bubble { max-width: 90%; }
}
.login-card h1 .script { display: block; font-size: .78em; margin-top: 2px; }

/* ---------- Reader Insights: play from the list ---------- */
.conv-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.conv-line .conv-row { grid-column: 1; grid-row: 1; }
.rp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.conv-line > .rp { grid-column: 2; grid-row: 1; width: 250px; padding-right: 4px; }
.rp-none { font-size: .82rem; color: var(--muted); justify-content: flex-end; }
.rp-btn { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(42, 138, 76, .28); transition: background .15s, transform .1s; }
.rp-btn:hover { background: var(--green-deep); }
.rp-btn:active { transform: scale(.96); }
.rp-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.rp-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.rp-btn .i-play { margin-left: 2px; }
.rp-btn .i-pause, .rp.playing .rp-btn .i-play { display: none; }
.rp.playing .rp-btn .i-pause { display: block; }
.rp-spin { display: none; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(42, 138, 76, .2); border-top-color: var(--green); animation: spin .8s linear infinite; }
.rp.buffering .rp-spin { display: block; }
.rp-bar { position: relative; flex: 1; min-width: 60px; height: 6px; border-radius: 3px; background: var(--sage-soft); cursor: pointer; }
.rp-bar::before { content: ""; position: absolute; inset: -10px 0; }
.rp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--green); }
.rp-time { flex: none; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 74px; text-align: right; }
.rp.active .rp-time { color: var(--green-ink); }
@media (max-width: 760px) {
  .conv-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .conv-line > .rp { grid-column: 1; grid-row: 2; width: auto; padding: 0 4px 14px 50px; }
  .conv-line > .rp-none { justify-content: flex-start; }
  .conv-line .conv-row { padding-bottom: 8px; }
}
