/* Zavvy website — matches the app design system (lib/app/zappy_tokens
   .dart) and the transactional emails: warm sand page, cream cards,
   clay accent, sage secondary, ink text; Instrument Serif (italic)
   display + DM Sans body; the clay wax-stamp "z" mark. */
:root {
  --bg:        #F4EDE0;   /* warm sand page */
  --card:      #FBF8F1;   /* cream surface */
  --ink:       #1A1410;
  --ink2:      #3D3328;
  --ink3:      #6B5E50;
  --clay:      #C25A3A;
  --clay-deep: #9E3F23;
  --clay-soft: #E89977;
  --sage:      #6F8A5C;
  --sage-soft: #BFCCAA;
  --line:      #E0D5BD;
  --line-soft: #E8DFC9;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(26,20,16,0.04), 0 12px 32px rgba(26,20,16,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { color: var(--clay); }
a:hover { color: var(--clay-deep); }

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

/* ── Nav ─────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 20px;
}
/* Clay wax-stamp tile with a cream italic-serif "z" (the app icon). */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--clay);
  color: var(--card);
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}
.nav__links a {
  color: var(--ink3);
  text-decoration: none;
  margin-left: 28px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--ink); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  padding: 104px 0 88px;
  background:
    radial-gradient(circle at 18% -10%, rgba(194,90,58,0.12), transparent 55%),
    radial-gradient(circle at 92% 24%, rgba(111,138,92,0.10), transparent 55%);
}
.hero__inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero__sub {
  font-size: 1.18rem;
  color: var(--ink2);
  margin: 0 0 34px;
  max-width: 600px;
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero__note {
  color: var(--ink3);
  font-size: 0.95rem;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--clay);
  color: var(--card);
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--clay-deep); color: var(--card); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--clay); color: var(--clay-deep); transform: translateY(-1px); }

/* ── Sections ────────────────────────────────────── */
section { padding: 84px 0; }
section h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 44px;
  color: var(--ink);
}

/* ── Steps ───────────────────────────────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--clay);
  color: var(--card);
  border-radius: 11px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  margin-bottom: 16px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--ink); }
.steps p { margin: 0; color: var(--ink2); font-style: normal; }

/* ── Why Zavvy ───────────────────────────────────── */
.why__lead {
  font-size: 1.18rem;
  color: var(--ink2);
  max-width: 720px;
  margin: -20px 0 40px;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
/* The payoff card (last) carries the clay accent so the eye lands
   on the solution, not just the two problem cards. */
.why__card:last-child {
  background: rgba(194, 90, 58, 0.06);
  border-color: var(--clay-soft);
}
.why__card h3 { margin: 0 0 10px; font-size: 1.35rem; color: var(--ink); }
.why__card p { margin: 0; color: var(--ink2); font-style: normal; }
.why__card em { color: var(--clay-deep); font-style: italic; }

/* ── Screenshots ─────────────────────────────────── */
.shots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.shot { margin: 0; text-align: center; }
.shot img {
  width: 100%;
  height: auto;
  max-width: 280px;
  /* Framed PNGs already carry the device bezel — just float them
     with a soft drop shadow, no border/card. */
  filter: drop-shadow(0 18px 36px rgba(26, 20, 16, 0.16));
}
.shot figcaption {
  margin-top: 18px;
  color: var(--ink3);
  font-size: 0.98rem;
}
@media (max-width: 720px) {
  .shots__grid { grid-template-columns: 1fr; gap: 44px; max-width: 320px; margin: 0 auto; }
}

/* ── Stores ──────────────────────────────────────── */
.stores__grid {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stores__grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.stores__note {
  color: var(--ink3);
  max-width: 660px;
}

/* ── Blog list ───────────────────────────────────── */
.blog__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 28px;
  max-width: 760px;
}
.blog__list > li {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.blog__list h3 {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink);
}
.blog__list h3 a { color: inherit; text-decoration: none; }
.blog__list h3 a:hover { text-decoration: underline; }
.blog__list p { margin: 0 0 6px; color: var(--ink2); }
.blog__meta {
  font-size: 0.85rem;
  color: var(--ink3, var(--ink2));
  letter-spacing: 0.02em;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq__list {
  margin: 0;
  display: grid;
  gap: 22px;
}
.faq__list > div {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.faq__list dt {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.faq__list dd { margin: 0; color: var(--ink2); }

/* ── Beta signup ─────────────────────────────────── */
.beta__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  max-width: 620px;
  margin: 0 auto;
}
.beta__card h2 { margin: 0 0 14px; }
.beta__sub { color: var(--ink2); margin: 0 0 28px; }
.beta__form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink2);
}
.field input[type="email"] {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
}
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(194, 90, 58, 0.15);
}
.choices { display: flex; gap: 12px; }
.choice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink2);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice:hover { border-color: var(--clay-soft); }
/* Tint the whole pill when its radio is picked. */
.choice:has(input:checked) {
  border-color: var(--clay);
  background: rgba(194, 90, 58, 0.08);
  color: var(--ink);
}
.choice input { accent-color: var(--clay); }
.beta__form .btn { justify-self: start; }
.beta__hint { margin: 0; color: var(--ink3); font-size: 0.92rem; }
.beta__direct { margin: 24px 0 0; color: var(--ink3); font-size: 0.95rem; }

/* Prose (privacy / support pages reuse .how + headings). */
.how p, .how li { color: var(--ink2); }
.how h2 { margin-top: 8px; }
.how ul { padding-left: 20px; }
.how li { margin: 6px 0; }

/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--ink3);
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer a { color: var(--ink3); text-decoration: none; }
.footer a:hover { color: var(--clay); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
