:root {
  --green: #4A7C59;
  --green-dark: #2D5016;
  --green-tint: #E7F0E9;
  --amber: #E8A838;
  --orange: #E0701E;
  --cream: #FFFBF5;
  --sand: #F6EFE3;
  --ink: #3B2314;
  --ink-soft: #6B5A4E;
  --white: #FFFFFF;
  --error: #B3261E;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(59, 35, 20, 0.16), 0 4px 10px rgba(59, 35, 20, 0.08);
  --heading: 'Fredoka', 'Quicksand', system-ui, sans-serif;
  --body: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 500; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(59, 35, 20, 0.06);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 181px; height: auto; }

/* Buttons and forms */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px;
  background: var(--green); color: var(--white);
  font: 600 1rem/1 var(--body);
  padding: 0 26px; height: 54px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--green-dark); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.7; cursor: progress; }
.button-small { height: 42px; padding: 0 18px; font-size: 0.95rem; }

.signup { max-width: 520px; }
.signup-row {
  display: flex; gap: 8px; padding: 6px;
  background: var(--white); border-radius: 999px;
  box-shadow: 0 2px 0 rgba(59, 35, 20, 0.04), 0 0 0 1px rgba(59, 35, 20, 0.1);
}
.signup-row:focus-within { box-shadow: 0 0 0 2px var(--green); }
.signup input[type=email] {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 1.05rem var(--body); color: var(--ink); padding: 0 18px;
}
.signup input[type=email]::placeholder { color: #A39488; }
.signup-row .button { height: 50px; }
.signup-note { margin: 12px 0 0 18px; font-size: 0.92rem; color: var(--ink-soft); }
.signup[data-state=error] .signup-note { color: var(--error); font-weight: 600; }
.signup[data-state=done] .signup-row { display: none; }
.signup[data-state=done] .signup-note {
  margin-left: 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--green-tint); color: var(--green-dark); font-size: 1rem; font-weight: 600;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Phones: screenshots in a rounded frame */
.phone {
  margin: 0;
  border-radius: 34px;
  padding: 7px;
  background: #1F1A17;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 28px; width: 100%; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 28px; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-front { right: 28%; top: 0; transform: rotate(-3deg); z-index: 2; }
.phone-back { right: 0; top: 48px; transform: rotate(5deg); opacity: 0.96; }

/* Stat band */
.stat-band { background: var(--green); color: var(--white); padding: 44px 0; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stat { font-family: var(--heading); font-size: 1.5rem; font-weight: 500; line-height: 1.3; margin: 0; }
.stat-number { display: block; font-size: 3.4rem; font-weight: 600; color: #FFE3A6; }
.stat sup a { color: #FFE3A6; text-decoration: none; font-size: 0.7em; }
.stat-copy { margin: 0; font-size: 1.1rem; opacity: 0.95; }

/* How it works */
.steps { padding: 88px 0 40px; }
.steps h2 { text-align: center; margin-bottom: 48px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .phone { width: 78%; max-width: 260px; margin: 0 auto 28px; }
.step h3 { display: flex; align-items: center; gap: 10px; }
.step p { color: var(--ink-soft); font-size: 1.02rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-size: 1rem; font-weight: 600;
}

/* Gallery */
.features { padding: 56px 0 72px; background: var(--sand); }
.features h2 { margin-bottom: 32px; }
.gallery {
  --edge: max(20px, calc((100vw - 1120px) / 2 + 20px));
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px var(--edge) 28px;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
}
.gallery:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.shot { flex: 0 0 230px; margin: 0; scroll-snap-align: start; }
.shot figcaption { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.shot figcaption strong { display: block; color: var(--ink); font-size: 1.02rem; }

/* Final call to action */
.cta { padding: 80px 0 96px; }
.cta-inner {
  text-align: center; background: var(--white); border-radius: 28px; padding: 56px 24px;
  box-shadow: 0 0 0 1px rgba(59, 35, 20, 0.08);
}
.cta-mark { margin: 0 auto 16px; width: 88px; }
.cta-inner > p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 28px; }
.cta .signup { margin: 0 auto; text-align: left; }

/* Footer */
.site-footer { border-top: 1px solid rgba(59, 35, 20, 0.08); padding: 28px 0 40px; font-size: 0.9rem; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.sources { max-width: 40em; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { padding-top: 36px; }
  .hero-grid, .stat-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-phones { height: 420px; max-width: 380px; width: 100%; margin: 8px auto 0; }
  .hero-phones .phone { width: 190px; }
  .phone-front { right: auto; left: 8%; }
  .phone-back { right: 4%; }
  .step-list { grid-template-columns: 1fr; gap: 56px; max-width: 420px; margin: 0 auto; }
  .steps { padding-top: 64px; }
}

@media (max-width: 520px) {
  .signup-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .signup input[type=email] { height: 50px; }
  .signup-row .button { width: 100%; }
  .brand img { width: 150px; }
  .header-row .button-small { padding: 0 14px; font-size: 0.88rem; }
  .shot { flex-basis: 200px; }
}

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