:root {
  --ink: #121714;
  --ink-2: #26322c;
  --muted: #66746d;
  --paper: #f7f3ea;
  --paper-2: #ebe4d6;
  --soft: #f2eee5;
  --line: rgba(33, 43, 37, 0.13);
  --line-strong: rgba(33, 43, 37, 0.2);
  --teal: #00766f;
  --teal-dark: #054d49;
  --mint: #dcefe7;
  --gold: #c28a24;
  --clay: #b3543d;
  --green: #2d8052;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(24, 33, 29, 0.15);
  --shadow-soft: 0 14px 34px rgba(24, 33, 29, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 29, 27, 0.96) 0 430px, rgba(16, 47, 42, 0.9) 430px 520px, transparent 760px),
    linear-gradient(120deg, rgba(232, 180, 74, 0.2) 0 1px, transparent 1px 142px),
    linear-gradient(63deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 118px),
    linear-gradient(180deg, #f4efe5 0%, #f8f4eb 44%, #e9f0ea 100%);
  background-attachment: scroll;
  background-size: auto, 142px 142px, 118px 118px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(9deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(132deg, rgba(232, 180, 74, 0.08) 0 1px, transparent 1px 46px),
    linear-gradient(150deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(180deg, transparent 0 520px, rgba(247, 243, 234, 0.88) 760px 100%);
  mask-image: linear-gradient(#000 0 76%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 15%, rgba(255, 255, 255, 0.08) 15% 16%, transparent 16% 46%, rgba(232, 180, 74, 0.1) 46% 47%, transparent 47%),
    linear-gradient(15deg, transparent 0 68%, rgba(0, 118, 111, 0.16) 68% 69%, transparent 69%);
  opacity: 0.9;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px auto 0;
  width: min(1188px, calc(100% - 28px));
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(12, 37, 34, 0.92), rgba(17, 28, 25, 0.86)),
    linear-gradient(90deg, rgba(232, 180, 74, 0.14), transparent);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(145deg, #00a39a, #06413d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: 13px;
}

.brand-mark::after {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  content: "";
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.96);
}

.nav-cta {
  color: #15140f !important;
  background: linear-gradient(135deg, #f0c66d, #d99a31) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.workspace-hero,
.hero,
.tool-section,
.compare-section,
.states-section,
.monetization-section,
.state-detail-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr);
  grid-template-areas:
    "copy console"
    "atlas console";
  gap: 18px;
  align-items: start;
  padding: 44px 0 34px;
  scroll-margin-top: 120px;
}

.workspace-copy {
  grid-area: copy;
  padding: 18px 4px 8px;
}

.workspace-copy h1 {
  max-width: 560px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.97);
  font-size: clamp(40px, 4.9vw, 64px);
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.workspace-copy .eyebrow {
  color: #f0c66d;
}

.workspace-copy .hero-text {
  color: rgba(255, 255, 255, 0.74);
}

.workspace-copy .hero-metrics span {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.workspace-copy .hero-metrics strong {
  color: rgba(255, 255, 255, 0.96);
}

.tool-console {
  grid-area: console;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 252, 244, 0.58)),
    linear-gradient(135deg, rgba(0, 118, 111, 0.1), transparent 42%);
  box-shadow: 0 28px 80px rgba(24, 33, 29, 0.16);
  backdrop-filter: blur(16px);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.console-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.console-topbar i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #36b37e;
  box-shadow: 0 0 0 5px rgba(54, 179, 126, 0.12);
}

.console-topbar strong {
  color: var(--ink);
}

.workspace-hero .calculator-layout {
  grid-template-columns: minmax(330px, 1fr) minmax(280px, 360px);
  gap: 0;
}

.workspace-hero .calculator-card,
.workspace-hero .result-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workspace-hero .calculator-card {
  background: rgba(255, 255, 255, 0.3);
}

.workspace-hero .result-card {
  position: relative;
  top: auto;
  min-height: 100%;
}

.atlas-panel {
  grid-area: atlas;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.atlas-panel .panel-topline {
  margin-bottom: 14px;
}

.atlas-panel .panel-topline strong {
  font-size: 20px;
}

.atlas-panel .cost-map {
  gap: 5px;
}

.atlas-panel .map-cell {
  border-radius: 7px;
  font-size: 10px;
}

.atlas-panel .map-legend {
  margin-top: 14px;
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 660px;
  padding: 76px 0 44px;
}

.hero::after {
  position: absolute;
  right: -18px;
  bottom: 24px;
  z-index: -1;
  width: min(520px, 45vw);
  height: min(520px, 45vw);
  border: 1px solid rgba(0, 118, 111, 0.14);
  border-radius: 999px;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(0, 118, 111, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(0, 118, 111, 0.08) 0 1px, transparent 1px 18px);
  mask-image: radial-gradient(circle, #000 0 58%, transparent 72%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
  transform: rotate(45deg);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  color: #101411;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: #111713;
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(18, 23, 20, 0.1);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 8px 20px rgba(24, 33, 29, 0.06);
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.hero-actions,
.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(18, 23, 20, 0.18);
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, #008178, #064d49 64%, #10201d);
  box-shadow: 0 18px 30px rgba(0, 118, 111, 0.24);
}

.button.primary::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-110%);
  transition: transform 460ms ease;
}

.button.primary:hover::after {
  transform: translateX(110%);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.button.secondary:hover {
  border-color: rgba(0, 118, 111, 0.4);
  box-shadow: 0 12px 24px rgba(24, 33, 29, 0.09);
}

.button.full {
  width: 100%;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 252, 245, 0.78)),
    linear-gradient(135deg, rgba(0, 118, 111, 0.14), transparent 42%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 28%),
    repeating-linear-gradient(0deg, rgba(18, 23, 20, 0.025) 0 1px, transparent 1px 24px);
}

.hero-panel > * {
  position: relative;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 118, 111, 0.18);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--teal-dark);
  background: rgba(220, 239, 231, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--muted);
}

.panel-topline strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
  white-space: nowrap;
}

.cost-map {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}

.map-cell,
.state-abbr {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 16px rgba(24, 33, 29, 0.08);
  transition: transform 150ms ease, filter 150ms ease;
}

.map-cell:hover {
  filter: saturate(1.1) brightness(1.04);
  transform: translateY(-2px);
}

.low {
  background: linear-gradient(145deg, #2f925b, #1f6f44);
}

.mid {
  background: linear-gradient(145deg, #d59a25, #b77813);
}

.high {
  background: linear-gradient(145deg, #be5a40, #933722);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 80px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-soft);
}

.trust-strip span {
  padding: 18px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 900;
  text-align: center;
}

.trust-strip span:last-child {
  border-right: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.tool-section,
.compare-section,
.states-section,
.monetization-section,
.state-detail-section {
  padding: 46px 0;
}

.tool-section {
  position: relative;
}

.tool-section::before {
  position: absolute;
  inset: 6px -18px auto;
  z-index: -1;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 22px;
  align-items: start;
}

.calculator-card,
.result-card,
.insight-card,
.state-detail-card,
.money-grid article,
.faq-grid article,
.state-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.calculator-card {
  padding: clamp(18px, 3vw, 30px);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--ink-2);
  font-weight: 900;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(18, 23, 20, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(247, 243, 234, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  font: inherit;
}

select:focus,
input[type="search"]:focus {
  outline: 3px solid rgba(0, 118, 111, 0.16);
  border-color: rgba(0, 118, 111, 0.46);
}

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

.check-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 104px;
  border: 1px solid rgba(18, 23, 20, 0.1);
  border-radius: 14px;
  padding: 15px;
  background: rgba(247, 243, 234, 0.74);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.check-card:hover {
  border-color: rgba(0, 118, 111, 0.24);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.check-card input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  color: var(--ink);
}

.check-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.result-card {
  position: sticky;
  top: 104px;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(18, 23, 20, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 23, 20, 0.96), rgba(23, 36, 31, 0.94)),
    linear-gradient(135deg, rgba(0, 118, 111, 0.25), transparent);
  color: var(--white);
  box-shadow: 0 26px 70px rgba(18, 23, 20, 0.24);
}

.result-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 24px);
}

.result-card > * {
  position: relative;
}

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

.result-state span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.result-state strong {
  color: var(--white);
  font-size: 46px;
  line-height: 1;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 72px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f1c66b);
}

.bar-row strong {
  color: var(--white);
  text-align: right;
}

.cost-breakdown {
  margin: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cost-breakdown div,
.state-detail-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.result-card .cost-breakdown div {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

dt {
  color: var(--muted);
}

.result-card dt {
  color: rgba(255, 255, 255, 0.62);
}

dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.result-card .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.fine-print,
.disclosure {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.result-card .fine-print {
  color: rgba(255, 255, 255, 0.56);
}

.state-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 26px;
  padding: clamp(20px, 3vw, 34px);
}

.state-detail-card p {
  color: var(--muted);
  line-height: 1.68;
}

.state-detail-card a {
  color: var(--teal);
}

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

.faq-grid article {
  padding: 20px;
}

.faq-grid h3 {
  margin-bottom: 10px;
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.insight-card,
.money-grid article {
  position: relative;
  overflow: hidden;
  padding: 23px;
}

.insight-card::before,
.money-grid article::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  content: "";
}

.insight-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.insight-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.insight-card a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.insight-card span,
.money-grid p {
  color: var(--muted);
}

.states-heading {
  align-items: center;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  color: var(--ink-2);
  font-weight: 900;
}

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

.state-card {
  display: grid;
  gap: 7px;
  min-height: 160px;
  padding: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.state-card:hover {
  border-color: rgba(0, 118, 111, 0.34);
  box-shadow: 0 18px 34px rgba(24, 33, 29, 0.12);
  transform: translateY(-3px);
}

.state-abbr {
  width: 40px;
  height: 40px;
  aspect-ratio: auto;
}

.state-card small {
  color: var(--muted);
  line-height: 1.35;
}

.monetization-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
  align-items: start;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(1160px, calc(100% - 36px));
  margin: 68px auto 0;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 900;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal-dark);
}

.disclosure {
  grid-column: 1 / -1;
  max-width: 780px;
}

.legal-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 110px;
}

.legal-page h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .workspace-hero,
  .hero,
  .calculator-layout,
  .state-detail-card,
  .monetization-section {
    grid-template-columns: 1fr;
  }

  .workspace-hero {
    grid-template-areas:
      "copy"
      "console"
      "atlas";
  }

  .workspace-hero .calculator-layout {
    grid-template-columns: 1fr;
  }

  .workspace-hero .result-card {
    order: -1;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    width: 78vw;
    height: 78vw;
    opacity: 0.5;
  }

  .result-card {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 42px;
    gap: 30px;
  }

  .workspace-hero {
    padding-top: 32px;
    gap: 14px;
  }

  .workspace-copy h1 {
    font-size: 42px;
  }

  .workspace-copy {
    padding-top: 4px;
  }

  .workspace-hero .hero-text {
    font-size: 17px;
    line-height: 1.5;
  }

  .workspace-hero .hero-metrics {
    margin: 18px 0 0;
  }

  .workspace-hero .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-hero .check-card {
    min-height: 92px;
    padding: 12px;
  }

  .workspace-hero .check-card small {
    font-size: 12px;
  }

  h1 {
    font-size: 44px;
  }

  .trust-strip,
  .option-grid,
  .insight-grid,
  .money-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .states-heading,
  .site-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .hero-panel .cost-map {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 5px;
  }

  .hero-panel .map-cell {
    border-radius: 7px;
    font-size: 10px;
  }

  .atlas-panel .cost-map {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-row strong {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .site-header {
    width: min(100% - 18px, 1188px);
  }

  .hero,
  .workspace-hero,
  .tool-section,
  .compare-section,
  .states-section,
  .monetization-section,
  .state-detail-section,
  .trust-strip,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

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

  .workspace-hero .option-grid {
    grid-template-columns: 1fr;
  }

  .panel-topline,
  .result-state,
  .cost-breakdown div,
  .state-detail-card dl div {
    flex-direction: column;
  }

  dd {
    text-align: left;
  }
}
