/* ============================================================
   Harvest Valley — Public landing page
   Mobile-first; scales up to desktop. Shares the warm farm
   palette used by the auth pages.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ink:        #402d1c;
  --ink-muted:  #7b5f45;
  --card:       #fff6e3;
  --wood:       #b06b3a;
  --wood-dark:  #8a4f28;
  --line:       #e4cfa6;
  --brand:      #4f9b3f;
  --brand-dark: #3c7c2f;
  --brand-soft: rgba(79, 155, 63, 0.18);
  --gold:       #f3c134;
  --barn:       #cf5b45;
  --radius:     22px;
  --shadow:     0 26px 50px rgba(74, 48, 20, 0.28);
  --wrap:       1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: #eafbe4;
  line-height: 1.6;
  overflow-x: hidden; /* no horizontal scroll on any width */
}

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

a { color: var(--brand-dark); }

/* ---------- top bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 227, 0.95);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.25rem;
  color: var(--brand-dark); text-decoration: none;
}
.logo .logo-mark { font-size: 1.4rem; }
.header-actions { display: flex; gap: 10px; }

/* ---------- shared button styles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; /* touch-friendly tap targets */
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.05rem;
  border-radius: 16px; border: 0; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.15s ease;
}
.btn-primary {
  color: #fff; background: var(--brand);
  box-shadow: 0 6px 0 var(--brand-dark);
}
.btn-primary:hover { background: #58ab46; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--brand-dark); }
.btn-secondary {
  color: var(--wood-dark); background: var(--card);
  border: 2px solid var(--wood);
  box-shadow: 0 6px 0 rgba(138, 79, 40, 0.35);
}
.btn-secondary:hover { background: #fffaf0; }
.btn-secondary:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(138, 79, 40, 0.35); }
.btn:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }

/* header buttons are a touch more compact */
.header-actions .btn { min-height: 42px; padding: 8px 16px; font-size: 0.98rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 72px 0 96px;
  background:
    linear-gradient(180deg, rgba(38, 74, 24, 0.35), rgba(38, 74, 24, 0.65)),
    url('../images/login_bg.png') center / cover no-repeat;
}
.hero-emoji {
  font-size: 3rem; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.hero h1 {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.05;
  margin-top: 10px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.tagline {
  margin-top: 8px;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem); font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.hero-blurb {
  max-width: 34rem; margin: 18px auto 0;
  font-size: 1.05rem; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-cta {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}

/* ---------- generic section ---------- */
.section { padding: 60px 0; }
.section h2 {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--brand-dark); text-align: center;
}
.section-lead {
  max-width: 42rem; margin: 14px auto 0;
  text-align: center; color: var(--ink-muted);
  font-size: 1.08rem; font-weight: 600;
}

.story { background: #f4fbe9; }

/* ---------- mechanics cards ---------- */
.card-grid {
  margin-top: 34px;
  display: grid; gap: 22px;
  grid-template-columns: 1fr; /* single column on small screens */
}
.mechanic-card {
  background: var(--card);
  border: 4px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px #f6e6c4, 0 14px 30px rgba(74, 48, 20, 0.16);
  padding: 26px 24px;
}
.mechanic-card .card-icon {
  font-size: 2.4rem;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 3px solid #cbe7bc;
}
.mechanic-card h3 {
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.4rem;
  color: var(--wood-dark); margin: 16px 0 8px;
}
.mechanic-card p { color: var(--ink-muted); font-weight: 600; }

/* ---------- how to play ---------- */
.how { background: #f4fbe9; }
.steps {
  counter-reset: step;
  list-style: none;
  max-width: 40rem; margin: 34px auto 0;
  display: grid; gap: 14px;
}
.steps li {
  position: relative;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 16px 66px;
  font-weight: 700; color: var(--ink);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 3px 0 var(--brand-dark);
}

/* ---------- closing call to action ---------- */
.cta-band { text-align: center; }
.cta-band .hero-cta { margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--wood-dark); color: #f6e6c4;
  text-align: center; padding: 28px 0;
  font-weight: 600;
}
.site-footer a { color: #ffe9b8; font-weight: 800; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

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