/* =========================================================================
   The Model Body Club — Website styles
   Loads after colors_and_type.css. Shared across every page.
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-label); font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--fg-accent);
}
.eyebrow--muted { color: var(--fg-muted); }
.lede { font-family: var(--font-body); font-size: 19px; line-height: 1.6; color: var(--ink-700); text-wrap: pretty; }
.cherry { font-size: 0.82em; }

/* ============ BRAND LOCKUP ============ */
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; line-height: 1; }
.lockup__cherry { font-size: 20px; }
.lockup__name {
  font-family: var(--font-label); font-weight: 700; font-size: 13px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.lockup__by { font-family: var(--font-body); font-size: 11px; color: var(--fg-muted); }
.lockup__handle { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--fg-accent); letter-spacing: 0; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream-100) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__cherry { font-size: 22px; line-height: 1; }
.brand__name {
  font-family: var(--font-label); font-weight: 700; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); white-space: nowrap;
}
.brand__name b { color: var(--fg-accent); }
.nav { display: flex; gap: 30px; justify-content: center; align-items: center; }
.nav a {
  font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg); text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg-accent); border-color: var(--fg-accent); }
.header-actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.header-login {
  font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-muted); text-decoration: none;
}
.header-login:hover { color: var(--fg-accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: .2s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; background: var(--cherry-600); color: var(--cream-100);
  font-family: var(--font-label); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; border: none; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--cherry-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--cream-100); color: var(--cherry-700); }
.btn--light:hover { background: var(--white); color: var(--cherry-900); }
.btn--ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--ink-900); }
.btn--ghost:hover { background: var(--ink-900); color: var(--cream-100); }
.btn--lg { padding: 19px 40px; font-size: 13px; }
.btn--block { width: 100%; }

/* ============ GUMROAD OVERLAY BUTTONS ============ */
/* gumroad.js attaches overlay checkout to <a class="gumroad-button">. We keep
   the site's own button look and re-assert it at higher specificity so none of
   Gumroad's injected defaults can leak in. Links still carry the real product
   href, so if the overlay script ever fails the click falls back to Gumroad. */
a.gumroad-button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; background: var(--cherry-600); color: var(--cream-100);
  font-family: var(--font-label); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; border: none; border-radius: 999px;
  text-decoration: none; white-space: nowrap; box-shadow: none; cursor: pointer;
}
a.gumroad-button.btn:hover { background: var(--cherry-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
a.gumroad-button.btn:active { transform: scale(0.98); }
a.gumroad-button.btn--lg { padding: 19px 40px; font-size: 13px; }
a.gumroad-button.btn--block { width: 100%; }
a.gumroad-button.btn--light { background: var(--cream-100); color: var(--cherry-700); }
a.gumroad-button.btn--light:hover { background: var(--white); color: var(--cherry-900); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cherry-600); text-decoration: none; padding-bottom: 3px; border-bottom: 1.5px solid var(--cherry-600);
  transition: color .15s, border-color .15s, gap .15s;
}
.link-arrow:hover { color: var(--cherry-900); border-color: var(--cherry-900); gap: 11px; }

/* ============ HEADINGS ============ */
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--fg-accent); }

/* ============ PILL TAG / META ============ */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--bg-soft); border-radius: 999px;
  font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cherry-700);
}
.price-tag { font-family: var(--font-display); font-size: 40px; color: var(--fg); line-height: 1; }
.price-tag small { font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink-900); color: var(--cream-100); }
.site-footer__inner { max-width: 1240px; margin: 0 auto; padding: 80px 40px 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; align-items: start; }
.footer-brand__lockup { display: flex; flex-direction: column; gap: 10px; }
.footer-brand__name { font-family: var(--font-label); font-weight: 700; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-brand__name b { color: var(--cherry-300); }
.footer-brand__handle { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--cherry-300); }
.footer-brand p { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--cream-200); opacity: 0.7; max-width: 320px; margin: 6px 0 0; }
.footer-col h4 { font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cherry-300); margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-family: var(--font-body); font-size: 15px; color: var(--cream-200); text-decoration: none; opacity: 0.85; }
.footer-col a:hover { color: var(--white); opacity: 1; }
.footer-base {
  max-width: 1240px; margin: 0 auto; padding: 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-base small { font-family: var(--font-body); font-size: 12px; color: var(--cream-200); opacity: 0.55; }
.footer-base .cherries { font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--cherry-300); }

/* ============ CARDS ============ */
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cream-300); }
.card__media { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--bg-soft); }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.05; }
.card__desc { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--ink-700); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* ============ FORMS ============ */
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  flex: 1; min-width: 220px; padding: 16px 22px; background: var(--paper);
  border: 1.5px solid var(--ink-900); border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink-900); outline: none;
}
.field:focus { border-color: var(--cherry-600); }
.form-note { font-family: var(--font-body); font-size: 12px; color: var(--fg-subtle); margin-top: 12px; }
.form-success {
  display: none; gap: 14px; align-items: flex-start; padding: 22px 26px;
  background: var(--ink-900); color: var(--cream-100); border-radius: var(--radius-lg); max-width: 560px;
}
.form-success.show { display: flex; }
.form-success__cherry { font-size: 26px; line-height: 1; }
.form-success__title { font-family: var(--font-display); font-size: 21px; line-height: 1.1; margin-bottom: 4px; }
.form-success__sub { font-family: var(--font-body); font-size: 14px; color: var(--cream-200); opacity: 0.75; }

/* ============ FEATURE LIST ============ */
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.feat-list li { position: relative; padding-left: 30px; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink-700); }
.feat-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 999px; background: var(--cherry-600);
}
.feat-list strong { color: var(--ink-900); font-weight: 600; }

/* ============ DIVIDER ============ */
.rule-cherry { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--cherry-600); font-size: 13px; }
.rule-cherry::before, .rule-cherry::after { content: ''; height: 1px; width: 60px; background: var(--cream-300); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .site-header__inner { grid-template-columns: 1fr auto; padding: 14px 22px; }
  .nav, .header-actions { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-100); border-bottom: 1px solid var(--border); padding: 16px 22px 24px;
  }
  .site-header.open .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-base { flex-direction: column; text-align: center; }
}
