@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ── Design tokens ──────────────────────────────────────────────────────── */
#gfp-app {
  --navy: oklch(0.16 0.015 260);
  --navy-2: oklch(0.22 0.02 260);
  --navy-border: oklch(0.3 0.015 260);
  --amber: oklch(0.72 0.14 55);
  --amber-hover: oklch(0.78 0.14 55);
  --amber-dim: oklch(0.72 0.14 55 / 0.18);
  --cream: oklch(0.98 0.005 90);
  --text: oklch(0.2 0.01 90);
  --text-muted: oklch(0.45 0.01 90);
  --text-faint: oklch(0.6 0.01 90);
  --border: oklch(0.9 0.01 90);
  --border-2: oklch(0.87 0.01 90);
  --white: #ffffff;

  /* 5-tier maturity severity ramp — validated for CVD/normal-vision separation
     and contrast against --cream via dataviz skill's validate_palette.js. */
  --m-critical: #c33a2e;
  --m-reactive: #e8802a;
  --m-developing: #8f6a10;
  --m-structured: #7bb56a;
  --m-optimized: #197a4c;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;

  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: block;
}

#gfp-app * { box-sizing: border-box; }
#gfp-app h1, #gfp-app h2, #gfp-app h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
}
#gfp-app p { margin: 0; }
#gfp-app a { color: var(--amber); text-decoration: none; }
#gfp-app a:hover { color: oklch(0.6 0.14 55); }
/* .gfp-btn variants set their own text color — #gfp-app a above otherwise wins
   on specificity and makes <a class="gfp-btn..."> text invisible against its
   own background. */
#gfp-app a.gfp-btn--primary, #gfp-app a.gfp-btn--primary:hover { color: var(--navy); }
#gfp-app a.gfp-btn--dark, #gfp-app a.gfp-btn--dark:hover { color: white; }
#gfp-app button { font-family: inherit; }
#gfp-app ::selection { background: oklch(0.7 0.15 55 / 0.3); }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.gfp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.gfp-wrap--narrow { max-width: 900px; }
.gfp-wrap--narrower { max-width: 760px; }
.gfp-wrap--form { max-width: 680px; }
.gfp-section { padding: 88px 0; }
.gfp-section--tight { padding: 56px 0; }
.gfp-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.gfp-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.gfp-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  padding: 17px 38px; cursor: pointer;
  transition: background-color 0.15s ease;
  display: inline-block;
}
.gfp-btn--primary { background: var(--amber); color: var(--navy); }
.gfp-btn--primary:hover { background: var(--amber-hover); }
.gfp-btn--dark { background: oklch(0.2 0.01 90); color: white; }
.gfp-btn--dark:hover { background: oklch(0.1 0.01 90); }
.gfp-btn--ghost {
  background: none; color: var(--text-muted); border: none;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; cursor: pointer; padding: 0;
}
.gfp-btn--block { width: 100%; text-align: center; }
.gfp-btn--sm { padding: 13px 18px; font-size: 14px; }
.gfp-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.gfp-progress-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.gfp-progress-track--sm { height: 5px; }
.gfp-progress-fill { height: 100%; background: var(--amber); border-radius: 3px; transition: width 0.3s ease; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.gfp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.gfp-field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: oklch(0.25 0.01 90); }
.gfp-input, .gfp-select {
  width: 100%; box-sizing: border-box; font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid oklch(0.85 0.01 90); background: var(--white); color: var(--text);
}

/* ── Intro hero ──────────────────────────────────────────────────────────── */
.gfp-hero { min-height: 92vh; background: var(--navy); color: oklch(0.96 0.005 90); display: flex; flex-direction: column; }
.gfp-hero-inner { max-width: 1180px; margin: 0 auto; padding: 88px 32px 56px; flex: 1; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.gfp-hero-copy { flex: 1; min-width: 320px; text-align: left; }
.gfp-hero-copy h1 { font-size: 48px; line-height: 1.1; margin: 0 0 24px; }
.gfp-hero-copy p { font-size: 18px; line-height: 1.6; color: oklch(0.82 0.01 90); max-width: 520px; margin: 0 0 36px; }
.gfp-hero-stats { display: flex; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.gfp-hero-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: var(--amber); }
.gfp-hero-stat-label { font-size: 13px; color: oklch(0.7 0.01 90); }
.gfp-hero-note { font-size: 13px; color: oklch(0.6 0.01 90); margin-top: 16px; }
.gfp-hero-card-wrap { flex: 0 0 340px; position: relative; }
.gfp-hero-card { background: white; border-radius: 14px; box-shadow: 0 30px 70px -20px oklch(0 0 0 / 0.5); overflow: hidden; transform: rotate(1.5deg); }
.gfp-hero-card-bar { height: 6px; background: linear-gradient(90deg, var(--amber), oklch(0.8 0.13 85)); }
.gfp-hero-card-head { padding: 28px 28px 8px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }

/* ── Problem stat grid ───────────────────────────────────────────────────── */
.gfp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; text-align: left; }
.gfp-stat-cell { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 20px; }
.gfp-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; color: var(--amber); line-height: 1; margin-bottom: 10px; }
.gfp-stat-label { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

/* ── How it works / grids ────────────────────────────────────────────────── */
.gfp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gfp-step-card { background: white; border-radius: var(--radius-md); padding: 32px; border: 1px solid var(--border); }
.gfp-step-num { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; color: var(--amber); margin-bottom: 16px; }
.gfp-step-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.gfp-step-body { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.gfp-pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.gfp-pillar-cell { background: white; padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; }
.gfp-pillar-idx { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--amber); flex-shrink: 0; width: 24px; }
.gfp-pillar-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.gfp-pillar-blurb { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.gfp-deliverables { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.gfp-deliverable { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--navy-border); }
.gfp-deliverable-num { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--amber); flex-shrink: 0; }
.gfp-deliverable-text { font-size: 16px; line-height: 1.55; color: oklch(0.85 0.01 90); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.gfp-faq-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.gfp-faq-q { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.gfp-faq-a { font-size: 15px; line-height: 1.6; color: oklch(0.42 0.01 90); }

/* ── Pricing tiers ───────────────────────────────────────────────────────── */
.gfp-plans-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.gfp-plan { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.gfp-plan--light { background: white; border: 1px solid var(--border); }
.gfp-plan--dark { background: var(--navy); color: white; position: relative; box-shadow: 0 20px 50px -20px oklch(0 0 0 / 0.4); }
.gfp-plan-badge { position: absolute; top: -12px; left: 32px; background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; }
.gfp-plan-name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.gfp-plan-sub { font-size: 13px; margin-bottom: 20px; }
.gfp-plan-price { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; }
.gfp-plan-price-row { display: flex; align-items: baseline; gap: 10px; }
.gfp-plan-price-strike { font-size: 14px; text-decoration: line-through; }
.gfp-plan-price-note { font-size: 12px; margin: 4px 0 20px; }
.gfp-plan-features { display: flex; flex-direction: column; gap: 13px; }
.gfp-feature-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.gfp-feature-icon { flex-shrink: 0; margin-top: 2px; }

/* ── Profile form ────────────────────────────────────────────────────────── */
.gfp-profile-fields { display: flex; flex-direction: column; gap: 24px; }
.gfp-profile-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; }
.gfp-step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gfp-step-count { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ── Domain pick ─────────────────────────────────────────────────────────── */
.gfp-domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gfp-domain-opt {
  text-align: left; font-family: 'IBM Plex Sans', sans-serif; padding: 20px 22px; border-radius: 6px;
  border: 1.5px solid var(--border-2); background: white; cursor: pointer; display: flex; gap: 14px;
  align-items: flex-start; color: var(--text); width: 100%;
}
.gfp-domain-opt:hover { border-color: var(--amber); background: oklch(0.97 0.03 55); }
.gfp-domain-idx {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid oklch(0.7 0.01 90);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-muted);
}

/* ── Audit ───────────────────────────────────────────────────────────────── */
.gfp-audit-shell { min-height: 100vh; display: flex; flex-direction: column; }
.gfp-audit-topbar { position: sticky; top: 0; background: oklch(0.98 0.005 90 / 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); padding: 20px 32px; z-index: 10; }
.gfp-audit-topbar-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.gfp-audit-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.gfp-audit-question { max-width: 640px; width: 100%; }
.gfp-audit-dimension { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.gfp-audit-text { font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1.35; font-weight: 700; margin: 0 0 36px; }
.gfp-answers { display: flex; flex-direction: column; gap: 12px; }
.gfp-answer-btn {
  text-align: left; font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; padding: 18px 22px; border-radius: 6px;
  border: 1.5px solid var(--border-2); background: white; cursor: pointer; display: flex; align-items: center; gap: 16px;
  color: var(--text); width: 100%;
}
.gfp-answer-btn:hover { border-color: var(--amber); background: oklch(0.97 0.03 55); }
.gfp-answer-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid oklch(0.7 0.01 90);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--text-muted);
}

/* ── Interstitial ────────────────────────────────────────────────────────── */
.gfp-interstitial { min-height: 100vh; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.gfp-interstitial-inner { max-width: 560px; text-align: center; }
.gfp-interstitial-title { font-size: 32px; margin: 0 0 12px; }
.gfp-interstitial-maturity { font-size: 16px; font-weight: 600; color: oklch(0.75 0.13 55); margin-bottom: 32px; }
.gfp-interstitial-fact { background: var(--navy-2); border-radius: var(--radius-md); padding: 28px; margin-bottom: 36px; text-align: left; }
.gfp-interstitial-fact-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.gfp-interstitial-fact-body { font-size: 16px; line-height: 1.6; color: oklch(0.88 0.01 90); }
.gfp-interstitial-next { font-size: 14px; color: oklch(0.65 0.01 90); margin-bottom: 28px; }

/* ── Results / scorecard ─────────────────────────────────────────────────── */
.gfp-results-header { background: var(--navy); color: white; padding: 72px 32px 56px; }
.gfp-results-header-row { display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.gfp-score-hero { font-family: 'Space Grotesk', sans-serif; font-size: 76px; font-weight: 700; line-height: 1; }
.gfp-score-hero-maturity { font-size: 16px; color: oklch(0.75 0.13 55); font-weight: 600; margin-top: 8px; }
.gfp-score-summary { flex: 1; min-width: 280px; font-size: 16px; line-height: 1.65; color: oklch(0.85 0.01 90); }

.gfp-scorecard { display: flex; flex-direction: column; gap: 14px; }
.gfp-score-row-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.gfp-score-bar-track { height: 10px; background: oklch(0.92 0.01 90); border-radius: 5px; overflow: hidden; }
.gfp-score-bar-fill { height: 100%; border-radius: 5px; }
.gfp-score-locked { opacity: 0.6; filter: blur(3px); }

.gfp-results-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gfp-info-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.gfp-info-card-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.gfp-info-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.gfp-info-card-body { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.gfp-constraint-box { background: oklch(0.95 0.03 55); border: 1px solid oklch(0.82 0.06 55); border-radius: var(--radius-md); padding: 32px; }
.gfp-constraint-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.5 0.12 55); margin-bottom: 10px; }
.gfp-constraint-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.gfp-constraint-body { font-size: 15px; line-height: 1.6; color: oklch(0.3 0.01 90); }

.gfp-nextbuild-box { background: var(--navy); color: white; border-radius: var(--radius-md); padding: 40px; text-align: center; }
.gfp-nextbuild-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.gfp-nextbuild-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.gfp-nextbuild-body { font-size: 15px; color: oklch(0.82 0.01 90); max-width: 520px; margin: 0 auto 28px; line-height: 1.6; }

/* ── Radar chart ─────────────────────────────────────────────────────────── */
.gfp-radar-wrap { max-width: 480px; margin: 0 auto 40px; }
.gfp-radar-svg text { font-family: 'IBM Plex Sans', sans-serif; }

/* ── Unlock CTA panels (freeResults / plans upsell) ─────────────────────── */
.gfp-unlock-msg { font-size: 13px; margin-top: 12px; text-align: center; }

/* ── Email gate ──────────────────────────────────────────────────────────── */
.gfp-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.gfp-lead-error { color: var(--m-critical); font-size: 14px; margin-top: 16px; }
.gfp-consent-label { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--text-muted); text-align: left; cursor: pointer; }
.gfp-consent-label input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--amber); }
.gfp-consent-label a { color: inherit; text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gfp-plans-grid { grid-template-columns: 1fr; }
  .gfp-results-grid-2 { grid-template-columns: 1fr; }
  .gfp-grid-3 { grid-template-columns: 1fr; }
  .gfp-pillar-grid { grid-template-columns: 1fr; }
  .gfp-domain-grid { grid-template-columns: 1fr; }
  .gfp-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .gfp-wrap { padding: 0 20px; }
  .gfp-section { padding: 56px 0; }
  .gfp-hero-inner { padding: 56px 20px 40px; }
  .gfp-hero-copy h1 { font-size: 32px; }
  .gfp-hero-copy p { font-size: 16px; }
  .gfp-hero-card-wrap { flex: 1 1 100%; transform: none; }
  .gfp-hero-card { transform: none; }
  .gfp-audit-text { font-size: 22px; }
  .gfp-score-hero { font-size: 52px; }
  .gfp-results-header-row { gap: 28px; }
  .gfp-nextbuild-box { padding: 28px 20px; }
  .gfp-constraint-box { padding: 24px 20px; }
  .gfp-btn { padding: 15px 24px; }
}
