/* PDF Speaker product pages */

.acct-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.acct-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; text-align: right; }
.acct-text { min-width: 0; overflow-wrap: anywhere; }
.acct-text b { color: var(--text); font-weight: 650; }
.acct-bar a { color: var(--accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
.acct-bar a:hover { text-decoration: underline; }
.acct-pro { color: var(--ok); font-weight: 650; }
.announcement { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 9px 16px; font-size: .9rem; font-weight: 600; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.bm-page { fill: var(--accent); }
.bm-lines { stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.bm-wave { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav a:hover { color: var(--text); }
#themeToggle .i-moon { display: none; }
:root[data-theme="dark"] #themeToggle .i-sun { display: none; }
:root[data-theme="dark"] #themeToggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeToggle .i-sun { display: none; }
  :root:not([data-theme="light"]) #themeToggle .i-moon { display: block; }
}
@media (max-width: 640px) { .topnav { display: none; } #themeToggle { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 64px; background:
  radial-gradient(700px 360px at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(520px 280px at 4% 30%, color-mix(in srgb, var(--hl-edge) 8%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 84px 0 96px; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36em; margin-bottom: 26px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; padding: 2px; border-radius: 50%; background: var(--ok-soft); }

.drop-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); position: relative; }
.dropzone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 18px 30px; border: 2px dashed var(--border-strong); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop-art { width: 200px; height: auto; margin-bottom: 10px; }
.art-page { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.art-line { fill: var(--border-strong); }
.art-line.strong { fill: var(--hl-ink); opacity: .55; }
.art-hl { fill: var(--hl); }
.art-wave { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .art-wave { animation: wave 2.4s ease-in-out infinite; }
  @keyframes wave { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
}
.drop-title { font-size: 1.3rem; font-weight: 800; }
.drop-sub { color: var(--muted); }
.drop-actions { display: flex; justify-content: center; margin-top: 12px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .875rem; color: var(--muted); text-align: center; }
.privacy-note svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2; }
.loading { position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); border-radius: 22px; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; }
.loading[hidden] { display: none; }
.loading-bar { width: min(320px, 70vw); height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.loading-bar span { display: block; height: 100%; width: 5%; background: var(--accent); border-radius: inherit; transition: width .2s; }

/* Reader */
body.reading .hero { display: none; }
.reader { padding: 22px 0 48px; }
.reader-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.doc-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-meta svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.doc-meta h2 { font-size: 1.15rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.doc-meta p { margin: 0; font-size: .875rem; }
.reader-head-actions { display: flex; gap: 8px; }
.reader-grid { display: grid; gap: 20px; align-items: start; }
.page-col { min-width: 0; }
.page-view { overflow-wrap: break-word; }
@media (min-width: 980px) { .reader-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }

.page-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.page-jump { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.page-jump input { width: 74px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); text-align: center; }
.page-view {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 48px) clamp(18px, 5vw, 64px); min-height: 50vh;
  font: clamp(1.06rem, 1.25vw, 1.2rem)/1.85 var(--font-read); color: var(--text);
}
.page-view p { margin: 0 0 1.1em; }
.page-view .page-label { font: 600 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.page-view .empty { color: var(--muted); font-style: italic; }
.s { cursor: pointer; border-radius: 4px; padding: 1px 0; transition: background .15s, box-shadow .15s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.s:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.s.current { background: var(--hl); color: var(--hl-ink); box-shadow: 0 0 0 3px var(--hl), inset 0 -2px 0 var(--hl-edge); }
.s.done { color: color-mix(in srgb, var(--text) 72%, var(--bg)); }
.hint { font-size: .85rem; margin-top: 12px; }
@media (max-width: 700px) { .hint { display: none; } }

.side { display: grid; gap: 16px; }
@media (min-width: 980px) { .side { position: sticky; top: 78px; max-height: calc(100vh - 92px); overflow: auto; padding: 2px; scrollbar-width: thin; } }
.player-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.player-row .icon-btn svg { fill: currentColor; stroke: none; }
.play-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .1s, background .15s; }
.play-btn:hover { background: var(--accent-hover); }
.play-btn:active { transform: scale(.96); }
.play-btn svg { width: 28px; height: 28px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.play-btn.playing .i-play { display: none; }
.play-btn.playing .i-pause { display: block; }
.seek { margin: 0 0 6px; }
.player-status { margin: 0; text-align: center; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 979px) {
  .player { position: sticky; bottom: 0; z-index: 20; border-radius: 18px 18px 0 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); order: 99; }
  .reader-grid .player { max-width: none; width: auto; align-self: stretch; }
  .player-row { margin-bottom: 8px; gap: 14px; }
  .play-btn { width: 54px; height: 54px; }
  .reader-grid { display: flex; flex-direction: column; align-items: stretch; }
  .reader-grid > *, .side > * { min-width: 0; max-width: 100%; }
  .side { display: contents; }
  #voiceCard, #audioCard { width: 100%; }
}

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; }
.field-row input, .field-row select { min-width: 0; }
.field-row .field { margin-bottom: 12px; }
.dl-progress { margin-top: 12px; }
.dl-progress progress { width: 100%; height: 8px; accent-color: var(--accent); }
.dl-progress-row { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; color: var(--muted); }
.dl-result { margin-top: 14px; display: grid; gap: 10px; }
.dl-result audio { width: 100%; }
.notice { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--text); font-size: .9rem; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice .btn { margin-top: 8px; }
.key-box { margin: 14px 0 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.key-box summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent); }
.key-form { display: flex; gap: 8px; margin-top: 10px; }
.key-form input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font: .9rem var(--mono); text-transform: uppercase; }
#keyStatus { margin: 8px 0 0; }
#keyStatus.ok { color: var(--ok); }
#keyStatus.err { color: var(--danger); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 36px; }
.steps { list-style: none; margin: 32px 0 44px; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; }
.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 18px 20px; border-left: 3px solid var(--hl-edge); background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 0 12px 12px 0; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.plans { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.pro { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.25rem; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.checks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pro-cta { display: grid; gap: 12px; }
.waitlist p { margin: 0 0 8px; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 8px; }
.waitlist-row input[type="email"] { flex: 1 1 200px; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); }
.waitlist-row .btn { flex: 1 1 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#wlStatus { margin: 8px 0 0; min-height: 1.2em; }
#wlStatus.ok { color: var(--ok); }
#wlStatus.err { color: var(--danger); }
.whatsapp svg { stroke: #16a34a; }

#faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
#faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.3rem; line-height: 1; }
#faq details[open] summary::after { content: "–"; }
#faq details p { color: var(--muted); }

.footer { border-top: 1px solid var(--border); padding: 26px 0 34px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; }
body.reading .footer { padding-bottom: 120px; }

.drop-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: color-mix(in srgb, var(--accent) 22%, transparent); backdrop-filter: blur(3px); }
.drop-overlay div { background: var(--surface); padding: 22px 30px; border-radius: 16px; font-weight: 800; font-size: 1.2rem; border: 2px dashed var(--accent); }
body.dragging .drop-overlay { display: grid; }

/* Legal and status pages */
.doc-page { padding: 48px 0 72px; }
.doc-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc-page h2 { font-size: 1.25rem; margin-top: 1.8em; }
.doc-page li { margin-bottom: .4em; }
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.status-page .card { max-width: 520px; padding: 34px; }
