/* ==========================================================================
   Fit Mother Partner Program — shared styles
   partners.fitmotherproject.com
   Plain CSS, no build step. Deployed via Cloudflare Pages.
   ========================================================================== */

:root {
  --navy: #1c1140;
  --navy-2: #2a1857;
  --slate: #1f2d3d;
  --ink: #11181f;
  --muted: #6b7a8d;
  --line: #e4e9ef;
  --paper: #ffffff;
  --bg: #f6f8fb;
  --green: #f22090;
  --green-dark: #c81678;
  --gold: #e0a82e;
  --gold-soft: #fbf3df;
  --blue: #2563eb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(15, 23, 34, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 34, 0.14);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 10px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 17, 64, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.nav__brand img { height: 26px; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: #c7d2de; text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.nav__links a:hover { color: #fff; }
.nav__cta { background: var(--green); color: #fff !important; padding: 9px 16px; border-radius: 999px; }
.nav__cta:hover { background: var(--green-dark); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 14px 26px; transition: transform .06s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, #46206e 0%, transparent 60%), var(--navy);
  color: #fff; padding: 84px 0 72px;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #cdd8e2; max-width: 640px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Hero two-column with video */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.video-embed { padding: 56.25% 0 0 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Hero transformation-collage background (hub + resources heroes) */
.hero--bg { position: relative; overflow: hidden; background: #1c1140; }
.hero--bg .hero__bg { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: calc(100% / 3); }
.hero--bg .hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); opacity: .42; }
.hero--bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(150,60,210,.42) 0%, transparent 55%),
    linear-gradient(90deg, rgba(28,17,64,.74) 0%, rgba(28,17,64,.84) 42%, rgba(28,17,64,.97) 68%, rgba(28,17,64,1) 100%);
}
.hero--bg > .wrap { position: relative; z-index: 2; }
@media (max-width: 700px) { .hero--bg .hero__bg { grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(100% / 6); } }

/* Option cards — centered variant (hub) */
.option--center { text-align: center; }
.option--center .option__tag { margin-left: auto; margin-right: auto; }
.option__icon { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }

/* How it works — 4 simple steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* Two-options cards */
.option { border-top: 5px solid var(--green); }
.option--gift { border-top-color: var(--gold); }
.option__tag { display: inline-block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: #e7f6ed; color: var(--green-dark); margin-bottom: 12px; }
.option--gift .option__tag { background: var(--gold-soft); color: #93701a; }
.option__amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Find your Affiliate ID ---------- */
.steps { margin: 6px 0 18px; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.steps code { background: var(--bg); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.id-shots { align-items: start; }
.id-shots figure { margin: 0; }
.id-shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
/* Screenshots differ slightly in aspect ratio, so lock them to equal height
   (uncropped via contain) for a clean side-by-side. Stacks full-size on mobile. */
.id-shot img { width: 100%; height: 380px; object-fit: contain; object-position: center top; display: block; background: #f3f6fa; }
@media (max-width: 860px) { .id-shot img { height: auto; } }
.id-shot figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 14px; }
.id-shot.missing img { display: none; }
.id-shot.missing::before {
  content: "Add screenshot →"; display: flex; align-items: center; justify-content: center; min-height: 170px;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e6ebf2 12px, #e6ebf2 24px);
  color: var(--muted); font-weight: 700; font-size: 0.85rem;
}

/* ---------- Link generator ---------- */
.generator { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.generator h3 { color: #fff; }
.generator .field { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.generator input[type="text"] {
  flex: 1 1 220px; min-width: 0; font-size: 1rem; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid #33465c; background: #0d1620; color: #fff;
}
.generator input::placeholder { color: #6e8197; }
.gen-output { margin-top: 18px; display: none; }
.gen-output.show { display: block; }
.gen-link {
  display: flex; align-items: center; gap: 10px; background: #0d1620; border: 1px solid #2a3b4f;
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px;
}
.gen-link .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.gen-link .label--earn { background: #14532d; color: #b7f7cf; }
.gen-link .label--gift { background: #4d3a0c; color: #fbe6ad; }
.gen-link code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6e2ee; font-size: 0.9rem; }
.gen-hint { font-size: 0.85rem; color: #9fb0c2; }

/* Copy buttons */
.copy-btn {
  background: var(--green); color: #fff; border: 0; border-radius: 7px; padding: 7px 12px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.copy-btn:hover { background: var(--green-dark); }
.copy-btn.copied { background: #0d8a3e; }

/* ---------- Gold "rewards" section ---------- */
.section--gold {
  position: relative;
  border-top: 1px solid #efd9a0;
  border-bottom: 1px solid #efd9a0;
  background:
    radial-gradient(1000px 420px at 50% -25%, rgba(224,168,46,.28) 0%, transparent 62%),
    linear-gradient(180deg, #fcf5e3 0%, #f6e7c6 100%);
}
.section--gold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
}
.section--gold > .wrap { position: relative; z-index: 1; }

/* ---------- Reward ladder ---------- */
.ladder { display: grid; gap: 14px; }
.tier {
  display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--green);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
}
.tier__num { font-size: 1.7rem; font-weight: 800; color: var(--green); line-height: 1; }
.tier__num small { display: block; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tier__body h4 { margin: 0 0 4px; font-size: 1.06rem; }
.tier__body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.tier:nth-child(4){ border-left-color: var(--gold); } .tier:nth-child(4) .tier__num{ color: var(--gold); }
.tier:nth-child(5){ border-left-color: var(--gold); } .tier:nth-child(5) .tier__num{ color: var(--gold); }
.tier:nth-child(6){ border-left-color: var(--blue); } .tier:nth-child(6) .tier__num{ color: var(--blue); }

/* ---------- Swipe copy ---------- */
.swipe { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.swipe__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; }
.swipe__head h4 { margin: 0; font-size: 1.05rem; }
.swipe__toggle { font-size: 1.4rem; color: var(--muted); line-height: 1; transition: transform .2s ease; }
.swipe.open .swipe__toggle { transform: rotate(45deg); }
.swipe__body { display: none; padding: 0 22px 22px; border-top: 1px solid var(--line); }
.swipe.open .swipe__body { display: block; }
.swipe__body .meta { font-size: 0.85rem; color: var(--muted); margin: 14px 0; }
.swipe__body .subjects { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 14px; }
.swipe__body .subjects li { margin-bottom: 5px; }
.swipe-text { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; white-space: pre-wrap; font-size: 0.93rem; }
.swipe__body .copy-btn { margin-top: 12px; }

/* ---------- Banners ---------- */
.banner-card { text-align: center; }
.banner-card .ph {
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 12px, #e6ebf2 12px, #e6ebf2 24px);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; min-height: 120px;
}

/* ---------- Banner gallery ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .banner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .banner-grid { grid-template-columns: 1fr; } }
.banner-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.banner-item img { width: 100%; height: auto; display: block; background: #1c1140; }
.banner-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 0.9rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- Callout / notes ---------- */
.note { background: var(--gold-soft); border: 1px solid #f0dca6; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.92rem; }
.todo { background: #fdeaea; border: 1px solid #f3c2c2; color: #8a2b2b; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c2; padding: 40px 0; margin-top: 40px; }
.site-footer a { color: #c7d2de; text-decoration: none; }
.site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.anchor { scroll-margin-top: 84px; }
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.lead-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
