:root {
  --bg: #0e0e0e;
  --card: #181818;
  --line: #2c2c2c;
  --gold: #c9a646;
  --gold2: #e6c65c;
  --ink: #f5f5f5;
  --muted: #cfcfcf;
  --green: #146b2e;
  --danger-bg: #3a1515;
  --danger: #ffd0d0;
  --max: 1120px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold2); }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.2; }
p { margin: 0 0 12px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

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

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.preview-banner {
  background: #5a1010;
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}
.preview-banner strong { font-weight: 750; }

.site-header { background: #000; border-bottom: 3px solid var(--gold); }
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.logo { display: block; max-height: 74px; width: auto; }
.header-contact { text-align: right; }
.header-contact a {
  color: var(--gold2);
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
}
.header-contact p { margin: 0; color: var(--muted); font-size: 14px; }

.nav-bar {
  background: linear-gradient(180deg, #e6c65c, #c9a646 55%, #a8862a);
  border-bottom: 1px solid #6d5716;
}
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.nav-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 800;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
}
.nav a {
  color: #111;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { background: #111; color: var(--gold2); }

.hero { padding: 36px 0 28px; background: #000; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 240px;
  gap: 32px;
  align-items: center;
}
h1.big {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 50px);
  color: #fff;
}
h1.big span, h2 .g { color: var(--gold2); }
.lede { color: var(--muted); max-width: 68ch; margin-bottom: 16px; }
.search-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.search-card input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #111;
}
.search-card button {
  background: var(--gold);
  color: #111;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  min-height: 48px;
  cursor: pointer;
}
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-photo { margin: 0; text-align: center; }
.hero-photo img {
  width: 100%;
  max-width: 240px;
  border: 3px solid var(--gold);
  border-radius: 14px;
  display: block;
  margin: 0 auto;
}
.hero-photo figcaption { color: var(--gold2); font-weight: 700; font-size: 14px; margin-top: 8px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.trust span { white-space: nowrap; }

[hidden] { display: none !important; }
main > section { padding: 42px 0; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.intro p { max-width: 75ch; color: #e6e6e6; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.pop { border: 2px solid var(--gold); }
.plan .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { margin: 0; color: var(--gold2); text-align: center; font-size: 22px; }
.plan .eyebrow, .plan .sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  min-height: 2.4em;
}
.plan .price {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin: 6px 0 8px;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.plan li { padding: 4px 0; border-top: 1px solid #262626; }
.plan .btn, .plan-actions { margin-top: auto; }
.plan-benefit {
  background: #221c0c;
  border: 2px dashed var(--gold);
}
.plan-benefit .eyebrow { color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.plan-actions { display: grid; gap: 8px; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.btn:hover { filter: brightness(1.06); color: #111; }
.btn.secondary { background: transparent; color: var(--gold2); }
.btn.secondary:hover { color: #fff; }
.btn.block { width: 100%; }
.btn.green { background: var(--green); border-color: #0e4d20; color: #fff; }
.btn.green:hover { color: #fff; filter: brightness(1.08); }
.text-btn {
  background: transparent;
  border: 0;
  color: var(--gold2);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  font: inherit;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: clamp(22px, 2.5vw, 30px); }
ol.clean { margin: 0 0 12px; padding-left: 1.2em; }
ol.clean li { margin: 0 0 8px; }
.example {
  background: #121212;
  border-left: 4px solid var(--gold);
  padding: 12px 14px;
  margin: 12px 0;
}
.fine { color: var(--muted); font-size: 14px; }
.spaced { margin-top: 14px; }
#plans, #how-rebate-works, #onestop, h2[tabindex="-1"] { scroll-margin-top: 76px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
caption {
  text-align: left;
  font-weight: 750;
  color: var(--gold2);
  margin-bottom: 8px;
  font-size: 18px;
}
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #2a220a; color: var(--gold2); }
tbody th { color: var(--ink); font-weight: 650; background: #141414; }

.share-strip {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #17140c;
}
.defs { display: grid; gap: 8px; }
.defs details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.defs summary { cursor: pointer; font-weight: 750; min-height: 44px; display: flex; align-items: center; }
.defs details p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
a.card:hover, .card:focus-within { border-color: var(--gold); color: inherit; }
.card h3 { margin: 8px 0; color: var(--gold2); font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card-link { color: inherit; text-decoration: none; display: block; }
.ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: #2a220a;
  font-size: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer a { color: var(--gold2); }

dialog.modal {
  width: min(560px, calc(100% - 24px));
  max-height: min(85vh, 720px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: #171717;
  color: #fff;
}
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.78); }
.modal-body { padding: 22px 22px 18px; position: relative; }
.modal-body h2 { padding-right: 44px; font-size: 26px; }
.modal-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--gold2);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.page-intro { padding-top: 28px; }
.review-flag, .callout {
  border: 1px solid var(--gold);
  background: #241f0e;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.callout strong, .review-flag strong { color: var(--gold2); }
.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.stepper li {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  font-size: 14px;
  background: #141414;
}
.stepper li[aria-current="step"] {
  background: var(--gold);
  color: #111;
  font-weight: 800;
  border-color: var(--gold);
}
.fields { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.field input, .field select, .field textarea, .search-card input {
  font-weight: 450;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #101010;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.checks { display: grid; gap: 8px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.error {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.sign-off {
  border: 1px dashed #666;
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
}
.summary-list { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 8px 14px; margin: 0; }
.summary-list dt { color: var(--gold2); font-weight: 700; }
.summary-list dd { margin: 0; }
.file-note { font-size: 14px; color: var(--muted); margin: 0; }
.result {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #121212;
}
.result.ready { border-color: var(--green); }
.blank-forms { display: grid; gap: 8px; }
.blank-forms a { font-weight: 700; }

:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav-bar.open .nav { display: flex; }
  .nav a { border-top: 1px solid rgba(0, 0, 0, 0.15); border-radius: 0; }
  .plans, .grid, .row, .summary-list { grid-template-columns: 1fr; }
  .header-row, .header-contact { justify-content: center; text-align: center; }
  .search-card { flex-direction: column; }
  .search-card button { width: 100%; }
  .plan .eyebrow, .plan .sub { min-height: 0; }
  .stepper { flex-direction: column; }
  h1.big { font-size: 30px; }
}
