/* B.WELL landing page — plain CSS, no build step.
   Palette from docs/styling_instructions.md; #007a5a is the AA-safe
   text/button shade of the brand green (#00b485 fails contrast on white). */

:root {
  --paper: #ffffff;
  --mist: #f2f7f5;
  --ink: #323741;
  --grey: #737373;
  --green: #00b485;
  --green-deep: #007a5a;
  --green-pressed: #00634a;
  --purple: #8f4d9e;
  --line: #e2e8e5;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Type ---- */

h1 {
  font-size: clamp(2.15rem, 1.2rem + 3.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 0.75em;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 0.6em;
}

p + p {
  margin-top: 1em;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  margin-top: 1.1em;
  max-width: 34em;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.9em;
}

.micro {
  font-size: 0.95rem;
  color: var(--grey);
  margin-top: 1.6em;
}

/* ---- Buttons ---- */

.button {
  display: inline-block;
  margin-top: 0.9em;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--green-pressed);
}

/* ---- Header ---- */

.site-header {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.site-logo {
  width: auto;
  height: 56px;
}

/* ---- Sections ---- */

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section--mist {
  background: var(--mist);
}

.section-intro {
  max-width: 46em;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---- Figures ---- */

.figure {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* ---- Why section ---- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.why-copy p {
  max-width: 36em;
}

/* ---- Pillars ---- */

.pillars {
  list-style: none;
  position: relative;
}

/* The journey rail: a dotted line linking the four pillars, echoing the
   dotted heart-line of the B.WELL mark. */
.pillars::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0 6px,
    transparent 6px 12px
  );
}

.pillar {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 clamp(16px, 2.5vw, 28px);
}

.pillar + .pillar {
  margin-top: clamp(56px, 7vw, 88px);
}

.pillar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.pillar--green .pillar-badge {
  background: var(--green-deep);
}

.pillar--purple .pillar-badge {
  background: var(--purple);
}

.pillar-content {
  padding-top: 8px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 12px;
}

.pillar-grid--flip {
  grid-template-columns: 1fr 1.15fr;
}

.pillar-grid--flip .features {
  order: 2;
}

.pillar-grid--flip .figure {
  order: 1;
}

/* ---- Feature lists ---- */

.features {
  list-style: none;
}

.features li {
  position: relative;
  padding-left: 24px;
  max-width: 38em;
}

.features li + li {
  margin-top: 1.1em;
}

.features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.pillar--purple .features li::before {
  background: var(--purple);
}

/* Pillar 2: three items as cards instead of an image row */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: 12px;
}

.feature-cards li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
  max-width: none;
}

.feature-cards li + li {
  margin-top: 0;
}

.feature-cards li::before {
  content: none;
}

.feature-cards li strong {
  display: block;
  margin-bottom: 0.35em;
}

/* ---- Waitlist / final CTA ---- */

.waitlist-inner {
  max-width: 780px;
  text-align: center;
}

.waitlist-inner > p {
  margin-inline: auto;
  max-width: 40em;
}

.form-card {
  margin-top: clamp(32px, 4vw, 48px);
}

/* .form-card {
  margin-top: clamp(32px, 4vw, 48px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
} */

/* Dual-colour top bar echoing the two-tone heart mark */
/* .form-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(to right, var(--green) 0 50%, var(--purple) 50% 100%);
}

.form-card iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: #ffffff;
} */

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.footer-logo {
  width: auto;
  height: 40px;
}

.footer-legal {
  font-size: 0.9rem;
  color: var(--grey);
}

.footer-micro {
  font-size: 0.9rem;
  color: var(--grey);
  margin-left: auto;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .hero-grid,
  .why-grid,
  .pillar-grid,
  .pillar-grid--flip {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
  }

  .why-figure {
    order: -1;
  }

  .pillar-grid--flip .figure {
    order: 2;
  }

  .pillar-grid--flip .features {
    order: 1;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .footer-micro {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .pillars::before {
    left: 17px;
  }

  .pillar {
    grid-template-columns: 36px 1fr;
  }

  .pillar-badge {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .site-logo {
    height: 44px;
  }

  .form-card iframe {
    height: 600px;
  }
}
