:root {
  --ink: #0c1014;
  --bg: #090b0d;
  --bg-2: #0f1316;
  --paper: #f7f5f0;
  --paper-2: #edeae3;
  --card: #ffffff;
  --line: #e5e0d8;
  --muted: #716c64;
  --muted-dark: #b8b3a8;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --coral: #f97316;
  --sky: #38bdf8;
  --green: #10b981;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(12, 16, 20, .16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  position: relative;
  min-height: 720px;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

#quakeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.top::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 10, 11, .25), rgba(9, 10, 11, .92)),
    radial-gradient(circle at 20% 18%, rgba(251, 191, 36, .18), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(56, 189, 248, .12), transparent 32%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #fff;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .3);
}

.brand span span {
  background: linear-gradient(100deg, var(--amber), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--amber);
  border-radius: 100px;
  padding: 11px 18px;
  box-shadow: 0 8px 22px rgba(251, 191, 36, .28);
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: #ffd66b;
}

.license-bar {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.license-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 13px;
  color: rgba(255, 255, 255, .76);
}

.license-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  flex: none;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 72px 0 94px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid rgba(251, 191, 36, .32);
  border-radius: 100px;
  background: rgba(251, 191, 36, .1);
  color: #fde68a;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  max-width: 830px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--amber), var(--coral), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lede {
  max-width: 700px;
  font-size: 19px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 0;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--amber), #ffd66b);
  box-shadow: 0 10px 26px rgba(251, 191, 36, .34);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  max-width: 920px;
}

.stat {
  background: rgba(9, 10, 11, .58);
  padding: 20px 18px;
}

.stat strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 4px;
}

.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, .64);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--amber);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 13px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll 36s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  gap: 34px;
  padding-right: 34px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section {
  padding: 78px 0;
}

.section-dark {
  background: var(--bg);
  color: #fff;
}

.section-alt {
  background: var(--paper-2);
}

.kicker {
  display: block;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-dark);
  text-transform: uppercase;
}

.section-dark .kicker {
  color: var(--amber);
}

h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.section-dark .lead {
  color: rgba(255, 255, 255, .7);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
  margin-top: 34px;
}

.application-panel,
.indication-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.application-panel {
  overflow: hidden;
}

.panel-head {
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel-head h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 7px;
}

.panel-head p {
  color: var(--muted);
  font-size: 14px;
}

form {
  padding: 28px 30px 32px;
}

.stepper {
  list-style: none;
  display: flex;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
}

.stepper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8a8378;
}

.stepper .bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: background .18s;
}

.stepper .lbl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.stepper .num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--paper-2);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.stepper li.active,
.stepper li.done {
  color: var(--ink);
}

.stepper li.active .bar,
.stepper li.done .bar {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.stepper li.active .num {
  background: var(--amber);
  color: var(--ink);
}

.stepper li.done .num {
  background: var(--green);
  color: #fff;
}

.stepper li.clickable {
  cursor: pointer;
}

.quote-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1.5px solid rgba(217, 119, 6, .28);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(251, 191, 36, .13), rgba(56, 189, 248, .08));
}

.quote-chip .qc-cap {
  display: block;
  margin-bottom: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.quote-chip strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.quote-chip .qc-meta {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.quote-chip .qc-meta b {
  color: var(--ink);
}

.form-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--amber-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wiz-step {
  display: none;
}

.wiz-step.show {
  display: block;
  animation: reveal .28s ease both;
}

.wiz-step.show + .wiz-step.show {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}

.review-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.review-item span {
  display: block;
  margin-bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--amber-dark);
  text-transform: uppercase;
}

.review-item b {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field.full {
  grid-column: 1 / -1;
}

label,
.group-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #272521;
  margin-bottom: 6px;
}

.req {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 15px;
  outline: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber-dark);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .17);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choices.two {
  grid-template-columns: repeat(2, 1fr);
}

.choices.six {
  grid-template-columns: repeat(3, 1fr);
}

.choice {
  position: relative;
  display: block;
  margin: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.choice input:checked + span {
  border-color: var(--amber-dark);
  background: #fff4cf;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .18);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--amber-dark);
  outline-offset: 2px;
}

.help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.field.invalid .choice span {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.wiz-nav {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px -30px -32px;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.wiz-nav .spacer {
  flex: 1;
}

.wiz-back,
.wiz-next {
  min-height: 46px;
  border-radius: 100px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
}

.wiz-back {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.wiz-next {
  border: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--amber), #ffd66b);
  box-shadow: 0 8px 20px rgba(251, 191, 36, .24);
}

.wiz-next:disabled {
  opacity: .58;
  cursor: wait;
}

.wiz-err {
  display: none;
  flex: 1;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
}

.wiz-err.show {
  display: block;
}

.indication-panel {
  position: sticky;
  top: 18px;
  padding: 24px 22px;
}

.indication-panel h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.price {
  margin: 18px 0 14px;
  padding: 24px 20px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 8%, rgba(56, 189, 248, .2), transparent 32%),
    linear-gradient(150deg, #111318, #090a0b);
}

.price .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  font-weight: 800;
}

.price strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 36px;
  line-height: 1;
  color: var(--amber);
  margin: 9px 0 5px;
}

.price small {
  color: rgba(255, 255, 255, .62);
}

.line-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.line-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.line-list b {
  color: var(--ink);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.submit-note {
  max-width: 490px;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.status.show {
  display: block;
}

.status.ok {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.status.err {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 14px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.county-link {
  display: block;
  padding: 14px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.county-link:hover {
  border-color: rgba(251, 191, 36, .45);
  color: #fff;
}

.content-page {
  background: var(--paper);
}

.page-hero {
  background: var(--bg);
  color: #fff;
  padding: 30px 0 70px;
}

.page-hero h1 {
  max-width: 860px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
  margin-top: 52px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
  margin-top: 18px;
}

.article {
  padding: 58px 0 78px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.article-main {
  display: grid;
  gap: 24px;
}

.article-main h2 {
  font-size: 32px;
}

.article-main p,
.article-main li {
  color: #4f4a43;
  font-size: 16px;
}

.article-main ul {
  padding-left: 20px;
}

.side-cta {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.side-cta h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}

.sources {
  font-size: 12px;
}

.sources a {
  color: var(--amber-dark);
}

footer {
  background: var(--bg);
  color: #fff;
  padding: 54px 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

footer p {
  margin-top: 12px;
  max-width: 560px;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
}

.foot-links a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  font-size: 13px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .tool-shell,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .indication-panel,
  .side-cta {
    position: static;
  }

  .stats,
  .cards,
  .county-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .top {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 48px 0 70px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .lede {
    font-size: 17px;
  }

  .stats,
  .cards,
  .county-grid,
  .grid,
  .grid.three,
  .choices,
  .choices.two,
  .choices.six {
    grid-template-columns: 1fr;
  }

  .application-panel,
  .indication-panel {
    border-radius: 8px;
  }

  form,
  .panel-head {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stepper .lbl-text {
    display: none;
  }

  .stepper li.active .lbl-text {
    display: inline;
  }

  .quote-chip strong {
    font-size: 22px;
  }

  .review-summary {
    grid-template-columns: 1fr;
  }

  .wiz-nav {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  section {
    padding: 58px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
