/* ─────────────────────────────────────────────
   Odyssey Learning Solutions — AI Policy Generator
   Brand palette: #131818 (dark), #FFB80A (yellow), #FFFFFF (white)
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --dark:     #131818;
  --dark-2:   #1C2424;
  --dark-3:   #252E2E;
  --yellow:   #FFB80A;
  --yellow-dk:#E6A500;
  --yellow-lt:#FFF3CC;
  --white:    #FFFFFF;
  --off-white:#F8F8F5;
  --grey-1:   #F3F4F6;
  --grey-2:   #E5E7EB;
  --grey-3:   #9CA3AF;
  --grey-4:   #6B7280;
  --grey-5:   #374151;
  --text:     #1A1A1A;
  --error:    #DC2626;
  --radius:   6px;
  --shadow:   0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:0 4px 12px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--off-white);
  margin: 0;
  line-height: 1.6;
}

/* ── Typography ───────────────────────────── */
h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; color: var(--dark); margin: 0 0 1rem; }
h2 { font-size: 1.375rem; font-weight: 600; color: var(--dark); margin: 0 0 .75rem; }
h3 { font-size: 1.125rem; font-weight: 600; color: var(--dark); margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }

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

/* ── Header ───────────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
  border-bottom: 2px solid var(--yellow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.logo-icon {
  width: 36px; height: 36px;
  filter: invert(1);
  opacity: 0.95;
}
.logo-text { display: flex; flex-direction: column; gap: 0; }
.logo-odyssey {
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.logo-sub {
  font-size: .6rem; color: var(--yellow);
  text-transform: uppercase; letter-spacing: .1em; line-height: 1.2;
}
.header-nav { display: flex; gap: 1.5rem; }
.nav-link { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color .15s; }
.nav-link:hover { color: var(--yellow); }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  padding: 1.5rem 0;
  margin-top: 5rem;
  border-top: 1px solid var(--dark-3);
}
.site-footer p { margin: 0; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 700;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow); color: var(--dark);
}
.btn-primary:hover { background: var(--yellow-dk); }
.btn-secondary {
  background: var(--grey-2); color: var(--grey-5);
}
.btn-secondary:hover { background: var(--grey-3); color: var(--text); }
.btn-large { padding: .9rem 2.25rem; font-size: 1.0625rem; }

/* ── Hero ─────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
/* Topographic line texture effect */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255,184,10,.04) 28px,
      rgba(255,184,10,.04) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(255,184,10,.03) 28px,
      rgba(255,184,10,.03) 29px
    );
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero h1 { color: var(--white); font-size: 2.5rem; }
.hero h1 span { color: var(--yellow); }
.hero-lead { font-size: 1.125rem; color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.hero-features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.hero-features li {
  padding-left: 1.5rem; position: relative; color: rgba(255,255,255,.8);
}
.hero-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 700;
}
.hero-note { font-size: .8125rem; color: rgba(255,255,255,.4); margin-top: .75rem; }

/* Policy preview illustration */
.policy-preview {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border: 1px solid rgba(255,184,10,.2);
}
.policy-preview-header {
  background: var(--dark-2); padding: .75rem 1rem;
  display: flex; gap: .5rem; align-items: center;
}
.policy-preview-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--dark-3);
}
.policy-preview-dot:first-child { background: var(--yellow); }
.policy-preview-body { padding: 1.5rem; }
.preview-line {
  height: 9px; background: var(--grey-2); border-radius: 4px; margin-bottom: .75rem;
  width: 100%;
}
.preview-line-title { height: 14px; background: var(--dark); width: 65%; }
.preview-line-short { width: 42%; }
.preview-line-medium { width: 78%; }

/* ── How it works ─────────────────────────── */
.how-it-works { padding: 5rem 0; background: var(--white); }
.how-it-works h2 { text-align: center; margin-bottom: .5rem; }
.how-it-works > .container > p { text-align: center; color: var(--grey-4); margin-bottom: 2.5rem; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.step { text-align: center; }
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { color: var(--dark); }
.step p { color: var(--grey-4); font-size: .9375rem; }

/* ── Trust signals ────────────────────────── */
.trust-signals { padding: 5rem 0; background: var(--off-white); }
.trust-signals h2 { text-align: center; margin-bottom: .75rem; }
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 3rem; color: var(--grey-4); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.trust-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--yellow);
}
.trust-item h3 { color: var(--dark); margin-bottom: .5rem; }
.trust-item p { color: var(--grey-4); font-size: .9375rem; margin: 0 0 .5rem; }
.guidance-list {
  margin: .5rem 0 0; padding-left: 1.25rem;
  display: flex; flex-direction: column; gap: .625rem;
}
.guidance-list li { color: var(--grey-4); font-size: .875rem; line-height: 1.5; }
.guidance-list a { color: var(--dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.guidance-list a:hover { color: var(--yellow-dk); }

/* ── Intake form ──────────────────────────── */
.intake-wrapper { padding: 3rem 0 5rem; }
.intake-header { text-align: center; margin-bottom: 2.5rem; }
.intake-header h1 { margin-bottom: .5rem; }
.intake-header p { color: var(--grey-4); }

/* Progress bar */
.progress-bar-outer {
  height: 5px; background: var(--grey-2);
  border-radius: 3px; margin-bottom: .75rem;
}
.progress-bar-inner {
  height: 100%; background: var(--yellow);
  border-radius: 3px; transition: width .3s ease;
}
.progress-labels {
  display: flex; gap: 0; margin-bottom: 2.5rem;
}
.progress-label {
  flex: 1; text-align: center; font-size: .8rem;
  color: var(--grey-3); cursor: default;
  padding: .25rem 0;
}
.progress-label.active { color: var(--dark); font-weight: 700; }
.progress-label.done { color: var(--grey-4); }

/* Form sections */
.form-section { display: none; border: none; padding: 0; margin: 0; }
.form-section.active { display: block; }

.section-legend {
  font-size: 1.25rem; font-weight: 700; color: var(--dark);
  margin-bottom: 2rem; padding: 0;
  display: flex; align-items: center; gap: .75rem;
  border-bottom: 2px solid var(--grey-2); padding-bottom: 1rem; width: 100%;
}
.section-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); color: var(--dark);
  font-size: .9rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-legend-note {
  font-size: .875rem; font-weight: 400; color: var(--grey-4); margin-left: auto;
}

/* Form groups */
.form-group { margin-bottom: 2rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .9375rem;
  margin-bottom: .5rem; color: var(--grey-5);
}
.field-hint { font-size: .8125rem; color: var(--grey-4); margin-bottom: .5rem; margin-top: -.25rem; }
.required { color: var(--yellow-dk); }
.optional { font-weight: 400; color: var(--grey-3); font-size: .8125rem; }

input[type="text"],
input[type="number"],
input[type="email"],
textarea {
  width: 100%; max-width: 480px;
  padding: .625rem .875rem;
  border: 1.5px solid var(--grey-2);
  border-radius: var(--radius);
  font-size: .9375rem; font-family: inherit; color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 10, .15);
}
textarea { max-width: 600px; resize: vertical; min-height: 80px; }

/* Radio options */
.radio-group { display: flex; flex-direction: column; gap: .625rem; max-width: 600px; }
.radio-group-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .625rem; max-width: 600px; }

.radio-option {
  display: flex; align-items: flex-start; gap: 0;
  cursor: pointer;
}
.radio-option input[type="radio"] { display: none; }
.radio-label {
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--white);
  border: 1.5px solid var(--grey-2);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  width: 100%; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio-label strong { font-size: .9375rem; color: var(--grey-5); }
.radio-label span { font-size: .8125rem; color: var(--grey-4); }
.radio-group-4 .radio-label { text-align: center; }
.radio-group-4 .radio-label strong { font-size: .875rem; }

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--yellow);
  background: var(--yellow-lt);
}
.radio-option input[type="radio"]:checked + .radio-label strong { color: var(--dark); }
.radio-label:hover { border-color: var(--grey-3); }

/* Conditional groups */
.form-group-conditional {
  padding: 1rem 1.25rem;
  background: var(--yellow-lt);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: -.75rem;
}

/* Section nav */
.section-nav {
  display: flex; gap: 1rem; align-items: center;
  padding-top: 1.5rem; margin-top: 1rem;
  border-top: 1px solid var(--grey-2);
}
.section-nav-final { flex-direction: column; align-items: flex-start; }
.section-nav-final .btn { align-self: stretch; text-align: center; }
@media (min-width: 540px) {
  .section-nav-final { flex-direction: row; }
  .section-nav-final .btn-checkout { align-self: auto; }
}

.checkout-note {
  font-size: .8rem; color: var(--grey-3); margin-top: .75rem;
}

/* Errors */
.form-errors {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.form-errors p { margin: 0 0 .5rem; font-weight: 600; color: var(--error); }
.form-errors ul { margin: 0; padding-left: 1.25rem; }
.form-errors li { color: var(--error); font-size: .9375rem; }

/* ── Download / thank-you screen ──────────── */
.download-wrapper { padding: 4rem 0 5rem; }
.download-card {
  max-width: 680px; margin: 0 auto;
  background: var(--white); border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--grey-2);
}
.download-card-header {
  background: var(--dark); padding: 2rem 2.5rem; color: var(--white);
  border-bottom: 3px solid var(--yellow);
}
.download-card-header h1 { color: var(--white); font-size: 1.5rem; margin: 0; }
.download-card-body { padding: 2.5rem; }
.download-btn-wrap { margin: 1.5rem 0; }
.download-btn-wrap .btn { width: 100%; justify-content: center; gap: .5rem; }
.download-divider {
  border: none; border-top: 1px solid var(--grey-2); margin: 2rem 0;
}
.upsell-block h2 { font-size: 1.125rem; margin-bottom: .5rem; }
.upsell-block p { color: var(--grey-4); font-size: .9375rem; margin-bottom: 1.25rem; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .radio-group-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.625rem; }
  .hero h1 { font-size: 1.875rem; }
  .progress-labels { display: none; }
}
