/* Kentucky Education Freedom — shared styles */

:root {
  --navy-900: #0f1b38;
  --navy-800: #16244a;
  --navy-700: #1e2f5c;
  --navy-600: #2a3f78;
  --red-700: #a01729;
  --red-600: #c01f33;
  --red-500: #d42a3f;
  --cream-50: #fdfbf6;
  --cream-100: #f7f1e4;
  --white: #ffffff;
  --ink: #1b1f27;
  --ink-soft: #4a5063;
  --gold-500: #c9a227;
  --green-ok: #2f7a4f;
  --amber-warn: #a5690a;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 56, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 27, 56, 0.12);
  --maxw: 1120px;
  --maxw-wide: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-800); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--red-700); }
a:hover { color: var(--red-600); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section--tight { padding: 2.25rem 0; }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #cfd7ea; }
.section--cream { background: var(--cream-100); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff;
  padding: 0.6em 1em; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red-600);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand__text { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: 1.05rem; line-height: 1.1; }
.brand__text small { display: block; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; font-size: 0.65rem; color: var(--red-700); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red-700); }
.nav__toggle { display: none; }

.btn {
  display: inline-block; padding: 0.75em 1.4em; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 0.95rem;
  font-family: var(--font-body); transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red-600); color: var(--white); }
.btn--red:hover { background: var(--red-700); color: var(--white); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn--outline-navy { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
  color: var(--white); padding: 1.9rem 0 1.65rem; position: relative; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.75rem; align-items: center; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.hero__watermark {
  position: absolute; top: 50%; right: -4%; transform: translateY(-50%);
  width: 56%; max-width: 760px; height: auto;
  opacity: 0.1; filter: brightness(0) invert(1);
  pointer-events: none; z-index: 0;
}
.hero h1 { color: var(--white); }
.hero p.lede { font-size: 1rem; color: #d7dff0; max-width: 46ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.4em; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 0.35em 0.9em; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero__logo { justify-self: stretch; }
.hero__logo img { max-width: 640px; width: 100%; height: auto; }

/* Audience split cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.audience-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md);
  border-top: 6px solid var(--red-600); display: flex; flex-direction: column;
}
.audience-card.navy-accent { border-top-color: var(--navy-700); }
.audience-card h3 { margin-bottom: 0.4em; }
.audience-card ul { padding-left: 1.1em; color: var(--ink-soft); }
.audience-card .btn { margin-top: auto; align-self: flex-start; }

/* Card grid / feature list */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.feature .num {
  display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em;
  background: var(--navy-800); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 0.6em;
}

/* Disclaimer banner */
.disclaimer {
  display: flex; gap: 0.75rem; align-items: flex-start; background: #fff7e6; border: 1px solid #f0d58c;
  color: #5c4607; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.25rem 0 1.75rem; font-size: 0.92rem;
}
.disclaimer strong { color: #473500; }
.disclaimer svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* Calculator panels */
.calc {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-md); padding: 2rem;
  border: 1px solid #e8e1d0;
}
.calc h2 { margin-bottom: 0.2em; }
.calc .sub { color: var(--ink-soft); margin-bottom: 1.5rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35em; font-size: 0.92rem; color: var(--navy-800); }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.3em; }
.input-with-select { display: flex; gap: 0.5rem; }
.input-with-select input { flex: 1 1 auto; }
.input-with-select select { flex: 0 0 auto; width: auto; }
input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%; padding: 0.7em 0.8em; border: 1.5px solid #d7d0bd; border-radius: 8px; font-size: 1rem;
  font-family: var(--font-body); background: var(--cream-50); color: var(--ink);
}
input:focus, select:focus { outline: 3px solid #9db4e8; outline-offset: 1px; border-color: var(--navy-600); }
fieldset { border: 1.5px solid #d7d0bd; border-radius: 8px; padding: 0.9rem 1rem; margin: 0 0 1.1rem; }
fieldset legend { font-weight: 700; font-size: 0.92rem; color: var(--navy-800); padding: 0 0.4em; }
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.radio-row label { font-weight: 500; display: flex; align-items: center; gap: 0.4em; color: var(--ink); }
.check-row { display: flex; align-items: flex-start; gap: 0.5em; margin: 0.5em 0; }
.check-row input { width: auto; margin-top: 0.25em; }

.result {
  margin-top: 1.5rem; padding: 1.5rem; border-radius: 10px; background: var(--cream-100);
  border: 1.5px dashed #cbb98a;
}
.result.is-positive { background: #eaf6ee; border-color: var(--green-ok); }
.result.is-warning { background: #fdeeea; border-color: var(--red-600); }
.result .headline { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-800); margin-bottom: 0.3em; }
.result .big-number { font-size: 2.1rem; font-weight: 800; color: var(--red-700); font-family: var(--font-display); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4em 1em; margin: 1em 0 0; }
.result dt { color: var(--ink-soft); font-weight: 600; }
.result dd { margin: 0; font-weight: 700; color: var(--navy-800); text-align: right; }

/* Signup / forms */
.signup {
  background: var(--navy-800); color: #fff; border-radius: 14px; padding: 2rem;
}
.signup h3 { color: #fff; }
.signup p { color: #cfd7ea; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-row input { flex: 1 1 220px; }
.form-msg { margin-top: 0.75rem; font-weight: 600; font-size: 0.92rem; }
.form-msg.success { color: #8fe3ab; }
.form-msg.error { color: #ffb4b4; }
.signup .form-msg.success, .signup .form-msg.error { color: inherit; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Approved-uses list */
.approved-uses {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem;
}
.approved-uses li {
  position: relative; padding: 0.7em 1em 0.7em 2.2em; background: var(--white);
  border: 1px solid #e8e1d0; border-radius: 8px; font-weight: 600; color: var(--navy-800);
}
.approved-uses li::before {
  content: '\2713'; position: absolute; left: 0.9em; top: 0.7em; color: var(--green-ok); font-weight: 800;
}

/* FAQ */
.faq-group h3 { margin-top: 2rem; }
details.faq-item {
  background: var(--white); border: 1px solid #e8e1d0; border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
details.faq-item summary { font-weight: 700; cursor: pointer; color: var(--navy-800); }
details.faq-item p { margin-top: 0.6em; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9c3dd; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: #e6ebf7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.7em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.45em; }
.footer-bottom { border-top: 1px solid #253357; padding-top: 1.2rem; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5em; }

/* Stat strip */
.stat-band { padding: 1.1rem 0; }
.stat-strip { display: flex; justify-content: space-around; gap: 1.5rem; flex-wrap: wrap; text-align: center; }
.stat-strip--full { width: 100%; box-sizing: border-box; padding: 0 2rem; justify-content: space-between; }
.stat-strip .stat b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.stat-strip .stat span { font-size: 0.78rem; color: #cfd7ea; }

/* Utility */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__logo img { max-width: 300px; margin-top: 0.5rem; }
  .hero__watermark { width: 90%; right: 50%; transform: translate(50%, -50%); opacity: 0.08; }
  .split, .grid-3, .calc-grid, .footer-grid, .approved-uses { grid-template-columns: 1fr; }
  .stat-strip--full { padding: 0 1.25rem; justify-content: center; gap: 1.25rem; }
  .nav { position: fixed; inset: 56px 0 auto 0; background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 1rem 1.25rem; box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform 0.2s ease; gap: 0.9rem; }
  .nav.is-open { transform: translateY(0); }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 8px; border: 1.5px solid #d7d0bd; background: var(--white); cursor: pointer;
  }
  .footer-bottom { flex-direction: column; }
}
