/* Cobblewise waitlist — mobile-first, no frameworks */
:root {
  --bg: #FBF7EF;          /* warm off-white */
  --bg-soft: #F4ECDF;
  --bg-form: #EEF4EA;
  --text: #2A2522;        /* dark text */
  --muted: #564C45;       /* 7.6:1 on --bg */
  --green: #4C9A5A;       /* brand accent */
  --green-dark: #3A7D47;  /* white text on this = 5:1 (AA) */
  --green-deep: #2F6A3B;  /* green text on light bg = 6.1:1 */
  --line: #E3D8C6;
  --radius: 10px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 36rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #FDF3E1 0%, #FAE6CB 55%, #F6D9B6 100%);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
  padding: 2.25rem 0 1rem;
}
.hero__scene {
  order: 2;
  margin-top: auto;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 74% 100%;
}
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-deep);
  background: rgba(255, 253, 247, .8);
  border: 1px solid rgba(76, 154, 90, .45);
  border-radius: 999px;
}
.wordmark {
  font-size: clamp(3.4rem, 1.6rem + 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0;
  color: var(--text);
}
.byline {
  margin: .5rem 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.hero__headline {
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 30ch;
  margin-bottom: .75rem;
}
.hero__lede {
  font-size: 1.1rem;
  max-width: 40ch;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.disclaimer {
  font-size: .85rem;
  line-height: 1.45;
  max-width: 46ch;
  margin: 1rem 0 0;
}
.disclaimer--hero {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Button ---------- */
.button {
  display: inline-block;
  padding: .9rem 1.6rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--green-dark);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 0 #2A5E35;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.button:hover { background: var(--green-deep); }
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 #2A5E35; }
.button:disabled { opacity: .7; cursor: progress; }
.button--full { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--form { background: var(--bg-form); border-top: 1px solid #D6E4D0; }
.section__intro { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin-bottom: 2rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; align-content: start; }
.step p { margin: 0; color: var(--muted); }
.step__num {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 800; color: #fff;
  background: var(--green-dark);
  border-radius: 6px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), inset 0 6px 0 rgba(255, 255, 255, .15);
}

.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.reasons li { padding-left: 1.25rem; border-left: 4px solid var(--green); }
.reasons p { margin: 0; color: var(--muted); }

.plans { display: grid; gap: 1.25rem; }
.plan {
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.plan h3 { font-size: 1.4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.plan__tag { font-size: .9rem; font-weight: 600; color: var(--green-deep); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .7rem; background: var(--green); border-radius: 2px;
}
.not-yet {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--text);
}

/* ---------- Form ---------- */
.waitlist {
  background: #FFFDF8;
  border: 1px solid #D6E4D0;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.field { margin: 0 0 1.25rem; padding: 0; border: 0; }
.field > label:not(.check), legend { display: block; font-weight: 700; margin-bottom: .4rem; padding: 0; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .95rem; }
input[type="email"] {
  width: 100%;
  padding: .8rem .9rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 2px solid #8D8177;   /* 3.7:1 against white (non-text contrast) */
  border-radius: 8px;
}
input[type="email"]::placeholder { color: #6B625B; opacity: 1; }
input[type="email"]:focus { border-color: var(--green-deep); outline: 3px solid rgba(76, 154, 90, .35); outline-offset: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 400; cursor: pointer; min-height: 2.75rem; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--green-dark); flex: none; margin: 0; }
.hp { display: none !important; }
.privacy { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.form-error { margin: 1rem 0 0; color: #9A2E1C; font-weight: 600; }
.form-success {
  padding: 1.25rem 1.5rem;
  background: #FFFDF8;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
}

/* ---------- Footer ---------- */
.footer { background: #2F2A26; color: #EFE6D8; padding: 2.5rem 0 3rem; font-size: .95rem; }
.footer__trust { font-weight: 700; color: #fff; }
.footer .disclaimer { color: #EFE6D8; max-width: 60ch; }
.footer__links { display: flex; gap: 1.5rem; margin: 1.5rem 0 1rem; }
.footer__links a { color: #fff; }
.footer__copy { margin: 0; color: #D9CFC1; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .section { padding: 5rem 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .plans { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: repeat(4, auto); justify-content: start; }
  .hero__scene { height: clamp(380px, 48svh, 560px); }
}

@media (min-width: 1200px) {
  .hero { justify-content: center; }
  .hero__scene {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 70% 100%;
  }
  /* soft sky-coloured wash keeps hero text readable wherever the hills sit */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 40% 40% at 24% 44%, rgba(253, 243, 225, .85) 0%, rgba(253, 243, 225, .6) 55%, rgba(253, 243, 225, 0) 100%);
    pointer-events: none;
  }
  .hero__inner { z-index: 2; padding: 3rem 0 6rem; }
  .hero__inner > * { max-width: 36rem; }
  .wordmark { max-width: none; }
}
