/* WRPM Intelligence landing page (SL-30). Mobile-first; one breakpoint at
   880px switches the stacked phone layout for the side-by-side desktop one
   the canvas draws at 1440. Design tokens from the SL-30 brief. */

:root {
  --navy: #0A1428;
  --deep: #060D1C;
  --panel: #111D35;
  --accent: #4557D6;
  --accent-light: #8E9CFF;
  --accent-text: #3F51D1;
  --tint: #F2F5FC;
  --line: #DCE3F3;
  --text: #0E1A2F;
  --muted: #4B5870;
}

* { box-sizing: border-box; }

body.wrpm {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.wrpm a { color: var(--accent-text); }
body.wrpm a:hover { color: #2B3AA8; }

h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.wrpm-accent { color: var(--accent-text); }
.wrpm-accent-light { color: var(--accent-light); }

.wrpm-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.wrpm-kicker--onaccent { color: var(--accent-light); }

/* ---------- SMASH banner ---------- */
.wrpm-banner {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
body.wrpm .wrpm-banner a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.wrpm-hero {
  position: relative;
  background: var(--navy);
  color: #ffffff;
  overflow: hidden;
}
.wrpm-hero-bg { position: absolute; inset: 0; z-index: 0; }
.wrpm-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.wrpm-hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--navy) 5%, rgba(10,20,40,0) 55%);
}
.wrpm-hero-inner { position: relative; z-index: 1; }

.wrpm-nav {
  min-height: 64px;
  box-sizing: border-box;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wrpm-word { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.wrpm-nav-links { display: none; }
.wrpm-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.wrpm-hero-bg { height: 240px; }
.wrpm-hero-copy {
  box-sizing: border-box;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wrpm-hero-copy h1 { font-size: clamp(34px, 9vw, 42px); }
.wrpm-lede { font-size: 17px; line-height: 1.55; color: #C9D1E6; max-width: 60ch; }

.wrpm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.wrpm-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none !important; }
.wrpm-step-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
}
.wrpm-step-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent-light); }
.wrpm-step-arrow { display: none; }

/* ---------- Feature sections (Altimeter / Flightpath) ---------- */
.wrpm-feature {
  box-sizing: border-box;
  padding: 56px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}
.wrpm-feature-copy { display: flex; flex-direction: column; gap: 16px; }
.wrpm-feature-copy h2 { font-size: clamp(26px, 6vw, 32px); }
.wrpm-feature-copy p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.wrpm-feature-copy p strong { color: var(--text); }

.wrpm-cta {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
}
.wrpm-micro {
  font-size: 11px;
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5B6780;
}

.wrpm-feature-art { position: relative; }
.wrpm-browser {
  margin: 8px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -18px rgba(14,26,47,0.3);
  background: #ffffff;
}
.wrpm-browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.wrpm-browser-dots { display: none; }
.wrpm-browser-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrpm-browser-shot { width: 100%; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; max-height: 70vh; }

/* Decorative floating crop of the same shot — desktop only (see below). */
.wrpm-mini-card { display: none; }

/* ---------- Visibility band ---------- */
.wrpm-band {
  box-sizing: border-box;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--navy);
  color: #ffffff;
}
.wrpm-quote {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: var(--panel);
}
.wrpm-quote p { font-size: 16px; line-height: 1.45; color: #E4E9F5; }
.wrpm-band-copy h2 { font-size: clamp(24px, 6vw, 30px); }

/* ---------- From data to decision ---------- */
.wrpm-decision {
  box-sizing: border-box;
  padding: 56px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--tint);
}
.wrpm-decision h2 { font-size: clamp(26px, 6vw, 32px); }
.wrpm-decision-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.wrpm-decision-card {
  padding: 22px;
  background: #ffffff;
  border-top: 5px solid var(--text);
  border-radius: 4px 4px 12px 12px;
}
.wrpm-decision-card--accent { border-top-color: var(--accent); }
.wrpm-decision-n { font-size: 26px; font-weight: 800; }
.wrpm-decision-card--accent .wrpm-decision-n { color: var(--accent-text); }
.wrpm-decision-t { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.wrpm-decision-d { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Why WRPM ---------- */
.wrpm-why {
  box-sizing: border-box;
  padding: 56px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--navy);
  color: #ffffff;
}
.wrpm-why-copy { display: flex; flex-direction: column; gap: 16px; }
.wrpm-why-copy h2 { font-size: clamp(24px, 6vw, 30px); }
.wrpm-why-copy p { font-size: 16px; line-height: 1.6; color: #C9D1E6; }
.wrpm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.wrpm-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 6px; text-align: center; }
.wrpm-stat:not(:first-child) { border-left: 1px solid rgba(255,255,255,0.18); }
.wrpm-stat-n { font-size: 34px; font-weight: 800; color: var(--accent-light); letter-spacing: -0.02em; }
.wrpm-stat-l { font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #E4E9F5; }

/* ---------- Bring us a community ----------
   The canvas photo placeholder here is a crop that carries baked-in mockup
   text (Casey's PNG export, not a clean stock photo — see the SL-30 report);
   a gradient stands in for it until Wingspan sends a real photo. */
.wrpm-bring {
  position: relative;
  box-sizing: border-box;
  padding: 56px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, #12224A 0%, #0A1428 60%, #060D1C 100%);
}
.wrpm-bring-copy { position: relative; display: flex; flex-direction: column; gap: 16px; }
.wrpm-bring-copy h2 { font-size: clamp(32px, 9vw, 42px); }
.wrpm-bring-copy p { font-size: 16px; line-height: 1.55; color: #E4E9F5; }
.wrpm-bring-tag { font-size: 16px; font-weight: 600; color: #ffffff; }

.wrpm-form {
  position: relative;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.wrpm-form-k { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.wrpm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.wrpm-form input {
  height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #CBD3E6;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  min-width: 0;
}
.wrpm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wrpm-form button {
  margin-top: 6px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.wrpm-form button:hover { background: #34459f; }
.wrpm-consent { font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }
.cf-turnstile { display: flex; justify-content: center; }
.wrpm-form button:disabled { background: #A6AEC7; cursor: not-allowed; }
.wrpm-form-error { margin: -4px 0 4px; font-size: 14px; font-weight: 600; color: #B4272B; }
.wrpm-form-status { margin: -4px 0 4px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.wrpm-form-status--error { color: #B4272B; }
.wrpm-preview-note { margin-top: -4px; font-size: 13px; font-weight: 600; text-align: center; color: var(--accent-text); }

/* ---------- Flightpath lead form (SL-30 Changes item 2) ---------- */
.wrpm-lead {
  box-sizing: border-box;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--tint);
}
.wrpm-lead-copy { display: flex; flex-direction: column; gap: 12px; }
.wrpm-lead-copy h2 { font-size: clamp(24px, 6vw, 30px); }
.wrpm-lead-copy p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.wrpm-lead .wrpm-form { box-shadow: 0 20px 40px -20px rgba(14,26,47,0.2); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.wrpm-footer {
  box-sizing: border-box;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--deep);
  color: #C9D1E6;
}
.wrpm-footer .wrpm-word { color: #ffffff; }
.wrpm-footer p { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.wrpm-footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 600; }
.wrpm-footer-links a { color: #ffffff !important; text-decoration: none; }

/* =====================================================================
   Desktop (>= 880px): side-by-side sections, the full nav, the arrow
   chain between the hero steps, and the floating mini-cards.
   ===================================================================== */
@media (min-width: 880px) {
  .wrpm-nav { min-height: 96px; padding: 0 clamp(24px, 6vw, 120px); }
  .wrpm-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  body.wrpm .wrpm-nav-links a { color: #ffffff; text-decoration: none; }
  .wrpm-pill { height: 44px; }

  .wrpm-hero-bg { height: 720px; width: 55%; right: 0; left: auto; }
  .wrpm-hero-fade { background: linear-gradient(90deg, var(--navy) 0%, rgba(10,20,40,0) 70%); }
  .wrpm-hero-copy { padding: 56px clamp(24px, 6vw, 120px) 88px; max-width: 640px; gap: 22px; }
  .wrpm-hero-copy h1 { font-size: clamp(44px, 4.4vw, 62px); }
  .wrpm-lede { font-size: 20px; }

  .wrpm-steps { display: flex; align-items: flex-start; gap: 14px; }
  .wrpm-step { flex-direction: column; }
  .wrpm-step-btn { width: auto; padding: 0 26px; }
  .wrpm-step-arrow { display: block; margin-top: 14px; color: #C9D1E6; }

  .wrpm-feature {
    padding: 88px clamp(24px, 6vw, 120px);
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .wrpm-feature-copy { width: 460px; flex-shrink: 0; }
  .wrpm-feature-copy h2 { font-size: 42px; }
  .wrpm-feature-art { flex-grow: 1; max-width: 620px; }
  .wrpm-browser-shot { max-height: none; }
  .wrpm-browser--altimeter .wrpm-browser-shot { aspect-ratio: 1600 / 1125; }
  .wrpm-browser--flightpath .wrpm-browser-shot { aspect-ratio: 1280 / 800; }

  .wrpm-mini-card {
    display: block;
    position: absolute;
    left: -40px;
    bottom: -28px;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(14,26,47,0.32);
  }
  .wrpm-mini-card img { width: 100%; height: auto; aspect-ratio: 1600 / 1125; object-fit: cover; object-position: top; }
  .wrpm-mini-card--signals img { object-position: 0 15%; }

  .wrpm-band {
    flex-direction: row;
    align-items: center;
    gap: 72px;
    padding: 64px clamp(24px, 6vw, 120px);
  }
  .wrpm-quote { width: 420px; flex-shrink: 0; }
  .wrpm-band-copy { display: flex; flex-direction: column; gap: 14px; }
  .wrpm-band-copy h2 { font-size: 40px; }

  .wrpm-lead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding: 64px clamp(24px, 6vw, 120px);
  }
  .wrpm-lead-copy { width: 480px; flex-shrink: 0; }
  .wrpm-lead-copy h2 { font-size: 34px; }
  .wrpm-lead .wrpm-form { width: 400px; flex-shrink: 0; }

  .wrpm-decision { padding: 72px clamp(24px, 6vw, 120px); gap: 32px; }
  .wrpm-decision-grid { flex-direction: row; gap: 24px; }
  .wrpm-decision-card { flex: 1; padding: 28px 28px 32px; }
  .wrpm-decision-n { font-size: 32px; }

  .wrpm-why {
    flex-direction: row;
    align-items: center;
    gap: 72px;
    padding: 72px clamp(24px, 6vw, 120px);
  }
  .wrpm-why-copy { width: 500px; flex-shrink: 0; }
  .wrpm-why-copy h2 { font-size: 40px; }
  .wrpm-stats { flex-grow: 1; }
  .wrpm-stat-n { font-size: 52px; }

  .wrpm-bring {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 72px clamp(24px, 6vw, 120px);
    gap: 48px;
  }
  .wrpm-bring-copy { width: 560px; flex-shrink: 0; }
  .wrpm-bring-copy h2 { font-size: 60px; }
  .wrpm-form { width: 420px; flex-shrink: 0; }

  .wrpm-footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 48px clamp(24px, 6vw, 120px);
  }
}
