:root {
  --cream: #f4ede4;
  --paper: #fffdf9;
  --terra: #c45c3a;
  --terra-deep: #a84a2c;
  --ink: #2b211c;
  --muted: #8a7a70;
  --tint: #edd5c6;
  --line: rgba(43, 33, 28, 0.14);
  --night: #171210;
  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; line-height: 1.5; font-weight: 600;
}
a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }

.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.wordmark { font-weight: 900; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark .dot { color: var(--terra); }
.nav-links { display: none; gap: 24px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 17px;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--night); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-primary { background: var(--terra); color: var(--paper); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn .apple { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* hero */
.hero { text-align: center; padding: 16px 0 48px; display: flex; flex-direction: column; align-items: center; }
.hero-dot { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.dot-svg { width: min(240px, 62vw); outline: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.dot-svg svg { width: 100%; height: auto; overflow: visible; }
.bubble {
  background: var(--night); color: var(--paper); font-weight: 700; font-size: 16px;
  padding: 12px 18px; border-radius: 18px; position: relative; margin-top: 14px; max-width: 320px;
}
.bubble::before {
  content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  border: 9px solid transparent; border-top: 0; border-bottom-color: var(--night);
}
.hero h1 { font-size: clamp(38px, 9vw, 64px); font-weight: 900; margin-bottom: 14px; }
.hero h1 .dot { color: var(--terra); }
.hero .lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34ch; }
.hero .ctas { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.hero .ctas .btn { width: 100%; }
.hero .fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; }

/* how it works */
.section-title { font-size: clamp(26px, 6vw, 38px); font-weight: 900; text-align: center; margin-bottom: 24px; }
.steps {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 20px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 76%; max-width: 300px; margin: 0; scroll-snap-align: center; }
.phone {
  background: var(--night); border-radius: 44px; padding: 10px;
  box-shadow: 0 30px 60px -36px rgba(43, 33, 28, 0.55);
}
.phone img { border-radius: 36px; width: 100%; }
.step figcaption { margin-top: 16px; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; row-gap: 2px; }
.step .n {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--terra); color: var(--paper);
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
}
.step strong { font-weight: 800; font-size: 17px; }
.step span:not(.n) { color: var(--muted); font-size: 15px; }

/* features */
.features { padding: 24px 0 8px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* pricing */
.pricing { padding: 32px 0 8px; }
.pricing-card { background: var(--night); color: var(--paper); border-radius: 28px; padding: 28px 22px; display: grid; gap: 22px; }
.pricing h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.pricing p { margin: 0; opacity: 0.78; font-size: 15px; }
.plans { display: grid; gap: 10px; }
.plan {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255, 253, 249, 0.07); border: 1px solid rgba(255, 253, 249, 0.14);
  border-radius: 16px; padding: 14px 16px; font-weight: 800;
}
.plan .sub { display: block; font-size: 13px; font-weight: 700; opacity: 0.7; }
.plan .tag { display: block; font-size: 12px; color: var(--terra); }
.plan.first { border-color: var(--terra); background: rgba(196, 92, 58, 0.16); }
.plan .price { font-size: 20px; font-weight: 900; white-space: nowrap; }
.plan .price span { font-size: 13px; font-weight: 700; opacity: 0.7; margin-left: 4px; }

/* closing */
.closing { text-align: center; padding: 48px 0 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing img { width: 140px; }
.closing h2 { font-size: clamp(28px, 7vw, 40px); font-weight: 900; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.footer .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer .links a { text-decoration: none; margin-left: 16px; }
.footer a:hover { color: var(--ink); }
.footer .note { margin: 12px 0 0; font-size: 13px; }

/* docs */
.doc { width: min(720px, 100% - 40px); margin-inline: auto; padding: 12px 0 56px; }
.doc h1 { font-size: clamp(32px, 8vw, 46px); font-weight: 900; margin: 12px 0 6px; }
.doc .date { color: var(--muted); font-weight: 700; margin-bottom: 28px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 17px; color: #3f342e; font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc .card { margin: 20px 0; }
.doc .dot-head { width: 64px; margin-bottom: 8px; }

/* tablet and up */
@media (min-width: 720px) {
  .nav { padding: 24px 0; }
  .nav-links { display: flex; }
  .hero { padding: 24px 0 64px; }
  .dot-svg { width: 300px; }
  .hero .ctas { flex-direction: row; justify-content: center; max-width: none; }
  .hero .ctas .btn { width: auto; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .step { max-width: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { padding: 24px; }
  .pricing-card { grid-template-columns: 1fr 1fr; align-items: center; padding: 40px; }
  .closing { padding: 72px 0 48px; }
}

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