/* One Page Advance — brand tokens pulled from the One Page Advance Brand + ISO Guide */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-700.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/work-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/work-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
}

:root {
  --ink: #14171a;
  --panel: #40454a;
  --paper: #faf7f2;
  --petrol: #0e8c82;
  --line: #dad5cc;
  --muted: #6b6660;
  --ember: #ff5a36;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.ember {
  color: var(--ember);
}

/* ---------- Header ---------- */

.site-header {
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  text-decoration: none;
}

.logo-icon {
  height: clamp(34px, 9vw, 68px);
  width: auto;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 5.2vw, 2.6rem);
  line-height: 1;
  color: var(--petrol);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  padding: 42px 0 56px;
}

.hero .wrap {
  display: grid;
  gap: 32px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.05;
  color: var(--petrol);
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-family: var(--font-body);
  font-weight: 400;
}

.hero-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.hero-arrow {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  transform: rotate(-15deg);
  margin-top: -8px;
  margin-right: -20px;
  margin-bottom: 43px;
}

.hero-actions-wrapper .btn-primary {
  flex: 1 1 0;
  display: block;
  text-align: center;
  padding: 8px 56px;
  font-size: 45px;
  font-weight: 600;
  min-width: 0;
  width: 90%;
  margin-top: 0;
}

.mobile-break {
  display: none;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ember);
  color: var(--paper);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #e64b28;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  padding: 0 0 20px;
}

.footnote {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}

.footnote a {
  color: var(--petrol);
}

/* ---------- Qualify ---------- */

.qualify {
  padding: 24px 0 72px;
}

.qualify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.qualify-col {
  background: #fff;
  padding: 30px 32px 10px;
}

.qualify-col h3 {
  font-size: 1.5rem;
}

.qualify-col ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.qualify-col li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #2a2e30;
  font-size: 1.15rem;
}

.qualify-col li:first-child {
  border-top: none;
}

/* ---------- Lead form ---------- */

.lead {
  padding: 0 0 88px;
}

.lead-panel {
  background: var(--panel);
  color: var(--paper);
  border-radius: 20px;
  padding: 48px 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.lead-intro {
  display: flex;
  flex-direction: column;
}

.lead-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--paper);
}

.lead-intro p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #c9c6c1;
  max-width: 40ch;
  font-family: var(--font-body);
  font-weight: 400;
}

.lead-intro ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.lead-intro li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.lead-intro li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--paper);
  font-weight: 900;
  font-size: 24px;
}

.lead-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
  padding: 24px 0;
}

.lead-graphic svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  transform: rotate(-9deg);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.lg-page {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2.5;
}

.lg-fold {
  fill: var(--petrol);
  opacity: 0.55;
}

.lg-line {
  stroke: #babfc2;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.6;
}

.lg-badge {
  fill: var(--ember);
}

.lg-check {
  stroke: var(--paper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #c9c6c1;
}

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 15px 16px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--petrol);
}

/* Honeypot: kept in the DOM and tab order avoided, but hidden from sighted users */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  font-size: 14px;
  margin-top: 4px;
}

.form-status[data-state="error"] {
  color: #ff9a7f;
}

.form-status[data-state="success"] {
  color: #7fe0c9;
}

.lead-form .btn-primary {
  width: 100%;
  text-align: center;
  border: none;
  margin-top: 28px;
}

.lead-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.turnstile-slot {
  margin: 18px 0;
}

.turnstile-slot a,
.turnstile-slot a:visited {
  color: var(--petrol);
}
.turnstile * {
  color: white !important;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 13px;
}

.footer-row a {
  text-decoration: none;
  color: var(--muted);
}

.footer-row a:hover {
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .wrap {
  max-width: 780px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: #2a2e30;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--petrol);
  background: #fff;
  border-radius: 4px;
  color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .lead-panel {
    grid-template-columns: 1fr;
  }

  .lead-graphic {
    display: none;
  }

  .qualify-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mobile-break {
    display: inline;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-kicker {
    font-size: clamp(1.15rem, 5.4vw, 2.2rem);
    white-space: nowrap;
  }

  .hero-actions-wrapper .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .lead-panel {
    padding: 32px 24px;
  }
}
