:root {
  --cream: #fbfaf4;
  --paper: #ffffff;
  --ink: #183833;
  --muted: #5d706b;
  --teal: #08736f;
  --green: #4d9a57;
  --leaf: #d8ead1;
  --plum: #8060bb;
  --rose: #c97882;
  --line: #dbe5dd;
  --shadow: 0 18px 50px rgba(24, 56, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.section,
.hero__inner,
.footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal);
}

.button,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(8, 115, 111, 0.22);
}

.button:hover,
button:hover {
  background: #065d59;
}

.button:disabled,
button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.button--secondary {
  color: var(--teal);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button--secondary:hover {
  color: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  background: #f7f7ef;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/manifested-fit-logo.png");
  background-repeat: no-repeat;
  background-position: center right -42px;
  background-size: min(680px, 68vw);
  opacity: 0.34;
}

.hero__inner {
  position: relative;
  padding: 72px 0 84px;
}

.hero__content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 560px;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 820px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.lead-form input,
.planner select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.lead-form [data-form-message] {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-form [data-state="error"] {
  color: #9a2f38;
}

.trust-line {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 76px 0;
}

.section--tint {
  width: 100%;
  max-width: none;
  padding: 76px max(16px, calc((100% - 1120px) / 2));
  background: #eef5eb;
}

.section__intro {
  max-width: 740px;
  margin-bottom: 28px;
}

.section__intro p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.day-plan,
.planner,
.cta-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(24, 56, 51, 0.08);
}

.feature-card {
  padding: 22px;
}

.feature-card__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.ritual-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ritual-list li {
  padding: 14px 16px;
  border-left: 5px solid var(--green);
  background: var(--paper);
}

.mini-panel {
  padding: 26px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.mini-panel p {
  margin-bottom: 0;
  color: #d7e5df;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background: #ffffff;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-header {
  padding: 68px 0 30px;
  background: #f7f7ef;
}

.planner {
  padding: 24px;
}

.planner form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.planner label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.plan-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plan-result[data-has-plan="false"] {
  display: block;
  color: var(--muted);
}

.day-plan {
  padding: 20px;
}

.day-plan__label {
  margin: 0 0 8px;
  color: var(--plum);
  font-weight: 900;
}

.legal-copy {
  max-width: 820px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-position: bottom right -80px;
    background-size: 460px;
    opacity: 0.36;
  }

  .lead-form,
  .grid,
  .split,
  .cta-band,
  .planner form,
  .plan-result {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    display: grid;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero__inner,
  .section,
  .page-header {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .lead-form,
  .planner,
  .cta-band {
    padding: 14px;
  }

  .button,
  button {
    width: 100%;
  }
}
