:root {
  --paper: #F7F2E9;
  --card: #FFFDF8;
  --ink: #1E1B16;
  --tomato: #E23D28;
  --butter: #F2C94C;
  --muted: rgba(30, 27, 22, 0.55);
  --hairline: rgba(30, 27, 22, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "Space Mono", "SF Mono", Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 22px 0; border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 13px; color: var(--tomato); text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-size: 11px; color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--tomato); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--tomato); }
.hero .sub { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .cta-row { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fineprint { font-size: 12px; color: var(--muted); }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 14px; text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 5px 5px 0 rgba(30, 27, 22, 0.25);
  transition: transform 0.12s ease;
}
.store-btn:hover { transform: translate(-1px, -1px); }
.store-btn .apple { font-size: 22px; line-height: 1; }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .small { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.store-btn .big { font-size: 17px; font-weight: 600; }

/* Phone frame */
.phone {
  width: min(310px, 78vw);
  margin: 0 auto;
  background: var(--ink);
  border-radius: 52px;
  padding: 12px;
  box-shadow: 10px 10px 0 rgba(30, 27, 22, 0.16);
}
.phone img { display: block; width: 100%; border-radius: 40px; }
.phone.tilt { transform: rotate(-1.2deg); }

/* Section scaffolding */
section { padding: 64px 0; }
.kicker { font-size: 12px; color: var(--tomato); margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 44em; }
.rule { height: 2px; background: var(--ink); border: 0; }

/* How it works */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px;
  padding: 26px; box-shadow: 6px 6px 0 rgba(30, 27, 22, 0.12);
}
.step-card .num { font-size: 12px; color: var(--muted); }
.step-card h3 { font-size: 21px; margin: 10px 0 8px; }
.step-card p { font-size: 15px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.feature .tag { font-size: 10px; color: var(--tomato); }
.feature h3 { font-size: 19px; margin: 8px 0 6px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; justify-items: center; }
.gallery figure { text-align: center; }
.gallery figcaption { margin-top: 16px; font-size: 11px; color: var(--muted); }

/* Pricing */
.pricing-card {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 40px; margin-top: 36px; box-shadow: 8px 8px 0 rgba(30, 27, 22, 0.14);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.pricing-card h3 { font-size: 26px; margin-bottom: 8px; }
.pricing-card p { color: var(--muted); max-width: 36em; }
.price-chip {
  background: var(--tomato); color: var(--paper); border-radius: 16px;
  padding: 18px 26px; text-align: center; box-shadow: 5px 5px 0 var(--ink);
}
.price-chip .amount { font-size: 30px; font-weight: 700; line-height: 1.1; }
.price-chip .per { font-size: 11px; }
.price-chip .per.alt { margin-top: 8px; opacity: .85; }

/* Footer */
footer { border-top: 2px solid var(--ink); padding: 34px 0 60px; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--ink); text-decoration: none; font-size: 12px; }
footer a:hover { color: var(--tomato); }
footer .copyright { font-size: 12px; color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 36px; margin-bottom: 6px; }
.legal .updated { font-size: 12px; color: var(--muted); margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; color: rgba(30, 27, 22, 0.85); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.notice {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px;
  padding: 18px 20px; margin: 18px 0; font-size: 15px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .steps-row, .features, .gallery { grid-template-columns: 1fr; }
  .gallery { gap: 44px; }
  .pricing-card { grid-template-columns: 1fr; }
}
