:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d4;
  --brand: #c8102e;
  --brand-ink: #ffffff;
  --brand-soft: #fbe7ea;
  --gold: #e0a526;
  --radius: 18px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151312;
    --surface: #1f1c1a;
    --ink: #f5f1ea;
    --muted: #b8b0a5;
    --line: #34302c;
    --brand: #ef4056;
    --brand-soft: #3a1a1f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 60px); line-height: 1.08; margin: 18px 0 18px; letter-spacing: -0.5px; }
h1 .ru { color: var(--brand); }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 12px; font-weight: 600; }
.btn-store svg { width: 22px; height: 22px; fill: #fff; }
.btn-store small { display: block; font-weight: 400; font-size: 11px; line-height: 1.1; opacity: .85; }
.btn-store span { line-height: 1.15; font-size: 18px; }
.cta-note { color: var(--muted); font-size: 14px; }

/* Phone */
.phones { position: relative; display: flex; justify-content: center; }
.phone {
  width: 270px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 10px;
  background: #111; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.phone-screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.back { position: absolute; transform: translate(95px, 36px) rotate(7deg) scale(.88); opacity: .95; z-index: 0; }
.phone.front { position: relative; z-index: 1; transform: translateX(-40px); }

/* Mock app screens (used until real screenshots are added) */
.mock { height: 100%; display: flex; flex-direction: column; padding: 44px 18px 18px; font-family: var(--sans); color: #1c1917; background: #fbf7f0; }
.mock-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.mock-top .streak { color: #e0691f; }
.mock-top .hearts { color: #c8102e; }
.mock-bar { height: 8px; background: #e7e0d4; border-radius: 99px; margin: 14px 0 22px; }
.mock-bar i { display: block; height: 100%; width: 60%; background: #c8102e; border-radius: 99px; }
.mock-q { font-size: 13px; color: #57534e; margin-bottom: 8px; }
.mock-letter { font-family: var(--serif); font-size: 92px; line-height: 1; text-align: center; margin: 10px 0 6px; }
.mock-hint { text-align: center; font-size: 13px; color: #57534e; margin-bottom: 18px; }
.mock-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-opts div { border: 2px solid #e7e0d4; border-radius: 12px; padding: 10px; text-align: center; font-weight: 600; font-size: 15px; background: #fff; }
.mock-opts .ok { border-color: #2f9e44; background: #ebfbee; color: #2b8a3e; }
.mock-foot { margin-top: auto; background: #2f9e44; color: #fff; text-align: center; border-radius: 12px; padding: 11px; font-weight: 700; font-size: 15px; }
.mock-done { align-items: center; text-align: center; justify-content: center; }
.mock-done .big { font-family: var(--serif); font-size: 40px; color: #c8102e; margin: 0; }
.mock-done p { margin: 4px 0; font-size: 14px; color: #57534e; }
.mock-stats { display: flex; gap: 10px; margin: 22px 0; }
.mock-stats div { background: #fff; border: 2px solid #e7e0d4; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #57534e; }
.mock-stats b { display: block; font-size: 20px; color: #1c1917; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-family: var(--serif); line-height: 1.2; font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 38em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { font-family: var(--serif); font-size: 28px; color: var(--brand); height: 40px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.shots { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots .phone { flex: 0 0 220px; width: 220px; scroll-snap-align: start; box-shadow: none; }

.privacy-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; }
.final .cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-family: var(--serif); font-size: 24px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal .summary { background: var(--brand-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 8px; }
.legal .summary p { margin: 0; }
.legal .caps { text-transform: none; font-size: 15px; }

@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap, .privacy-band .wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .phones { margin-top: 12px; }
  .phone.front { transform: none; width: 240px; }
  .phone.back { display: none; }
  .nav a { margin-left: 14px; }
  section { padding: 48px 0; }
}
