:root {
  --ink: #1c1a16;
  --paper: #faf6ee;
  --rust: #b5501e;
  --rust-dark: #8f3d15;
  --line: #ded4c0;
  --muted: #6b6255;
  --error: #a3271c;
  --error-bg: #fdecea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
}

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 56px;
  text-align: center;
}

.hero .brand {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  margin: 0 0 18px;
}

.hero .sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: #d9d3c6;
  font-size: 17px;
}

.cta {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cta:hover { background: var(--rust-dark); }
.cta:disabled { opacity: 0.6; cursor: not-allowed; }

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 28px;
  margin: 0 0 24px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.note { color: var(--muted); font-size: 15px; }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 700px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.price-line {
  margin-bottom: 18px;
}

.price-line .amount {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--rust);
}

.price-line .label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.offer-details {
  margin: 0;
  padding-left: 20px;
}

.offer-details li { margin-bottom: 12px; }

.refund p { max-width: 640px; }

.signup form {
  max-width: 560px;
}

.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-row-3 {
  flex-direction: row;
  gap: 10px;
}

.form-row-3 input, .form-row-3 select { flex: 1; min-width: 0; }

label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}

input[type="text"], input[type="email"], input[type="tel"], select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}

select {
  appearance: auto;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--rust);
}

#card-container {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 48px;
}

.form-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f0c4bf;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.fine-print {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 520px;
}

.confirmation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  max-width: 560px;
}

.confirmation h3 { margin-top: 0; color: var(--rust-dark); }

.site-footer {
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { color: var(--rust-dark); }

/* ===== MN-0038 - "How it works" steps + framed offer price ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rust); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; }
.price-card .price-line:last-child { margin-bottom: 0; }
.pill { display: inline-block; margin-top: 8px; background: #f3e7dd; color: var(--rust-dark); border: 1px solid #e4cdba; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }

/* ===== MN-0040 - hero kicker (demoted no-WiFi line) ===== */
.hero .kicker { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--paper); letter-spacing: 0.01em; }

/* ===== MN-0041 - guarantee reassurance + local-credibility line ===== */
.price-card .guarantee { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hero .local { margin-top: 18px; font-size: 13px; color: #d9d3c6; letter-spacing: 0.02em; }

/* ===== MN-0048 - hero sales-tax footnote (light-on-dark, WCAG-safe) ===== */
.hero .hero-tax-note {
  margin: 10px auto 0;
  font-size: 12.5px;
  color: #d9d3c6;
  letter-spacing: 0.02em;
}

/* ===== MN-0042 - liability + SMS consent gate modal ===== */
body.modal-open { overflow: hidden; }

.consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.consent-overlay[hidden] { display: none; }

.consent-modal {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
}

.consent-modal h2 {
  font-size: 21px;
  margin: 0 28px 16px 0;
}

.consent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.consent-body {
  overflow-y: auto;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14.5px;
  color: var(--ink);
}

.consent-body a { color: var(--rust-dark); }

/* ===== MN-0045 - checkout tax breakdown in consent modal ===== */
.consent-charge-summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.offer-tax-note { margin-top: 8px; }

.consent-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.consent-check a { color: var(--rust-dark); }

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.consent-cancel {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.consent-actions .cta {
  padding: 14px 22px;
  font-size: 15px;
}

/* ===== MN-0047 - mailbox fit check + install eligibility gate ===== */
.fit-check p { max-width: 640px; }

fieldset.eligibility {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
  margin: 0 0 16px;
}

fieldset.eligibility legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}

fieldset.eligibility label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  margin: 10px 0 0;
  cursor: pointer;
}

fieldset.eligibility input[type="radio"] {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.eligibility-panel {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.eligibility-panel[hidden] { display: none; }

.eligibility-panel-blocked {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #f0c4bf;
}

.eligibility-panel-blocked a { color: var(--error); }

.eligibility-panel-unsure {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.eligibility-panel-unsure a { color: var(--rust-dark); }

/* ── Claim page (MN-0075) ── */

.hero-compact { padding: 48px 0 40px; }

.claim-unit {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.claim-unit .unit-last4 {
  color: var(--rust-dark);
  letter-spacing: 0.08em;
}

.code-input {
  max-width: 220px;
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
}

#claim-success h2 { margin-top: 0; }
