/* Books Listening: Midnight Library. Self-hosted fonts, no external requests. */
@font-face{font-family:"Fraunces";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/fraunces-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/fraunces-latin-500-italic.woff2) format("woff2")}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/fraunces-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/manrope-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope-latin-700-normal.woff2) format("woff2")}

:root{
  --bg:#0B0E13; --surface:#121720; --surface-2:#0F131A; --footer:#080A0F;
  --line:#1E2530; --text:#ECE8DD; --muted:#A9AFBA; --dim:#8A909B;
  --gold:#E8B04A; --gold-hi:#F4CB7C; --ink:#14110A;
  --serif:"Fraunces",Georgia,"Times New Roman",serif;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --gutter:clamp(20px,4vw,40px);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img,video,svg{max-width:100%}
a{color:var(--gold)}
a:hover{color:var(--gold-hi)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}
[hidden]{display:none!important}
h1,h2,h3,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
.container{max-width:1200px;margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.skip{position:absolute;left:-999px;top:8px;background:var(--gold);color:var(--ink);padding:10px 16px;border-radius:8px;font-weight:700;z-index:50}
.skip:focus{left:8px}

/* Type */
.eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:700;margin-bottom:12px}
.section-title{font-family:var(--serif);font-weight:500;font-size:clamp(30px,3.6vw,46px);line-height:1.1;letter-spacing:-.01em;max-width:780px}
.lead{font-size:18px;color:var(--muted);max-width:580px;margin-top:16px}
.section{padding-top:96px;scroll-margin-top:72px}
.section-head{margin-bottom:40px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:12px;font:inherit;font-weight:700;text-decoration:none;border:1px solid transparent;cursor:pointer;white-space:nowrap}
.btn-primary{background:var(--gold);color:var(--ink)}
.btn-primary:hover{background:var(--gold-hi);color:var(--ink)}
.btn-ghost{border-color:#2C3442;color:var(--text)}
.btn-ghost:hover{border-color:var(--gold);color:var(--text)}
.btn-dark{background:var(--ink);color:var(--text)}
.btn-dark:hover{background:#000;color:var(--text)}
.btn-sm{min-height:42px;padding:0 18px}

/* Promo bar */
.promo{background:var(--gold);color:var(--ink);text-align:center;padding:10px var(--gutter);font-size:14px;font-weight:700}
.promo a{color:var(--ink);margin-left:10px;text-decoration:underline}
.promo a:hover{color:#000}
.promo-only{display:none}
.promo-active .promo-only{display:inline}
.promo-active .regular-only{display:none}

/* Header */
.site-header{background:rgba(11,14,19,.9);border-bottom:1px solid var(--line);z-index:20}
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.brand{font-family:var(--serif);font-weight:600;font-size:22px;color:var(--text);text-decoration:none}
.brand:hover{color:var(--text)}
.nav{display:flex;align-items:center;gap:28px}
.nav-links{display:none;gap:28px;font-size:15px;font-weight:500}
.nav-links a{color:var(--muted);text-decoration:none}
.nav-links a:hover{color:var(--text)}
@media (min-width:900px){
  .site-header{position:sticky;top:0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .nav-links{display:flex}
}

/* Hero */
.hero{display:flex;flex-wrap:wrap;gap:56px;align-items:center;padding-top:80px}
.hero-copy{flex:1 1 440px;min-width:0}
.hero h1{font-family:var(--serif);font-weight:500;font-size:clamp(42px,5.6vw,72px);line-height:1.04;letter-spacing:-.02em}
.hero h1 em{color:var(--gold);font-style:italic}
.hero .lead{margin:24px 0 32px;max-width:520px}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.fine{font-size:14px;color:var(--dim)}
.hero-visual{flex:1 1 440px;min-width:0}

/* Reader preview */
.preview{--speed:1;--step:calc(.5s / var(--speed));--bg-card:#1B2230;--fg:#EDE8DC;--hi:#E8B04A;
  background:var(--bg-card);color:var(--fg);border-radius:24px;padding:clamp(24px,3vw,36px);border:1px solid rgba(255,255,255,.06);box-shadow:0 30px 80px rgba(0,0,0,.5)}
.preview[data-theme="forest"]{--bg-card:#10231C;--fg:#E6F0E8;--hi:#F2C14E}
.preview[data-theme="ocean"]{--bg-card:#0E2233;--fg:#E3EEF5;--hi:#7CD0E8}
.preview-top{display:flex;justify-content:space-between;gap:12px;font-size:13px;opacity:.75;margin-bottom:24px}
.sentence{--n:10;font-family:var(--serif);font-size:clamp(24px,2.6vw,32px);line-height:1.35;margin-bottom:24px}
.sentence span{animation:lit calc(var(--n) * var(--step)) linear calc(var(--i) * var(--step)) infinite}
.wave{display:flex;align-items:flex-end;gap:4px;height:40px;margin-bottom:24px}
.wave i{flex:1;min-width:3px;height:40px;background:var(--hi);opacity:.7;border-radius:3px;transform-origin:bottom;animation:bar calc(var(--b) * 1s / var(--speed)) ease-in-out var(--d) infinite alternate}
.ctrl{margin-bottom:16px}
.ctrl:last-of-type{margin-bottom:0}
.ctrl-label{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;opacity:.65;margin-bottom:8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid rgba(255,255,255,.28);background:transparent;color:var(--fg);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.chip[aria-pressed="true"]{background:var(--hi);color:var(--bg-card);border-color:var(--hi)}
.preview-note{font-size:13px;opacity:.65;margin-top:20px}
@keyframes lit{0%{color:var(--hi)}9.9%{color:var(--hi)}10%,100%{color:var(--fg)}}
@keyframes bar{0%{transform:scaleY(.15)}100%{transform:scaleY(1)}}

/* Stats */
.stats{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:48px}
.stat{flex:1 1 150px;padding:24px}
.stat b{display:block;font-family:var(--serif);font-weight:500;font-size:36px;color:var(--gold);line-height:1.1}
.stat span{color:var(--muted);font-size:15px}

/* Cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px}
.card:hover{border-color:#2C3442}
.grid{display:grid;gap:20px}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.step-num{font-family:var(--serif);color:var(--gold);font-size:20px;margin-bottom:16px}
.card h3{font-size:18px;margin-bottom:8px}
.card p{color:var(--muted);font-size:15px}
.feature h3{font-size:17px;color:var(--gold)}

/* Videos */
.video-grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr))}
.video-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.video-card video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#000}
.video-card figcaption{padding:18px 22px 22px}
.video-card strong{display:block;font-size:17px;margin-bottom:2px}
.video-card span{color:var(--muted);font-size:15px}

/* Follow */
.band{margin-top:96px;background:var(--surface-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band .container{padding-top:96px;padding-bottom:96px}
.social-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.social-card{display:block;text-decoration:none;color:var(--text)}
.social-card:hover{color:var(--text);border-color:var(--gold)}
.social-card svg{color:var(--gold);margin-bottom:16px}
.social-card h3{margin:0;font-size:18px;color:var(--text)}
.social-card .handle{display:block;font-size:14px;color:var(--dim);margin:2px 0 10px;min-height:22px}
.social-card p{margin-bottom:16px}
.social-card .go{color:var(--gold);font-weight:700;font-size:15px}

/* Reviews + pricing */
.split{display:flex;flex-wrap:wrap;gap:20px}
.split>*{flex:1 1 340px;min-width:0}
.price-card{background:var(--surface);border:1px solid var(--gold);border-radius:16px;padding:36px}
.price-card .eyebrow{margin-bottom:8px}
.price{font-family:var(--serif);font-weight:500;font-size:56px;line-height:1.1;margin-bottom:6px}
.price small{font-family:var(--sans);font-size:18px;color:var(--muted)}
.price s{font-size:28px;color:var(--dim);margin-left:8px}
.ticks{display:grid;gap:10px;margin:24px 0 28px}
.ticks li{position:relative;padding-left:28px;color:var(--text);font-size:15px}
.ticks li::before{content:"";position:absolute;left:4px;top:.45em;width:7px;height:12px;border:solid var(--gold);border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-30%)}
.guarantee{margin-top:20px;font-size:14px;color:var(--muted)}
.guarantee strong{color:var(--text)}
.side-card{align-self:flex-start;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:36px}
.side-card h3{font-family:var(--serif);font-weight:500;font-size:28px;line-height:1.15;margin-bottom:14px}
.side-card p{color:var(--muted);margin-bottom:12px}
.side-card .ticks li{color:var(--muted)}

/* CTA */
.cta-band{background:var(--gold);color:var(--ink);border-radius:24px;padding:clamp(32px,5vw,64px);display:flex;flex-wrap:wrap;gap:32px;align-items:center;justify-content:space-between}
.cta-band h2{font-family:var(--serif);font-weight:500;font-size:clamp(32px,4vw,52px);line-height:1.05;margin-bottom:12px}
.cta-band p{font-size:18px}

/* FAQ */
.faq{max-width:820px;border-bottom:1px solid var(--line)}
.faq details{border-top:1px solid var(--line)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;padding:22px 0;font-size:18px;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--gold);font-size:24px;line-height:1}
.faq details[open] summary::after{content:"\2013"}
.faq .answer{padding:0 0 22px;color:var(--muted);max-width:700px}
.faq .answer p+p{margin-top:10px}

/* Footer */
.site-footer{margin-top:96px;border-top:1px solid var(--line);background:var(--footer)}
.foot{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;padding-top:56px;padding-bottom:32px}
.foot-brand{flex:2 1 260px;min-width:0}
.foot-brand .brand{display:inline-block;margin-bottom:8px}
.foot-brand p{color:var(--dim);font-size:15px;max-width:300px}
.foot-col{flex:1 1 140px}
.foot-col h3{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-bottom:14px;font-weight:700}
.foot-col ul{display:grid;gap:10px;font-size:15px}
.foot-col a{color:var(--text);text-decoration:none}
.foot-col a:hover{color:var(--gold)}
.legal{border-top:1px solid #151A22;color:#7E8490;font-size:13px;padding-top:20px;padding-bottom:32px}

/* 404 */
.notfound{min-height:70vh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:20px;padding-top:80px;padding-bottom:80px}
.notfound h1{font-family:var(--serif);font-weight:500;font-size:clamp(40px,6vw,72px);line-height:1.05}
.notfound p{color:var(--muted);font-size:18px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sentence span,.wave i{animation:none!important}
}

/* Mobile navigation: below 900px the section links used to disappear. Show them as one row under the logo, sized to fit five links on a phone; very narrow screens scroll sideways. */
@media (max-width:899px){
  .bar{flex-wrap:wrap;row-gap:4px}
  .nav{display:contents}
  .nav .btn{order:2}
  .nav-links{
    display:flex;order:3;flex:0 0 calc(100% + 12px);justify-content:space-between;gap:0;
    margin:0 -6px;padding:0;list-style:none;font-size:14px;
    overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch
  }
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 6px}
}

/* Hear 10 seconds: a recorded sample; while it plays, the silent loop steps aside and the highlight follows the audio */
.sentence{--n:24;font-size:clamp(21px,2.1vw,27px);text-wrap:pretty}
.sentence span{transition:color .12s linear}
.sentence span.is-now{color:var(--hi)}
.preview.is-live .sentence span{animation:none}
.preview.is-live .wave i{opacity:1;animation-duration:calc(var(--b) * .55s / var(--speed))}
.hear{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px 0 18px;margin-bottom:24px;border:0;border-radius:12px;background:var(--hi);color:var(--bg-card);font:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:transform .18s cubic-bezier(.16,1,.3,1),filter .18s}
.hear:hover{filter:brightness(1.08)}
.hear:active{transform:scale(.97)}
.hear:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
.hear .i-stop{display:none}
.hear[data-state="playing"] .i-play,.hear[data-state="loading"] .i-play{display:none}
.hear[data-state="playing"] .i-stop,.hear[data-state="loading"] .i-stop{display:inline}
.hear[data-state="loading"]{cursor:progress;filter:saturate(.7)}

/* The silent loop now walks 24 words, so each word stays lit for one 24th of the cycle (the old keyframes assumed 10) */
.sentence span{animation-name:lit24}
@keyframes lit24{0%{color:var(--hi)}4.1%{color:var(--hi)}4.2%,100%{color:var(--fg)}}

/* Honest device note under the hero CTA */
.device-note{font-size:14px;line-height:1.5;color:var(--muted);max-width:52ch;margin-top:12px}
