/* Calculator page */
.calc-page { padding: 40px 0 64px; }
.calc-intro { max-width: 760px; margin-bottom: 26px; }
.calc-intro h1 { font-size: clamp(28px, 3.6vw, 40px); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-form { position: sticky; top: 94px; }
@media (max-width: 960px) { .calc-form { position: static; } }
.calc-results { display: grid; gap: 16px; min-width: 0; container-type: inline-size; }
.ctx-line { font-size: 13.5px; color: var(--muted); }

/* Model comparison cards (radio-based, keyboard accessible) */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .models { grid-template-columns: minmax(0, 1fr); } }
.model { position: relative; display: block; cursor: pointer; }
.model input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.model .box { height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.model input:checked + .box { border-color: var(--navy-2); box-shadow: 0 6px 18px rgba(13, 59, 102, .12); }
.model input:focus-visible + .box { outline: 3px solid rgba(43, 132, 63, .55); outline-offset: 2px; }
.model .name { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.model .tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green-2); white-space: nowrap; }
.model .landed { font-size: 26px; font-weight: 780; letter-spacing: -.02em; margin: 8px 0 0; }
.model .landed small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.model .verdict { font-size: 13.5px; font-weight: 650; margin-top: 2px; }
.model .verdict.good { color: var(--green-2); }
.model .verdict.bad { color: var(--red); }
.model dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 12px 0 0; font-size: 13px; }
.model dt { color: var(--muted); }
.model dd { margin: 0; text-align: right; font-weight: 650; }

/* Narrow results column: one model per row, figures on the right */
@container (max-width: 660px) {
  .models { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .model .box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); gap: 4px 18px; align-items: center; padding: 14px 16px; }
  .model .landed { font-size: 22px; margin-top: 4px; }
  .model dl { margin: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 380px) {
  .model .box { grid-template-columns: minmax(0, 1fr); }
}

/* Detail */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 20px; letter-spacing: -.01em; }
.kpi b.good { color: var(--green-2); }
.kpi b.bad { color: var(--red); }
.kpi small { font-size: 12px; color: var(--muted); }
.detail h3 { margin-bottom: 4px; }
.stack .bar.tall { height: 30px; }
.conf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }

/* Mobile: sticky headline that jumps to the results below the form */
.peek { display: none; }
@media (max-width: 960px) {
  .peek:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(13, 43, 69, .35); font-size: 14px; }
  .peek b { color: #9bd95b; }
  .peek span:last-child { font-weight: 700; white-space: nowrap; }
  .calc-page { padding-bottom: 96px; }
}
@media (max-width: 420px) { .seg span { padding: 8px 6px; font-size: 14px; } }

/* Lead section */
.lead-section { padding: 56px 0 0; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }

/* ---------- Offer Auditor ---------- */
.audit-promises { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.audit-promises li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #dbe7f3; font-size: 13.5px; }
.audit-promises .ic { color: var(--mint); width: 16px; height: 16px; }
.row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.row-actions .h-step { margin: 0; }
details.claims { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
details.claims summary { cursor: pointer; list-style: none; }
details.claims summary::-webkit-details-marker { display: none; }
details.claims summary .h-step { flex-wrap: wrap; }
details.claims summary em { font-style: normal; font-weight: 500; font-family: var(--font); }
.empty-state { text-align: center; padding: 48px 26px; }
.es-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--green-soft); color: var(--green-2); margin-bottom: 14px; }
.es-ic .ic { width: 26px; height: 26px; }
.verdict { border-width: 2px; }
.verdict.v-bad { border-color: #f3c2c2; background: linear-gradient(180deg, #fff7f7, #fff 60%); }
.verdict.v-ok { border-color: #c4e6c9; background: linear-gradient(180deg, #f2fbf7, #fff 60%); }
.v-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 10px; }
.v-badge { font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 99px; }
.v-bad .v-badge { background: var(--red-soft); color: var(--red); }
.v-ok .v-badge { background: var(--green-soft); color: var(--green-2); }
.v-title { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.35; margin-bottom: 8px; }
.v-line { color: var(--ink-2); margin-bottom: 16px; }
.audit-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.audit-table th, .audit-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.audit-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fafc; }
.audit-table tbody th { font-weight: 600; }
.audit-table td.v { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.audit-table tr.note-row td { border-bottom: 1px solid var(--line); padding-top: 0; font-size: 13px; color: var(--ink-2); background: #fbfcfe; }
.audit-table tr:has(+ .note-row) th, .audit-table tr:has(+ .note-row) td { border-bottom: 0; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--blue-soft); color: var(--navy-3); }
.pill.green { background: var(--green-soft); color: var(--green-2); }
.pill.grey { background: #eef1f5; color: var(--muted); }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flags li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.flags li.fl-high { border-color: #f3c2c2; background: #fff8f8; }
.flags li.fl-medium { border-color: #f0d49b; background: #fffaf0; }
.flags p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.fl-tag { align-self: start; text-align: center; font-size: 11.5px; font-weight: 750; padding: 4px 6px; border-radius: 8px; }
.fl-high .fl-tag { background: var(--red); color: #fff; }
.fl-medium .fl-tag { background: #b7791f; color: #fff; }
.fl-info .fl-tag { background: var(--blue-soft); color: var(--navy-3); }
@media (max-width: 480px) { .flags li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .fl-tag { justify-self: start; } }
.alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .alts { grid-template-columns: minmax(0, 1fr); } }
.alt { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fbfcfe; }
.alt.current { border: 2px solid var(--navy-2); background: #fff; }
.alt-name { font-weight: 700; font-size: 14.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.alt-landed { font: 800 24px/1.2 var(--display); margin: 6px 0 2px; }
.alt-landed small { font: 600 13px var(--font); color: var(--muted); }
.alt .pos { color: var(--green-2); font-weight: 650; font-size: 13.5px; }
.alt .neg { color: var(--red); font-weight: 650; font-size: 13.5px; }
.alt dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0 0; font-size: 13px; }
.alt dt { color: var(--muted); } .alt dd { margin: 0; text-align: right; font-weight: 650; }
.qs { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 15px; }
.qs li::marker { color: var(--green); font-weight: 700; }
.cta-mini { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--green-soft), #e6f1fd); border-color: #cfe9d3; }
