/* ============================================================
   PLUS & MINUS — CALCULATORS  (page composition, additive)
   Layered on the design system in styles.css. No global rules
   are overridden. Class prefix:  .calc-*  and .itc-*  (this calc).
   Reused tokens: --brand, --ink, --soft, --green, --r-lg, --sh-*
   ============================================================ */

/* ---- Hero ---- */
.calc-hero {
  position: relative; padding: clamp(28px, 4vw, 56px) 0 28px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 6%, var(--surface)) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line-2);
}
/* Centered, width-capped hero content (desktop 800 / tablet 700 / mobile full) */
.calc-hero-inner { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.calc-hero .crumb {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500;
  margin-bottom: 24px;
}
.calc-hero .crumb a { color: var(--ink-2); }
.calc-hero .crumb a:hover { color: var(--brand); }
.calc-hero .crumb [data-lucide] { width: 14px; height: 14px; color: var(--muted); }
.calc-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 42px); letter-spacing: -.026em; line-height: 1.08; color: var(--ink);
  margin-top: 0;
}
.calc-hero .lead { margin: 20px auto 0; max-width: 640px; }
.calc-hero .tag.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--brand-50); color: var(--brand-700);
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: inset 0 0 0 1px color-mix(in oklab,var(--brand) 18%, transparent);
}

/* ---- Disclaimer ribbon (unused; FY 2026-27 rules confirmed in Union Budget 2026) ---- */
.calc-disclaimer {
  display: none; align-items: center; gap: 10px; margin-top: 16px;
  padding: 11px 16px; border-radius: var(--r-md);
  background: color-mix(in oklab, var(--amber) 14%, var(--surface));
  color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--amber) 28%, transparent);
}
.calc-disclaimer.is-visible { display: flex; }
.calc-disclaimer [data-lucide] { width: 18px; height: 18px; color: var(--amber); flex: none; }

/* ---- Layout: split 2-column on desktop, stacked on mobile ---- */
.calc-shell { padding: 20px 0 clamp(28px, 4vw, 56px); }
/* Tablet: narrow the centered hero copy */
@media (max-width: 900px) { .calc-hero-inner { max-width: 700px; } }
.calc-split {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(24px, 3vw, 40px); align-items: start;
}
@media (max-width: 980px) {
  .calc-split { grid-template-columns: 1fr; }
}

/* ---- Form column ---- */
.calc-form { display: grid; gap: 20px; min-width: 0; }
.calc-step {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(20px, 2.4vw, 28px);
}
.calc-step-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.calc-step-num {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 18%, transparent);
}
.calc-step-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.011em; }
.calc-step-hint { font-size: 13px; color: var(--muted); margin-left: auto; }

/* Segmented controls (FY / regime / age band) */
.calc-seg {
  display: inline-flex; padding: 4px; background: var(--soft); border-radius: var(--r-pill);
  gap: 4px; box-shadow: inset 0 0 0 1px var(--line);
}
.calc-seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-2);
  padding: 9px 16px; border-radius: var(--r-pill); transition: all .18s var(--ease);
  white-space: nowrap; min-height: 38px;
}
.calc-seg button.is-active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10,16,32,.06), inset 0 0 0 1px var(--line);
}
.calc-seg button:hover:not(.is-active) { color: var(--ink); }

.calc-seg-stack { display: flex; flex-direction: column; gap: 14px; }
.calc-seg-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc-seg-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; min-width: 60px; }

/* MOBILE: stack segments below label; FY/Regime as 2-col grid, Age as 3-col */
@media (max-width: 768px) {
  .calc-seg-stack { gap: 18px; }
  .calc-seg-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .calc-seg-label { min-width: 0; font-size: 11.5px; }
  .calc-seg {
    display: grid; grid-template-columns: 1fr 1fr;
    padding: 4px; background: var(--soft);
    border-radius: 14px;
    width: 100%; gap: 4px;
  }
  .calc-seg[aria-label="Age band"] { grid-template-columns: 1fr 1fr 1fr; }
  .calc-seg button {
    padding: 10px 12px; min-height: 44px;
    font-size: 13.5px; line-height: 1.25;
    white-space: normal; text-align: center;
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  }
}

/* Two-line FY button text */
.calc-seg .seg-main { font-weight: 600; }
.calc-seg .seg-sub {
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-left: 6px;
}
.calc-seg button.is-active .seg-sub { color: var(--ink-2); }
.calc-seg .seg-sub::before {
  content: "·"; margin-right: 6px; opacity: .6;
}
@media (max-width: 768px) {
  .calc-seg .seg-sub {
    display: block; margin-left: 0;
    font-size: 11px; line-height: 1.2; margin-top: 1px;
  }
  .calc-seg .seg-sub::before { content: none; }
}

/* Fields */
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 560px) { .calc-fields { grid-template-columns: 1fr; } }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1.3;
}
.calc-field label small {
  font-weight: 400; color: var(--muted); font-size: 11.5px; letter-spacing: -.003em;
  line-height: 1.35;
}
.calc-field .ctrl {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s var(--ease);
}
.calc-field .ctrl:focus-within {
  box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent);
}
.calc-field .ctrl-prefix {
  padding-left: 14px; padding-right: 4px; color: var(--muted); font-weight: 600; font-size: 14.5px;
  pointer-events: none;
}
.calc-field input[type=number],
.calc-field input[type=text] {
  appearance: none; border: 0; outline: 0; background: transparent;
  font: 500 15.5px/1.2 var(--font-body); color: var(--ink);
  width: 100%; padding: 12px 14px 12px 6px;
  -moz-appearance: textfield;
}
.calc-field input::-webkit-outer-spin-button,
.calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* HRA expander */
.calc-hra-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.calc-hra-toggle [data-lucide] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.calc-hra-toggle[aria-expanded="true"] [data-lucide] { transform: rotate(180deg); }
.calc-hra-panel {
  max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), opacity .2s var(--ease), margin-top .25s var(--ease);
  opacity: 0; margin-top: 0;
}
.calc-hra-panel.is-open { max-height: 800px; opacity: 1; margin-top: 14px; }
.calc-hra-panel .hra-inner {
  padding: 18px; background: var(--soft); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-hra-panel .calc-fields { margin-top: 4px; }
.calc-hra-panel .calc-field-check {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.calc-hra-panel .calc-field-check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---- Capital gains indicative-only disclaimer ---- */
.calc-cg-disclaimer {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
}
.calc-cg-disclaimer [data-lucide] { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--muted); }

/* ---- Summary column (sticky) ---- */
.calc-summary {
  position: sticky; top: 96px; align-self: start;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-md), inset 0 0 0 1px var(--line);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid; gap: 16px; min-width: 0;
}
@media (max-width: 980px) {
  .calc-summary { position: static; }
}
.calc-summary-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.calc-summary-head .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.calc-summary-head .ic [data-lucide] { width: 19px; height: 19px; }
.calc-summary-head b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.012em; }
.calc-summary-head small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }

.calc-summary .rows { display: grid; gap: 9px; }
.calc-summary .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-variant-numeric: tabular-nums;
}
.calc-summary .row .k { font-size: 13.5px; color: var(--body); font-weight: 500; }
.calc-summary .row .v { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.calc-summary .row.row-sub .k { font-size: 12.5px; color: var(--muted); padding-left: 14px; position: relative; }
.calc-summary .row.row-sub .k::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--muted); opacity: .4;
}
.calc-summary .row.row-sub .v { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.calc-summary .row-divider { height: 1px; background: var(--line-2); margin: 4px 0; }
.calc-summary .row-total {
  margin-top: 6px; padding: 14px 16px; border-radius: 14px;
  background: var(--ink); color: #fff;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.calc-summary .row-total .k { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.7); }
.calc-summary .row-total .v {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); font-weight: 700;
  letter-spacing: -.022em; line-height: 1; color: #fff;
}
.calc-summary .effective {
  text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 4px;
}
.calc-summary .effective b { color: var(--ink); font-weight: 600; }

/* Marginal-relief micro note */
.calc-summary .marginal-note { font-size: 11.5px; color: var(--green); font-weight: 500; }

/* ---- Compare panel ---- */
.calc-compare {
  margin-top: 12px; padding: 16px; border-radius: 14px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
}
.calc-compare-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.calc-compare-head [data-lucide] { width: 16px; height: 16px; color: var(--brand); }
.calc-compare-head b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.calc-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-compare-card {
  background: var(--surface); border-radius: 12px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative; transition: box-shadow .25s var(--ease);
}
.calc-compare-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.calc-compare-card .v {
  margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--ink); letter-spacing: -.018em; font-variant-numeric: tabular-nums;
}
.calc-compare-card.is-active { box-shadow: inset 0 0 0 1.5px var(--brand); }
.calc-compare-card.is-better {
  box-shadow: inset 0 0 0 1.5px var(--green);
  background: color-mix(in oklab, var(--green) 4%, var(--surface));
}
.calc-compare-card.is-better::after {
  content: "Best"; position: absolute; top: 8px; right: 8px;
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
}
.calc-recommend {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in oklab, var(--green) 8%, var(--surface));
  color: var(--ink-2); font-size: 13.5px; line-height: 1.45;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--green) 30%, transparent);
}

/* ---- ITR Form Auto-Suggest panel ---- */
.calc-itr {
  display: none;
  margin-top: 12px; padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 8%, var(--surface)) 0%, var(--surface) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 25%, var(--line));
  position: relative;
}
.calc-itr.is-visible { display: block; }
.calc-itr-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.calc-itr-head [data-lucide] { width: 16px; height: 16px; color: var(--brand); }
.calc-itr-head .lbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700);
}
.calc-itr-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; background: var(--surface); border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-itr-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: -.01em;
  background: var(--ink); color: #fff;
  padding: 5px 9px; border-radius: 8px; flex: none; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.calc-itr-text { min-width: 0; }
.calc-itr-text b {
  display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -.012em; line-height: 1.25;
}
.calc-itr-text small {
  display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px;
}
.calc-itr-why {
  margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--ink-2);
}
.calc-itr-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--brand);
}
.calc-itr-link [data-lucide] { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.calc-itr-link:hover [data-lucide] { transform: translateX(2px); }

/* Inline profile toggles in the income step */
.calc-profile-toggles {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px; margin-top: 6px;
  background: var(--soft); border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-profile-toggles label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500; cursor: pointer;
  line-height: 1.45;
  transition: opacity .2s var(--ease);
}
.calc-profile-toggles label input {
  width: 17px; height: 17px; accent-color: var(--brand); margin-top: 2px; flex: none;
}
.calc-profile-toggles label small {
  display: block; font-size: 12px; color: var(--muted); font-weight: 500;
  margin-top: 1px;
}

/* ---- Lead CTA in summary ---- */
.calc-cta { margin-top: 6px; display: grid; gap: 10px; }
.calc-cta .btn { width: 100%; justify-content: center; }
.calc-cta .calc-cta-line {
  text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 2px;
}

/* WhatsApp green button (extends .btn) */
.btn.btn-wa-green {
  background: #1FAF54; color: #fff;
  box-shadow: 0 10px 24px -12px rgba(31,175,84,.7), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.btn-wa-green:hover {
  background: #1a9849; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(31,175,84,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn.btn-wa-green [data-lucide] { width: 18px; height: 18px; }

/* ---- Slabs section ---- */
.calc-slabs { background: var(--soft); padding-block: clamp(56px, 6vw, 88px); }
.calc-slabs .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 860px) { .calc-slabs .grid-2 { grid-template-columns: 1fr; } }
.calc-slab-card { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.calc-slab-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.012em; margin-bottom: 14px; }
.calc-slab-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-slab-card th, .calc-slab-card td {
  padding: 11px 12px; text-align: left;
  border-bottom: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
}
.calc-slab-card th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  font-weight: 600; background: var(--soft); border-bottom: 1px solid var(--line);
}
.calc-slab-card td { color: var(--ink-2); }
.calc-slab-card td:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.calc-slab-card .slab-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---- How it works (3 steps) ---- */
.calc-how { padding-block: clamp(56px, 6vw, 88px); }
.calc-how .grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px;
}
@media (max-width: 860px) { .calc-how .grid-3 { grid-template-columns: 1fr; } }
.calc-how-step {
  background: var(--surface); border-radius: var(--r-lg); padding: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-how-step .n {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--brand); letter-spacing: -.022em; margin-bottom: 6px;
}
.calc-how-step h4 { font-family: var(--font-display); font-size: 17px; color: var(--ink); font-weight: 600; letter-spacing: -.012em; }
.calc-how-step p { margin-top: 8px; color: var(--body); font-size: 14.5px; line-height: 1.55; }

.calc-related {
  margin-top: 36px; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 14px;
}
.calc-related h5 {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; color: var(--ink); text-transform: uppercase;
}
.calc-related .links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
}
@media (max-width: 640px) { .calc-related .links { grid-template-columns: 1fr; } }
.calc-related .links a {
  font-size: 14.5px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
}
.calc-related .links a [data-lucide] { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.calc-related .links a:hover [data-lucide] { transform: translateX(3px); }

/* ---- FAQ: now uses the shared service-page component (.faq-wrap/.faq) from startup.css ---- */


/* ---- Final CTA panel — reuses existing .cta-panel pattern, no changes needed ---- */

/* ===========================================================
   MOBILE REFINEMENTS  (≤ 768px)
   Density · readability · prominence · sticky summary bar
   =========================================================== */
@media (max-width: 768px) {

  /* HERO — tighter spacing */
  .calc-hero { padding: 20px 0 16px; }
  .calc-hero-inner { max-width: 100%; }
  .calc-shell { padding-top: 16px; }
  .calc-hero h1 { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.1; }
  .calc-hero .lead { margin-top: 16px; font-size: 14.5px; line-height: 1.5; }
  .calc-hero .crumb { margin-bottom: 16px; font-size: 12px; }
  .calc-hero .crumb .here { display: none; }
  .calc-hero .crumb .here:last-child { display: inline; }
  .calc-disclaimer { padding: 9px 12px; font-size: 12.5px; }

  /* SHELL & SPLIT */
  .calc-shell { padding-block: 20px; }
  .calc-split { gap: 16px; }

  /* CARDS — reduce padding ~20%, lighter borders */
  .calc-form { gap: 14px; }
  .calc-step { padding: 18px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .calc-step-head {
    margin-bottom: 14px; padding-bottom: 12px; gap: 10px;
  }
  .calc-step-num { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
  .calc-step-title { font-size: 16px; }
  .calc-step-hint { display: none; }   /* free up space — value is in field-level helpers */

  .calc-fields { gap: 12px 14px; }
  .calc-field label { font-size: 13.5px; }
  .calc-field label small { font-size: 11.5px; }
  .calc-field .ctrl { border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .calc-field input[type=number],
  .calc-field input[type=text] {
    padding: 13px 14px 13px 6px; font-size: 16px;  /* iOS no-zoom */
  }
  .calc-field .ctrl-prefix { font-size: 15px; }

  /* Profile toggles tighter */
  .calc-profile-toggles { padding: 12px 14px; gap: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .calc-profile-toggles label { font-size: 13px; }
  .calc-profile-toggles label small { font-size: 11.5px; }

  /* HRA expander */
  .calc-hra-panel .hra-inner { padding: 14px; }

  /* ============== SUMMARY CARD — mobile redesign ============== */
  .calc-summary {
    padding: 18px 16px; gap: 14px; border-radius: 16px;
    box-shadow: var(--sh-sm), inset 0 0 0 1px var(--line-2);
  }
  .calc-summary-head { padding-bottom: 12px; gap: 12px; }
  .calc-summary-head .ic { width: 36px; height: 36px; border-radius: 10px; }
  .calc-summary-head b { font-size: 15.5px; }
  .calc-summary-head small { font-size: 11.5px; }

  /* Recommendation FIRST on mobile (visual priority for "which regime") */
  .calc-summary .calc-compare { order: -1; margin-top: 0; padding: 14px; }
  .calc-compare-head { margin-bottom: 10px; }
  .calc-compare-head b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

  /* Vertical stack: Best regime hero card on top, other below */
  .calc-compare-grid {
    grid-template-columns: 1fr; gap: 8px;
  }
  .calc-compare-card { padding: 14px 16px; border-radius: 12px; }
  .calc-compare-card.is-better { order: -1; }   /* Best appears first on mobile */
  .calc-compare-card .lbl { font-size: 11.5px; }
  .calc-compare-card .v { font-size: 22px; line-height: 1.1; margin-top: 6px; }
  /* Render the "best" card with a checkmark prefix */
  .calc-compare-card.is-better .lbl::before {
    content: "✓ ";  font-weight: 700; color: var(--green);
  }
  .calc-compare-card.is-better::after {
    top: 12px; right: 12px; padding: 3px 9px; font-size: 10.5px;
  }

  /* TOTAL TAX — dominant */
  .calc-summary .row-total {
    padding: 18px 18px; border-radius: 14px;
  }
  .calc-summary .row-total .k { font-size: 12px; letter-spacing: .1em; }
  .calc-summary .row-total .v { font-size: 34px; }

  /* Breakdown rows: tighter */
  .calc-summary .rows { gap: 7px; }
  .calc-summary .row .k { font-size: 13px; }
  .calc-summary .row .v { font-size: 14px; }
  .calc-summary .row.row-sub .k { font-size: 12px; padding-left: 12px; }
  .calc-summary .row.row-sub .v { font-size: 13px; }

  /* ITR panel tighter */
  .calc-itr { padding: 14px; }
  .calc-itr-card { padding: 10px 12px; gap: 10px; }
  .calc-itr-badge { font-size: 12px; padding: 4px 8px; }
  .calc-itr-text b { font-size: 14px; }
  .calc-itr-text small { font-size: 12px; }
  .calc-itr-why { font-size: 12.5px; line-height: 1.5; margin-top: 8px; }

  /* CTA buttons tighter */
  .calc-cta { gap: 8px; }
  .calc-cta .btn.btn-lg { padding: 14px 16px; font-size: 14.5px; min-height: 48px; }

  /* SLAB & HOW sections — reduce padding */
  .calc-slabs, .calc-how { padding-block: 36px; }
  .calc-slabs .grid-2, .calc-how .grid-3 { gap: 14px; margin-top: 18px; }
  .calc-slab-card { padding: 18px 16px; }
  .calc-how-step { padding: 18px 16px; }
  .calc-related { padding: 16px; margin-top: 22px; }

  /* Add bottom padding so sticky bar never overlaps final CTA */
  body { padding-bottom: 0; }   /* sticky bar uses its own offset on the page */
  main { padding-bottom: 120px; }
}

/* Very narrow phones (≤ 360px) — iPhone SE etc. */
@media (max-width: 360px) {
  .calc-step { padding: 16px 14px; }
  .calc-summary { padding: 16px 14px; }
  .calc-summary .row-total .v { font-size: 30px; }
  .calc-seg button { padding: 9px 8px; font-size: 12.5px; }
  .calc-seg .seg-sub { font-size: 10.5px; }
  .calc-hero h1 { font-size: 24px; }
}

/* ===========================================================
   STICKY MOBILE SUMMARY BAR
   Shows once any income is entered. Lives above .pmc-bar.
   =========================================================== */
.itc-stickybar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);  /* sits above .pmc-bar (~64px tall) */
  z-index: 60;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 32px -10px rgba(10,16,32,.55), 0 2px 6px rgba(10,16,32,.25);
  padding: 12px 14px;
  display: none;
  align-items: center; justify-content: space-between; gap: 10px;
  transform: translateY(16px); opacity: 0;
  transition: transform .26s var(--ease), opacity .26s var(--ease);
  pointer-events: none;
}
.itc-stickybar.is-on {
  display: flex; transform: translateY(0); opacity: 1; pointer-events: auto;
}
.itc-stickybar .sb-tax {
  display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.itc-stickybar .sb-tax .k {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.itc-stickybar .sb-tax .v {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -.022em; color: #fff; line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.itc-stickybar .sb-best {
  display: flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff;
  padding: 6px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap;
}
.itc-stickybar .sb-best [data-lucide] { width: 12px; height: 12px; }
.itc-stickybar .sb-cta {
  appearance: none; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; min-height: 40px;
  transition: background .15s var(--ease);
}
.itc-stickybar .sb-cta:hover { background: var(--brand-700, var(--brand)); }
.itc-stickybar .sb-cta [data-lucide] { width: 14px; height: 14px; }

/* Aligned with the global .pmc-bar breakpoint (≤720px) so the two mobile
   bars share the same visibility band — no floating gap at 721–768px. */
@media (min-width: 721px) {
  .itc-stickybar { display: none !important; }
}

/* Reveal animation is already provided by .reveal in styles.css */

/* ===========================================================
   V2 ADDITIONS — slab reference, recommended-regime breakdown,
   lead generation block.
   =========================================================== */

/* ---- Slab reference under Step 1 (collapsed accordion) ---- */
.calc-slab-acc { margin-top: 18px; }
.calc-slab-acc > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.calc-slab-acc > summary::-webkit-details-marker { display: none; }
.calc-slab-acc > summary [data-lucide] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.calc-slab-acc[open] > summary [data-lucide] { transform: rotate(180deg); }
.calc-slab-acc .calc-slab-ref { margin-top: 12px; }
.calc-slab-ref {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px;
}
@media (max-width: 560px) { .calc-slab-ref { grid-template-columns: 1fr; } }
.calc-slab-ref .calc-slab-card {
  background: var(--soft); border-radius: 12px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-slab-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink);
  letter-spacing: -.005em; margin-bottom: 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.calc-slab-title span { font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--muted); }
.calc-slab-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.calc-slab-table td { padding: 4px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.calc-slab-table tr:last-child td { border-bottom: 0; }
.calc-slab-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---- Recommended-regime breakdown (always visible in results) ---- */
.calc-summary-rows {
  border-radius: 14px; background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line); padding: 16px 18px;
}
.calc-summary-title {
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink);
  letter-spacing: -.008em; margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 6px;
}
.calc-summary-title span { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }
.calc-summary-rows .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0; font-size: 13.5px; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line-2);
}
.calc-summary-rows .row:last-child { border-bottom: 0; }
.calc-summary-rows .row .k { color: var(--muted); }
.calc-summary-rows .row .v { color: var(--ink-2); font-weight: 600; }
.calc-summary-rows .row-final { margin-top: 4px; padding-top: 11px; border-top: 2px solid var(--line); border-bottom: 0; }
.calc-summary-rows .row-final .k { color: var(--ink); font-weight: 700; font-size: 15px; }
.calc-summary-rows .row-final .v { color: var(--ink); font-weight: 700; font-size: 18px; font-family: var(--font-display); letter-spacing: -.015em; }

/* ---- Lead generation block ---- */
.calc-lead {
  text-align: center; padding: 24px 20px; border-radius: 16px;
  background: var(--ink); color: #fff; margin-top: 4px;
}
.calc-lead-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(20px, 2.6vw, 25px); line-height: 1.15; color: #fff;
}
.calc-lead-sub { margin: 8px auto 0; max-width: 52ch; font-size: 14px; line-height: 1.55; color: color-mix(in oklab, #fff 78%, transparent); }
.calc-lead-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.calc-lead-btns .btn { min-width: 200px; justify-content: center; }
@media (max-width: 480px) { .calc-lead-btns .btn { width: 100%; min-width: 0; } }

/* ===========================================================
   CLEARTAX-STYLE FLOW  (single centered column, calculate → results)
   Added for the "fill everything, then Calculate" redesign.
   =========================================================== */
.calc-flow { max-width: 860px; margin: 0 auto; display: grid; gap: 18px; }

/* Inline note inside a step (e.g. deductions explainer) */
.calc-step-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: -2px 0 18px; padding: 11px 14px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 13px; line-height: 1.5;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 18%, transparent);
}
.calc-step-note [data-lucide] { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* ---- Advanced options (collapsible step) ---- */
.calc-adv { padding-top: 8px; padding-bottom: 8px; }
.calc-adv-toggle {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 4px; text-align: left;
}
.calc-adv-toggle-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.calc-adv-ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--soft); color: var(--ink-2);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-adv-ic [data-lucide] { width: 18px; height: 18px; }
.calc-adv-tx b {
  display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--ink); letter-spacing: -.012em; line-height: 1.2;
}
.calc-adv-tx small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.calc-adv-chev { width: 20px; height: 20px; color: var(--muted); flex: none; transition: transform .2s var(--ease); }
.calc-adv-toggle[aria-expanded="true"] .calc-adv-chev { transform: rotate(180deg); }

/* Generic collapse (shared by advanced panel) */
.calc-collapse {
  max-height: 0; overflow: hidden; opacity: 0; margin-top: 0;
  transition: max-height .32s var(--ease), opacity .22s var(--ease), margin-top .25s var(--ease);
}
.calc-collapse.is-open { max-height: 1600px; opacity: 1; margin-top: 18px; }
.calc-adv-inner { padding-top: 18px; border-top: 1px solid var(--line-2); }
.calc-adv-grouptitle {
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.calc-adv-grouptitle span { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }
.calc-adv-grouptitle-mt { margin-top: 22px; }

/* ---- Calculate actions ---- */
.calc-actions { display: flex; gap: 12px; margin-top: 4px; }
.btn.btn-calc { flex: 1; justify-content: center; }
.btn.btn-calc [data-lucide] { width: 19px; height: 19px; }
.btn.btn-reset { flex: none; }
.calc-actions-line { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
@media (max-width: 480px) {
  .calc-actions { flex-direction: column-reverse; }
  .btn.btn-reset { width: 100%; }
}

/* ===========================================================
   RESULTS PANEL  (revealed on Calculate)
   =========================================================== */
.calc-results[hidden] { display: none; }
.calc-results {
  margin-top: 10px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-md), inset 0 0 0 1px var(--line);
  padding: clamp(22px, 3vw, 32px);
  display: grid; gap: 18px;
  scroll-margin-top: 84px;
}
.calc-results.is-on { animation: itcResIn .4s var(--ease) both; }
@keyframes itcResIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.calc-results-head { text-align: center; }
.calc-results-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
}
.calc-results-eyebrow [data-lucide] { width: 15px; height: 15px; }
.calc-results-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.12; color: var(--ink);
  margin-top: 8px;
}
.calc-results-sub { margin-top: 6px; font-size: 14.5px; color: var(--body); line-height: 1.5; }

/* Two regime cards */
.calc-regime-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .calc-regime-cards { grid-template-columns: 1fr; } }
.calc-regime-card {
  position: relative; padding: 18px 20px; border-radius: 14px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.calc-regime-card .lbl {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.calc-regime-card .v {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -.022em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.calc-regime-card .sub { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.calc-regime-card .sub b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-regime-card.is-better {
  background: color-mix(in oklab, var(--green) 6%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--green);
}
.calc-regime-card.is-better::after {
  content: "✓ Recommended"; position: absolute; top: 14px; right: 14px;
  background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .03em; padding: 3px 9px; border-radius: 999px;
}
@media (max-width: 520px) {
  .calc-regime-card.is-better { order: -1; }
}

/* Savings banner */
.calc-savings {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--green) 12%, var(--surface)), color-mix(in oklab, var(--green) 6%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--green) 30%, transparent);
}
.calc-savings-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--green); color: #fff; display: grid; place-items: center;
}
.calc-savings-ic [data-lucide] { width: 20px; height: 20px; }
.calc-savings-tx { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.calc-savings-tx b { color: var(--ink); font-weight: 700; }
.calc-savings-tx .amt {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; letter-spacing: -.014em; color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* Breakdown details */
.calc-breakdown {
  border-radius: 14px; background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.calc-breakdown summary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 16px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.calc-breakdown summary::-webkit-details-marker { display: none; }
.calc-breakdown summary [data-lucide] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.calc-breakdown[open] summary [data-lucide] { transform: rotate(180deg); }
.calc-breakdown-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-2); border-top: 1px solid var(--line-2);
}
@media (max-width: 560px) { .calc-breakdown-grid { grid-template-columns: 1fr; } }
.bd-col { background: var(--surface); padding: 16px 18px; }
.bd-col.is-best { background: color-mix(in oklab, var(--green) 4%, var(--surface)); }
.bd-col-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2);
}
.bd-col-lbl { font-size: 12.5px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.bd-col-lbl em {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--green); color: #fff; padding: 2px 6px; border-radius: 999px;
}
.bd-col-total { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.018em; font-variant-numeric: tabular-nums; }
.bd-rows { display: grid; gap: 7px; }
.bd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bd-row > span:first-child { color: var(--muted); }
.bd-row > span:last-child { color: var(--ink-2); font-weight: 600; }
.bd-row-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.bd-row-total > span { font-size: 13.5px; color: var(--ink) !important; font-weight: 700 !important; }
.bd-row-eff > span:last-child { color: var(--muted); font-weight: 500; }

/* ITR + CTA inside results reuse existing .calc-itr / .calc-cta styles.
   Make ITR always show inside results (no fade gate needed there). */
.calc-results .calc-itr { margin-top: 0; }
.calc-results .calc-cta { margin-top: 0; }

@media (max-width: 768px) {
  .calc-flow { gap: 14px; }
  .calc-results { padding: 20px 16px; gap: 16px; border-radius: 16px; }
  .calc-savings { padding: 13px 14px; gap: 10px; }
  .calc-savings-tx { font-size: 14px; }
  .calc-adv-tx b { font-size: 15px; }
}

/* ============================================================
   CALCULATOR HUB  (/calculators)  — card grid ecosystem.
   ClearTax-style grid, Plus & Minus branding. Additive only.
   ============================================================ */
.chub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .chub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .chub-grid { grid-template-columns: 1fr; } }

.chub-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px 22px 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  min-height: 172px;
}
a.chub-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 32%, transparent), var(--sh-md);
}
.chub-card-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-50); color: var(--brand);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 16%, transparent);
}
.chub-card-ic [data-lucide] { width: 22px; height: 22px; stroke-width: 2; }
.chub-card h3 {
  font-family: var(--font-display); font-size: 17.5px; font-weight: 600; letter-spacing: -.014em;
  color: var(--ink); line-height: 1.2;
}
.chub-card p { margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.chub-card-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chub-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.chub-go [data-lucide] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.chub-card:hover .chub-go [data-lucide] { transform: translateX(3px); }
.chub-status {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
}
.chub-status.is-live { background: var(--green-100); color: var(--green); }
.chub-status.is-soon { background: var(--soft-2); color: var(--muted); }
.chub-card.is-soon { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.chub-card.is-soon .chub-card-ic { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.chub-card.is-soon h3 { color: var(--ink-2); }
.chub-meta { margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 500; }



/* Hub: Most Popular tag, muted "Available Soon" text, bottom SEO prose */
.chub-tag {
  display: inline-block; align-self: flex-start; margin-bottom: 9px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--soft-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
}
.chub-soon { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chub-seo { max-width: 760px; margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.65; color: var(--muted); }
.chub-seo a { color: var(--brand); font-weight: 600; }
.chub-seo a:hover { text-decoration: underline; }

/* Edit-calculation button (between results and lead capture) */
.calc-edit { display: flex; justify-content: center; }
.calc-edit .btn [data-lucide] { width: 16px; height: 16px; }

/* Supporting sections below the calculator: centered heads + feature grid */
.calc-sec-head { text-align: center; max-width: 640px; margin: 0 auto; }
.calc-sec-head .lead { margin-top: 10px; }
.calc-why { padding-block: clamp(56px, 6vw, 88px); }
.calc-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px;
}
@media (max-width: 860px) { .calc-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .calc-why-grid { grid-template-columns: 1fr; } }
.calc-why-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc-why-ic {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 18%, transparent);
}
.calc-why-ic [data-lucide] { width: 19px; height: 19px; }
.calc-why-item p { font-size: 14.5px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 768px) {
  .calc-why { padding-block: 36px; }
  .calc-why-grid { gap: 12px; margin-top: 18px; }
  .calc-why-item { padding: 14px 16px; gap: 12px; }
}

/* ===========================================================
   V2 PRIORITY-1 — 80D split sub-fields, 80EEA gate, effective rate
   =========================================================== */
.calc-field-wide { grid-column: 1 / -1; }
.calc-subfields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .calc-subfields { grid-template-columns: 1fr; } }
.calc-subfield { display: flex; flex-direction: column; gap: 5px; }
.calc-subfield-lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.calc-subfield-lbl small { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.calc-field-check {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 4px;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2); font-weight: 500; cursor: pointer;
}
.calc-field-check input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.calc-field-hint { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; }

/* Effective-rate row in the recommended-regime breakdown */
.calc-summary-rows .row-eff { border-bottom: 0; padding-top: 4px; }
.calc-summary-rows .row-eff .k { color: var(--muted); }
.calc-summary-rows .row-eff .v { color: var(--ink-2); font-weight: 600; }
