:root {
  --ink: #17213a;
  --ink-soft: #46506a;
  --navy: #0f1b2d;
  --blue: #254f74;
  --sage: #75927f;
  --gold: #c79a3b;
  --gold-soft: #f3dfb7;
  --ivory: #fbf7ee;
  --paper: #fffdf8;
  --line: #e4ded0;
  --shadow: 0 22px 60px rgba(25, 34, 52, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(251, 247, 238, 0.88);
  border-bottom: 1px solid rgba(228, 222, 208, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 27, 45, 0.94) 0%, rgba(15, 27, 45, 0.76) 42%, rgba(15, 27, 45, 0.2) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 48px clamp(22px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.55rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.button.primary {
  background: var(--gold);
  color: #111827;
}

.button.secondary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.trust-row span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 64px);
  max-width: 1220px;
  margin: 0 auto;
}

.intro-grid,
.split-band,
.tool-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.lead-card,
.signup-panel,
.disclosure,
.guide-card,
.standard-card,
.sidebar-note,
.check-group,
.provider-card,
.category-card,
.article-grid article,
.step-card,
.feature-card,
.quiz-card,
.quiz-result,
.binder-card,
.action-panel,
.emergency-step,
.worksheet,
.glossary-grid article,
.comparison-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lead-card {
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.row-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.steps,
.category-grid,
.article-grid,
.standards-grid,
.feature-grid,
.binder-grid,
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card,
.category-card,
.article-grid article,
.standard-card,
.feature-card,
.binder-card,
.emergency-step,
.glossary-grid article {
  padding: 24px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.step-card h3,
.category-card h3,
.article-grid a,
.standard-card h2,
.provider-card h3 {
  color: var(--navy);
}

.step-card p,
.category-card p,
.article-grid p,
.standard-card p,
.provider-card p,
.tool-section p,
.guide-card p,
.guide-card li,
.legal-page p {
  color: var(--ink-soft);
}

.split-band {
  max-width: none;
  margin: 0;
  padding-left: clamp(18px, 8vw, 92px);
  padding-right: clamp(18px, 8vw, 92px);
  background: #e8efe9;
}

.signup-panel {
  padding: 26px;
}

.signup-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

input[type="email"] {
  flex: 1;
  min-width: 220px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.form-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card,
.article-grid a,
.provider-card,
.feature-card {
  text-decoration: none;
}

.category-card:hover,
.provider-card:hover,
.feature-card:hover {
  border-color: rgba(199, 154, 59, 0.65);
  transform: translateY(-2px);
}

.feature-card,
.provider-card,
.category-card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card span,
.emergency-step span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p,
.binder-card p,
.emergency-step p,
.glossary-grid p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.article-preview {
  padding-top: 24px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid a {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 850;
}

.disclosure {
  padding: clamp(24px, 5vw, 46px);
}

.disclosure p {
  max-width: 900px;
  margin: 14px 0 22px;
  color: var(--ink-soft);
}

.page-hero {
  padding: clamp(64px, 10vw, 130px) clamp(18px, 7vw, 92px) clamp(34px, 6vw, 72px);
  background: linear-gradient(135deg, #f9f2e4 0%, #eef4ee 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.checklist-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.quiz-card,
.quiz-result,
.action-panel,
.comparison-block {
  padding: clamp(22px, 4vw, 34px);
}

.quiz-card fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.quiz-card legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 850;
}

.quiz-card label {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  color: var(--ink-soft);
}

.quiz-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--sage);
}

.quiz-result {
  position: sticky;
  top: 96px;
}

.quiz-result h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.quiz-result p,
.quiz-result li {
  color: var(--ink-soft);
}

.quiz-result ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.sidebar-note {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.sidebar-note p {
  margin: 10px 0 20px;
  color: var(--ink-soft);
}

.checklist,
.guide-list,
.tool-sections {
  display: grid;
  gap: 18px;
}

.check-group {
  padding: 24px;
}

.check-group h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.check-group label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--ink-soft);
}

.check-group input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--sage);
}

.guide-list {
  max-width: 980px;
}

.guide-card {
  padding: clamp(24px, 5vw, 44px);
}

.guide-card h2 {
  margin-bottom: 14px;
}

.guide-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.tool-sections {
  max-width: 1120px;
}

.tool-section {
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-block {
  margin-bottom: 18px;
  min-width: 0;
}

.comparison-block h2 {
  margin-bottom: 20px;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--navy);
  background: #f6efe1;
  font-size: 0.9rem;
}

.compare-table td {
  color: var(--ink-soft);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.provider-card {
  display: block;
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ee;
  color: #486956;
  font-size: 0.75rem;
  font-weight: 800;
}

.standards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.binder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.emergency-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.emergency-step {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.worksheet-stack {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.print-button {
  margin-top: 24px;
}

.worksheet {
  padding: clamp(22px, 4vw, 34px);
  break-inside: avoid;
}

.worksheet-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.worksheet h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.worksheet-heading p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.worksheet-add {
  flex-shrink: 0;
}

.worksheet-table {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr 0.9fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.worksheet-table span,
.worksheet-table input {
  min-height: 46px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.worksheet-table span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.worksheet-table input,
.worksheet-notes {
  width: 100%;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
  outline: none;
}

.worksheet-table input {
  border-top: 0;
  border-left: 0;
}

.worksheet-table input:focus,
.worksheet-notes:focus {
  background: #fffaf0;
  box-shadow: inset 0 0 0 2px rgba(199, 154, 59, 0.35);
}

.worksheet-notes {
  min-height: 240px;
  padding: 16px;
  resize: vertical;
  background:
    repeating-linear-gradient(
      to bottom,
      white 0,
      white 35px,
      var(--line) 36px
    );
  border: 1px solid var(--line);
  line-height: 36px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glossary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.glossary-grid h2 {
  margin-bottom: 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.12rem;
}

.standard-card h2 {
  margin-bottom: 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.2rem;
}

.large {
  max-width: 980px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(54px, 9vw, 104px) 20px;
}

.legal-page h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-page h2 {
  margin: 32px 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.2rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(18px, 5vw, 64px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.74);
}

.footer-brand {
  color: white;
}

.site-footer p {
  margin-top: 10px;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.compact {
  align-items: center;
  min-height: 104px;
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(15, 27, 45, 0.76) 0%, rgba(15, 27, 45, 0.94) 70%);
  }

  .hero-content {
    padding-top: 220px;
  }

  .intro-grid,
  .split-band,
  .tool-section,
  .checklist-layout,
  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-note,
  .quiz-result {
    position: static;
  }

  .steps,
  .category-grid,
  .feature-grid,
  .binder-grid,
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emergency-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
  }

  .brand span:last-child {
    white-space: normal;
  }

  .hero-content {
    padding: 150px 20px 44px;
  }

  .hero-actions .button,
  .input-row .button,
  input[type="email"] {
    width: 100%;
  }

  .trust-row span {
    width: 100%;
  }

  .trust-row {
    display: none;
  }

  .steps,
  .category-grid,
  .article-grid,
  .provider-grid,
  .standards-grid,
  .feature-grid,
  .binder-grid,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .worksheet-table {
    grid-template-columns: 1fr;
  }

  .worksheet-heading {
    flex-direction: column;
  }

  .worksheet-add {
    width: 100%;
  }

  .row-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer,
  .sidebar-note .button,
  .print-button,
  .nav-toggle,
  .worksheet-add {
    display: none;
  }

  body {
    background: white;
  }

  .page-hero,
  .section {
    padding: 20px;
  }

  .checklist-layout {
    display: block;
  }

  .check-group,
  .worksheet {
    break-inside: avoid;
    box-shadow: none;
  }

  .worksheet-table {
    font-size: 11px;
  }

  .worksheet-table input,
  .worksheet-notes {
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .worksheet-notes {
    min-height: 160px;
    resize: none;
  }
}
