/* ──────────────────────────────────────────────────
   FOURSIGHT — home page (StoryBrand structure)
   ────────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --bg-dark:    #00103E;
  --bg-dark-2:  #001A5C;
  --blue:       #1E90FF;
  --blue-glow:  #4DA8FF;
  --blue-deep:  #0046C8;
  --gold:       #F4B740;
  --paper:      #FFFFFF;
  --paper-soft: #F2F5FB;
  --ink:        #0A1A4A;
  --ink-soft:   #475266;
  --ink-faint:  #8794AB;
  --line:       #E0E7F2;

  /* Typography */
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }
@media (max-width: 720px) {
  section { padding: 4rem 0; }
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 200ms var(--ease), background 200ms ease, color 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.85rem; font-size: 1rem; }

.btn-primary {
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 6px 24px rgba(30, 144, 255, 0.22);
}
.btn-primary:hover {
  background: var(--blue-glow);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(30, 144, 255, 0.32);
}

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

/* ── Nav ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 36px; height: 36px; }
.brand-name {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--blue); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── Section bits ───────────────────────────────── */
.section-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.section-tag.light { color: var(--blue-glow); }

.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
  color: var(--ink);
}
.section-title.light { color: var(--paper); }
.muted { color: var(--ink-faint); font-weight: 400; }
.muted-light { color: var(--muted-light, #8FA0C0); font-weight: 400; }
.emphasis { color: var(--ink); font-weight: 600; }
.highlight { color: var(--blue); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

/* ──────────────────────────────────────────────────
   HERO
─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  padding: 5rem 0 7rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-trust {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.4) 0%, rgba(30, 144, 255, 0) 70%);
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  animation: float 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
  background: radial-gradient(circle, rgba(77, 168, 255, 0.5) 0%, rgba(77, 168, 255, 0) 70%);
  animation-delay: -4s;
}
.hero-mark {
  width: 60%;
  max-width: 280px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(0, 16, 62, 0.2));
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -2%) scale(1.05); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ──────────────────────────────────────────────────
   PROBLEM
─────────────────────────────────────────────────── */
.problem {
  background: var(--paper);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  padding: 2rem;
  background: var(--paper-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 300ms var(--ease), border-color 200ms ease;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}
.problem-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--blue-glow);
  margin-bottom: 1.25rem;
}
.problem-icon svg { width: 22px; height: 22px; }
.problem-card h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.problem-card p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.problem-conclusion {
  font-size: 1.15rem;
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 3rem auto 0;
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────
   GUIDE
─────────────────────────────────────────────────── */
.guide {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.guide::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.guide-lede {
  font-size: 1.05rem;
  color: #B4C0D7;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 56ch;
}
.guide-credentials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.credential {
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
}
.credential-stat {
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.credential-unit {
  font-size: 0.6em;
  color: var(--blue-glow);
  margin-left: 0.1em;
}
.credential-label {
  font-size: 0.85rem;
  color: #8FA0C0;
  line-height: 1.45;
}

/* ──────────────────────────────────────────────────
   PLAN
─────────────────────────────────────────────────── */
.plan {
  background: var(--paper-soft);
}
.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: plan;
}
@media (max-width: 900px) {
  .plan-steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
.plan-step {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.plan-number {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.plan-step h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
  line-height: 1.25;
}
.plan-step p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ──────────────────────────────────────────────────
   CONTRAST (success vs failure)
─────────────────────────────────────────────────── */
.contrast {
  background: var(--paper);
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .contrast-grid { grid-template-columns: 1fr; }
}
.contrast-col {
  padding: 2.25rem;
  border-radius: 8px;
}
.contrast-without {
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.contrast-with {
  background: var(--bg-dark);
  color: var(--paper);
}
.contrast-heading {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.contrast-without .contrast-heading { color: var(--ink-faint); }
.contrast-with .contrast-heading { color: var(--blue-glow); }

.contrast-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  font-size: 0.97rem;
  line-height: 1.5;
  border-bottom: 1px solid;
}
.contrast-without .contrast-list li {
  border-bottom-color: var(--line);
  color: var(--ink-soft);
}
.contrast-with .contrast-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #C4CFE3;
}
.contrast-list li:last-child { border-bottom: none; }

.contrast-list li::before {
  position: absolute;
  left: 0;
  top: 0.7rem;
  font-weight: 700;
}
.contrast-without .contrast-list li::before {
  content: "×";
  color: #C45A5A;
  font-size: 1.2rem;
  line-height: 1;
}
.contrast-with .contrast-list li::before {
  content: "✓";
  color: var(--blue-glow);
  font-size: 1rem;
}

/* ──────────────────────────────────────────────────
   CTA / FORM
─────────────────────────────────────────────────── */
.cta {
  background: var(--bg-dark);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -20%; left: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.cta-lede {
  font-size: 1.05rem;
  color: #B4C0D7;
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 1.75rem;
}
.cta-promises {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cta-promises li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--paper);
  font-size: 0.95rem;
}
.cta-promises li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-glow);
  font-weight: 700;
}

/* Form */
.cta-form {
  background: var(--paper);
  color: var(--ink);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
@media (max-width: 540px) {
  .cta-form { padding: 1.75rem; }
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.field-row .field { margin-bottom: 0; }
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.12);
}
.field textarea {
  resize: vertical;
  font-family: var(--sans);
  min-height: 4.5rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.form-status {
  font-size: 0.92rem;
  margin: 0.9rem 0 0;
  min-height: 1.2em;
  line-height: 1.45;
}
.form-status.is-success { color: var(--blue-deep); }
.form-status.is-error { color: #C45A5A; }
.form-fine {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
}

/* ──────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────── */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand .brand-logo { width: 38px; height: 38px; }
.footer-brand .brand-name {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--ink);
}
.footer-tag {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  transition: color 150ms ease;
}
.footer-nav a:hover { color: var(--blue); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: right;
}
@media (max-width: 720px) {
  .footer-copy { text-align: center; }
}
