:root {
  --bg: #fbfaf8;
  --bg-alt: #f2efea;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #c74059;
  --accent-soft: rgba(199, 64, 89, 0.1);
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --serif: "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-alt: #151516;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --card: #1c1c1e;
    --line: rgba(255, 255, 255, 0.1);
    --accent-soft: rgba(199, 64, 89, 0.18);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 88px 0 40px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 28px;
  box-shadow: 0 18px 50px rgba(199, 64, 89, 0.28); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
}
.badge.ghost { background: var(--accent-soft); color: var(--accent); }
.hero .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }

.phones { display: flex; justify-content: center; gap: 28px; padding: 30px 0 80px; flex-wrap: wrap; }
.phone {
  width: 270px; aspect-ratio: 1206 / 2622;
  border-radius: 44px; overflow: hidden;
  border: 9px solid #121214;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255,255,255,0.06) inset;
  background: #000;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone:nth-child(2) { transform: translateY(-28px); }

section.feature { padding: 90px 0; border-top: 1px solid var(--line); }
section.feature:nth-of-type(even) { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.feature-grid.flip { grid-template-columns: 0.9fr 1.1fr; }
.feature-grid.flip .copy { order: 2; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 18px; }
.copy p { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.copy li { padding-left: 30px; position: relative; }
.copy li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); }
.visual { display: flex; justify-content: center; }
.detail {
  width: 100%; max-width: 420px; border-radius: 26px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); border: 1px solid var(--line);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .glyph { font-size: 26px; margin-bottom: 12px; }

.center { text-align: center; }
.center p.sub { color: var(--muted); font-size: 19px; max-width: 700px; margin: 0 auto; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

/* Text pages (privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 70px 24px 90px; }
.doc h1 { font-family: var(--serif); font-size: 44px; line-height: 1.1; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }

@media (max-width: 860px) {
  .feature-grid, .feature-grid.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.flip .copy { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .phones .phone:nth-child(2) { transform: none; }
  .phone { width: 230px; }
  .nav-links { display: none; }
  section.feature { padding: 64px 0; }
}

/* ---------- Live sample: a working replica of the BookLektor reader ---------- */
.sample { padding: 20px 0 90px; }
.sample-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.sample .copy p { color: var(--muted); font-size: 19px; }
.sample-status { font-size: 14px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.sample-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .35; }
.is-playing ~ * .dot, .sample-status.live .dot { opacity: 1; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

.device {
  --paper: #ffffff; --ink: #141417; --hl: rgba(255, 214, 89, 0.45);
  width: 340px; aspect-ratio: 1206 / 2622; margin: 0 auto;
  border-radius: 52px; border: 11px solid #121214; background: var(--paper);
  box-shadow: 0 40px 90px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative; overflow: hidden; color: var(--ink);
  font-family: var(--sans);
}
.device .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: #000; }
.device .statusbar { display: flex; justify-content: space-between; padding: 15px 28px 0 30px;
  font-size: 14px; font-weight: 600; }
.device .statusbar .icons { letter-spacing: 2px; font-size: 11px; }
.device .topbar { display: flex; align-items: center; gap: 8px; padding: 22px 12px 0; }
.glass { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06);
  color: #1d1d1f; flex: none; }
.glass svg { width: 17px; height: 17px; }
.device .title { flex: 1; text-align: center; line-height: 1.15; font-size: 11.5px; font-weight: 600; }
.device .title span { display: block; font-weight: 400; opacity: .55; font-size: 10.5px; }
.device .page { padding: 18px 22px 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.55; }
.device .page .num { font-weight: 700; font-size: 26px; margin: 0 0 6px; }
.device .page .chap { font-size: 17px; margin: 0 0 12px; }
.device .page p { margin: 0 0 12px; }
[data-sentence] { cursor: pointer; border-radius: 3px; transition: background-color .35s ease, box-shadow .35s ease;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-sentence].spoken { background: var(--hl); box-shadow: 0 0 0 2px var(--hl); }
.device .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 55%); pointer-events: none; }
.device .controls { position: absolute; left: 0; right: 0; bottom: 44px; display: flex;
  justify-content: space-between; align-items: center; padding: 0 12px; }
.device .controls button { border: 0; padding: 0; cursor: pointer; font: inherit; }
.device .controls .speed { font-size: 13px; font-weight: 600; }
.device .play { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(199,64,89,.45); transition: transform .2s ease; }
.device .play:active { transform: scale(.94); }
.device .play svg { width: 24px; height: 24px; }
.device .play .i-pause { display: none; }
.is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }
.device .pageinfo { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  font-size: 10.5px; color: rgba(20,20,23,.45); }
.device .track { position: absolute; bottom: 14px; left: 30%; right: 30%; height: 3px;
  border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; }
.device .track div { height: 100%; width: 0; background: var(--accent); }
.wave { display: inline-flex; gap: 2px; align-items: end; height: 14px; }
.wave i { width: 3px; height: 4px; background: var(--accent); border-radius: 2px; }
.is-playing .wave i { animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { 50% { height: 14px; } }

@media (max-width: 860px) {
  .sample-grid { grid-template-columns: 1fr; gap: 36px; }
  .device { width: 300px; }
  .device .page { font-size: 14px; }
}
