/* TTS Reader — палитра приложения (Sources/Design/Theme.swift): бумага, чернила, абрикос, коралл, лиловый, бирюза.
   Системные шрифты, без JS, светлая и тёмная тема по системе. */
:root {
  --paper: #fefbf7;
  --surface: #ffffff;
  --ink: #211c1f;
  --muted: #5d5559;
  --line: #ece4dc;
  --accent: #db6e33;          /* apricotInk: текст и ссылки на светлом */
  --accent-fill: #ff9961;     /* apricot: заливка кнопок, текст на ней тёмный */
  --on-accent: #211c1f;
  --mark: #ffe2cc;
  --lilac: #baa3ff;
  --teal: #5ec7bf;
  --coral: #ff736b;
  --radius: 18px;
  --max: 760px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141113;
    --surface: #1e1a1c;
    --ink: #f3ece6;
    --muted: #b3aaa5;
    --line: #2f292c;
    --accent: #ffa877;
    --mark: #5a3420;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 9; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, main { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
.header-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { padding-block: 32px 56px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; font-family: ui-rounded, -apple-system, "SF Pro Rounded", sans-serif; }
h1 { font-size: clamp(32px, 7vw, 46px); margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 4.6vw, 28px); margin: 44px 0 12px; }
h3 { font-size: 19px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: var(--ink); max-width: 62ch; }
.meta { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Главная */
.hero { display: grid; gap: 22px; align-items: center; }
@media (min-width: 680px) { .hero { grid-template-columns: minmax(0, 1fr) 200px; } }
.hero-icon { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 18px 40px rgba(219, 110, 51, 0.25); justify-self: center; }
@media (min-width: 680px) { .hero-icon { width: 200px; height: 200px; border-radius: 44px; } }
.cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-fill); color: var(--on-accent); font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 22px; }
.btn.soon { background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: default; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { margin: 0; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

.demo { margin: 36px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-family: "New York", Georgia, serif; font-size: 21px; line-height: 1.7; }
.demo .done { color: var(--muted); }
.demo .sent { background: color-mix(in srgb, var(--mark) 55%, transparent); border-radius: 6px; padding: 2px 0; }
.demo .word { background: var(--mark); border-radius: 6px; padding: 2px 3px; box-shadow: inset 0 -2px 0 var(--accent-fill); }
.demo-cap { font-size: 14px; color: var(--muted); margin-top: 8px; }

.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

.voices { display: grid; gap: 10px; }
@media (min-width: 640px) { .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.voice b { font-size: 16px; }
.voice span { font-size: 14px; color: var(--muted); }
.voice audio { width: 100%; height: 36px; }

.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin: 8px 0 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 16px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.note { border-left: 3px solid var(--accent-fill); padding: 4px 0 4px 14px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-inner { padding-block: 24px 40px; }
.footer-links { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--muted); }
