/* Brand tokens (--accent, --ink, --bg, --bg-alt, --muted, --radius, --font-sans, --font-display)
   are set in brand.css, which is generated per page from the admin config. Do not redefine them here. */

:root {
  --max-width: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }

/* Nav — pill overlays the hero so the page starts cleanly at the top */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 20px 24px 0;
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 18px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(15, 28, 56, 0.18);
}
.nav__logo { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; display: inline-flex; align-items: center; }
.nav__logo-img { display: block; height: 28px; width: auto; max-width: 180px; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: var(--ink); font-size: 14px; font-weight: 500; }
.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav__cta:hover { text-decoration: none; opacity: 0.92; }

/* Hero — deep gradient background, white copy, illustration on right */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(0, 174, 239, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #0c1d3d 60%, var(--accent) 140%);
  color: #fff;
  padding: 148px 24px 120px;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__headline {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
}
.hero__subhead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 32px;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.hero__media {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  overflow: hidden;
}
.hero__media img { border-radius: var(--radius); }

/* Gated asset hero (optional) — split copy + lead form, replaces standard hero */
.gated-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(0, 174, 239, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #0c1d3d 60%, var(--accent) 140%);
  color: #fff;
  padding: 148px 24px 120px;
}
.gated-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.gated-hero__headline {
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
}
.gated-hero__subhead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
  max-width: 560px;
}
.gated-hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.gated-hero__points li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.4;
}
.gated-hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
}
.gated-hero__media {
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gated-hero__media img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.gated-hero__card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(6, 18, 40, 0.35);
}
.gated-hero__form-col { display: grid; gap: 20px; align-content: start; }
.gated-hero__published {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
/* Hide the caption + block until a logo has actually been uploaded */
.gated-hero__published:not(:has(img)) { display: none; }
.gated-hero__published-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.gated-hero__published-logo { display: inline-flex; }
.gated-hero__published-logo img {
  display: block;
  max-height: 44px;
  max-width: 180px;
  width: auto;
  height: auto;
}
.gated-hero__card-title { font-size: 22px; margin: 0 0 8px; color: var(--ink); line-height: 1.2; }
.gated-hero__card-subhead { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.gated-hero__card .lead-form__form {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  gap: 14px;
}
.lead-form__unlock {
  display: grid;
  gap: 14px;
  text-align: center;
}
.lead-form__unlock-text { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }

/* Multi-step lead form */
.lead-form__step { display: grid; gap: 14px; }
.lead-form__step-count {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead-form__nav { display: flex; gap: 12px; }
.lead-form__nav .cta { flex: 1; margin-top: 0; }
.gated-hero__card .cta--ghost { color: var(--ink) !important; border-color: rgba(26, 43, 74, 0.25); }
.gated-hero__card .cta--ghost:hover { background: rgba(26, 43, 74, 0.05); }

/* CTAs */
.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.12s ease;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
.cta--primary { background: var(--accent); color: #fff !important; }
.cta--primary:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }
.cta--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta--ghost:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.hero__content > .cta {
  margin: 0 12px 12px 0;
  vertical-align: top;
}
.hero__content > .cta--ghost { margin-left: 0; }

/* Value points */
.value-points {
  background: var(--bg);
  padding: 96px 24px;
}
.value-points__intro {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  text-align: center;
}
.value-points__intro h2 { font-size: 34px; margin: 0 0 12px; color: var(--ink); }
.value-points__intro p { color: var(--muted); font-size: 16px; margin: 0; }
.value-points__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-point {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(26, 43, 74, 0.06);
}
.value-point__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin-bottom: 18px;
}
.value-point h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.value-point p { margin: 0; color: var(--muted); }

/* Stats strip (optional) */
.stats { background: var(--bg); padding: 64px 24px; border-bottom: 1px solid rgba(26, 43, 74, 0.06); }
.stats__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* Problem (optional) */
.problem { background: var(--bg); padding: 96px 24px; }
.problem__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.problem__media {
  background: var(--bg-alt);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.problem__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.problem__headline { font-size: 32px; margin: 0 0 18px; color: var(--ink); line-height: 1.18; }
.problem__body { color: var(--muted); font-size: 16px; }
.problem__body p { margin: 0 0 14px; }
.problem__body p:last-child { margin-bottom: 0; }

/* FAQ (optional) */
.faq { background: var(--bg); padding: 96px 24px; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__headline { font-size: 28px; margin: 0 0 30px; color: var(--ink); text-align: center; }
.faq__items { display: flex; flex-direction: column; gap: 12px; }
.faq__items details {
  background: var(--bg-alt);
  border: 1px solid rgba(26, 43, 74, 0.06);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq__items summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__items summary::-webkit-details-marker { display: none; }
.faq__items summary::after {
  content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1;
}
.faq__items details[open] summary::after { content: '−'; }
.faq__items .faq-item__body { margin-top: 12px; color: var(--muted); font-size: 16px; }
.faq__items .faq-item__body p { margin: 0 0 10px; }
.faq__items .faq-item__body p:last-child { margin-bottom: 0; }

/* Lead form (optional) */
.lead-form { background: var(--bg-alt); padding: 96px 24px; }
.lead-form__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.lead-form__headline { font-size: 32px; margin: 0 0 12px; color: var(--ink); line-height: 1.18; }
.lead-form__subhead { color: var(--muted); font-size: 16px; margin: 0; }
.lead-form__form {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 43, 74, 0.08);
  display: flex; flex-direction: column; gap: 16px;
}
.lead-form__field { display: flex; flex-direction: column; gap: 6px; }
.lead-form__field span { font-size: 13px; font-weight: 600; color: var(--ink); }
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  padding: 12px 14px;
  border: 1px solid rgba(26, 43, 74, 0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}
.lead-form__field textarea { resize: vertical; min-height: 96px; }
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
.lead-form__consent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.lead-form__consent p { margin: 0; }
.lead-form__consent-row {
  width: 100%;
}
.lead-form__consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
}
.lead-form__consent-check input { margin-top: 2px; }
.lead-form__form .cta { margin-top: 8px; text-align: center; border: 0; cursor: pointer; font-family: inherit; }
.lead-form__status { margin: 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.lead-form__status[data-status="success"] { color: #147A3F; }
.lead-form__status[data-status="error"] { color: #B42318; }

/* Asset download card (optional) */
.assets { background: var(--bg); padding: 96px 24px; }
.assets__inner {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(26, 43, 74, 0.06);
}
.assets__media {
  background: var(--bg);
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.assets__media img { width: 100%; height: 100%; object-fit: cover; }
.assets__title { font-size: 24px; margin: 0 0 12px; color: var(--ink); line-height: 1.2; }
.assets__description { color: var(--muted); font-size: 16px; margin: 0 0 20px; }

/* Social proof */
.social-proof {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.social-proof__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.social-proof h2 { font-size: 26px; margin: 0 0 32px; color: var(--ink); }
.social-proof__logos {
  list-style: none; padding: 0;
  margin: 0 0 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.social-proof__logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.social-proof__logos img {
  display: block;
  max-width: 160px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.9;
}
.social-proof__quote {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.45;
}
.social-proof__quote cite {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

/* Footer CTA */
.cta-footer {
  background: var(--ink);
  color: #fff;
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 100%, rgba(0, 174, 239, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-footer__inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-footer h2 {
  font-size: 34px;
  margin: 0 0 28px;
  color: #fff;
}

footer {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg);
}
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .nav { padding-top: 16px; }
  .nav__inner { padding: 10px 14px 10px 18px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding-top: 118px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__headline { font-size: 34px; }
  .hero__subhead { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .cta,
  .hero__content > .cta { width: min(100%, 360px); }
  .value-points__grid { grid-template-columns: 1fr; }
  .cta-footer h2 { font-size: 26px; }
  .stats__inner { grid-template-columns: 1fr; gap: 24px; }
  .stat-item__value { font-size: 38px; }
  .problem__inner { grid-template-columns: 1fr; gap: 32px; }
  .problem__headline { font-size: 26px; }
  .lead-form__inner { grid-template-columns: 1fr; gap: 32px; }
  .lead-form__headline { font-size: 26px; }
  .gated-hero { padding-top: 118px; }
  .gated-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .gated-hero__headline { font-size: 32px; }
  .gated-hero__subhead { font-size: 16px; }
  .gated-hero__card { padding: 24px; }
  .assets__inner { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
