/* Focus Reader: paper, readable type, and one clear route to the local app. */
:root {
  color-scheme:light;
  --bg:#eef2ef;
  --panel:#fffef9;
  --reader:#fffef9;
  --ink:#213c34;
  --muted:#586b63;
  --line:#d1dcd5;
  --green:#235c4d;
  --soft:#e8efe8;
  --accent:#8a7150;
  --shadow:0 16px 48px -24px #233e3540;
  --book-font:"Iowan Old Style","Songti SC","STSong",Georgia,serif;
  --ui-font:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif
}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#18211d;
  --panel:#202c25;
  --reader:#222e27;
  --ink:#edf2eb;
  --muted:#b8c6bb;
  --line:#3d5043;
  --green:#a4d1b6;
  --soft:#2e4235;
  --accent:#d2b896;
  --shadow:0 16px 48px -24px #0008
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.7 var(--ui-font);
  text-rendering:optimizeLegibility
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit;
  color:inherit;
  cursor:pointer
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button:disabled {
  cursor:default
}
img {
  max-width:100%;
  height:auto
}
[hidden] {
  display:none!important
}
h1,h2,h3,h4,p {
  margin-block-start:0
}
h1,h2,h3 {
  line-height:1.35
}
h2 {
  font-family:var(--book-font);
  font-size:clamp(30px,3vw,44px);
  font-weight:500;
  margin-block-end:22px
}
p {
  margin-block-end:18px
}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--green);
  outline-offset:5px;
  border-radius:3px
}
.wrap {
  width:min(1200px,calc(100% - 64px));
  margin-inline:auto
}
.section {
  padding-block:88px
}
.eyebrow {
  font-size:13px;
  color:var(--green);
  margin-block-end:18px;
  letter-spacing:0
}
.text-link {
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:5px;
  text-decoration-color:var(--line)
}
.text-link:hover {
  text-decoration-color:var(--green)
}
.skip {
  position:absolute;
  inset-inline-start:24px;
  top:-100px;
  z-index:10;
  background:var(--panel);
  padding:10px 16px
}
.skip:focus {
  top:12px
}
/* Navigation stays simple;
language and appearance remain available on every page. */.nav {
  min-height:88px;
  display:flex;
  align-items:center;
  gap:32px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:20px;
  font-weight:650;
  letter-spacing:-.4px;
  white-space:nowrap
}
.brand img {
  width:32px;
  height:32px
}
.nav nav {
  margin-inline-start:auto;
  display:flex;
  gap:28px;
  font-size:14px
}
.nav nav a:hover,.footer-links a:hover {
  color:var(--green)
}
.nav-controls {
  display:flex;
  align-items:center;
  gap:18px
}
.language-switch {
  display:flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:13px
}
.language-switch a {
  display:grid;
  place-items:center;
  min-height:38px;
  padding:5px 10px
}
.language-switch [aria-current=true] {
  background:var(--soft);
  border-radius:5px;
  color:var(--green);
  font-weight:650
}
.theme {
  width:42px;
  height:42px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:23px;
  line-height:1
}
.theme:hover {
  background:var(--soft)
}
/* One intentional focal point: a level, readable book page rather than a floating mockup. */
.hero {
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  align-items:center;
  gap:58px;
  padding-block:76px 64px
}
.hero h1 {
  font-family:var(--book-font);
  font-size:clamp(44px,4.2vw,64px);
  line-height:1.35;
  font-weight:500;
  letter-spacing:-1px;
  margin-block-end:26px
}
.hero .lead {
  font-size:17px;
  line-height:1.95;
  color:var(--muted);
  margin-block-end:30px;
  max-width:40ch
}
.hero-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:12px 20px;
  min-height:48px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:15px;
  font-weight:600;
  text-align:center
}
.primary {
  background:var(--green);
  color:var(--panel)
}
.primary:hover {
  filter:brightness(.94)
}
.secondary {
  border-color:var(--line);
  background:var(--panel)
}
.secondary:hover {
  background:var(--soft);
  border-color:var(--green)
}
.hero-note {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin-block:18px 16px;
  max-width:42ch
}
.reader-demo {
  background:var(--reader);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow);
  overflow:hidden;
  min-width:0
}
.demo-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 18px;
  background:var(--soft);
  font-size:11px;
  color:var(--muted);
  border-bottom:1px solid var(--line)
}
.window-dot {
  display:inline-block;
  width:6px;
  height:6px;
  margin-inline-end:5px;
  border-radius:50%;
  background:var(--muted);
  opacity:.45
}
.demo-top-right {
  font-size:11px
}
.demo-inner {
  padding:25px 28px 18px
}
.demo-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:12px;
  color:var(--muted);
  margin-block-end:18px
}
.tabs {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  padding-bottom:16px;
  border-bottom:1px solid var(--line)
}
.tabs button {
  border:0;
  border-radius:5px;
  background:transparent;
  padding:7px 14px;
  min-height:38px;
  font-size:13px
}
.tabs button[aria-selected=true] {
  background:var(--soft);
  color:var(--green);
  font-weight:650
}
.tabs button:hover {
  background:var(--soft)
}
.page-text {
  height:400px;
  min-height:400px;
  padding-block:24px 16px;
  display:flex;
  flex-direction:column
}
.chapter-label {
  font-size:11px;
  color:var(--accent);
  margin-block-end:10px
}
.page-text h2 {
  font-size:25px;
  margin-block-end:22px
}
.sample {
  font:18px/2.05 var(--book-font);
  margin:0;
  flex:1;
  min-height:0;
  overflow:auto;
  text-align:start;
  overflow-wrap:anywhere
}
.sample span {
  border-radius:2px
}
.page-text.color .s1 {
  background:#dcebdd;
  color:#253e2e
}
.page-text.color .s2 {
  background:#f0e3c9;
  color:#493a26
}
.page-text.color .s3 {
  background:#dfe7f0;
  color:#293c54
}
.page-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  min-height:56px;
  margin-block-start:20px
}
.page-bottom>span {
  max-width:36ch
}
.play {
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--soft);
  color:var(--green);
  padding:6px 12px;
  min-height:38px;
  font-size:12px
}
.demo-progress {
  display:flex;
  align-items:center;
  gap:18px;
  border-top:1px solid var(--line);
  padding-top:14px;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums
}
.progress-track {
  flex:1;
  height:4px;
  display:block
}
.progress-track svg {
  display:block;
  width:100%;
  height:4px;
  fill:var(--green)
}
.progress-background {
  fill:var(--line)
}
.demo-disclaimer {
  margin:0;
  padding:13px 22px;
  background:var(--soft);
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  border-top:1px solid var(--line)
}
.word-stage:not([hidden]) {
  display:flex;
  flex:1;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:0
}
.word-label,.word-context {
  font-size:12px;
  color:var(--muted);
  text-align:center
}
.word-stage strong {
  font:500 46px/1.8 var(--book-font);
  color:var(--green);
  text-align:center;
  overflow-wrap:anywhere;
  max-width:100%
}
.focus-line:not([hidden]) {
  display:block;
  flex:1;
  min-height:0;
  overflow:auto;
  font:18px/2.25 var(--book-font);
  overflow-wrap:anywhere
}
.focus-token {
  display:inline-block;
  white-space:pre;
  padding-inline:4px;
  transform:scale(1);
  border-radius:3px;
  transition:transform 130ms ease-out,background-color 130ms ease-out,color 130ms ease-out
}
.focus-token.is-current {
  transform:scale(1.08);
  color:var(--green);
  background:var(--soft)
}
html:lang(en) .hero h1,html:lang(en) h2,html:lang(en) .sample,html:lang(en) .focus-line {
  font-family:Georgia,"Times New Roman",serif
}
html:lang(en) .hero h1 {
  font-size:clamp(40px,4vw,60px);
  line-height:1.25;
  letter-spacing:-1.5px
}
html:lang(en) .sample,html:lang(en) .focus-line {
  font-size:17px;
  line-height:1.95
}
.format-strip {
  display:flex;
  align-items:center;
  gap:28px;
  justify-content:space-between;
  border-block:1px solid var(--line);
  padding-block:20px;
  font-size:13px;
  color:var(--muted)
}
.format-strip span:first-child {
  color:var(--ink)
}
.section-heading {
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr;
  gap:36px;
  align-items:start;
  margin-block-end:44px
}
.section-heading h2 {
  margin:0
}
.section-heading>p:last-child {
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin:0
}
.features {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px
}
.features article {
  border-top:2px solid var(--line);
  padding-top:22px
}
.feature-no {
  font-size:13px;
  color:var(--green);
  font-weight:600
}
.features h3 {
  font-size:19px;
  margin-block:14px 12px;
  font-weight:600
}
.features p {
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  margin:0
}
.library-section {
  padding-block:62px;
  background:var(--soft)
}
.library-grid {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:85px
}
.library-grid h2 {
  margin:0
}
.library-copy p {
  font-size:15px;
  line-height:1.95;
  max-width:62ch;
  color:var(--muted)
}
.small-label {
  font-size:13px;
  color:var(--green)
}
/* Both desktop versions are visible before their optional detailed instructions. */
.download-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:40px;
  margin-block-end:36px
}
.download-heading h2 {
  margin:0
}
.download-heading>p {
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
  margin:0
}
.download-platforms {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.download-card {
  padding:30px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  display:flex;
  flex-direction:column;
  min-width:0;
  scroll-margin-top:28px
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-block-end:20px
}
.platform-icon {
  font-size:31px;
  color:var(--green);
  line-height:1
}
.pill {
  font-size:12px;
  color:var(--green);
  background:var(--soft);
  border-radius:4px;
  padding:4px 9px;
  white-space:nowrap
}
.download-card h3 {
  font-size:26px;
  font-weight:600;
  margin-block-end:6px;
  letter-spacing:-.4px
}
.platform-detail {
  font-size:13px;
  color:var(--muted);
  margin-block-end:18px
}
.download-card>p:not(.platform-detail):not(.download-status) {
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
  min-height:54px;
  margin-block-end:24px
}
.download-card>.button {
  width:100%;
  min-height:50px;
  margin-block-start:auto
}
.download-status {
  font-size:12px;
  color:var(--muted);
  margin-block:12px
}
.download-card>.text-link {
  align-self:start;
  margin-block-end:20px
}
.checksum {
  border-top:1px solid var(--line);
  padding-top:14px;
  font-size:12px
}
.checksum summary {
  min-height:30px
}
.checksum code {
  display:block;
  font:12px/1.8 ui-monospace,Consolas,monospace;
  overflow-wrap:anywhere;
  padding-block:16px;
  color:var(--muted)
}
.checksum p {
  color:var(--muted);
  font-size:12px
}
.checksum a {
  text-decoration:underline;
  text-underline-offset:3px
}
.installation-guides {
  margin-block-start:24px;
  border-block:1px solid var(--line);
  scroll-margin-top:28px
}
.platform-install+ .platform-install {
  border-top:1px solid var(--line)
}
summary {
  cursor:pointer
}
.platform-install>summary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:19px 4px;
  list-style:none;
  min-height:56px;
  font-size:16px;
  font-weight:550
}
.platform-install>summary::-webkit-details-marker {
  display:none
}
.platform-install>summary>span:last-child {
  font-size:22px;
  transition:transform 120ms ease-out
}
.platform-install[open]>summary>span:last-child {
  transform:rotate(45deg)
}
.platform-install-content {
  padding:12px 4px 30px
}
.install-guide h3 {
  font-size:23px;
  margin-block-end:24px
}
.install-steps {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
  padding:0;
  margin:0
}
.step-number {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  color:var(--green);
  background:var(--soft);
  border-radius:50%;
  font-size:14px;
  font-weight:600
}
.install-steps h4 {
  font-size:16px;
  margin-block:16px 9px;
  font-weight:600
}
.install-steps p {
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  margin:0
}
.books-tip {
  padding:16px 20px;
  background:var(--soft);
  margin-block:24px 0;
  font-size:14px;
  line-height:1.9
}
.install-help {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-block-start:24px;
  scroll-margin-top:28px
}
.install-help>summary {
  padding-block:8px;
  min-height:44px;
  font-size:15px;
  font-weight:550
}
.open-help-content {
  padding-top:20px;
  max-width:90ch
}
.open-help-content p,.open-help-content li {
  color:var(--muted);
  font-size:14px;
  line-height:1.9
}
.open-help-content strong {
  color:var(--ink)
}
.open-help-content h4 {
  font-size:16px;
  margin-block:24px 12px
}
.alert-example {
  display:flex;
  gap:18px;
  align-items:center;
  padding:20px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:6px;
  margin-bottom:22px
}
.alert-example img {
  flex-shrink:0
}
.alert-example p {
  margin:4px 0 0;
  color:var(--ink)
}
.example-label {
  font-size:12px;
  color:var(--muted)
}
.open-help-steps {
  padding-inline-start:24px
}
.open-help-steps li {
  padding-inline-start:8px;
  margin-block-end:13px
}
.open-help-steps li::marker {
  color:var(--green);
  font-weight:600
}
.settings-example {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  padding:18px;
  background:var(--soft);
  font-size:13px;
  margin-block:22px
}
.settings-example small {
  width:100%;
  font-size:12px;
  color:var(--muted)
}
.example-choice {
  padding:4px 10px;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:4px;
  color:var(--green)
}
.help-cases {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px
}
.help-reference {
  font-size:12px!important;
  color:var(--muted);
  line-height:1.9;
  margin-block:20px 0
}
.help-reference a,.install-help a {
  text-decoration:underline;
  text-underline-offset:3px
}
.release-boundary {
  font-size:13px;
  color:var(--muted);
  margin-block:20px 0
}
.faq {
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:80px;
  border-top:1px solid var(--line)
}
.faq-title h2 {
  margin:0
}
.faq-list details {
  border-bottom:1px solid var(--line);
  padding-block:20px
}
.faq-list details:first-child {
  padding-top:0
}
.faq-list summary {
  display:flex;
  justify-content:space-between;
  gap:24px;
  list-style:none;
  min-height:36px;
  font-size:16px
}
.faq-list summary::-webkit-details-marker {
  display:none
}
.faq-list summary::after {
  content:'+';
  font-size:20px;
  color:var(--green);
  flex-shrink:0
}
.faq-list details[open] summary::after {
  content:'−'
}
.faq-list p {
  font-size:14px;
  color:var(--muted);
  line-height:1.95;
  max-width:70ch;
  margin-block:16px 0
}
.footer {
  padding-block:38px 26px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px
}
.footer-brand p {
  font-size:13px;
  color:var(--muted);
  margin-block:12px 0
}
.footer-links {
  display:flex;
  justify-content:end;
  align-items:start;
  gap:24px;
  flex-wrap:wrap;
  font-size:13px
}
.copyright {
  grid-column:1/-1;
  font-size:12px;
  color:var(--muted);
  margin-block:8px 0;
  line-height:1.8
}
/* Legal content retains its hierarchy and horizontal-scroll fallback for tables. */
.legal {
  max-width:860px;
  padding-block:64px 90px
}
.legal h1 {
  font-family:var(--book-font);
  font-size:clamp(36px,4vw,48px);
  font-weight:500;
  margin-block-end:24px
}
.legal h2 {
  font-family:var(--ui-font);
  font-size:23px;
  letter-spacing:0;
  margin-block:36px 14px
}
.legal p,.legal li {
  font-size:15px;
  line-height:1.95;
  color:var(--muted)
}
.legal a {
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:4px
}
.legal .notice {
  padding:18px 22px;
  border-inline-start:3px solid var(--green);
  background:var(--soft)
}
.table-scroll {
  overflow-x:auto;
  overscroll-behavior-inline:contain
}
.legal table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  line-height:1.8;
  min-width:560px
}
.legal th,.legal td {
  text-align:start;
  vertical-align:top;
  padding:13px 10px;
  border-bottom:1px solid var(--line)
}
.legal th {
  font-weight:600
}
.legal td {
  color:var(--muted)
}
.legal code {
  overflow-wrap:anywhere
}
@media(max-width:1080px) {
  .nav {
    gap:24px
  }
  .nav nav {
    gap:20px
  }
  .nav-controls {
    gap:12px
  }
  .hero {
    gap:30px
  }
  .hero-actions {
    flex-direction:column;
    align-items:start
  }
  .hero-actions .button {
    min-width:220px
  }
  .section-heading {
    grid-template-columns:.8fr 1.2fr;
    gap:25px
  }
  .section-heading>p:last-child {
    grid-column:2
  }
  .features {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .library-grid {
    gap:48px
  }
  .demo-inner {
    padding-inline:22px
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .nav {
    flex-wrap:wrap;
    gap:12px;
    min-height:104px;
    padding-block:16px
  }
  .nav>.brand {
    margin-inline-end:auto;
    font-size:18px
  }
  .brand img {
    width:28px;
    height:28px
  }
  .nav nav {
    order:3;
    width:100%;
    margin:0;
    gap:24px;
    font-size:13px
  }
  .nav-controls {
    gap:8px
  }
  .language-switch {
    font-size:12px
  }
  .language-switch a {
    min-height:36px;
    padding-inline:7px
  }
  .theme {
    width:36px;
    height:36px
  }
  .hero {
    grid-template-columns:1fr;
    padding-block:42px 36px;
    gap:32px
  }
  .hero h1 {
    font-size:clamp(40px,7.5vw,54px);
    line-height:1.4;
    margin-bottom:22px
  }
  .hero .lead {
    font-size:16px;
    line-height:1.9
  }
  .hero-actions {
    flex-direction:row;
    align-items:stretch;
    gap:10px
  }
  .hero-actions .button {
    flex:1;
    min-width:0;
    padding-inline:14px;
    font-size:14px
  }
  .hero-note {
    font-size:12px
  }
  .reader-demo {
    width:100%;
    max-width:590px;
    justify-self:center;
    box-shadow:none
  }
  .demo-inner {
    padding:21px 20px 16px
  }
  .demo-top {
    padding-inline:16px
  }
  .tabs button {
    min-height:40px;
    padding-inline:12px
  }
  .page-text {
    height:400px;
    min-height:400px
  }
  .page-text h2 {
    font-size:24px
  }
  .sample {
    font-size:17px
  }
  .page-bottom {
    gap:12px;
    font-size:11px
  }
  .demo-disclaimer {
    padding-inline:20px
  }
  .demo-meta {
    font-size:11px
  }
  html:lang(en) .hero h1 {
    font-size:clamp(38px,7.5vw,54px);
    letter-spacing:-1px
  }
  .format-strip {
    flex-wrap:wrap;
    justify-content:start;
    gap:13px 24px;
    padding-block:18px;
    font-size:12px
  }
  .format-strip>span:first-child {
    width:100%
  }
  .section {
    padding-block:54px
  }
  .section-heading {
    grid-template-columns:1fr;
    gap:18px;
    margin-bottom:32px
  }
  .section-heading>p:last-child {
    grid-column:auto;
    font-size:14px
  }
  .section-heading .eyebrow {
    margin:0
  }
  .features {
    gap:28px 22px
  }
  .features h3 {
    font-size:18px
  }
  .features p {
    font-size:13px
  }
  .library-section {
    padding-block:42px
  }
  .library-grid {
    grid-template-columns:1fr;
    gap:24px
  }
  .library-copy p {
    font-size:14px
  }
  .download-heading {
    display:block;
    margin-bottom:28px
  }
  .download-heading>p {
    margin-top:18px;
    font-size:14px
  }
  .download-platforms {
    grid-template-columns:1fr;
    gap:18px
  }
  .download-card {
    padding:25px
  }
  .download-card>p:not(.platform-detail):not(.download-status) {
    min-height:0;
    margin-bottom:22px
  }
  .download-card>.button {
    min-height:50px
  }
  .platform-install>summary {
    font-size:15px
  }
  .install-steps {
    grid-template-columns:1fr;
    gap:24px
  }
  .install-steps li {
    display:grid;
    grid-template-columns:32px 1fr;
    gap:0 14px
  }
  .step-number {
    grid-row:1/3
  }
  .install-steps h4 {
    margin:0 0 8px
  }
  .install-steps p {
    grid-column:2
  }
  .help-cases {
    grid-template-columns:1fr;
    gap:0
  }
  .alert-example {
    padding:16px;
    align-items:start
  }
  .settings-example {
    padding:16px
  }
  .faq {
    grid-template-columns:1fr;
    gap:28px
  }
  .footer {
    grid-template-columns:1fr;
    gap:20px
  }
  .footer-links {
    justify-content:start;
    gap:18px
  }
  .copyright {
    grid-column:auto
  }
  .legal {
    padding-top:40px
  }
  .legal p,.legal li {
    font-size:14px
  }
}
@media(max-width:390px) {
  .wrap {
    width:calc(100% - 32px)
  }
  .nav>.brand {
    font-size:16px;
    gap:8px
  }
  .brand img {
    width:26px;
    height:26px
  }
  .nav-controls {
    gap:5px
  }
  .language-switch a {
    padding-inline:6px
  }
  .hero-actions {
    flex-direction:column
  }
  .hero-actions .button {
    flex:auto
  }
  .hero h1 {
    font-size:40px
  }
  .features {
    grid-template-columns:1fr
  }
  .demo-inner {
    padding-inline:17px
  }
  .tabs button {
    padding-inline:10px
  }
  .demo-top-right {
    display:none
  }
  .page-bottom {
    align-items:start
  }
  .download-card {
    padding:22px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}
/* Comfortable pointer targets without enlarging inline reading text. */
.text-link {
  display:inline-flex;
  align-items:center;
  min-height:44px
}
.nav nav a,.footer-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px
}
.tabs button,.play,.checksum summary,.faq-list summary {
  min-height:44px
}
.language-switch a {
  min-height:44px
}
.theme {
  min-width:44px;
  min-height:44px
}

/* Literary attribution is separate from the shared reading sample. */
.demo-meta {align-items:center;flex-wrap:wrap;}
.demo-meta a {text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center;}

/* Continuous reading demo: the text is the primary interactive surface. */
.reader-demo .page-text {height:430px;min-height:430px;padding-block:18px 12px;}
.reader-demo .chapter-label {margin-bottom:5px;}
.reader-demo .page-text h2 {font-size:23px;margin-bottom:20px;flex-shrink:0;}
.reader-demo .sample,.reader-demo .focus-line {font-size:18px;line-height:2;scrollbar-gutter:stable;overscroll-behavior:contain;padding:8px 8px 22px;}
.sample-paragraph,.focus-paragraph {margin:0 0 1em;}
.focus-paragraph:last-child,.sample-paragraph:last-child {margin-bottom:0;}
.reader-demo .focus-token {font:inherit;color:inherit;display:inline-block;white-space:pre;padding:0 1px;margin:0;border:0;border-radius:0;background:none;transform:none;transition:none;vertical-align:baseline;}
.reader-demo .focus-token.is-current {transform:none;background:none;color:inherit;}
.focus-glyph {display:inline-block;white-space:pre;border-radius:3px;transform-origin:50% 60%;transition:transform 150ms ease-out,background-color 150ms ease-out;}
.focus-token.is-current .focus-glyph {background:var(--soft);color:var(--green);box-shadow:0 2px 0 var(--green);transform:scale(1.18);}
.focus-token.is-before .focus-glyph {transform:translateX(-4px);}
.focus-token.is-after .focus-glyph {transform:translateX(4px);}
.focus-token:hover .focus-glyph {background:var(--soft);}
.demo-hint {min-height:38px;font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 14px;}
.demo-controls {display:flex;align-items:center;gap:10px;margin-bottom:16px;}
.demo-controls .play {min-height:46px;padding:9px 24px;font-size:14px;background:var(--green);color:var(--panel);border-color:var(--green);}
.demo-restart {width:44px;min-height:44px;border:1px solid var(--line);background:transparent;border-radius:5px;font-size:23px;}
.demo-speed {display:flex;align-items:center;gap:8px;margin-left:auto;color:var(--muted);font-size:12px;}
.demo-speed select {min-height:44px;padding:6px 8px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:5px;font:inherit;}
#demo-seek {min-width:0;flex:1;width:100%;height:28px;margin:0;accent-color:var(--green);cursor:pointer;}
#demo-location {white-space:nowrap;min-width:65px;text-align:right;}
select:focus-visible,input:focus-visible {outline:2px solid var(--green);outline-offset:4px;}
@media(max-width:760px) {
  .reader-demo .page-text {height:400px;min-height:400px;}
  .reader-demo .sample,.reader-demo .focus-line {font-size:17px;}
  .demo-controls .play {padding-inline:18px;}
}
@media(prefers-reduced-motion:reduce) {
  .focus-glyph {transition:none!important;transform:none!important;}
}

@media(max-width:390px) {
  .demo-speed span {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;}
  .demo-speed {gap:0;}
  .demo-controls .play {font-size:13px;padding-inline:14px;}
}

/* Book-first home: quiet desktop furniture around one full-width reading spread. */
.home .wrap {width:min(1160px,calc(100% - 80px));}
.home .nav {min-height:84px;border-bottom:0;gap:28px;}
.home .brand {font-family:var(--book-font);font-size:24px;font-weight:600;letter-spacing:-.6px;}
.home .nav nav {gap:24px;}
.home .language-switch {border-color:transparent;background:color-mix(in srgb,var(--panel) 65%,transparent);border-radius:24px;padding:2px;}
.home .language-switch a {padding-inline:12px;}
.home .language-switch [aria-current=true] {border-radius:20px;background:var(--panel);box-shadow:0 1px 4px #163b2510;}
.home .theme {border-color:transparent;background:transparent;}
.home .hero {display:block;padding-block:46px 50px;}
.home .hero-copy {display:grid;grid-template-columns:1.12fr 1fr;align-items:end;gap:72px;margin-bottom:42px;}
.home .hero-kicker {display:flex;align-items:center;gap:9px;margin-bottom:18px;font-size:13px;}
.status-dot {display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--green);}
.home .hero h1 {font-size:clamp(46px,4.9vw,68px);line-height:1.25;letter-spacing:-1.7px;margin:0;font-weight:500;}
.home .hero-aside {padding-bottom:4px;}
.home .hero .lead {font-size:16px;line-height:1.85;margin:0 0 22px;max-width:46ch;}
.home .hero-actions {flex-direction:row;align-items:stretch;gap:10px;}
.home .hero-actions .button {min-width:0;padding:13px 20px;min-height:50px;border-radius:9px;}
.home .hero-note {max-width:none;margin:12px 0 2px;font-size:12px;}
.home .hero-aside>.text-link {min-height:36px;font-size:13px;text-decoration:none;color:var(--green);}
.home .hero-aside>.text-link:hover {text-decoration:underline;}
.home .reader-demo {position:relative;width:100%;max-width:none;border:1px solid var(--line);border-radius:14px;background:var(--reader);box-shadow:0 3px 6px #17362b05,0 22px 50px -30px #163f355e;overflow:hidden;scroll-margin-top:20px;}
.home .demo-top {min-height:53px;padding:10px 24px;background:var(--reader);color:var(--muted);font-size:12px;}
.demo-app-name {display:inline-flex;align-items:center;gap:9px;color:var(--green);font-weight:600;}
.demo-app-name img {width:20px;height:20px;}
.home .demo-top-right {font-size:12px;}
.demo-local {display:inline-flex;align-items:center;gap:7px;font-size:11px;}
.demo-local .status-dot {width:5px;height:5px;}
.home .demo-inner {padding:0 30px 20px;}
.demo-toolbar {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);}
.home .tabs {border:0;padding:3px;gap:3px;flex-wrap:nowrap;background:var(--soft);border-radius:9px;}
.home .tabs button {display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 14px;border-radius:6px;font-size:13px;white-space:nowrap;}
.home .tabs button[aria-selected=true] {background:var(--panel);box-shadow:0 1px 4px #142f2514;color:var(--green);}
.home .tabs button svg,.page-controls svg,.page-edge svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.home .demo-meta {justify-content:flex-end;gap:14px;align-items:center;margin:0;font-size:12px;}
.home .demo-meta a {font-size:11px;min-height:44px;text-decoration-color:var(--line);}
.home .reader-demo .page-text {position:relative;height:502px;min-height:502px;padding:22px 48px 16px;isolation:isolate;}
.home .reader-demo .chapter-label {text-align:center;color:var(--muted);font-size:11px;letter-spacing:.15px;margin:0 0 5px;flex-shrink:0;}
.home .reader-demo .page-text h2 {text-align:center;font-size:27px;font-weight:500;margin:0 0 24px;line-height:1.4;flex-shrink:0;}
.book-viewport {--page-columns:2;--page-gap:64px;position:relative;flex:1;min-height:0;}
.book-viewport.is-paginated {overflow:hidden;overflow:clip;}
.home .reader-demo .sample {font:19px/1.95 var(--book-font);text-align:start;margin:0;padding:0;overflow:visible;scrollbar-gutter:auto;overflow-wrap:normal;line-break:strict;}
.home .book-viewport.is-paginated .sample {height:100%;width:100%;column-count:var(--page-columns);column-gap:var(--page-gap);column-fill:auto;column-rule:0;will-change:auto;}
.home .book-viewport.is-paginated::after {content:'';position:absolute;pointer-events:none;inset-block:0;left:calc(50% - 1px);width:1px;background:var(--line);opacity:.75;}
.home .sample-paragraph {margin:0 0 .85em;orphans:2;widows:2;}
.home .sample-paragraph:last-child {margin-bottom:0;}
.home .page-text.color .s1 {background:#dcebdc;color:#253e2e;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
.home .page-text.color .s2 {background:#f3e3c6;color:#493a26;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
.home .page-text.color .s3 {background:#dfe6f2;color:#293c54;box-decoration-break:clone;-webkit-box-decoration-break:clone;}
.page-edge {position:absolute;top:115px;bottom:18px;width:44px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:8px;z-index:2;transition:background-color 160ms ease-out,color 160ms ease-out;touch-action:manipulation;}
.page-edge.previous {left:-4px;}
.page-edge.next {right:-4px;}
.page-edge svg {width:21px;height:21px;}
.page-edge:hover:not(:disabled),.page-edge:focus-visible {background:var(--soft);color:var(--green);}
.page-edge:disabled {opacity:.22;}
.page-controls {display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:62px;padding:8px 32px;border-block:1px solid var(--line);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;}
.page-controls button {display:inline-flex;align-items:center;gap:8px;justify-self:start;min-width:44px;min-height:44px;padding:8px 12px;border:0;background:transparent;border-radius:7px;font-size:12px;}
.page-controls button:last-child {justify-self:end;}
.page-controls button:hover:not(:disabled) {background:var(--soft);color:var(--green);}
.page-controls button:disabled {opacity:.35;}
#page-status {text-align:center;white-space:nowrap;color:var(--ink);}
.home .demo-hint {min-height:0;margin:14px 10px 0;text-align:center;font-size:12px;line-height:1.65;}
.home .demo-disclaimer {padding:12px 24px;background:color-mix(in srgb,var(--soft) 48%,var(--reader));text-align:center;font-size:11px;}
.home .demo-controls {justify-content:center;gap:10px;margin:18px 0 14px;}
.home .demo-controls .play {min-width:128px;border-radius:8px;}
.home .demo-restart,.home .demo-speed select {border-radius:8px;}
.home .demo-speed {margin-left:16px;}
.home .demo-progress {margin-inline:auto;max-width:660px;border-top:0;padding:0 0 4px;gap:16px;}
.home .reader-demo .focus-line {max-width:860px;width:100%;align-self:center;font:20px/2.1 var(--book-font);padding:12px 14px 28px;}
.home .word-stage strong {font-size:clamp(42px,6vw,70px);line-height:1.6;}
.home .word-label {font-size:12px;margin-bottom:14px;}
.home .focus-token.is-current .focus-glyph {box-shadow:0 2px 0 var(--green);}
html:lang(en) .home .hero h1 {font-size:clamp(42px,4.7vw,65px);line-height:1.16;letter-spacing:-1.8px;}
html:lang(en) .home .reader-demo .sample {font:19px/1.85 Georgia,"Times New Roman",serif;word-break:normal;}
html:lang(en) .home .reader-demo .focus-line {font:20px/2.05 Georgia,"Times New Roman",serif;word-break:normal;}
.home .format-strip {justify-content:center;gap:24px;border:0;padding-block:0 38px;font-size:12px;}
.home .format-strip span:first-child {color:var(--muted);margin-right:8px;}
.home .format-strip span:not(:first-child) {border:1px solid var(--line);padding:3px 12px;border-radius:5px;color:var(--ink);}
.home .section {padding-block:72px;}
.home .section-heading {grid-template-columns:.55fr 1.25fr 1fr;align-items:center;gap:38px;}
.home .section-heading .eyebrow {margin:0;}
.home .section-heading h2,.home .library-grid h2,.home .download-heading h2 {font-size:clamp(30px,3.5vw,42px);line-height:1.4;}
.home .features {gap:0;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);padding-top:30px;}
.home .features article {padding:0 28px;border:0;border-left:1px solid var(--line);}
.home .features article:first-child {padding-left:0;border-left:0;}
.home .features article:last-child {padding-right:0;}
.home .features h3 {font-family:var(--book-font);font-size:23px;font-weight:500;margin-block:12px;}
.home .features p {font-size:13px;line-height:1.85;}
.home .feature-no {font-size:12px;}
.home .library-section {background:var(--green);color:var(--panel);padding-block:52px;}
.home .library-section .eyebrow,.home .library-copy p,.home .library-section .small-label {color:inherit;}
.home .library-section .eyebrow,.home .library-copy p {opacity:.88;}
.home .library-grid {gap:92px;align-items:center;}
.home .library-copy p {font-size:14px;line-height:1.85;}
.home .library-section .small-label {display:inline-flex;align-items:center;border-top:1px solid color-mix(in srgb,var(--panel) 28%,transparent);padding-top:13px;font-size:12px;}
.home .download-heading {margin-bottom:32px;}
.home .download-card {padding:32px;border-radius:12px;background:var(--reader);}
.home .windows-download {border-top:3px solid var(--green);}
.home .mac-download {border-top:3px solid var(--line);}
.home .card-top {margin-bottom:24px;}
.home .pill {border-radius:20px;padding:5px 11px;}
.home .download-card>.button {border-radius:8px;}
.home .platform-icon {font-size:34px;}
.home .faq {padding-block:64px;}
.home .footer {padding-block:30px;}
/* No JavaScript: the same source remains fully readable in the document flow. */
.home .page-text:has(.book-viewport:not(.is-paginated)) {height:auto;min-height:0;}
.home .book-viewport:not(.is-paginated) {flex:auto;}
@media(min-width:761px) {
  .home .book-viewport:not(.is-paginated) .sample {column-count:2;column-gap:64px;}
}
@media(max-width:1000px) {
  .home .wrap {width:calc(100% - 56px);}
  .home .hero-copy {gap:36px;grid-template-columns:1.05fr 1fr;}
  .home .hero h1 {font-size:50px;}
  .home .hero-actions {flex-direction:column;align-items:stretch;}
  .home .hero-actions .button {min-height:46px;}
  .home .demo-toolbar {gap:10px;}
  .home .demo-meta {gap:8px;}
  .home .tabs button {padding-inline:11px;}
  .home .reader-demo .page-text {padding-inline:42px;}
  .home .features article {padding-inline:20px;}
}
@media(max-width:760px) {
  .home .wrap {width:calc(100% - 40px);}
  .home .nav {padding-block:14px;min-height:100px;gap:8px;}
  .home .nav>.brand {font-size:21px;}
  .home .nav nav {justify-content:flex-start;gap:22px;}
  .home .language-switch a {padding-inline:8px;}
  .home .hero {padding-block:28px 32px;}
  .home .hero-copy {grid-template-columns:1fr;gap:22px;margin-bottom:28px;}
  .home .hero-kicker {margin-bottom:14px;font-size:12px;}
  .home .hero h1,html:lang(en) .home .hero h1 {font-size:clamp(38px,7.5vw,54px);letter-spacing:-1px;line-height:1.28;}
  .home .hero .lead {font-size:15px;line-height:1.85;margin-bottom:18px;}
  .home .hero-actions {flex-direction:row;}
  .home .hero-actions .button {font-size:13px;padding:11px 12px;flex:1;}
  .home .hero-note {font-size:11px;line-height:1.6;}
  .home .hero-aside>.text-link {margin-top:6px;}
  .home .reader-demo {border-radius:10px;box-shadow:0 14px 28px -24px #163f3559;}
  .home .demo-top {padding-inline:16px;font-size:11px;min-height:49px;}
  .home .demo-top-right {display:none;}
  .home .demo-inner {padding:0 14px 16px;}
  .demo-toolbar {flex-direction:column;gap:0;padding:10px 0 3px;}
  .home .tabs {width:100%;justify-content:space-between;}
  .home .tabs button {font-size:12px;flex:1;gap:5px;padding-inline:5px;}
  .home .tabs button svg {width:16px;height:16px;}
  .home .demo-meta {justify-content:space-between;width:100%;font-size:11px;}
  .home .reader-demo .page-text {height:502px;min-height:502px;padding:18px 30px 14px;}
  .home .reader-demo .page-text h2 {font-size:24px;margin-bottom:20px;}
  .home .reader-demo .chapter-label {font-size:10px;}
  .book-viewport {--page-columns:1;--page-gap:32px;}
  .home .book-viewport.is-paginated::after {display:none;}
  .home .reader-demo .sample {font-size:17px;line-height:1.95;}
  html:lang(en) .home .reader-demo .sample {font-size:17px;line-height:1.8;}
  .page-edge {width:30px;top:100px;}
  .page-edge.previous {left:-3px;}
  .page-edge.next {right:-3px;}
  .page-edge svg {width:18px;height:18px;}
  .page-controls {padding-inline:0;gap:8px;}
  .page-controls button {padding-inline:7px;gap:4px;font-size:11px;}
  #page-status {font-size:11px;}
  .home .demo-hint {font-size:11px;margin-inline:0;line-height:1.8;}
  .home .demo-disclaimer {padding:11px 14px;font-size:10px;}
  .home .reader-demo .focus-line {padding-inline:6px;font-size:18px;line-height:2.1;}
  html:lang(en) .home .reader-demo .focus-line {font-size:18px;line-height:2;}
  .home .demo-controls {gap:8px;}
  .home .demo-controls .play {min-width:0;padding-inline:17px;font-size:13px;}
  .home .demo-speed {margin-left:auto;}
  .home .demo-progress {gap:10px;}
  .home .format-strip {gap:10px;justify-content:center;padding-block:4px 22px;font-size:11px;}
  .home .format-strip span:first-child {width:auto;margin-right:4px;}
  .home .format-strip span:not(:first-child) {padding:2px 8px;}
  .home .section {padding-block:48px;}
  .home .section-heading {grid-template-columns:1fr;gap:16px;margin-bottom:28px;}
  .home .section-heading>p:last-child {grid-column:auto;font-size:14px;}
  .home .features {grid-template-columns:1fr 1fr;gap:28px 22px;padding-top:25px;}
  .home .features article,.home .features article:first-child,.home .features article:last-child {padding:0;border:0;}
  .home .features h3 {font-size:21px;}
  .home .features p {font-size:13px;}
  .home .library-section {padding-block:36px;}
  .home .library-grid {grid-template-columns:1fr;gap:22px;}
  .home .library-copy p {font-size:14px;}
  .home .download-card {padding:26px;}
  .home .faq {padding-block:44px;}
  .home .footer {padding-block:26px;}
}
@media(max-width:390px) {
  .home .wrap {width:calc(100% - 28px);}
  .home .nav>.brand {font-size:18px;gap:7px;}
  .home .language-switch a {padding-inline:6px;font-size:11px;}
  .home .nav-controls {gap:2px;}
  .home .hero-actions {flex-direction:column;}
  .home .hero-actions .button {flex:auto;}
  .home .hero h1 {font-size:38px;}
  .home .tabs button {gap:4px;font-size:11px;padding-inline:4px;}
  .home .tabs button svg {width:14px;height:14px;}
  .home .demo-inner {padding-inline:10px;}
  .home .reader-demo .page-text {padding-inline:25px;}
  .page-edge {width:25px;}
  .page-controls button span {display:none;}
  .home .format-strip span:first-child {width:100%;text-align:center;margin:0;}
  .home .download-card {padding:23px;}
}
@media(prefers-reduced-motion:reduce) {
  .home .sample,.home .page-edge {transition:none!important;animation:none!important;}
}
