/* ═══════════════════════════════════════════════════════════
   Legally Brief: Illinois — Landing Page
   Palette: blue-steel, copper/bronze, warm charcoal
   Aesthetic: Chicago architecture, prairie modernism
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0d1b2a;
  --bg-deep:     #081420;
  --bg-warm:     #111f30;
  --surface:     #152232;
  --surface-hi:  #1a2c40;
  --border:      rgba(148,174,204,0.07);
  --border-hi:   rgba(148,174,204,0.13);
  --text:        #e4e8ec;
  --text-sec:    #bfc8d4;
  --muted:       #8a99ab;
  --dim:         #5e6f82;
  --copper:      #c4853c;
  --copper-light:#d4a06a;
  --copper-glow: rgba(196,133,60,0.12);
  --steel:       #3a6b8c;
  --steel-light: #4d8ab3;
  --steel-glow:  rgba(58,107,140,0.10);
  --green:       #22c55e;
  --coral:       #f87171;
  --font:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --mono:        'JetBrains Mono', 'SF Mono', monospace;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.25);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
  --shadow-xl:   0 20px 50px rgba(0,0,0,0.45), 0 8px 20px rgba(0,0,0,0.35);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.reveal { opacity: 0; transform: translateY(28px); }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(48px + env(safe-area-inset-top, 0px)) 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #0d1b2a 0%, #111f30 40%, #0f1e2e 70%, #0d1b2a 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero__canvas):not(.hero__scroll) {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--copper-glow);
  padding: 0.42rem 1rem 0.42rem 0.8rem;
  border-radius: 100px;
  border: 1px solid rgba(196,133,60,0.12);
  margin-bottom: 2rem;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(196,133,60,0.45);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8.5vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  max-width: 780px;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-light) 45%, var(--steel-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: copper-shift 7s ease-in-out infinite;
}

@keyframes copper-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-sec);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.hero__desc {
  font-size: clamp(0.85rem, 1.3vw, 0.96rem);
  color: var(--dim);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── SIGNUP FORM ──────────────────────────────────────────── */

.signup {
  width: 100%;
  max-width: 460px;
  margin-bottom: 1.5rem;
}

.signup__form {
  display: flex;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 0.35rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

.signup__form:focus-within {
  border-color: rgba(196,133,60,0.3);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(196,133,60,0.06);
}

.signup__input {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
}

.signup__input::placeholder { color: var(--dim); }

.signup__btn {
  min-height: 48px;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, var(--copper) 0%, #b37832 100%);
  color: #0d1b2a;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 14px rgba(196,133,60,0.3);
}

.signup__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196,133,60,0.4);
}

.signup__btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.signup__msg { font-size: 0.78rem; margin-top: 0.5rem; text-align: center; }
.signup__msg--ok { color: var(--green); }
.signup__msg--err { color: var(--coral); }

.hero__or {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.8rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn--outline {
  padding: 0.7rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-sec);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn--ghost:hover { color: var(--copper-light); }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
  animation: scroll-float 3s ease-in-out infinite;
}

@keyframes scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.25; }
  50%      { transform: translateX(-50%) translateY(7px); opacity: 0.5; }
}

/* ── SECTION PRIMITIVES ───────────────────────────────────── */

.s {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.s__tag {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--copper-glow);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(196,133,60,0.08);
}

.s__h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--text);
}

.s__body {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── DIVIDER ──────────────────────────────────────────────── */

.divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ── WHAT YOU GET ─────────────────────────────────────────── */

.coverage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .coverage { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; }
}

.coverage__body p {
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.coverage__body p:last-child { margin-bottom: 0; }

.coverage__body strong { color: var(--text-sec); font-weight: 600; }

.coverage__topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 0.9rem;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.topic:hover {
  transform: translateY(-3px);
  border-color: rgba(196,133,60,0.15);
  box-shadow: var(--shadow-md);
}

.topic__icon {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: block;
}

.topic__name {
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 0.15rem;
}

.topic__detail {
  font-size: 0.68rem;
  color: var(--dim);
  line-height: 1.4;
}

.coverage__pull {
  padding-top: 1rem;
}

.coverage__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: var(--copper);
  border-left: 2px solid var(--steel);
  padding: 1rem 0 1rem 1.5rem;
}

.coverage__attr {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-top: 0.8rem;
  padding-left: 1.5rem;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */

.process-wrap {
  background: var(--bg-warm);
  padding: 5rem 0;
  position: relative;
}

.process-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.step {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.8rem 1.4rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

.step--1::before { background: linear-gradient(90deg, var(--copper), var(--copper-light)); }
.step--2::before { background: linear-gradient(90deg, var(--steel), var(--steel-light)); }
.step--3::before { background: linear-gradient(90deg, #22c55e, #16a34a); }

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step:hover.step--1 { border-color: rgba(196,133,60,0.2); }
.step:hover.step--2 { border-color: rgba(58,107,140,0.2); }
.step:hover.step--3 { border-color: rgba(34,197,94,0.2); }

.step__number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--surface-hi);
  letter-spacing: -0.04em;
}

.step--1 .step__number { color: rgba(196,133,60,0.2); }
.step--2 .step__number { color: rgba(58,107,140,0.2); }
.step--3 .step__number { color: rgba(34,197,94,0.2); }

.step__title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.step__desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── COMPARISON ───────────────────────────────────────────── */

.compare {
  max-width: 880px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.compare__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.compare__col {
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
}

.compare__col--old {
  background: rgba(255,255,255,0.015);
  border-color: rgba(255,255,255,0.04);
}

.compare__col--new {
  background: var(--surface);
  border-color: rgba(196,133,60,0.12);
  box-shadow: var(--shadow-md);
}

.compare__col-title {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.compare__col--old .compare__col-title { color: var(--dim); }
.compare__col--new .compare__col-title { color: var(--copper); }

.compare__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.compare__list li {
  font-size: 0.84rem;
  line-height: 1.5;
  padding-left: 1.3rem;
  position: relative;
}

.compare__col--old .compare__list li {
  color: var(--dim);
}

.compare__col--old .compare__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.15);
}

.compare__col--new .compare__list li {
  color: var(--text-sec);
}

.compare__col--new .compare__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.6;
}

/* ── CTA (Second Signup) ──────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 6rem 2rem calc(4rem + env(safe-area-inset-bottom, 0px));
  position: relative;
  overflow: hidden;
}

.cta-section__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196,133,60,0.06) 0%, rgba(58,107,140,0.03) 40%, transparent 65%);
  pointer-events: none;
}

.cta-section__card {
  max-width: 480px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-section__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), var(--steel), transparent);
  opacity: 0.5;
}

.cta__form { display: flex; gap: 0.4rem; }

.cta__input {
  flex: 1;
  min-height: 48px;
  padding: 0 1rem;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta__input::placeholder { color: var(--dim); }

.cta__input:focus {
  border-color: rgba(196,133,60,0.35);
  box-shadow: 0 0 0 3px rgba(196,133,60,0.06);
}

.cta__submit {
  min-height: 48px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, var(--copper) 0%, #b37832 100%);
  color: #0d1b2a;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
  box-shadow: 0 2px 14px rgba(196,133,60,0.3);
}

.cta__submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(196,133,60,0.4); }
.cta__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cta__msg { font-size: 0.78rem; margin-top: 0.55rem; text-align: center; }
.cta__msg--ok { color: var(--green); }
.cta__msg--err { color: var(--coral); }

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
}

.site-footer__brand {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.site-footer__pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
  margin-right: 0.5rem;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.site-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--dim);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__link {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-footer__link:hover { color: var(--copper); }

.site-footer__copy {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  opacity: 0.7;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .compare__table { grid-template-columns: 1fr; }
  .coverage__topics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; gap: 0.8rem; }
  .coverage__topics { grid-template-columns: 1fr; }

  .signup__form { flex-direction: column; padding: 0.5rem; }
  .signup__input { min-height: 48px; }
  .signup__btn { min-height: 48px; }

  .cta__form { flex-direction: column; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .s { padding: 3.5rem 1.5rem; }
  .coverage { padding: 3.5rem 1.5rem; }
  .compare { padding: 3.5rem 1.5rem; }
  .process-wrap { padding: 3.5rem 0; }
  .process-inner { padding: 0 1.5rem; }
  .cta-section { padding: 4rem 1.5rem calc(3rem + env(safe-area-inset-bottom, 0px)); }

  .divider svg { height: 30px; }

  .step { padding: 1.4rem 1.1rem; }
  .step__number { font-size: 1.8rem; }
}
