/* ==========================================================================
   Super Patch affiliate platform — design system
   One light theme, tuned for a trustworthy wellness brand.
   Palette: deep navy ink, aqua/teal brand, warm coral CTA, soft paper bg.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0d1b2a;
  --navy-soft:   #1b3a4b;
  --teal:        #16a4a4;
  --teal-deep:   #0f7d7d;
  --aqua:        #57d0d0;
  --coral:       #ff6b5e;
  --coral-deep:  #e8503f;

  /* Neutrals */
  --ink:         #16232e;
  --ink-soft:    #46586a;
  --line:        #e4e9ee;
  --paper:       #f7f9fb;
  --card:        #ffffff;
  --white:       #ffffff;

  /* System */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(13,27,42,.06), 0 2px 8px rgba(13,27,42,.05);
  --shadow-md:   0 6px 24px rgba(13,27,42,.10);
  --shadow-lg:   0 18px 48px rgba(13,27,42,.16);
  --wrap:        1120px;
  --wrap-narrow: 760px;

  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 650;
  color: var(--teal-deep);
  margin: 0 0 .8rem;
}

.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 620;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255,107,94,.32);
}
.btn-primary:hover { background: var(--coral-deep); color: var(--white); box-shadow: 0 8px 22px rgba(232,80,63,.38); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22,164,164,.28);
}
.btn-teal:hover { background: var(--teal-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,249,251,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--navy); }
.brand .mark { flex: none; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-weight: 550;
  color: var(--ink-soft);
  font-size: .97rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav .btn { color: var(--white); }
.site-nav .btn.btn-ghost { color: var(--navy); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav .nav-links { display: none; }
  .site-nav { gap: 12px; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(87,208,208,.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(22,164,164,.14), transparent 55%),
    var(--paper);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

.hero-art {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 30% 10%, var(--aqua), var(--teal) 45%, var(--teal-deep) 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-art .patch {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 26px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px rgba(13,27,42,.25);
}
.hero-art .patch svg { width: 60%; height: 60%; opacity: .92; }
.hero-art .halo {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%);
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(.85); opacity:.5 } 50% { transform: scale(1.05); opacity:.9 } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 360px; }
  .hero .lead { max-width: none; }
}

/* -------------------------------------------------------------- section -- */
.section { padding-block: clamp(52px, 8vw, 92px); }
.section-head { max-width: 620px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-navy {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(87,208,208,.18), transparent 60%),
    var(--navy);
  color: #cdd8e2;
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .eyebrow { color: var(--aqua); }

/* --------------------------------------------------------- how-it-works -- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  color: var(--white); font-weight: 700; font-family: var(--font-display);
  margin-bottom: 16px; font-size: 1.15rem;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- products -- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe6e6; }
.product-top {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  position: relative;
}
.product-top svg { width: 74px; height: 74px; }
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product .tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); background: rgba(22,164,164,.1);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.product h3 { margin-bottom: .35em; }
.product p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }
.product .btn { margin-top: auto; }

/* palette accents per product-top */
.pt-liberty { background: linear-gradient(135deg,#e0f7f4,#b8ebe6); }
.pt-victory { background: linear-gradient(135deg,#ffe9e4,#ffd0c6); }
.pt-rem     { background: linear-gradient(135deg,#e6e9ff,#cdd4f7); }
.pt-focus   { background: linear-gradient(135deg,#e3f4ff,#c3e4fb); }
.pt-joy     { background: linear-gradient(135deg,#fff2d9,#ffe1ad); }
.pt-peace   { background: linear-gradient(135deg,#e7f7ea,#c9edd0); }
.pt-freedom { background: linear-gradient(135deg,#f2e9ff,#ded0f7); }
.pt-ignite  { background: linear-gradient(135deg,#ffe6ea,#ffc7d1); }
.pt-boost   { background: linear-gradient(135deg,#fff4e0,#ffe0b3); }

/* --------------------------------------------------------------- badges -- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 10px 18px;
  font-size: .9rem; font-weight: 550; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.pill svg { width: 18px; height: 18px; color: var(--teal); }

/* ---------------------------------------------------------- email/lead -- */
.capture {
  background: linear-gradient(135deg, var(--teal-deep), var(--navy-soft));
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  color: #dff0f0;
  box-shadow: var(--shadow-md);
}
.capture h2 { color: var(--white); }
.subscribe-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.subscribe-form input[type="email"] {
  flex: 1 1 260px;
  padding: 15px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.subscribe-form input[type="email"]:focus { outline: 3px solid var(--aqua); outline-offset: 1px; }
.form-note { font-size: .84rem; margin-top: 12px; opacity: .85; }
.form-status { margin-top: 14px; font-weight: 550; min-height: 1.2em; }
.form-status.ok { color: #bff5df; }
.form-status.err { color: #ffd9d2; }

/* ------------------------------------------------------------ link hub -- */
.linkhub {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(87,208,208,.35), transparent 60%),
    var(--navy);
  color: #dbe6ef;
  padding-block: 56px;
}
.linkhub .wrap { max-width: 520px; }
.linkhub-head { text-align: center; margin-bottom: 34px; }
.linkhub-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--aqua), var(--teal-deep));
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.2);
  overflow: hidden;
}
.linkhub-avatar .avatar-photo { width: 100%; height: 100%; object-fit: cover; }
.linkhub-avatar .avatar-fallback { display: none; }
.linkhub-avatar.no-photo .avatar-fallback { display: block; }
.linkhub-head h1 { color: var(--white); font-size: 1.9rem; margin-bottom: .2em; }
.linkhub-head p { color: #a9bccc; margin: 0; }
.link-list { display: flex; flex-direction: column; gap: 14px; }
.link-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 17px 20px;
  color: var(--white);
  font-weight: 560;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.link-btn:hover { background: rgba(255,255,255,.14); color: var(--white); transform: translateY(-2px); border-color: rgba(87,208,208,.6); }
.link-btn .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(87,208,208,.18); display: grid; place-items: center; flex: none; }
.link-btn .ico svg { width: 20px; height: 20px; color: var(--aqua); }
.link-btn .txt { display: flex; flex-direction: column; line-height: 1.25; }
.link-btn .txt small { color: #9fb4c6; font-weight: 450; font-size: .82rem; }
.link-btn .chev { margin-left: auto; opacity: .5; }
.link-featured { background: var(--coral); border-color: var(--coral); }
.link-featured:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.link-featured .ico { background: rgba(255,255,255,.25); }
.link-featured .ico svg, .link-featured .txt small { color: #fff; }
.linkhub-foot { text-align: center; margin-top: 34px; font-size: .84rem; color: #8ea2b4; }
.linkhub-foot a { color: var(--aqua); }

/* --------------------------------------------------------------- blog --- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--aqua), var(--teal-deep)); }
.post-card .cover.c2 { background: linear-gradient(135deg,#ffd0c6,var(--coral)); }
.post-card .cover.c3 { background: linear-gradient(135deg,#cdd4f7,var(--navy-soft)); }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-bottom: .4em; }
.post-card .meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-card .read { margin-top: auto; font-weight: 600; color: var(--teal-deep); }

/* article */
.article { padding-block: clamp(40px, 6vw, 72px); }
.article .wrap { max-width: 720px; }
.article .meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.article h1 { margin-bottom: .4em; }
.article h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article p, .article li { color: #29323c; font-size: 1.08rem; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote {
  margin: 1.6em 0; padding: 4px 22px;
  border-left: 4px solid var(--teal); color: var(--ink-soft); font-style: italic;
}
.article .callout {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 2em 0; box-shadow: var(--shadow-sm);
}
.article .callout h3 { margin-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; margin-bottom: 20px; }

/* --------------------------------------------------------------- misc --- */
.disclaimer {
  background: #fdfaf3; border: 1px solid #f0e6cf; border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: .86rem; color: #6b5f45; margin-top: 22px;
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--navy);
  color: #9fb4c6;
  padding-block: 48px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #b9c9d7; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--aqua); }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #7e93a6; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
