/* ==========================================================================
   Tax plan page (tax-plan.html). Builds on the quote form styles in styles.css
   (.quote-wrap, .progress, .q-step, .choices, .rows) and uses its colour tokens.
   ========================================================================== */

.plan-privacy { display: flex; align-items: center; gap: .55rem; width: fit-content; margin: 0 0 1.5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .92rem; font-weight: 600; }
.plan-privacy svg { width: 18px; height: 18px; flex: none; color: var(--blue); }

/* ---------- Result ---------- */
.plan-result:focus { outline: 0; }
.plan-hero { text-align: center; padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem); background: var(--soft); border-radius: var(--r-lg); }
.plan-eyebrow { font-weight: 700; color: var(--blue); margin-bottom: .35rem; }
.plan-hero h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.plan-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.plan-chips li { padding: .3rem .8rem; border-radius: 999px; background: #fff; color: var(--text); font-size: .88rem; font-weight: 600; }
.plan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.plan-stats div { display: flex; flex-direction: column; gap: .15rem; padding: 1rem .75rem; background: #fff; border-radius: var(--r); }
.plan-stats b { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; color: var(--blue); line-height: 1.2; }
.plan-stats span { font-size: .9rem; color: var(--muted); }

.plan-block { margin-top: clamp(2rem, 4vw, 2.75rem); }
.plan-block > h3 { display: flex; align-items: center; gap: .75rem; font-size: clamp(1.3rem, 2.6vw, 1.55rem); margin-bottom: .9rem; }
.plan-block > h3 .n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1rem; font-weight: 800; }
.plan-block > .q-help { margin: -.4rem 0 1rem; }
.plan-block h4 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; color: var(--muted); }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; border-top: 2px solid var(--soft-2); font-weight: 700; }
.plan-total b { font-size: 1.5rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.plan-maybe .v { font-weight: 600; color: var(--muted); }
.plan-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Things worth checking: one open/close card each */
.plan-opps { display: grid; gap: .6rem; }
.plan-opp { background: #fff; border: 2px solid var(--line); border-radius: var(--r); }
.plan-opp[open] { border-color: var(--soft-2); }
.plan-opp summary { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; font-weight: 700; }
.plan-opp summary::-webkit-details-marker { display: none; }
.plan-opp summary::after { content: "+"; margin-left: auto; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 1.2rem; line-height: 1; }
.plan-opp[open] summary::after { content: "–"; }
.plan-opp summary:hover .t { color: var(--blue); }
.plan-opp summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: var(--r); }
.plan-opp .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--blue); }
.plan-opp .ico svg { width: 20px; height: 20px; }
.plan-opp .body { padding: 0 1.1rem 1.1rem calc(1.1rem + 40px + .85rem); color: var(--muted); }
.plan-step { margin-top: .75rem; padding: .7rem .9rem; background: var(--soft); border-radius: var(--r-sm); color: var(--text); }
.plan-step b { color: var(--blue); }

/* Checklist */
.plan-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.plan-check label { display: flex; align-items: flex-start; gap: .7rem; height: 100%; padding: .75rem .9rem; background: #fff; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.plan-check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: .1rem 0 0; border: 2px solid var(--soft-2); border-radius: 7px; background: #fff center/13px no-repeat; cursor: pointer; }
.plan-check input:checked { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan-check input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.plan-check input:checked + span { color: var(--muted); text-decoration: line-through; }

.plan-dates .v { font-weight: 700; }

.plan-cta { margin-top: clamp(2.25rem, 5vw, 3rem); padding: clamp(1.5rem, 4vw, 2.25rem); text-align: center; background: var(--soft); border-radius: var(--r-lg); }
.plan-cta h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-bottom: .4rem; }
.plan-cta > p { color: var(--muted); }
.plan-cta .plan-actions { justify-content: center; }

@media (max-width: 640px) {
  .plan-check { grid-template-columns: 1fr; }
  .plan-opp .body { padding-left: 1.1rem; }
  .plan-stats { grid-template-columns: 1fr 1fr; }
}

/* Print or save as PDF: just the plan */
@media print {
  .site-header, .site-footer, .skip-link, .chat, .page-head .crumbs, .page-head .lede, .plan-actions, .toast { display: none !important; }
  .page-head { padding: 0 0 1rem; background: none; }
  .plan-hero, .plan-cta, .plan-step { background: none; border: 1px solid #ccc; }
  .plan-opp { break-inside: avoid; border-color: #ccc; }
  .plan-opp .body { display: block; }
  .plan-check label { border-color: #ccc; }
}
