/* Shared Reads palette and controls, taken from the established landing page. */
:root {
 --bg:#1d1b1a; --paper:#292522; --ink:#f4f4e9; --muted:#bdb1a3;
 --line:#4c423a; --sage:#302c29; --terra:#a9c8ed; --accent:#a9c8ed;
 --field:#211e1c; --accent-ink:#1b2c42; --danger:#f1b6a6;
 font-family:ui-rounded,system-ui,-apple-system,sans-serif;
 color:var(--ink); background:var(--bg); color-scheme:dark; font-synthesis:none;
}
* {box-sizing:border-box;}
body {margin:0;min-height:100svh;}
header,main,footer {max-width:1180px;margin:auto;}
header {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 34px;border-bottom:1px solid var(--line);}
.wordmark {font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;font-size:42px;font-weight:650;line-height:1.15;letter-spacing:-2.3px;color:var(--ink);text-decoration:none;}
.mode {font-size:10px;font-weight:600;letter-spacing:1.3px;border:1px solid var(--line);border-radius:30px;padding:9px 12px;background:var(--sage);color:#d5c9bb;}
.account-controls {display:flex;align-items:center;gap:20px;}
main {padding:50px 34px 38px;}
.eyebrow {font-size:10px;letter-spacing:2px;font-weight:650;color:var(--accent);margin:0 0 18px;}
h1 {font-family:inherit;font-weight:550;font-size:clamp(36px,4.7vw,56px);letter-spacing:-2px;line-height:1.12;margin:0 0 22px;}
p {line-height:1.7;}
.intro>p:last-child {color:var(--muted);font-size:16px;margin:0 0 32px;}
.notice {display:flex;gap:12px;background:var(--sage);border:1px solid var(--line);border-radius:18px;padding:17px 20px;margin:0 0 28px;}
.notice p {font-size:12px;margin:0;line-height:1.7;}
.dot {width:6px;height:6px;flex:0 0 6px;background:var(--accent);border-radius:100%;margin-top:7px;}
.workspace {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start;}
.workspace>* {min-width:0;}
.paper {background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:28px;}
h2 {font-family:inherit;font-size:23px;font-weight:550;letter-spacing:-.65px;margin:0;line-height:1.3;}
.section-title {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;}
.section-title h2 span {font-size:10px;font-weight:600;letter-spacing:1px;color:var(--accent);margin-right:10px;vertical-align:middle;}
button,input,select,textarea {font:inherit;}
button,summary {cursor:pointer;touch-action:manipulation;}
.text-button {background:none;border:0;color:var(--accent);padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a9c8ed66;font-size:12px;line-height:1.5;}
textarea,input:not([type=checkbox]):not([type=range]),select {width:100%;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:14px;padding:14px;min-height:48px;}
textarea {height:250px;resize:vertical;line-height:1.8;font-size:16px;}
textarea::placeholder,input::placeholder {color:#afa394;opacity:1;}
label {display:block;font-size:12px;font-weight:600;margin:18px 0 9px;}
select {font-size:14px;}
.text-meta {display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:10px;color:var(--muted);padding:12px 0 28px;}
.hint {font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere;}
.primary,.secondary {width:100%;border:0;border-radius:17px;min-height:54px;padding:16px 18px;font-size:13px;font-weight:650;line-height:1.6;text-align:center;}
.primary {background:var(--accent);color:var(--accent-ink);}
.secondary {background:#39312c;color:var(--ink);border:1px solid #68574a;}
button:disabled {cursor:not-allowed;opacity:.55;}
button:hover:not(:disabled) {filter:brightness(1.08);}
a:hover {text-decoration-thickness:2px;}
:focus-visible {outline:3px solid #e0edff;outline-offset:4px;}
input:focus-visible,select:focus-visible,textarea:focus-visible {outline-offset:3px;}
details {border-top:1px solid var(--line);margin-top:22px;padding-top:8px;}
summary {font-size:12px;font-weight:600;line-height:1.7;min-height:44px;padding:12px 0;color:var(--ink);overflow-wrap:anywhere;}
/* Text disclosure labels keep decoration out of the interface. */
summary {list-style:none;}
summary::-webkit-details-marker {display:none;}
summary::after {content:'Show';float:right;font-size:10px;font-weight:500;color:var(--accent);padding-left:12px;}
details[open]>summary::after {content:'Hide';}
details[open]>summary {margin-bottom:12px;}
output {float:right;color:var(--muted);}
input[type=range] {width:100%;accent-color:var(--accent);min-height:36px;}
.preflight {font-size:12px;line-height:1.7;color:#d3c5b5;margin:22px 0 16px;padding:18px;background:var(--field);border:1px solid var(--line);border-radius:14px;min-height:56px;overflow-wrap:anywhere;}
.voice-card h2 {font-size:29px;line-height:1.2;letter-spacing:-1px;}
.voice-card>p:not(.eyebrow) {font-size:13px;color:var(--muted);}
input[type=file] {font-size:12px;padding:10px!important;}
input[type=file]::file-selector-button {border:0;border-radius:9px;background:#39312c;color:var(--ink);padding:10px;margin-right:10px;cursor:pointer;}
.check {display:flex;gap:11px;font-weight:400;line-height:1.7;font-size:12px;}
.check input {accent-color:var(--accent);flex:0 0 17px;width:17px;height:17px;align-self:start;margin:3px 0;}
.small-note {padding:20px 28px;color:var(--muted);}
.small-note p {font-size:13px;line-height:1.8;}
.library {margin-top:50px;}
.library .eyebrow {margin-bottom:10px;}
.empty {text-align:center;padding:44px 24px;border:1px dashed #68574a;border-radius:26px;color:var(--muted);font-size:13px;line-height:1.7;}
.empty h3 {font-size:22px;font-weight:550;letter-spacing:-.5px;color:var(--ink);margin:0 0 12px;}
.empty p {font-size:13px;margin:0;}
.job {border:1px solid var(--line);background:var(--paper);padding:26px;border-radius:24px;margin:16px 0;min-width:0;}
.job-top {display:flex;justify-content:space-between;gap:18px;align-items:start;}
.job h3 {font-family:inherit;font-size:21px;line-height:1.4;font-weight:550;letter-spacing:-.5px;margin:0 0 8px;overflow-wrap:anywhere;}
.job p {margin:7px 0;}
.badge {border:1px solid #53677e;border-radius:20px;background:#2d3945;color:#c5ddf8;padding:6px 11px;font-size:10px;line-height:1.5;white-space:nowrap;}
.job[data-state=failed] .badge,.job[data-state=needs_review] .badge {background:#483029;color:var(--danger);border-color:#765044;}
.job[data-state=cancelled] .badge {background:var(--sage);color:var(--muted);border-color:var(--line);}
.job .actions {display:flex;gap:8px 24px;align-items:center;margin-top:12px;flex-wrap:wrap;}
.actions a {color:var(--accent);font-size:12px;font-weight:600;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px;}
.job audio,audio {display:block;width:100%;height:42px;margin:16px 0 8px;border-radius:24px;color-scheme:dark;}
progress {width:100%;height:8px;accent-color:var(--accent);border:0;border-radius:8px;overflow:hidden;}
progress::-webkit-progress-bar {background:var(--line);}
progress::-webkit-progress-value {background:var(--accent);border-radius:8px;}
progress::-moz-progress-bar {background:var(--accent);}
.profile {padding:20px 0;border-top:1px solid var(--line);font-size:13px;overflow-wrap:anywhere;}
.profile:first-child {margin-top:22px;}
.profile:last-child {padding-bottom:0;}
.profile small {display:block;color:var(--muted);font-size:11px;line-height:1.7;margin:8px 0;}
.profile>.text-button {display:block;text-align:left;max-width:100%;margin:2px 0;}
.profile>details {margin-bottom:16px;}
.error,#message:not(:empty) {color:#f3c6b9;background:#412c27;border:1px solid #785345;border-radius:14px;padding:14px 16px;font-size:13px;line-height:1.7;overflow-wrap:anywhere;}
#message:empty,#connection:empty,#voice-status:empty {display:none;}
#connection:not(:empty),#voice-status:not(:empty) {padding:14px 16px;background:var(--sage);border:1px solid var(--line);border-radius:14px;font-size:12px;color:#e0d3c3;line-height:1.7;overflow-wrap:anywhere;}
footer {display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:26px 34px;font-size:11px;line-height:1.7;color:var(--muted);}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
[hidden] {display:none!important;}
a[aria-disabled=true] {opacity:.55;cursor:not-allowed;}
.login-button {display:inline-block;background:var(--accent);color:var(--accent-ink);padding:16px 20px;border-radius:17px;text-decoration:none;font-size:14px;}
#auth-panel {margin:28px 0;}
#auth-status {font-size:13px;color:#e2c8b8;line-height:1.7;}
@media(max-width:800px) {
 .workspace {grid-template-columns:1fr;}
 .small-note {display:none;}
}
@media(max-width:600px) {
 header {padding:20px;gap:12px;}
 .wordmark {font-size:34px;letter-spacing:-1.8px;}
 .account-controls {gap:12px;flex-wrap:wrap;justify-content:flex-end;}
 .mode {font-size:9px;letter-spacing:1px;padding:8px 10px;}
 main {padding:34px 20px;}
 h1 {font-size:38px;letter-spacing:-1.4px;}
 .intro>p:last-child {font-size:14px;}
 .notice {padding:16px;}
 .paper {padding:22px;border-radius:23px;}
 .section-title {gap:8px;flex-wrap:wrap;}
 h2 {font-size:21px;}
 .section-title h2 span {margin-right:7px;}
 .voice-card h2 {font-size:27px;}
 .text-meta {font-size:10px;}
 textarea,input:not([type=checkbox]):not([type=range]),select {font-size:16px;}
 .job {padding:22px;border-radius:23px;}
 .job-top {flex-wrap:wrap;gap:10px;}
 .job h3 {font-size:20px;}
 .library {margin-top:36px;}
 footer {padding:24px 20px;flex-direction:column;gap:8px;}
}

/* Established landing layout and moving wordmark. */
.landing-nav {display:none;}
body.signed-out {background:#1d1b1a;color:#f4f4e9;min-height:100svh;}
.signed-out header {max-width:none;border:0;padding:0;position:fixed;inset:0 0 auto;height:84px;z-index:5;pointer-events:none;transition:background .2s;}
.signed-out.landing-scrolled header {background:linear-gradient(#1d1b1a 75%,#1d1b1a00);}
.signed-out .wordmark {position:fixed;left:0;top:0;color:#f4f4e9;font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:650;font-size:52px;line-height:1.15;letter-spacing:-2.8px;transform:translate(var(--brand-x,calc(50vw - 75px)),var(--brand-y,160px)) scale(var(--brand-scale,1));transform-origin:top left;pointer-events:auto;will-change:transform;}
.signed-out .wordmark span {color:#a9c8ed;font-size:.87em;}
.signed-out .account-controls,.signed-out .intro,.signed-out footer {display:none;}
.signed-out main {max-width:none;padding:0;}
.signed-out #auth-panel {margin:0;}
.landing {width:min(100%,540px);min-height:100svh;margin:auto;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:80px 28px 82px;}
.brand-slot {height:60px;flex-shrink:0;margin:0 0 9px;}
.hero-art {width:360px;max-width:100%;margin:0 auto 6px;}
.hero-art svg {display:block;width:100%;height:auto;}
.landing h1 {text-wrap:balance;font-family:ui-rounded,system-ui,-apple-system,sans-serif;font-size:clamp(25px,3.2vw,33px);font-weight:550;line-height:1.2;letter-spacing:-1.1px;margin:0 0 32px;color:#f4f4e9;}
.landing h1 span {white-space:nowrap;}
.landing-actions {display:grid;grid-template-columns:1.4fr 1fr;gap:12px;width:100%;max-width:338px;margin:0 auto;}
.landing-actions .login-button,.landing-actions button {border:0;border-radius:18px;font-family:inherit;font-weight:600;font-size:14px;line-height:20px;min-height:54px;padding:17px 20px;text-decoration:none;transition:background .15s,transform .15s;}
.landing-actions .login-button {background:#302c29;color:#eee8df;display:flex;align-items:center;justify-content:center;gap:20px;}
.landing-actions button {background:#a9c8ed;color:#1b2c42;white-space:nowrap;padding-inline:14px;}
.landing-actions .login-button:hover {background:#3e3630;transform:translateY(-2px);}
.landing-actions button:hover {background:#bed9f7;transform:translateY(-2px);}
.signed-out a:focus-visible,.signed-out button:focus-visible {outline:3px solid #e0edff;outline-offset:5px;}
.waiting-list-availability {font-size:11px;line-height:1.5;color:#bdb1a3;margin:14px 0 0;}
.waitlist-dialog {width:min(460px,calc(100% - 32px));max-height:calc(100svh - 40px);overflow:auto;padding:38px 30px 28px;background:#292522;color:#f4f4e9;border:0;border-radius:26px;text-align:left;box-shadow:0 24px 100px #0008;}
.waitlist-dialog::backdrop {background:#121110c9;backdrop-filter:blur(6px);}
.waitlist-dialog:not([open]) {display:none;}
.waitlist-dialog h2 {font:550 29px/1.2 ui-rounded,system-ui,sans-serif;letter-spacing:-1px;}
.waitlist-dialog .feature-eyebrow {margin-bottom:15px;font-size:9px;}
.waitlist-dialog label {color:#e7ded2;}
.waitlist-dialog input[type=email] {background:#39312c;border:0;border-radius:12px;color:#f4f4e9;min-height:48px;}
.waitlist-dialog input::placeholder {color:#bdb1a3;}
.waitlist-consent {display:flex;gap:11px;font-size:12px;font-weight:400;line-height:1.7;margin-top:20px;}
.waitlist-consent input {accent-color:#a9c8ed;flex-shrink:0;margin-top:4px;}
#waitlist-privacy {font-size:11px;line-height:1.7;color:#bdb1a3;margin:16px 0 20px;}
#waitlist-submit {width:100%;border:0;border-radius:15px;min-height:50px;background:#a9c8ed;color:#1b2c42;font-size:13px;font-weight:650;padding:14px;}
.dialog-close {position:absolute;right:17px;top:12px;border:0;background:none;color:#c4b7a8;font-size:13px;min-width:60px;min-height:44px;padding:8px 10px;}
#waitlist-result {font-size:13px;line-height:1.7;color:#e4d7c6;margin:18px 0 0;}
#waitlist-result:empty {display:none;}
.waitlist-note {font-size:12px;line-height:1.6;color:#c4b7a8;margin:20px 0 0;}
.signed-out .landing-nav {display:flex;align-items:center;gap:24px;position:absolute;right:40px;top:18px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility .2s;}
.signed-out.landing-scrolled .landing-nav {opacity:1;visibility:visible;pointer-events:auto;}
.landing-nav a,.landing-nav button {font-size:13px;font-weight:600;text-decoration:none;color:#f2ece4;}
.landing-nav button {border:0;border-radius:14px;background:#a9c8ed;color:#1b2c42;padding:12px 18px;min-height:44px;}
.landing-nav a {display:inline-flex;align-items:center;min-height:44px;}
.landing-nav #signup-note {position:absolute;right:0;top:49px;width:232px;background:#38312d;color:#f2ece4;border-radius:16px;padding:18px;font-size:12px;line-height:1.6;box-shadow:0 10px 40px #0004;}
.landing-features {max-width:1080px;margin:auto;padding:100px 40px 48px;scroll-margin-top:88px;}
.feature-eyebrow {font-size:10px;letter-spacing:2px;font-weight:650;color:#a9c8ed;margin:0 0 23px;}
.landing-features h2 {font:550 clamp(40px,5vw,64px)/1.08 ui-rounded,system-ui,sans-serif;letter-spacing:-2.5px;color:#f4f4e9;}
.feature-intro {font-size:17px;line-height:1.6;color:#bdb1a3;margin:25px 0 70px;}
.demo-caption {display:flex;align-items:center;gap:9px;font-size:11px;color:#c7b8a8;margin:0 0 30px;}
.demo-caption>span {width:6px;height:6px;border-radius:50%;background:#a9c8ed;}
.feature-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:55px;}
.feature-grid h3 {font:550 21px/1.3 ui-rounded,system-ui,sans-serif;letter-spacing:-.6px;margin:24px 0 12px;color:#f4f4e9;}
.feature-grid p,.coming-next>p:last-child {font-size:14px;line-height:1.8;color:#bdb1a3;margin:0;max-width:360px;}
.feature-symbol {height:64px;display:flex;align-items:center;gap:11px;color:#e9dfd2;font:500 45px/1 Georgia,serif;}
.feature-symbol>span {font:25px/1 system-ui;color:#a9c8ed;}
.voice-symbol {gap:6px;}
.voice-symbol i {display:block;width:8px;height:20px;border-radius:10px;background:#a9c8ed;}
.voice-symbol i:nth-child(2),.voice-symbol i:nth-child(4) {height:38px;}
.voice-symbol i:nth-child(3) {height:58px;}
.file-symbol {gap:12px;}
.file-symbol>span {font-size:53px;line-height:1;}
.file-symbol small {font:13px/1.5 ui-monospace,monospace;color:#d1bba1;}
.coming-next {margin:100px 0 100px;max-width:570px;}
.coming-next h3 {font:500 32px/1.2 ui-rounded,system-ui,sans-serif;letter-spacing:-1px;margin:0 0 20px;color:#f4f4e9;}
.coming-next>p:last-child {max-width:510px;}
.landing-signoff {display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#bdb1a3;}
.landing-signoff span {font-size:28px;color:#a9c8ed;}
@media(max-width:600px) {
 .signed-out .wordmark {font-size:46px;letter-spacing:-2.5px;}
 .landing {padding:70px 26px 80px;}
 .brand-slot {height:53px;margin-bottom:8px;}
 .hero-art {width:318px;margin-bottom:10px;}
 .landing h1 {font-size:26px;letter-spacing:-.9px;margin-bottom:30px;}
 .landing-actions {gap:10px;}
 .landing-actions .login-button,.landing-actions button {border-radius:17px;}
 .signed-out .landing-nav {right:22px;top:15px;gap:17px;}
 .landing-nav a,.landing-nav button {font-size:12px;}
 .landing-nav button {padding:11px 14px;border-radius:13px;}
 .landing-features {padding:88px 28px 28px;}
 .landing-features h2 {font-size:43px;letter-spacing:-1.8px;}
 .feature-intro {font-size:15px;margin-bottom:54px;}
 .feature-grid {grid-template-columns:1fr;gap:46px;}
 .feature-grid h3 {margin-top:17px;font-size:23px;}
 .feature-grid p {max-width:310px;}
 .coming-next {margin:75px 0;}
 .coming-next h3 {font-size:29px;}
}
@media(prefers-reduced-motion:reduce) {
 .signed-out header,.signed-out .landing-nav,.landing-actions .login-button,.landing-actions button {transition:none;}
 .landing-actions .login-button:hover,.landing-actions button:hover {transform:none;}
 .signed-out .wordmark {will-change:auto;}
}
