/* Quote form, results, dialogs and the plan explainer. Shared tokens and components live in site.css. */

main { max-width: 1160px; margin: 0 auto; padding: 0 20px 48px; }

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 36px 0 24px;
}
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.lede { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 34em; }

.quote-form { padding: 26px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 6px; }
input, select {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--aca); outline-offset: 1px; border-color: transparent; }
.money { position: relative; display: block; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 26px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; display: block; margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 11px 6px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--aca); outline-offset: -2px; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.form-error { color: var(--error); font-weight: 600; font-size: 14px; }


.results { padding-top: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.results-head h2 { font-size: 28px; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.col { border-radius: var(--radius); padding: 18px; }
.col.aca { background: var(--aca-soft); }
.col.hpg { background: var(--hpg-soft); }
.col-head { padding: 4px 4px 16px; }
.col-head h3 { font-size: 22px; margin: 8px 0 6px; }
.col-head p { color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 99px; color: #fff; }
.aca .tag { background: var(--aca); }
.hpg .tag { background: var(--hpg); }

.plans { display: grid; gap: 12px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 10px; }
.plan-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plan-name { font-weight: 750; font-size: 16px; }
.plan-sub { font-size: 13px; color: var(--muted); }
.price { text-align: right; white-space: nowrap; }
.price b { font-size: 26px; font-weight: 800; }
.price small { display: block; font-size: 12px; color: var(--muted); }
.price s { color: var(--muted); font-size: 13px; }
.metal { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; margin-right: 6px; }
.metal.Bronze { background: #F4E3D3; color: #7A4A1E; }
.metal.Silver { background: #E6EAF0; color: #46505E; }
.metal.Gold { background: #F7EBC4; color: #6E5410; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-weight: 600; }
.plan-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-actions a { font-size: 14px; }
details.benefits { font-size: 14px; }
details.benefits summary { cursor: pointer; color: var(--hpg); font-weight: 650; }
details.benefits h4 { margin: 12px 0 4px; font-size: 13px; color: var(--ink-2); }
details.benefits ul { margin: 0; padding-left: 18px; }
.sample-note { font-size: 13px; background: #FFF4E5; border: 1px solid #FFD8A8; color: #7A4A00; border-radius: 10px; padding: 10px 12px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, #fff 25%, #f2f5f9 50%, #fff 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.help { margin-top: 22px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.help p { color: var(--ink-2); margin-top: 4px; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 24px 64px rgba(11,37,69,.3); }
dialog::backdrop { background: rgba(11,37,69,.45); }
.lead-form, .thanks { padding: 28px; display: grid; gap: 14px; position: relative; }
.lead-form h3, .thanks h3 { font-size: 22px; }
.close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }


@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 12px; }
  .columns { grid-template-columns: 1fr; }
  .results-head, .help { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .quote-form { padding: 20px; }
}

/* ---------- Plan explainer: the simple list ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 650; color: var(--aca); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hpg .link-btn { color: var(--hpg); }
.plan-name.clickable { cursor: pointer; }
.plan-name.clickable:hover { text-decoration: underline; }

dialog.explain { --x: #0B5FFF; --x-soft: #EEF4FF; width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; }
dialog.explain.is-hpg { --x: #0E8A7E; --x-soft: #E8F6F4; }
.ex-wrap { position: relative; display: grid; grid-template-rows: 1fr auto; max-height: calc(100vh - 24px); }
.ex-close { position: absolute; top: 10px; right: 14px; z-index: 2; }
.ex-scroll { overflow-y: auto; padding: 34px 40px 8px; }

.sl-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.sl-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sl-head h2 { font-size: clamp(34px, 5vw, 50px); font-weight: 850; letter-spacing: -0.035em; margin: 10px 0 6px; line-height: 1.02; }
.sl-sub { font-size: 20px; color: var(--ink-2); }
.sl-price { text-align: right; flex: none; padding-top: 8px; }
.sl-price .lbl { font-size: 16px; font-weight: 550; }
.sl-price .amt { font-size: 44px; font-weight: 850; letter-spacing: -0.03em; color: var(--x); line-height: 1.1; }
.sl-price .per { font-size: 15px; color: var(--ink-2); }
.sl-meta { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.sl-more { margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: 16px; font-weight: 550; color: var(--x); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.sl-more svg { width: 14px; height: 14px; transition: transform .2s; }
.sl-more[aria-expanded="true"] svg { transform: rotate(90deg); }
.sl-other { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; }
.sl-other .o { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sl-other .o:last-child { border-bottom: 0; }
.sl-other .o small { display: block; color: var(--muted); font-size: 13px; }
.sl-other .o b { white-space: nowrap; }
.sl-other a { color: var(--x); font-weight: 600; }

.sl-list { margin-top: 18px; }
.sl-row { display: grid; grid-template-columns: 72px 1fr auto 28px; gap: 0 22px; align-items: center; padding: 20px 10px; border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; transition: background .15s; }
.sl-row:hover { background: #FAFBFE; }
.sl-row:focus-visible { outline: 2px solid var(--x); outline-offset: -2px; }
.sl-ico { width: 72px; height: 72px; border-radius: 16px; background: var(--x-soft); color: var(--x); display: grid; place-items: center; }
.sl-ico svg { width: 40px; height: 40px; }
.sl-t { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; }
.sl-s { font-size: 16.5px; color: var(--ink-2); margin-top: 4px; }
.sl-amt { text-align: right; }
.sl-amt b { display: block; font-size: 40px; font-weight: 850; letter-spacing: -0.035em; line-height: 1.05; }
.sl-amt span { font-size: 15px; color: var(--ink-2); }
.sl-chev { color: var(--ink-2); transition: transform .2s; }
.sl-chev svg { width: 18px; height: 18px; display: block; }
.sl-row[aria-expanded="true"] .sl-chev { transform: rotate(90deg); }
.sl-detail { grid-column: 2 / -1; margin-top: 14px; display: none; }
.sl-row[aria-expanded="true"] .sl-detail { display: block; }
.sl-detail p { font-size: 15px; color: var(--ink-2); }
.sl-split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 12px 0 8px; }
.sl-split .p { background: var(--x); }
.sl-split .y { background: var(--accent); }
.sl-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.sl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sl-legend .lp { background: var(--x); }
.sl-legend .ly { background: var(--accent); }
.sl-section { padding: 26px 10px 10px; border-bottom: 1px solid var(--line); }
.sl-section h3 { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--x); }
.sl-section p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.sl-list > .sl-section:first-child { padding-top: 14px; }
.sl-amt.none b { font-size: 24px; color: #B4401A; letter-spacing: -0.01em; }
.sl-row.limit { background: var(--x-soft); margin: 0 -40px; padding-left: 50px; padding-right: 50px; border-bottom: 0; }
.sl-row.limit .sl-ico { background: rgba(255,255,255,.65); }
.sl-row.limit .sl-note { grid-column: 2 / 3; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.sl-row.limit.warn { --x-soft: #FFF1EB; }
.sl-row.limit.warn .sl-amt b { color: #B4401A; }
.sl-sample { margin-top: 16px; font-size: 13px; background: #FFF4E5; border: 1px solid #FFD8A8; color: #7A4A00; border-radius: 10px; padding: 9px 12px; }

.ex-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 40px 22px; border-top: 1px solid var(--line); background: #fff; }
.ex-foot p { font-size: 13px; color: var(--ink-2); max-width: 46ch; }
.ex-actions { display: flex; gap: 12px; flex: none; }
.btn.outline { background: #fff; border: 1.5px solid var(--x); color: var(--x); }
.btn.outline:hover { background: var(--x-soft); }
.btn.solid { background: var(--x); color: #fff; }
.btn.solid:hover { filter: brightness(.92); }

@media (max-width: 760px) {
  dialog.explain { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; }
  .ex-wrap { height: 100vh; max-height: 100vh; }
  .ex-scroll { padding: 26px 18px 8px; }
  .sl-head { flex-direction: column; gap: 10px; padding-right: 26px; }
  .sl-price { text-align: left; padding-top: 0; }
  .sl-price .amt { font-size: 36px; }
  .sl-sub { font-size: 17px; }
  .sl-row { grid-template-columns: 48px 1fr auto 16px; gap: 0 12px; padding: 16px 4px; }
  .sl-ico { width: 48px; height: 48px; border-radius: 12px; }
  .sl-ico svg { width: 28px; height: 28px; }
  .sl-t { font-size: 16.5px; }
  .sl-s { font-size: 14px; }
  .sl-amt b { font-size: 28px; }
  .sl-amt span { font-size: 12px; }
  .sl-amt.none b { font-size: 18px; }
  .sl-row.limit { margin: 0 -18px; padding-left: 22px; padding-right: 22px; }
  .sl-row.limit .sl-note { grid-column: 1 / -1; }
  .sl-detail { grid-column: 1 / -1; }
  .ex-foot { flex-direction: column; align-items: stretch; padding: 14px 18px 18px; gap: 12px; }
  .ex-actions { flex-direction: column-reverse; }
}
