/* Eden Wellness — Morning Reset
   Colours sampled from the Eden Wellness logo (sRGB). */
:root {
  --olive: #6F8206;        /* logo: trunk + "eden" (4.3:1 on white: large text and marks only) */
  --lime: #C9C73F;         /* logo: canopy */
  --grey: #666666;         /* logo: "WELLNESS" */
  --olive-deep: #4A5708;   /* buttons, links, small text on white (7.9:1) */
  --olive-dark: #3B4507;   /* dark sections */
  --cream: #FBFBF4;        /* text on dark sections */
  --mist: #F1F2DA;         /* lime tint: selected options, quiet cards */
  --line: #D6D9C1;
  --white: #FFFFFF;
  --ink: #22270F;
  --muted: var(--grey);
  --error: #A3321F;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Signature: photos cut as leaves, echoing the two leaves in the logo. */
  --leaf: 8px 46% 8px 46%;
  --leaf-flip: 46% 8px 46% 8px;

  --gutter: 20px;
  --measure: 34rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
[hidden] { display: none !important; }
/* keep anchor and scroll targets clear of the sticky bar */
[id], fieldset { scroll-margin-top: 96px; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.display, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0;
}
.display { font-size: clamp(2.7rem, 11vw, 5rem); line-height: 1; }
.display em { font-style: italic; font-weight: 500; }
.h2 { font-size: clamp(2.1rem, 8vw, 3.25rem); line-height: 1.05; }
.tagline { font-family: var(--sans); font-style: italic; font-size: 1.25rem; margin: .5rem 0 0; }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5.6vw, 2.1rem);
  line-height: 1.22;
  font-weight: 500;
  margin: 0 0 1.5rem;
}
.prose p { margin: 0 0 1.1rem; max-width: var(--measure); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.topbar-home { display: block; flex: none; }
.topbar-logo { height: 56px; width: auto; }
.join-link {
  font-size: .9rem; font-weight: 800; text-decoration: none;
  padding: .55rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--olive-deep); color: var(--olive-deep);
  white-space: nowrap;
}
.join-link:hover { background: var(--olive-deep); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  color: var(--cream);
  /* green stops mid-photo so the leaf spills into the white page */
  background: linear-gradient(var(--olive-dark) 0, var(--olive-dark) calc(100% - 9rem), var(--white) calc(100% - 9rem));
  padding: 2.5rem 0 0;
}
.hero .eyebrow { color: var(--lime); }
.hero-sub { font-size: 1.15rem; max-width: 28rem; margin: 1.25rem 0 2rem; color: #E8EAD3; }
.hero-photo { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 4 / 3.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--dark { background: var(--olive-dark); color: var(--cream); }
.section--tight-top { padding-top: 3rem; }

.story-photo { border-radius: var(--leaf-flip); overflow: hidden; margin: 2.25rem 0; aspect-ratio: 4 / 4.6; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

.pull {
  display: flex; gap: .9rem; align-items: flex-start;
  margin: 2.25rem 0; padding: 1.5rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 5.4vw, 1.9rem);
  line-height: 1.25; color: var(--olive-deep);
}
.pull img { flex: none; width: 34px; height: auto; margin-top: .15rem; }

/* Welcome / founder */
.welcome .tagline { color: var(--lime); }
.welcome .prose { margin-top: 1.75rem; }
.founder { display: grid; gap: 1.5rem; margin-top: 2.75rem; align-items: end; }
.founder-photo { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 4 / 4.4; max-width: 22rem; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.quote { margin: 0; }
.quote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 7.5vw, 2.6rem); line-height: 1.12; margin: 0 0 1rem;
}
.quote footer { font-size: .95rem; color: var(--lime); }
.quote strong { color: var(--cream); font-weight: 800; }

/* Discover */
.gallery { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; margin: 2rem 0; align-items: end; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure:first-child { border-radius: var(--leaf); aspect-ratio: 3 / 4; }
.gallery figure:last-child { border-radius: var(--leaf-flip); aspect-ratio: 3 / 3.4; margin-bottom: 2.5rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:last-child img { object-position: 40% 50%; }

.coming {
  display: grid; gap: .25rem;
  margin-top: 2rem; padding: 1.4rem 1.5rem;
  border-radius: var(--radius); background: var(--mist);
}
.coming .eyebrow { margin: 0 0 .25rem; color: var(--olive-deep); }
.coming-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.coming-meta { color: var(--muted); font-size: 1rem; }

/* ---------- Join + form ---------- */
.join-banner { border-radius: var(--leaf-flip); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 2.25rem; }
.join-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.join-intro { margin-bottom: 2.5rem; }

.test-banner {
  background: #FFF4D6; color: #5A4300; font-size: .9rem; font-weight: 700;
  padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1.5rem;
}

.form { display: grid; gap: 1.25rem; }
.card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; margin: 0; min-width: 0;
  background: var(--white);
}
/* Floated legends sit inside the card instead of notching its border */
.card-title, .idea legend { float: left; width: 100%; }
.card-title + *, .idea legend + * { clear: both; }
.card-title {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2;
  padding: 0; margin: 0 0 .5rem;
}
.hint { color: var(--muted); font-size: .98rem; margin: 0 0 1.1rem; }
.fine { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: .9rem 0 0; }

/* Choice controls: native inputs, visually hidden, styled labels */
.choice-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choices { display: grid; gap: .6rem; }
.choices--chips { display: flex; flex-wrap: wrap; gap: .55rem; }

.option {
  display: flex; align-items: center; gap: .75rem;
  min-height: 56px; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; font-weight: 700; line-height: 1.3;
  transition: background-color .15s, border-color .15s;
}
.option small { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.option::before {
  content: ""; flex: none; width: 22px; height: 22px;
  border: 2px solid var(--olive-deep); border-radius: 50%;
  background: var(--white);
}
.choice-input:checked + .option { background: var(--mist); border-color: var(--olive-deep); }
.choice-input:checked + .option::before { background: var(--olive-deep); box-shadow: inset 0 0 0 4px var(--white); }
.choice-input:focus-visible + .option { outline: 3px solid var(--olive); outline-offset: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 48px; padding: .6rem 1rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; font-weight: 700; font-size: 1rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip::before { content: "+"; font-weight: 800; color: var(--olive-deep); }
.choice-input:checked + .chip { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--cream); }
.choice-input:checked + .chip::before { content: "✓"; color: var(--cream); }
.choice-input:focus-visible + .chip { outline: 3px solid var(--olive); outline-offset: 2px; }

/* Yes / Maybe / Not now */
.idea { border: 0; padding: 1.1rem 0 0; margin: 1.1rem 0 0; border-top: 1px solid var(--line); min-width: 0; }
.idea:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.idea legend { font-weight: 700; padding: 0; margin-bottom: .7rem; line-height: 1.4; }
.segmented { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; }
.seg {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .4rem .5rem; border-radius: 10px;
  border: 1.5px solid var(--line); cursor: pointer;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
}
.choice-input:checked + .seg { background: var(--olive-deep); border-color: var(--olive-deep); color: var(--cream); }
.choice-input:focus-visible + .seg { outline: 3px solid var(--olive); outline-offset: 2px; }

.reveal { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Text fields */
.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field:first-child { margin-top: 0; }
.field label { font-weight: 700; }
.field .optional { font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 54px; padding: .75rem .9rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
}
.input:focus { border-color: var(--olive-deep); outline: none; box-shadow: 0 0 0 3px rgba(111, 130, 6, .22); }
.input[aria-invalid="true"] { border-color: var(--error); }
.subhead { font-weight: 700; margin: 1.4rem 0 .6rem; }
.choices--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* Checkboxes */
.check { display: flex; gap: .85rem; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check + .check { margin-top: 1rem; }
.check input {
  flex: none; appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; margin: 0; border-radius: 7px;
  border: 2px solid var(--olive-deep); background: var(--white); cursor: pointer;
  display: grid; place-content: center;
}
.check input::after { content: ""; width: 12px; height: 7px; border: 3px solid var(--cream); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--olive-deep); }
.check input:checked::after { opacity: 1; }
.check-text strong { display: block; }
.check-text span { color: var(--muted); font-size: .95rem; }

.card--soft { background: var(--mist); border-color: transparent; }

.error { color: var(--error); font-weight: 700; font-size: .95rem; margin: .6rem 0 0; }
.check + .error { margin: .5rem 0 1.1rem 2.65rem; }

.nudge {
  border-left: 4px solid var(--olive-deep); background: var(--mist);
  padding: 1rem 1.1rem; border-radius: 0 10px 10px 0; font-size: 1rem;
}
.nudge p { margin: 0 0 .8rem; }
.nudge-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.privacy { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.privacy a { color: var(--olive-deep); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 58px; padding: .9rem 1.6rem; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 1.1rem; text-decoration: none; cursor: pointer;
  background: var(--olive-deep); color: var(--cream);
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--olive-dark); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--light { background: var(--cream); color: var(--olive-deep); }
.btn--light:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--olive-deep); border: 1.5px solid var(--olive-deep); min-height: 48px; font-size: 1rem; padding: .6rem 1.1rem; }
.btn--ghost:hover { background: var(--white); }
.btn--block { width: 100%; }

.submit-wrap { text-align: center; margin-top: .5rem; }
.submit-line { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--olive-deep); margin: 1rem 0 0; }

/* Thank you */
.thanks { text-align: center; padding: 2.5rem 0 1rem; }
.thanks:focus { outline: none; }
.thanks-leaf { width: 64px; height: auto; margin: 0 auto 1.25rem; }
.thanks .h2 { margin-bottom: 1rem; }
.thanks p { max-width: 28rem; margin: 0 auto 1rem; }
.thanks-list { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 24rem; display: grid; gap: .5rem; text-align: left; }
.thanks-list li { background: var(--mist); border-radius: 10px; padding: .8rem 1rem; font-weight: 700; }
.thanks-list li::before { content: "✓  "; color: var(--olive-deep); }

/* Footer */
.footer { background: var(--olive-dark); color: var(--cream); padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.footer-logo { width: 150px; margin-bottom: 1.75rem; }
.footer p { max-width: var(--measure); margin: 0 0 1rem; color: #E3E6CF; }
.footer a { color: var(--cream); font-weight: 700; }
.footer-small { font-size: .85rem; opacity: .8; margin-top: 2rem !important; }

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 4rem; background: linear-gradient(var(--olive-dark) 0, var(--olive-dark) calc(100% - 14rem), var(--white) calc(100% - 14rem)); }
  .hero-photo { aspect-ratio: 16 / 10; }
  .section { padding: 6rem 0; }
  .story-photo { float: right; width: 46%; margin: .3rem 0 1.5rem 2rem; }
  .founder { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
  .card { padding: 2rem; }
}

/* Wide screens: two-column sections so lines stay readable */
@media (min-width: 960px) {
  :root { --gutter: 48px; }
  .section { padding: 7rem 0; }

  .hero { padding: 4.5rem 0 0; background: linear-gradient(var(--olive-dark) 0, var(--olive-dark) calc(100% - 7rem), var(--white) calc(100% - 7rem)); }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  .hero .display { font-size: clamp(3.2rem, 4.3vw, 3.9rem); }
  .hero-text { padding-bottom: 7rem; }
  .hero-sub { margin-bottom: 0; }
  .hero-photo { aspect-ratio: 4 / 4.2; }

  .section--tight-top { padding-top: 5rem; }
  .prose .lead { max-width: 40rem; }
  .story-photo { width: 40%; max-width: 30rem; margin: .3rem 0 2rem 4rem; }
  .pull { max-width: var(--measure); }

  .welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .welcome .h2 { font-size: clamp(2.6rem, 4.4vw, 3.75rem); }
  .founder { grid-template-columns: 1fr; margin-top: 0; }
  .founder-photo { max-width: none; aspect-ratio: 4 / 3.6; }

  .discover-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4.5rem; align-items: center; margin-top: 2.5rem; }
  .discover-grid .gallery { margin: 0; }

  .join-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4.5rem; align-items: start; }
  .join-aside { position: sticky; top: 104px; }
  .join-banner { aspect-ratio: 4 / 3; }
  .join-intro { margin-bottom: 0; }

  .footer .wrap { display: grid; grid-template-columns: auto 1fr; column-gap: 4rem; align-items: center; }
  .footer-logo { margin-bottom: 0; grid-row: span 2; }
  .footer p { margin: 0 0 .5rem; }
  .footer-small { margin-top: .5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn, .chip, .option { transition: none; }
}
