:root {
  --ink: #17202a;
  --muted: #5b6773;
  --line: #d8e0e8;
  --paper: #f7fafc;
  --white: #ffffff;
  --teal: #087f8c;
  --teal-dark: #06626d;
  --gold: #f4b942;
  --coral: #a84224;
  --green: #2f7d57;
  --shadow: 0 16px 40px rgba(30, 48, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
}

body {
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

svg {
  width: 1.35rem;
  height: 1.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(216, 224, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--teal-dark);
}

main {
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 36px;
  align-items: end;
  padding: 64px 5vw 36px;
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.09), rgba(244, 185, 66, 0.12)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 860px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
}

.hero p {
  max-width: 760px;
  color: #2f3c48;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
  color: var(--teal-dark);
}

.trust-panel,
.note,
.answer-box,
.tool-entry,
.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-panel {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.trust-panel strong {
  font-size: 1.05rem;
}

.trust-panel span,
.trust-panel small,
.note p,
.card p,
.source-list,
.site-footer p {
  color: var(--muted);
}

.band {
  padding: 52px 5vw;
}

.priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.priority-strip a {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px 5vw 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.priority-strip strong {
  font-size: 1.02rem;
}

.priority-strip span,
.link-matrix span,
.state-link-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e8f5f6;
  color: var(--teal-dark);
}

.card h2 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.text-link {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.note {
  padding: 22px;
  border-left: 5px solid var(--gold);
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.state-entry {
  background: #eef7f4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.state-link-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 12px;
}

.state-link-grid a,
.link-matrix a {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.state-link-grid .state-feature {
  grid-row: span 3;
  min-height: 240px;
  background: #17313a;
  color: var(--white);
}

.state-link-grid .state-feature span {
  color: #d8e8ea;
}

.link-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 5vw;
  padding: 28px;
  background: #fef9ec;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  min-height: 54px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
}

details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.answer-box {
  margin: 34px 5vw 0;
  padding: 28px;
  border-left: 5px solid var(--teal);
}

.answer-box.inline-answer {
  margin: 0 0 30px;
  box-shadow: none;
}

.answer-box.inline-answer h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th {
  background: #edf6f7;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.myth-list,
.check-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  padding-left: 1.3rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline span,
.timeline small {
  display: block;
  color: var(--muted);
}

.timeline strong {
  display: block;
  margin: 6px 0;
  font-size: 1.08rem;
}

.finder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

input,
select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.result {
  grid-column: 1 / -1;
  padding: 18px;
  box-shadow: none;
}

.article {
  max-width: 920px;
}

.article p {
  color: #33414e;
  font-size: 1.04rem;
}

.article h2 {
  margin-top: 34px;
}

.article-links {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.article-links a {
  font-weight: 800;
}

.two-col-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
}

.table-intro {
  max-width: 900px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 5vw;
  border-top: 1px solid var(--line);
  background: #18242e;
  color: var(--white);
}

.site-footer p {
  max-width: 560px;
  margin-bottom: 0;
  color: #c6d0d8;
}

.site-footer nav a {
  color: #d8e0e8;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero,
  .split,
  .card-grid,
  .timeline,
  .finder,
  .two-col-text,
  .priority-strip,
  .link-matrix {
    grid-template-columns: 1fr;
  }

  .priority-strip a {
    min-height: 76px;
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .state-link-grid {
    grid-template-columns: 1fr;
  }

  .state-link-grid .state-feature {
    grid-row: auto;
    min-height: 120px;
  }

  .hero {
    padding-top: 42px;
  }

  .tool-entry,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  table {
    min-width: 620px;
  }
}
