/* ===== DownTo landing — "neighborhood flyer board" aesthetic ===== */

:root {
  --cream: #F5F4EF;
  --paper: #FBFAF6;
  --card: #FFFFFF;
  --ink: #1C1C1C;
  --ink-soft: #6C6C6C;
  --divider: #E6E3DD;
  --brand: #3A7D44;
  --brand-dark: #2C5F35;
  --brand-tint: #EAF5EC;
  --brand-border: #C5DBC9;

  --display: 'Fraunces', ui-serif, Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;

  --shadow-soft: 0 2px 4px rgba(28,28,28,0.08);
  --shadow-card: 0 12px 30px -12px rgba(28,28,28,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,244,239,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark-small { font-size: 20px; }
.wordmark-dot { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a { color: var(--ink-soft); transition: color .15s ease; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  color: var(--brand) !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(58,125,68,0.45);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0px) scale(0.98); }
.btn-icon { display: flex; }
.btn-large { padding: 18px 34px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 120px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.stamp {
  display: inline-block;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  transform: rotate(-1.5deg);
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note { font-size: 13.5px; color: var(--ink-soft); }
.hero-note a { color: var(--brand-dark); font-weight: 600; }

/* ---------- Hero flyer board ---------- */
.hero-board {
  position: relative;
  height: 460px;
}

.flyer {
  position: absolute;
  width: 240px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}

.flyer-1 { top: 0; left: 10%; transform: rotate(-4.5deg); z-index: 3; }
.flyer-2 { top: 150px; right: 0; transform: rotate(3deg); z-index: 2; }
.flyer-3 { top: 300px; left: 0; transform: rotate(-2deg); z-index: 1; }

.tape {
  position: absolute;
  top: -12px;
  width: 54px;
  height: 22px;
  background: rgba(58,125,68,0.16);
  border: 1px solid rgba(58,125,68,0.22);
}
.tape-left { left: 18px; transform: rotate(-6deg); }
.tape-right { right: 18px; transform: rotate(6deg); }

.flyer-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex-shrink: 0; }
.flyer-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.flyer h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink);
}
.flyer-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }
.flyer-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border-radius: 8px;
  padding: 4px 10px;
}

/* ---------- Section shared ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 720px;
}

/* ---------- How it works ---------- */
.how { padding: 60px 0 110px; }

.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 26px 20px 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.step-num {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- About ---------- */
.about { padding: 40px 0 120px; }

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.badges { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }

.badge {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.badge-mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.badge h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.badge p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Download CTA ---------- */
.cta {
  padding: 90px 0 110px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(58,125,68,0.06));
  border-top: 1px solid var(--divider);
}

.cta-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 58px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cta-sub { font-size: 17px; color: var(--ink-soft); margin: 0 0 32px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .hero-note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--divider); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-dark); }
.footer-fine { font-size: 13px; color: var(--ink-soft); margin: 0; width: 100%; text-align: center; order: 3; margin-top: 6px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal-delay-1 { animation-delay: .15s; }

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-board { height: 380px; margin-top: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-nav { gap: 18px; font-size: 13.5px; }
  .hero { padding: 56px 0 80px; }
  .hero-title { font-size: 52px; }
  .hero-board { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}

.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }
