@layer pages {
.listen-page{background:var(--canvas);color:var(--ink);padding-bottom:152px}
.listen-page [hidden]{display:none!important}
.listen-page .icon-library{position:absolute;width:0;height:0;overflow:hidden}
.listen-page .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

.listen-page button,.listen-page select,.listen-page textarea{font:inherit}
.listen-page button,.listen-page label.upload-button,.listen-page a,.listen-page select{touch-action:manipulation}
.listen-page button,.listen-page .upload-button{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.listen-page button:active:not(:disabled),.listen-page .upload-button:active{transform:translateY(1px)}
.listen-page :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.listen-page .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.listen-page .skip-link{position:fixed;top:10px;left:16px;z-index:10;padding:10px 16px;background:var(--surface);border-radius:8px;transform:translateY(-160%)}
.listen-page .skip-link:focus{transform:translateY(0)}


.listen-page .product-divider{font-weight:400;color:var(--line);margin:0 17px;font-size:26px}
.listen-page .product-name{font-size:15px;letter-spacing:-.2px;font-weight:500;color:var(--subtle)}



.listen-page main{max-width:960px;padding:0 32px;margin:0 auto}
.listen-page .hero{text-align:center;padding:47px 0 35px}
.listen-page .eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:var(--subtle);letter-spacing:.12px}
.listen-page .live-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;display:inline-block;flex-shrink:0}
.listen-page h1{font-size:clamp(44px,5.2vw,64px);font-weight:650;line-height:1.08;letter-spacing:-3px;margin:20px 0}
.listen-page h1 span{color:var(--accent)}
.listen-page .hero>p{font-size:16px;line-height:1.7;color:var(--subtle);margin:0}
.listen-page .input-card{max-width:720px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.listen-page .input-tabs{display:flex;justify-content:center;gap:8px;padding:15px;border-bottom:1px solid var(--line)}
.listen-page .input-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:var(--subtle);border-radius:8px;padding:10px 20px;min-height:44px;font-size:13px;font-weight:600}
.listen-page .input-tab[aria-selected=true]{color:var(--accent);background:var(--tint)}
.listen-page .input-tab:hover{background:var(--tint)}
.listen-page .input-tab .icon{width:17px;height:17px}
.listen-page .upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;margin:16px;padding:24px 20px 12px;border:1px dashed transparent;border-radius:12px;transition:background .18s,border-color .18s}
.listen-page .upload-zone.is-dragging{background:var(--tint);border-color:var(--accent)}
.listen-page .upload-art{position:relative;display:grid;place-items:center;width:76px;height:76px;border:1px solid var(--line);background:linear-gradient(145deg,var(--tint),var(--surface));border-radius:23px;transform:rotate(-7deg);margin-bottom:12px;color:var(--accent);box-shadow:var(--shadow-card)}
.listen-page .upload-art>.icon{width:37px;height:37px;stroke-width:1.5}
.listen-page .document-badge{position:absolute;right:-9px;bottom:-3px;background:var(--surface);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;width:30px;height:33px;transform:rotate(14deg)}
.listen-page .document-badge .icon{width:17px;height:17px}
.listen-page .upload-zone h2{font-size:21px;letter-spacing:-.6px;font-weight:600;margin:14px 0 4px}
.listen-page .upload-zone>p{font-size:13px;color:var(--subtle);margin:0 0 20px}
.listen-page .upload-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;background:var(--accent);color:var(--surface);border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:var(--shadow-card);min-height:48px}
.listen-page .upload-button:hover{background:var(--accent-hover)}
.listen-page .upload-button:focus-within{outline:3px solid var(--accent);outline-offset:4px}
.listen-page #file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.listen-page .button-arrow{width:17px;height:17px;margin-left:12px;opacity:.8}
.listen-page .upload-zone .upload-hint{font-size:12px;margin:13px 0 0;letter-spacing:.15px}
.listen-page .privacy-note{display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px;color:var(--subtle);padding:15px 20px;border-top:1px solid var(--line);background:var(--canvas)}
.listen-page .privacy-note .icon{width:14px;height:14px}
.listen-page #paste-panel{padding:24px}
.listen-page .paste-label{display:block;font-size:14px;font-weight:600;margin-bottom:12px}
.listen-page #paste{display:block;width:100%;min-height:190px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:var(--canvas);color:var(--ink);font-size:16px;line-height:1.7;padding:16px}
.listen-page #paste::placeholder{color:var(--subtle);opacity:1}
.listen-page .paste-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.listen-page .paste-actions>span{font-size:12px;color:var(--subtle)}
.listen-page #usetext{display:inline-flex;align-items:center;gap:12px;white-space:nowrap;background:var(--accent);font-size:13px;font-weight:600;min-height:44px}
.listen-page #usetext:hover{background:var(--accent-hover)}
.listen-page #status{max-width:720px;margin:16px auto;font-size:14px;color:var(--accent);font-weight:500;overflow-wrap:anywhere}
.listen-page #status:empty{display:none}
.listen-page .model-card{display:flex;gap:14px;align-items:flex-start;max-width:720px;margin:20px auto;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.listen-page .model-icon{display:grid;place-items:center;color:var(--accent);background:var(--tint);width:38px;height:38px;border-radius:10px;flex-shrink:0}
.listen-page .model-content{flex:1;min-width:0}
.listen-page #mstatus{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}
.listen-page .model-note{font-size:12px;color:var(--subtle);margin:5px 0 0}
.listen-page progress{appearance:none;-webkit-appearance:none;border:0;overflow:hidden;background:var(--line);color:var(--accent)}
.listen-page progress::-webkit-progress-bar{background:var(--line)}
.listen-page progress::-webkit-progress-value{background:var(--accent);border-radius:inherit}
.listen-page progress::-moz-progress-bar{background:var(--accent);border-radius:inherit}
.listen-page #prog{width:100%;height:5px;border-radius:10px;margin-top:14px;display:block}
.listen-page .benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;max-width:720px;margin:36px auto 0;padding:0 8px}
.listen-page .benefit-number{font-size:10px;letter-spacing:1px;color:var(--accent);font-weight:600}
.listen-page .benefits h2{font-size:13px;letter-spacing:-.1px;font-weight:600;margin:8px 0 3px}
.listen-page .benefits p{font-size:11px;line-height:1.6;color:var(--subtle);margin:0}
.listen-page .flashcard-link{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--subtle);margin:35px 0 0}
.listen-page .flashcard-link a{display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-weight:500}
.listen-page .flashcard-link a:hover{text-decoration:underline}
.listen-page .flashcard-link .icon{width:14px;height:14px}



.listen-page .footer-credit{margin-left:8px}
.listen-page .player-bar{position:fixed;inset:auto 0 0;z-index:5;background:var(--surface);border-top:1px solid var(--line);box-shadow:var(--shadow);padding-bottom:env(safe-area-inset-bottom,0px)}
.listen-page #reading-progress{position:absolute;top:-1px;left:0;width:100%;height:3px;display:block}
.listen-page .player-inner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px;align-items:center;max-width:1200px;margin:0 auto;padding:19px 40px 10px}
.listen-page .now-playing{display:flex;align-items:center;gap:12px;min-width:0}
.listen-page .cover-art{display:grid;place-items:center;width:46px;height:46px;background:var(--tint);color:var(--accent);border:1px solid var(--line);border-radius:11px;flex-shrink:0}
.listen-page .cover-art .icon{width:25px;height:25px}
.listen-page .now-playing>div{min-width:0}
.listen-page #track-title{font-size:13px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 3px}
.listen-page #pos{font-size:11px;color:var(--subtle);display:block}
.listen-page .transport{display:flex;align-items:center;gap:12px}
.listen-page .icon-button{display:grid;place-items:center;padding:10px;width:44px;height:44px;background:transparent;color:var(--ink);border-radius:50%}
.listen-page .icon-button:hover:not(:disabled){background:var(--tint);color:var(--accent)}
.listen-page .replay-button{color:var(--subtle);margin-right:4px}
.listen-page .play-button{display:grid;place-items:center;width:56px;height:56px;padding:0;background:var(--accent);color:var(--surface);border-radius:50%;box-shadow:var(--shadow-card)}
.listen-page .play-button:hover:not(:disabled){background:var(--accent-hover);box-shadow:var(--shadow)}
.listen-page .play-button svg{width:24px;height:24px;fill:currentColor}
.listen-page .play-button .pause-icon{display:none;fill:none;stroke:currentColor;stroke-width:3.5}
.listen-page .play-button[data-playing=true] .play-icon{display:none}
.listen-page .play-button[data-playing=true] .pause-icon{display:block}
.listen-page button:disabled{opacity:.4;cursor:not-allowed}
.listen-page .player-settings{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0}
.listen-page .speed-control,.listen-page .voice-control{display:flex;align-items:center;position:relative;min-height:44px;border:1px solid var(--line);background:var(--canvas);border-radius:24px}
.listen-page .player-settings select{appearance:none;-webkit-appearance:none;background:transparent;color:var(--ink);border:0;border-radius:24px;font-size:12px;cursor:pointer;min-height:44px;padding:0 28px 0 14px;width:100%;text-overflow:ellipsis}
.listen-page .player-settings option{background:var(--surface);color:var(--ink)}
.listen-page .speed-control{flex-shrink:0;width:76px}
.listen-page .voice-control{max-width:235px;min-width:0}
.listen-page .voice-control>.icon:first-child{position:absolute;left:12px;width:16px;height:16px;pointer-events:none;color:var(--accent)}
.listen-page .voice-control select{padding-left:36px}
.listen-page .speed-control>.icon,.listen-page .chevron{position:absolute;right:9px;width:16px;height:16px;pointer-events:none;color:var(--subtle)}
.listen-page .keyboard-hint{text-align:center;font-size:10px;color:var(--subtle);margin:0 0 10px}
.listen-page kbd{font:inherit;background:var(--canvas);border:1px solid var(--line);padding:1px 4px;border-radius:3px}
.listen-page .keyboard-hint>span{margin:0 6px}
.listen-page .reading-view{padding-top:32px}
.listen-page .reading-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:24px}
.listen-page .section-kicker{font-size:10px;letter-spacing:1.7px;color:var(--accent);font-weight:600}
.listen-page #title{font-size:clamp(24px,3vw,34px);line-height:1.25;letter-spacing:-1px;font-weight:600;margin:8px 0 0;overflow-wrap:anywhere}
.listen-page .quiet-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:12px;white-space:nowrap;background:var(--surface);border:1px solid var(--line);color:var(--subtle);border-radius:9px}
.listen-page .quiet-button:hover{color:var(--accent);background:var(--tint)}
.listen-page .quiet-button .icon{width:16px;height:16px}
.listen-page .reading-tip{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--subtle);margin:22px 0 28px}
.listen-page #text{max-width:70ch;margin:0 auto;color:var(--ink);font-size:19px;line-height:1.95;letter-spacing:.05px;overflow-wrap:anywhere;scroll-margin-bottom:160px}
.listen-page #text .s{cursor:pointer;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:3px 0;scroll-margin-top:28px;scroll-margin-bottom:170px;transition:background .18s}
.listen-page #text .s:hover{background:var(--tint)}
.listen-page #text .s.cur{background:var(--highlight);box-shadow:0 0 0 3px var(--highlight)}
.listen-page .reading-end{text-align:center;font-size:12px;color:var(--subtle);margin:48px 0}
.listen-page.has-document:not(.choosing-document) .hero,.listen-page.has-document:not(.choosing-document) .input-card,.listen-page.has-document .benefits{display:none}
.listen-page.has-document #status{max-width:none}
.listen-page.has-document .model-card{max-width:none}
@media(min-width:1500px){.listen-page .hero{padding-top:68px;padding-bottom:42px}.listen-page .upload-zone{padding-top:32px;padding-bottom:20px}}
@media(max-width:1000px){.listen-page .player-inner{gap:12px;padding-left:24px;padding-right:24px}.listen-page .transport{gap:4px}.listen-page .voice-control{max-width:190px}.listen-page .player-settings{gap:6px}}
@media(max-width:760px){.listen-page{padding-bottom:200px}.listen-page .product-divider,.listen-page .product-name{display:none}.listen-page main{padding:0 24px}.listen-page .hero{padding:30px 0}.listen-page h1{letter-spacing:-2px}.listen-page .eyebrow{font-size:11px}.listen-page .player-inner{grid-template-columns:1fr auto;gap:10px;padding:14px 24px 12px}.listen-page .now-playing{grid-column:1/-1}.listen-page .cover-art{width:36px;height:36px;border-radius:9px}.listen-page .cover-art .icon{width:20px;height:20px}.listen-page .transport{gap:2px}.listen-page .replay-button{margin:0}.listen-page .play-button{width:50px;height:50px}.listen-page .icon-button{width:44px;height:44px}.listen-page .voice-control{max-width:210px}.listen-page .keyboard-hint{display:none}.listen-page .player-settings{gap:8px}.listen-page .footer-credit{display:block;margin:4px 0 0}.listen-page #text .s{scroll-margin-bottom:210px}}
@media(max-width:520px){.listen-page{padding-bottom:206px}.listen-page main{padding:0 16px}.listen-page .hero{padding-top:28px}.listen-page h1{font-size:48px}.listen-page .hero>p{font-size:14px}.listen-page .input-tabs{padding:12px}.listen-page .input-tab{flex:1;padding:10px 12px}.listen-page .upload-zone{margin:10px;padding:24px 10px 14px}.listen-page .upload-zone h2{font-size:20px}.listen-page .upload-zone>p{font-size:12px}.listen-page .benefits{gap:18px;margin-top:28px}.listen-page .benefits h2{font-size:12px;line-height:1.5}.listen-page .benefits p{font-size:11px}.listen-page .flashcard-link{font-size:11px;gap:6px;margin-top:28px}.listen-page #paste-panel{padding:20px 16px}.listen-page .paste-actions>span{display:none}.listen-page .paste-actions{justify-content:flex-end}.listen-page .player-inner{padding:12px 16px;gap:10px 6px}.listen-page .transport{gap:0}.listen-page .replay-button{width:36px;padding:8px}.listen-page .play-button{width:48px;height:48px}.listen-page .player-settings{gap:5px}.listen-page .speed-control{width:65px}.listen-page .player-settings select{font-size:11px;padding-left:10px;padding-right:22px}.listen-page .voice-control{max-width:125px}.listen-page .voice-control>.icon:first-child{display:none}.listen-page .reading-heading{gap:12px}.listen-page .quiet-button{font-size:11px;padding:10px}.listen-page .quiet-button .icon{display:none}.listen-page .reading-tip{font-size:11px;align-items:baseline}.listen-page #text{font-size:18px;line-height:1.9}.listen-page .model-card{padding:16px;gap:10px}}
@media(max-width:360px){.listen-page .player-inner{padding-left:10px;padding-right:10px}.listen-page .icon-button{width:40px;height:44px}.listen-page .replay-button{width:32px}.listen-page .voice-control{max-width:103px}.listen-page .benefits{gap:10px}}
@media(prefers-reduced-motion:reduce){.listen-page *,.listen-page *::before,.listen-page *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.listen-page .hero { padding: 48px 0 40px; }
.listen-page .hero .eyebrow { color:var(--accent); font-weight:700; letter-spacing:.1em; }
.listen-page .hero h1 { font-weight:750; }
.listen-page .hero h1 span { font-family:Georgia,"Times New Roman",serif; font-style:italic; font-weight:500; }
.listen-page .hero > p { font-size:17px; }
.listen-page .input-card { border-radius:24px; }
.listen-page .upload-zone { border-color:var(--line); background:var(--canvas); margin:20px; padding:28px 20px; }
.listen-page .upload-zone h2 { font-weight:650; }
.listen-page .privacy-note { font-size:12px; }
.listen-page .upload-button { color:var(--surface); min-height:48px; }
.listen-page .upload-button:focus-within { outline:3px solid var(--accent); outline-offset:4px; }
.listen-page .play-button { color:var(--surface); }
.listen-page #usetext { color:var(--surface); }
.listen-page .benefits { gap:24px; margin-top:40px; }
.listen-page .benefits > div { padding:20px 0; border-top:1px solid var(--line); }
.listen-page .benefit-number { font-size:12px; }
.listen-page .benefits h2 { font-size:16px; line-height:1.4; }
.listen-page .benefits p { font-size:13px; }
.listen-page .flashcard-link { font-size:14px; }
.listen-page .reading-view { padding:32px 40px; margin-top:24px; background:var(--surface); border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow-card); }
.listen-page .reading-tip { font-size:13px; }
.listen-page #text { font-family:Georgia,"Times New Roman",serif; font-size:21px; line-height:2; }
.listen-page .model-card { box-shadow:var(--shadow-card); }
.listen-page .model-note { font-size:13px; }
.listen-page .player-bar { padding-bottom:env(safe-area-inset-bottom); }
.listen-page .keyboard-hint { font-size:12px; }
.listen-page .voice-control { max-width:250px; }
.listen-page .footer-credit { display:inline; margin:0; }
@media(max-width:760px) {
  .listen-page .benefits { gap:16px; }
  .listen-page .reading-view { padding:24px; }
  .listen-page .player-inner { grid-template-columns:minmax(0,1fr); }
  .listen-page .now-playing { grid-column:auto; }
  .listen-page .transport { justify-content:center; }
  .listen-page .player-settings { justify-content:center; }
  .listen-page { padding-bottom:260px; }
  .listen-page #text .s { scroll-margin-bottom:270px; }
  .listen-page .voice-control { max-width:250px; flex:1; }
  .listen-page .replay-button { width:44px; height:44px; }
  .listen-page .player-inner { padding:12px 20px 16px; gap:8px; }
}
@media(max-width:520px) {
  .listen-page main { padding-left:20px; padding-right:20px; }
  .listen-page .hero { padding:32px 0; }
  .listen-page .hero h1 { font-size:48px; }
  .listen-page .hero > p { font-size:15px; }
  .listen-page .upload-zone { margin:16px; padding:24px 12px; }
  .listen-page .benefits { grid-template-columns:1fr; gap:0; }
  .listen-page .benefits > div { padding:16px 0; }
  .listen-page .benefits h2 { margin:4px 0; }
  .listen-page .reading-view { padding:24px 20px; }
  .listen-page .reading-heading { flex-wrap:wrap; }
  .listen-page #text { font-size:19px; }
  .listen-page .voice-control select { font-size:13px; }
  .listen-page .flashcard-link { font-size:13px; }
}
}

/* UX fixes (walkthrough) */
.listen-page .play-button.is-buffering .play-icon,.listen-page .play-button.is-buffering .pause-icon{display:none}
.listen-page .play-button.is-buffering::after{content:"";width:22px;height:22px;border-radius:50%;border:3px solid currentColor;border-right-color:transparent;animation:p2d-spin .8s linear infinite}
@keyframes p2d-spin{to{transform:rotate(360deg)}}
.listen-page #status{min-height:1.5em}
.listen-page button:disabled{opacity:1;background:var(--line);color:var(--subtle)}
:root[data-theme="dark"] .listen-page button:disabled{background:#34313f;color:#b9b5c6}
@media(prefers-reduced-motion:reduce){.listen-page .play-button.is-buffering::after{animation:p2d-spin 2s linear infinite!important}}
