/* MS Peptides handbook funnel — local stylesheet only. Swap nothing here for the domain. */
:root {
  --cyan: #00A0E9;
  --cyan-dark: #0078b8;
  --cyan-ink: #045f8c;
  --cyan-soft: #e8f6fd;
  --ink: #0c1524;
  --ink-soft: #243044;
  --muted: #5a6a7d;
  --line: #e3eaf2;
  --bg: #f4f7fb;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #067647;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 21, 36, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--cyan-ink); }
a:hover { color: var(--cyan-dark); }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand-fallback {
  display: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.brand img[src=""] + .brand-fallback,
.brand.no-logo img { display: none; }
.brand.no-logo .brand-fallback { display: block; }

.ruo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  background: var(--cyan-soft);
  border: 1px solid #c5e8f8;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding: 56px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 34em;
}

.hero-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.hero-points li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
}

.form-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.form-card .form-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label.field-label {
  font-size: 13px;
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  border: 1.5px solid #cfd8e3;
  border-radius: 10px;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fbfcfe;
}

input[type="email"]:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: var(--cyan);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 15px 18px;
  background: var(--cyan);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--cyan-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #1a2738;
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

.form-error,
.form-note {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.form-error {
  background: #fef3f2;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.form-note {
  background: #eff8ff;
  color: var(--cyan-ink);
  border: 1px solid #b9e0f5;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.consent input { margin-top: 3px; }

#omnisend-embed-slot:empty { display: none; }
#omnisend-embed-slot.has-form { display: block; margin-top: 4px; }
body.embed-ready #fallback-form { display: none; }

/* Sections */
section { padding: 64px 0; }

.section-muted { background: var(--white); border-block: 1px solid var(--line); }

h2.section-title {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.section-muted .card { background: var(--bg); }

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.icon-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* What's inside */
.inside-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.handbook {
  width: min(280px, 100%);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.18) 0 10px, transparent 10px),
    linear-gradient(180deg, #07314a 0%, #0c1524 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow: 14px 18px 40px rgba(12, 21, 36, 0.22);
  color: var(--white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.handbook::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, #2bb4f0, #0078b8);
  border-radius: 4px 0 0 4px;
}

.handbook .kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ed8f3;
}

.handbook h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 12px 0 0;
}

.handbook p {
  margin: 0;
  font-size: 13px;
  color: #c9d7e4;
}

.inside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.inside-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.inside-list li:last-child { border-bottom: 0; }

.inside-list strong { display: block; margin-bottom: 2px; }
.inside-list span { color: var(--muted); font-size: 14px; }

.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--cyan-ink);
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.trust-panel {
  background: var(--ink);
  color: #e8eef5;
  border-radius: 16px;
  padding: 28px;
}

.trust-panel h3 { margin: 0 0 10px; color: #fff; }
.trust-panel p { margin: 0; color: #c5d0dc; }
.trust-panel a { color: #7ecff3; }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  float: right;
  color: var(--cyan-ink);
  font-weight: 700;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* Mid CTA */
.cta-band {
  background: linear-gradient(180deg, #0c1524, #12344c);
  color: #fff;
  padding: 56px 0;
}

.cta-band h2 { color: #fff; }
.cta-band .section-lead { color: #c9d7e4; }
.cta-band a.btn { max-width: 360px; margin: 0 auto; display: flex; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c5d0dc;
  padding: 36px 0 24px;
  font-size: 13px;
}

.site-footer a { color: #9ed8f3; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #243044;
  margin-bottom: 16px;
}

.disclaimer {
  max-width: 820px;
  margin: 0 0 14px;
  color: #9aa8b8;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Inner pages */
.page-main {
  padding: 56px 0 72px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.prose h1 { font-size: 34px; }
.template-banner {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

.thanks-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
}

.thanks-card h1 { font-size: 36px; }
.thanks-card .btn { width: auto; min-width: 260px; margin-top: 12px; }

.check-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
}

@media (max-width: 880px) {
  .hero-grid,
  .inside-grid,
  .trust-grid,
  .cards,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 32px; }
  section { padding: 48px 0; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .ruo-pill { font-size: 10px; padding: 5px 9px; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 62px; }
  .brand img { height: 32px; }
  .form-card, .prose, .thanks-card { padding: 22px 18px; }
  h1 { font-size: 30px; }
}
