:root {
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-alt: #ECE8DF;
  --ink: #1C1B19;
  --muted: #5E5A52;
  --line: #E2DDD2;
  --accent: #17625E;
  --accent-ink: #0F4744;
  --accent-soft: #DDEDEA;
  --predict: #A34E12;
  --predict-soft: #F8E6D6;
  --predict-ink: #4A2A10;
  --me: #1C1B19;
  --me-ink: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --surface: #211F1C;
    --surface-alt: #1B1A18;
    --ink: #EDEAE3;
    --muted: #A8A298;
    --line: #34312C;
    --accent: #3FA59E;
    --accent-ink: #9FDCD6;
    --accent-soft: #173331;
    --predict: #E59A5C;
    --predict-soft: #3A2616;
    --predict-ink: #F2D2B6;
    --me: #EDEAE3;
    --me-ink: #161614;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
h1, h2 { font-family: 'Lora', Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 28px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); font-size: 15px; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--accent); }

.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-main { background: var(--accent); color: #FFFFFF; }
.btn-main:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn-line { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-off { border: 1.5px dashed var(--line); color: var(--muted); cursor: default; }

.phone { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 32px; padding: 24px 18px; display: flex; flex-direction: column; gap: 10px; max-width: 380px; justify-self: center; width: 100%; }
.bubble { align-self: flex-end; background: var(--me); color: var(--me-ink); padding: 10px 14px; border-radius: 16px 16px 4px 16px; font-size: 15px; }
.chip { align-self: flex-start; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.card { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 88%; font-size: 14px; }
.card.predict { background: var(--predict-soft); border-color: transparent; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--predict); }
.card-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; margin: 2px 0; }
.card-note { color: var(--muted); }
.card.predict .card-note { color: var(--predict-ink); }
.card-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tag { background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }

.block { padding: 72px 0; }
.block.alt { background: var(--surface-alt); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps li::before { content: counter(s); display: block; font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.steps p, .info p { color: var(--muted); margin: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.story p { font-size: 18px; }

.bottom { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .steps, .cards3 { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 36px; }
  .nav { gap: 14px; }
  .block { padding: 48px 0; }
}
@media (max-width: 420px) {
  .nav a[href="#how"] { display: none; }
}
