/* ─── Design tokens — lifted directly from milkandmama.co homepage ──────
   (not from the brief's stated hex codes, which don't match the live
   site — see build notes in README.md) */
:root {
  --bg:            #F8F3E4;
  --bg-dark:       #141410;
  --text:          #2d2926;
  --text-mid:      #706b65;
  --text-light:    #F8F3E4;
  --cta:           #C4614A;
  --cta-hover:     #b0543e;
  --announce-bg:   #F9D77E;
  --border:        rgba(45,41,38,0.15);
  --radius-card:   18px;
  --radius-btn:    999px;
  --max-w:         600px;
  --pad-x:         clamp(20px, 6vw, 40px);
  --section-gap:   clamp(36px, 6vw, 56px);
}

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

html { overflow-x: hidden; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
  background: var(--cta);
  color: #fff;
}
.btn:hover { background: var(--cta-hover); }

/* ─── Page shell ─────────────────────────────────────────────────────── */
.page-header {
  padding: 28px var(--pad-x) 0;
  text-align: center;
}
.page-header img {
  height: 34px;
  width: auto;
  margin: 0 auto;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 56px) var(--pad-x) 60px;
}

.join-card {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ─── Micro-headline ─────────────────────────────────────────────────── */
.headline-block {
  text-align: center;
  margin-bottom: var(--section-gap);
}
.headline-block h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.headline-block h1 em { font-style: italic; }
.headline-block .reassurance {
  font-size: 14px;
  color: var(--text-mid);
  letter-spacing: 0.01em;
}

/* ─── What you get ───────────────────────────────────────────────────── */
.wyg-block { margin-bottom: var(--section-gap); }
.wyg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wyg-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: transparent;
}
.wyg-list .item-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--announce-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.wyg-list .item-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── Price framing ──────────────────────────────────────────────────── */
.price-block {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: 32px clamp(24px, 5vw, 40px);
  text-align: center;
  margin-bottom: var(--section-gap);
}
.price-block .price-main {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 38px);
  color: #fff;
  line-height: 1.2;
}
.price-block .price-main strong { font-weight: 400; }
.price-block .price-sub {
  font-size: 13px;
  color: rgba(240,236,229,0.6);
  margin-top: 10px;
  line-height: 1.6;
}
.price-block .price-risk {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(240,236,229,0.12);
  font-size: 13px;
  color: rgba(240,236,229,0.85);
  line-height: 1.6;
}
.price-block .price-risk strong { color: #fff; font-weight: 500; }

/* ─── Checkout ────────────────────────────────────────────────────────── */
.checkout-block { margin-bottom: var(--section-gap); }
.checkout-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(16px, 4vw, 28px);
  min-height: 340px;
}
.checkout-card .checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.checkout-card .checkout-error {
  display: none;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
.checkout-card .checkout-error.visible { display: block; }
.checkout-card .checkout-error a { color: var(--cta); }

/* ─── Trust strip ─────────────────────────────────────────────────────── */
.trust-strip {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}
.trust-strip li svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  color: var(--cta);
}
.trust-strip .placeholder-note {
  color: #b5482f;
  font-style: italic;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 20px var(--pad-x) 32px;
}
.page-footer p {
  font-size: 12px;
  color: var(--text-mid);
}
.page-footer a {
  color: var(--text-mid);
  text-decoration: underline;
}
.page-footer a:hover { color: var(--text); }

/* ─── Success page ───────────────────────────────────────────────────── */
.success-card {
  text-align: center;
}
.success-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 6vw, 48px);
  margin-bottom: 16px;
}
.success-card .success-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
}
.success-card .success-note {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .wyg-list li { padding: 14px 16px; }
}
