/* ============================================================
   Cropdrop marketing site — shared stylesheet
   Design tokens per handoff README. Do not introduce new colors.
   ============================================================ */

:root {
  --forest: #1F4D36;
  --forest-hover: #2E6B4B;
  --sprout: #B4E876;
  --sprout-hover: #C6EE95;
  --page-blue: #EEF5FA;
  --cream: #FAF6ED;
  --white: #FFFFFF;
  --body: #33372F;
  --muted-body: #5A6152;
  --muted-nav: #4A5A45;
  --caption-grey: #6E7A66;
  --tan-text: #6E5B3C;
  --soft-tan: #C9A873;
  --terracotta: #E8763F;
  --deep-terracotta: #B0490F;
  --on-dark-body: #DCE6D6;
  --hairline: rgba(31,77,54,0.07);
  --hairline-hover: rgba(31,77,54,0.2);

  --font: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-blue);
  color: var(--body);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-hover); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font-family: var(--font); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- keyframes ---------- */
@keyframes cd-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes cd-rise-lg { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes cd-pop { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes cd-in-scale { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes cd-rise-scale { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes cd-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes cd-drop {
  0%   { opacity: 0; transform: translateY(-72px) scaleX(1.04); }
  55%  { opacity: 1; transform: translateY(6px) scaleX(0.985); }
  78%  { transform: translateY(-3px) scaleX(1.004); }
  100% { opacity: 1; transform: translateY(0) scaleX(1); }
}
@keyframes cd-menu { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes cd-wiggle {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: -2.6deg; }
  90% { rotate: 2.6deg; }
  93% { rotate: -1.6deg; }
  96% { rotate: 0.9deg; }
}

/* Scroll-reveal: JS adds .is-visible once an element enters the viewport */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-lg { transform: translateY(28px); transition-duration: 480ms; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-pop { transform: translateY(14px) scale(0.9); transition-duration: 480ms; }
.reveal-pop.is-visible { transform: none; }

/* ---------- layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 64px 8px;
}

/* nav anchor targets: offset so the pinned header doesn't cover the section on jump */
#how, #sellers, #download, #main-content { scroll-margin-top: 120px; }

/* ---------- skip to content ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; }

/* How-it-works sits right under the manifesto, which already carries its
   own bottom padding — the full 88px on top of that would double up. */
#how.container { padding-top: 16px; }

/* ---------- header ---------- */
.site-header { position: relative; background: var(--page-blue); color: var(--forest); }
.site-header.on-hero { background: transparent; }

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 64px;
  position: relative;
  z-index: 3;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { display: block; width: 42px; height: 42px; border-radius: 12px; }
.brand-name { font-weight: 700; font-size: 24px; color: var(--forest); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 15px;
  white-space: nowrap;
  color: var(--muted-nav);
  text-decoration: none;
  transition: color 180ms ease;
}
.nav-link:hover { color: var(--forest); }
.nav-link.current { color: var(--forest); }

.btn-pill {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--forest);
  color: var(--cream);
  border: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  display: inline-block;
}
.btn-pill:hover { background: var(--forest-hover); color: var(--cream); transform: translateY(-1px); }

.btn-outline {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  display: inline-block;
  transition: background 200ms ease, transform 200ms ease;
}
.btn-outline:hover { background: var(--forest-hover); color: var(--cream); transform: translateY(-1px); }

.btn-sprout {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--sprout);
  color: var(--forest);
  display: inline-block;
  transition: background 200ms ease;
}
.btn-sprout:hover { background: var(--sprout-hover); color: var(--forest); }

.hamburger {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31,77,54,0.16);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.hamburger .bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.hamburger .bars span { display: block; height: 2px; border-radius: 2px; background: var(--forest); }

/* pinned header */
.pinned-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  justify-content: center;
  pointer-events: none;
}
.pinned-header.is-pinned { display: flex; animation: cd-drop 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.pinned-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1160px, calc(100% - 32px));
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(31,77,54,0.12);
}
.pinned-inner .brand img { width: 34px; height: 34px; border-radius: 10px; }
.pinned-inner .brand-name { font-size: 20px; }
.pinned-inner .nav-link { color: var(--muted-body); }
.pinned-inner .nav-link.current { color: var(--forest); }

/* mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(31,77,54,0.32);
  display: none;
}
.drawer-backdrop.is-open { display: block; }
.drawer-panel {
  background: var(--cream);
  border-radius: 0 0 26px 26px;
  padding: 15px 20px 24px;
  animation: cd-menu 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.drawer-header { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.drawer-header img { display: block; width: 38px; height: 38px; border-radius: 12px; }
.drawer-header .brand-name { font-size: 21px; margin-right: auto; }
.drawer-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(31,77,54,0.16);
  border-radius: 14px;
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  color: var(--forest);
  cursor: pointer;
}
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a {
  font-weight: 700;
  font-size: 19px;
  color: var(--forest);
  text-decoration: none;
  padding: 15px 0;
  border-top: 1px solid rgba(31,77,54,0.10);
}
.drawer-cta {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vw * 0.64);
  background: var(--page-blue);
  color: var(--forest);
}
.hero-bg-layer { position: absolute; inset: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url(../assets/hero-illustration.png);
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.hero-grass {
  position: absolute;
  left: -2%; right: -2%; bottom: -13vw;
  height: 50vw;
  background-image: url(../assets/hero-grass-parallax.png);
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-flowerpot {
  position: absolute;
  left: 59.7vw;
  bottom: 24.3vw;
  width: 5.3vw;
  aspect-ratio: 571 / 1024;
  background-image: url(../assets/flowerpot.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: top center;
  transform-origin: 50% 0%;
  animation: potSway 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes potSway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.hero-hill {
  position: absolute;
  left: -8%; right: -8%; bottom: -2px;
  height: 6vw;
  background: var(--page-blue);
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  z-index: 2;
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 175px 64px 0;
  text-align: center;
}
.hero-copy-inner { max-width: 620px; margin: 0 auto; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(31,77,54,0.09);
  color: var(--forest);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  animation: cd-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.hero-h1 {
  font-weight: 900;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 auto;
  max-width: 16ch;
  text-wrap: balance;
  opacity: 0;
  animation: cd-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.hero-p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-nav);
  margin: 18px auto 0;
  max-width: 380px;
  opacity: 0;
  animation: cd-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  opacity: 0;
  animation: cd-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both;
}
.store-btn {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 180ms ease-in-out, box-shadow 180ms ease-in-out;
  cursor: default;
}
.store-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px rgba(31,77,54,0.16); }
.store-btn.solid { background: var(--forest); color: var(--cream); }
.store-btn.outline { border: 1px solid rgba(31,77,54,0.35); background: rgba(250,246,237,0.92); color: var(--forest); }
.store-btn .label { font-weight: 700; font-size: 15px; white-space: nowrap; }
.store-btn .soon { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; }

/* ---------- manifesto ---------- */
.manifesto {
  max-width: 26ch;
  margin: 0 auto;
  padding: 40px 64px 48px;
  text-align: center;
  font-weight: 900;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--forest);
  text-wrap: balance;
}

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px;
  transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out, scale 200ms ease-in-out, translate 200ms ease-in-out;
}
.how-card:hover { border-color: var(--hairline-hover); box-shadow: 0 14px 30px rgba(31,77,54,0.12); scale: 1.008; translate: 0 -6px; }
.how-card img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 18px; }
.how-card h2 { font-weight: 900; font-size: 25px; letter-spacing: -0.012em; margin: 0 0 10px; color: var(--forest); }
.how-card p { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin: 0; }

/* ---------- what neighbours sell ---------- */
.sell-panel { background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; padding: 48px 44px 44px; }
.sell-eyebrow { text-align: center; margin-bottom: 14px; }
.sell-panel h2 { font-weight: 900; font-size: 42px; line-height: 1.07; letter-spacing: -0.022em; margin: 0 auto 10px; color: var(--forest); max-width: 24ch; text-align: center; }
.sell-panel h3 { font-weight: 400; font-size: 19px; line-height: 1.6; margin: 0 auto 36px; color: var(--muted-body); text-align: center; }
.sell-icons-row { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sell-icon-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  cursor: default;
  transition: scale 200ms ease-in-out, translate 200ms ease-in-out;
}
.sell-icon-item:hover { scale: 1.07; translate: 0 -4px; }
.sell-icon-circle { flex: none; width: 86px; height: 86px; border-radius: 999px; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.sell-icon-circle img { display: block; width: 54px; height: 54px; object-fit: contain; }
.sell-icon-label { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--forest); }

/* ---------- inside the app ---------- */
.app-preview-panel { background: var(--forest); border-radius: 28px; padding: 56px 48px 48px; }
.app-preview-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.app-preview-head .eyebrow { color: var(--sprout); margin-bottom: 16px; }
.app-preview-head h2 { font-weight: 900; font-size: 42px; line-height: 1.07; letter-spacing: -0.022em; margin: 0 0 12px; color: var(--cream); }
.app-preview-head p { font-size: 17px; line-height: 1.65; color: var(--on-dark-body); margin: 0; }
.phone-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.phone-tile { width: 210px; flex: none; transition: transform 200ms ease-in-out, filter 200ms ease-in-out; }
.phone-tile:hover { transform: translateY(-4px) scale(1.015); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18)); }
.phone-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 420px; border-radius: 26px;
  background: var(--cream); border: 1px dashed rgba(31,77,54,0.28);
}
.phone-placeholder span { font-weight: 900; font-size: 19px; letter-spacing: -0.01em; color: var(--forest); animation: cd-pulse 2800ms ease-in-out infinite; }
.phone-caption { font-size: 14px; line-height: 1.45; color: var(--on-dark-body); margin: 14px 0 0; text-align: center; }

/* ---------- for sellers ---------- */
.sellers-grid { padding: 56px 0; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.sellers-text { padding-left: 96px; text-align: center; }
.sellers-text .eyebrow { color: var(--tan-text); margin-bottom: 16px; }
.sellers-text h2 { font-weight: 900; font-size: 42px; line-height: 1.07; letter-spacing: -0.022em; margin: 0 auto 16px; color: var(--forest); max-width: 22ch; }
.sellers-text > p { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin: 0 auto 26px; max-width: 46ch; }
.check-list { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.check-row { display: flex; align-items: flex-start; gap: 12px; }
.check-chip {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  background: var(--sprout); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.check-row > span:last-child { font-size: 17px; line-height: 1.65; color: var(--body); }

.sellers-phone-wrap { display: flex; justify-content: center; }
.sellers-phone {
  width: 232px; flex: none; padding: 10px; border-radius: 38px; background: var(--forest);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}
.sellers-phone:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 3px 8px rgba(31,77,54,0.10); }
.sellers-phone .phone-placeholder { height: 460px; border-radius: 30px; }

/* ---------- our story / why cropdrop ---------- */
.story-panel { background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; padding: 56px 44px 48px; }
.story-head { max-width: 760px; margin: 0 auto; text-align: center; }
.story-head .eyebrow { margin-bottom: 16px; }
.story-head h2 { font-weight: 900; font-size: 42px; line-height: 1.07; letter-spacing: -0.022em; margin: 0 auto 20px; color: var(--forest); max-width: 24ch; }
.story-head p { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin: 0 0 16px; }
.story-head p:last-child { margin-bottom: 0; }
.why-eyebrow { margin: 52px 0 20px; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--cream); border: 1px solid var(--hairline); border-radius: 24px; padding: 30px 32px;
  transition: border-color 200ms ease-in-out, box-shadow 200ms ease-in-out, scale 200ms ease-in-out, translate 200ms ease-in-out;
}
.why-card:hover { border-color: var(--hairline-hover); box-shadow: 0 12px 28px rgba(31,77,54,0.10); scale: 1.01; translate: 0 -5px; }
.why-card .check-chip { margin-top: 3px; }
.why-card span:last-child { font-weight: 700; font-size: 19px; line-height: 1.5; letter-spacing: -0.005em; color: var(--forest); }

/* ---------- eyebrow (generic) ---------- */
.eyebrow {
  font-weight: 700; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted-body);
}

/* ---------- launch CTA ---------- */
.cta-wrap { max-width: 1240px; margin: 0 auto; padding: 96px 64px 48px; }
.cta-band {
  position: relative; z-index: 2;
  background: var(--sprout); border-radius: 28px; padding: 52px 56px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 300px; }
.cta-text h2 { font-weight: 900; font-size: 42px; line-height: 1.07; letter-spacing: -0.022em; margin: 0 0 10px; color: var(--forest); max-width: 22ch; }
.cta-text p { font-size: 17px; line-height: 1.65; color: #2E4A34; margin: 0; max-width: 44ch; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cta-form input[type="email"] {
  min-width: 240px; min-height: 50px; padding: 12px 20px;
  font-family: var(--font); font-size: 15px; color: var(--forest);
  background: var(--white); border: 1px solid rgba(31,77,54,0.16); border-radius: 999px;
  outline: none; transition: border-color 180ms ease-in-out, box-shadow 180ms ease-in-out;
}
.cta-form input[type="email"]:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31,77,54,0.12); }
.cta-form button {
  flex: none; font-weight: 700; font-size: 15px; padding: 14px 30px; border: 0; border-radius: 999px;
  white-space: nowrap; background: var(--forest); color: var(--cream); cursor: pointer;
  animation: cd-wiggle 3200ms ease-in-out infinite;
  transition: background 180ms ease-in-out, transform 180ms ease-in-out, box-shadow 180ms ease-in-out;
}
.cta-form button:hover { background: var(--forest-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 22px rgba(31,77,54,0.18); }
.cta-form button:active { transform: scale(0.97); box-shadow: none; }
.cta-form button:disabled { cursor: default; opacity: 0.85; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 14px 0 0; font-size: 15px; font-weight: 700; }
.form-msg.error { color: var(--deep-terracotta); }
.form-msg.ok { color: var(--forest); }

/* ---------- footer ---------- */
/* min-height is shared by every page (not just the homepage) so the footer
   is the same overall height/spacing everywhere. It's pinned to the
   illustration's own aspect ratio (0.355) so the full image — clouds
   included — is always shown uncropped, at any viewport width, plus a flat
   buffer for content room. */
.site-footer {
  position: relative;
  z-index: 1;
  background-color: var(--page-blue);
  background-image: url(../assets/footer-illustration.png);
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: calc(100vw * 0.355 + 180px);
  display: flex; align-items: stretch; color: var(--forest);
}
/* Homepage only: the CTA band above shares the same background colour, so
   the footer can additionally shift upward behind it (hidden, seamless) by
   exactly its own buffer amount — reclaiming that space rather than adding
   dead height, without affecting any other page's footer size. */
.site-footer.footer-overlap { margin-top: -180px; }

.footer-inner {
  position: relative; width: 100%; max-width: 1240px; margin: 0 auto;
  align-self: stretch; padding: 44px 64px 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.footer-row {
  margin-top: auto; display: flex; align-items: center;
  flex-direction: row-reverse; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; font-size: 15px; font-weight: 700; flex-wrap: wrap; max-width: 620px; }
.footer-links a { white-space: nowrap; color: var(--body); text-decoration: none; transition: color 180ms ease; }
.footer-links a:hover { color: var(--forest-hover); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { display: block; width: 36px; height: 36px; border-radius: 11px; }
.footer-brand-name { font-weight: 700; font-size: 20px; color: var(--forest); }

/* ---------- subpage hero (blue band) ---------- */
.page-hero { background: var(--page-blue); color: var(--forest); }
.page-hero-inner { max-width: 1240px; margin: 0 auto; padding: 60px 64px 84px; }
.page-hero-content { max-width: 720px; }
.page-hero-content.wide { max-width: 740px; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-h1 {
  font-weight: 900; font-size: 60px; line-height: 1.03; letter-spacing: -0.032em;
  margin: 0 0 18px; text-wrap: balance;
}
.page-intro { font-size: 20px; line-height: 1.55; max-width: 46ch; color: var(--muted-body); margin: 0; }
.page-intro.wide { max-width: 48ch; }
.legal-subtitle { font-style: italic; font-size: 16px; line-height: 1.5; color: var(--muted-body); max-width: 52ch; margin: 0 0 10px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 22px; padding: 26px 30px;
  transition: border-color 220ms ease;
}
.faq-item:hover { border-color: rgba(31,77,54,0.24); }
.faq-question {
  width: 100%; display: flex; align-items: flex-start; gap: 18px; padding: 0; border: 0;
  background: transparent; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--forest);
}
.faq-question .q-text { flex: 1; }
.faq-toggle {
  flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--sprout); color: var(--forest);
  display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1;
}
.faq-answer { font-size: 17px; line-height: 1.7; color: var(--muted-body); margin: 16px 0 0; max-width: 62ch; display: none; }
.faq-item.is-open .faq-answer { display: block; }
.faq-answer-wide { max-width: 560px; }
.faq-embedded-form { margin-top: 20px; padding: 32px; }

.faq-side-card {
  background: var(--cream); border: 1px solid rgba(31,77,54,0.06); border-radius: 24px; padding: 32px;
  transition: border-color 220ms ease, transform 220ms ease;
}
.faq-side-card:hover { border-color: rgba(31,77,54,0.18); transform: translateY(-2px); }
.faq-side-card h2, .faq-side-card h3 { font-weight: 900; font-size: 25px; line-height: 1.2; margin: 0 0 10px; color: var(--forest); }
.faq-side-card p { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin: 0 0 22px; }
.faq-divider { height: 1px; background: rgba(31,77,54,0.14); margin: 28px 0; }
.faq-side-card .small-p { font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.faq-side-card .arrow-link { font-size: 15px; font-weight: 700; text-decoration: none; }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.safety-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; padding: 36px;
  display: flex; flex-direction: column;
  transition: border-color 220ms ease, transform 220ms ease;
}
.safety-card:hover { border-color: rgba(31,77,54,0.2); transform: translateY(-2px); }
.safety-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.safety-badge {
  flex: none; width: 40px; height: 40px; border-radius: 13px;
  background: var(--sprout); color: var(--forest);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px;
}
.safety-badge.warn { background: var(--deep-terracotta); color: var(--white); }
.safety-card h2 { font-weight: 900; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; margin: 0; color: var(--forest); }
.safety-bullets { display: flex; flex-direction: column; gap: 14px; }
.safety-bullet { display: flex; align-items: flex-start; gap: 12px; }
.safety-dot { flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--soft-tan); margin-top: 9px; }
.safety-dot.warn { background: var(--terracotta); }
.safety-bullet span { font-size: 17px; line-height: 1.6; color: var(--muted-body); }
.safety-card .btn-outline { align-self: flex-start; margin-top: 24px; }


/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-weight: 900; font-size: 25px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--forest); }
.contact-info > p { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin: 0 0 28px; max-width: 36ch; }
.contact-blocks { display: flex; flex-direction: column; gap: 20px; }
.contact-block .eyebrow { margin-bottom: 6px; }
.contact-block a.email-link { font-size: 17px; text-decoration: none; }
.contact-block p { font-size: 17px; line-height: 1.6; color: var(--muted-body); margin: 0; max-width: 34ch; }
.contact-legal-links { display: flex; gap: 18px; font-size: 17px; flex-wrap: wrap; }

.contact-form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 28px; padding: 44px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--forest);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; min-height: 50px; padding: 12px 18px;
  font-family: var(--font); font-size: 15px; color: var(--body);
  background: var(--cream); border: 1px solid rgba(31,77,54,0.14); border-radius: 16px;
}
.form-field textarea { min-height: 140px; padding: 14px 18px; resize: vertical; }
.field-error { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--deep-terracotta); }
.contact-submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-submit-row button[type="submit"] {
  font-family: var(--font); font-weight: 700; font-size: 15px; padding: 15px 30px; border: 0;
  border-radius: 999px; white-space: nowrap; background: var(--forest); color: var(--cream);
  cursor: pointer; transition: background 200ms ease, transform 200ms ease;
}
.contact-submit-row button[type="submit"]:hover { background: var(--forest-hover); transform: translateY(-1px); }
.contact-submit-row button[type="submit"]:disabled { cursor: default; opacity: 0.85; }
.contact-submit-row .status-ok { font-size: 15px; font-weight: 700; color: var(--forest); }
.contact-submit-row .status-err { font-size: 15px; font-weight: 700; color: var(--deep-terracotta); }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal-wrap { max-width: 900px; margin: 0 auto; }

.legal-toc {
  background: var(--cream); border: 1px solid rgba(31,77,54,0.06); border-radius: 20px;
  padding: 28px 32px; margin: 0 0 32px;
}
.legal-toc-title {
  font-weight: 700; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--tan-text); margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; counter-reset: none;
}
.legal-toc li { font-size: 15px; line-height: 1.5; }
.legal-toc a { color: var(--forest); text-decoration: none; }
.legal-toc a:hover { color: var(--forest-hover); text-decoration: underline; }

.legal-body { background: var(--white); border: 1px solid var(--hairline); border-radius: 24px; padding: 48px 56px; }
.legal-body > p { font-size: 17px; line-height: 1.7; color: var(--muted-body); margin: 0 0 16px; }
.legal-body h2 {
  font-weight: 900; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em;
  margin: 32px 0 10px; color: var(--forest); scroll-margin-top: 120px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-weight: 700; font-size: 17px; line-height: 1.4;
  margin: 20px 0 8px; color: var(--forest); scroll-margin-top: 120px;
}
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { font-size: 17px; line-height: 1.65; color: var(--muted-body); margin-bottom: 8px; }
.legal-body li:last-child { margin-bottom: 0; }
.legal-disclaimer {
  margin: 0 0 32px; padding: 16px 20px; border-radius: 12px;
  background: var(--cream); border-left: 3px solid var(--terracotta);
  font-size: 14px; line-height: 1.6; color: var(--tan-text);
}
.legal-closing {
  margin-top: 40px; text-align: center; font-style: italic;
  font-size: 15px; color: var(--muted-body);
}

.back-to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: var(--forest); color: var(--cream); cursor: pointer;
  font-size: 18px; line-height: 1;
  box-shadow: 0 10px 22px rgba(31,77,54,0.16);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out, background 200ms ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--forest-hover); }

/* ==================================================================
   Mobile — one breakpoint at 860px
   ================================================================== */
@media (min-width: 861px) {
  .drawer-backdrop { display: none !important; }
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }

  .nav-links, .header-row .btn-pill, .pinned-inner > .btn-pill { display: none !important; }
  .hamburger { display: flex !important; }

  .container,
  .header-row,
  .hero-copy,
  .manifesto,
  .cta-wrap,
  .footer-inner,
  .page-hero-inner { padding-left: 20px; padding-right: 20px; }

  /* Same vertical rhythm, scaled down so six stacked sections don't turn
     into an oversized scroll on a short mobile viewport. */
  .container { padding-top: 56px; padding-bottom: 8px; }
  #how.container { padding-top: 14px; }

  .header-row { padding-top: 15px; padding-bottom: 15px; gap: 12px; }

  .how-grid,
  .why-grid,
  .sellers-grid,
  .faq-layout,
  .safety-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 16px; }

  .page-h1 { font-size: 36px; letter-spacing: -0.022em; }
  .hero-h1 { font-size: 34px; letter-spacing: -0.022em; }
  .manifesto { font-size: 29px; }
  section h2, .sell-panel h2, .app-preview-head h2, .sellers-text h2,
  .story-head h2, .cta-text h2 { font-size: 27px; }
  .how-card h2, .safety-card h2, .faq-side-card h2, .faq-side-card h3 { font-size: 21px; }

  .how-card, .sell-panel, .app-preview-panel, .story-panel, .cta-band,
  .why-card, .safety-card, .contact-form-card,
  .faq-side-card, .legal-body, .legal-toc { padding: 22px 20px; }

  .legal-toc ol { grid-template-columns: 1fr; gap: 10px; }

  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .hero-copy { padding: 104px 20px 92px; }
  .page-hero-inner { padding-top: 30px; padding-bottom: 46px; }

  .sellers-text { padding-left: 0; }
  .sellers-grid { padding: 24px 0; }

  .sell-icons-row { flex-wrap: wrap; gap: 22px 12px; }
  .sell-icon-item { flex: 0 0 calc(50% - 6px); }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 22px; }

  .hero-bg { background-size: 190% auto; }
  .hero-grass { left: -24%; right: -24%; height: 74vw; bottom: -16vw; }
  .hero-flowerpot { left: 68.4vw; bottom: 46.1vw; width: 10vw; }
  .site-footer { background-size: 230% auto; min-height: 0; padding-top: 90px; }
  .site-footer.footer-overlap { margin-top: 0; min-height: 0; }

  .phone-tile { width: 100%; max-width: 270px; }
  .phone-placeholder { height: 370px; }
  .sellers-phone { width: 100%; max-width: 270px; }
  .sellers-phone .phone-placeholder { height: 370px; }

  form, .cta-form { width: 100%; }
  .cta-form input, .cta-form button { width: 100%; min-width: 0; }
}
