:root {
  --bg: #ffffff;
  --bg-soft: #f5f4f1;
  --ink: #111111;
  --ink-2: #55534e;
  --ink-3: #8a8780;
  --rule: #d9d7d2;
  --red: #db1419;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 40px rgba(0,0,0,.08);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --bg-soft: #171716;
    --ink: #f2f1ee;
    --ink-2: #b4b1aa;
    --ink-3: #7d7a74;
    --rule: #34332f;
    --red: #ff3b3f;
    --card: #1b1b1a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--rule); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* Buttons */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 10px 20px 10px 16px; border-radius: 12px;
  text-decoration: none; line-height: 1.1;
}
.store-btn:hover { color: var(--bg); opacity: .88; }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-btn small { display: block; font-size: 11px; opacity: .8; }
.store-btn strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 40px; text-align: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 7vw, 68px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); max-width: 620px; margin: 0 auto 30px; }
.hero .meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* Live demo */
.demo {
  max-width: 720px; margin: 48px auto 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 22px;
  box-shadow: var(--shadow); padding: 28px 0 20px;
}
.demo-frame { position: relative; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); margin: 0 28px; }
.demo-frame::before, .demo-frame::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 14px; background: var(--rule); transform: translateX(-1px);
}
.demo-frame::before { top: 0; }
.demo-frame::after { bottom: 0; }
.word {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
  font-family: var(--serif); font-size: clamp(44px, 9vw, 76px); line-height: 1;
  padding: 34px 0 30px; white-space: pre;
}
.word .b { text-align: right; }
.word .p { color: var(--red); }
.word .a { text-align: left; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px 0; }
.demo-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-soft); color: var(--ink); display: grid; place-items: center;
}
.demo-play svg { width: 22px; height: 22px; fill: currentColor; }
.pill {
  border: 0; cursor: pointer; font: 600 15px var(--sans);
  background: var(--bg-soft); color: var(--ink); padding: 9px 16px; border-radius: 999px;
  font-variant-numeric: tabular-nums; min-width: 104px;
}
.demo-progress { flex: 1; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--ink); }
.demo-note { font-size: 13px; color: var(--ink-3); text-align: center; margin: 14px 20px 0; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-lede { color: var(--ink-2); font-size: 19px; max-width: 640px; margin: 0 0 44px; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); border: 1px solid var(--rule); display: grid; place-items: center; margin-bottom: 14px; }
section:not(.alt) .feature .ico { background: var(--bg-soft); }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Rhythm table */
.rhythm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.rhythm div { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; }
.rhythm b { font-family: var(--serif); font-size: 30px; font-weight: 500; display: block; }
.rhythm span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .rhythm { grid-template-columns: 1fr; } }

/* Screenshots */
.shots { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 -20px; }
.shots figure { margin: 0; flex: 0 0 240px; scroll-snap-align: center; }
.shots img { border-radius: 30px; border: 1px solid var(--rule); box-shadow: var(--shadow); aspect-ratio: 1206 / 2622; object-fit: cover; width: 100%; }
.shots figcaption { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 12px; }
@media (min-width: 1080px) { .shots { justify-content: center; overflow: visible; } }

/* Formats */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; background: var(--card); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

.contact-card { margin-top: 44px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; max-width: 760px; }
.contact-card p { margin: 0 0 6px; color: var(--ink-2); }
.contact-card a { font-weight: 600; font-size: 19px; color: var(--ink); }

/* CTA + footer */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; border: 1px solid var(--rule); }
footer { border-top: 1px solid var(--rule); padding: 30px 0 40px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--ink-2); text-decoration: none; }

/* Legal page */
.legal { max-width: 720px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.015em; margin: 0 0 6px; }
.legal .updated { color: var(--ink-3); margin: 0 0 36px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .summary { background: var(--bg-soft); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0; padding: 16px 20px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
