/* ============================================================
   Binastra Cochrane vs Laurel Residence — comparison page
   ============================================================ */

:root {
  --bg:          #F4F0E9;
  --card:        #FFFFFF;
  --head:        #FAF5EB;
  --line:        #E9E1D2;
  --line-soft:   #F1EBDE;
  --ink:         #2C2823;
  --ink-2:       #5E564B;
  --muted:       #948B7D;
  --gold:        #9A7A2E;
  --gold-deep:   #7C6021;
  --gold-bg:     #F6ECD6;
  --gold-line:   #E4D2AC;
  --green:       #2E7A4F;
  --red:         #B44A30;
  --plum:        #5C1C2E;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(60, 45, 20, .04), 0 12px 32px -20px rgba(60, 45, 20, .18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* ============================================================
   Summary — the headline numbers, visible on every tab
   ============================================================ */

.summary { align-items: stretch; }

.sum-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Dark band: the Binastra mark is a gold gradient and the Laurel mark
   has white type, so neither reads on a light ground. */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  padding: 12px 20px;
  /* 80px Laurel mark + 24px padding: both headers match so the KPI rows line up */
  min-height: 104px;
}

[data-project="bc"] .card-head { background: var(--plum); }

.brand {
  height: 64px;
  width: auto;
  display: block;
  flex: none;
}

/* the Laurel wreath carries ~20% padding, so it needs more height
   to read at the same optical size (native 250x200, still downscaled) */
[data-project="lr"] .brand { height: 80px; }

.unit {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #D9BE7E;
  text-align: right;
}

.kpis {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpis > div {
  padding: 11px 18px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.kpis > div:nth-child(3n) { border-right: none; }
.kpis > div:nth-child(n+4) { border-bottom: none; }

.kpis dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap;
}

.kpis dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpis dd.pos  { color: var(--green); }
.kpis dd.neg  { color: var(--red); }
.kpis dd.gold { color: var(--gold-deep); }

/* ============================================================
   Tabs
   ============================================================ */

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  margin: 18px 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }

.tabs [role="tab"] {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 16px 7px 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.tabs [role="tab"] i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--line);
  color: var(--ink-2);
}

.tabs [role="tab"]:hover { background: #fff; border-color: var(--line); }

.tabs [role="tab"][aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tabs [role="tab"][aria-selected="true"] i { background: var(--gold); color: #fff; }

.tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* each panel's heading only matters to screen readers and print */
.tab-heading {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================================
   Panels — one per project inside each tab
   ============================================================ */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-head h3::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
  flex: none;
}
.panel[data-project="bc"] .panel-head h3::before { background: var(--plum); }

.panel-unit {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel-note {
  margin: -6px 0 14px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--muted);
}

.plan { margin: 0 0 6px; }

.plan img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fff;
}

.sec {
  margin: 22px 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head + .sec { margin-top: 0; }

.sec-note {
  font-style: normal;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: #BEB4A3;
  margin-left: 4px;
}

/* ---------- inputs ---------- */

.inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.inputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.inputs label.full { grid-column: 1 / -1; }

.inputs span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.inputs input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #FCFAF6;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  width: 100%;
  min-width: 0;
  transition: border-color .15s, background .15s;
}

.inputs input:hover { border-color: var(--gold-line); }
.inputs input:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 122, 46, .12);
}

/* the two fields that drive the down-payment verdict */
.inputs label.hl span { color: var(--gold-deep); font-weight: 600; }
.inputs label.hl input { border-color: var(--gold-line); background: #FDF9F0; }

/* ---------- figure rows ---------- */

.rows { margin: 0; }

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.rows.tight .row { padding: 7px 0; }
.row:last-child { border-bottom: none; }

.row dt {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 13px;
  min-width: 0;
}

.row dt em {
  font-style: normal;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 300;
  margin-left: 4px;
}

.row dd {
  margin: 0;
  font-weight: 500;
  font-size: 13.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row .pos { color: var(--green); }
.row .neg { color: var(--red); }
.row .dim { color: var(--ink-2); font-weight: 400; }
.row .hero {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: -.01em;
}

.row-total {
  border-top: 1px solid var(--line);
  border-bottom: none !important;
  margin-top: 4px;
  padding-top: 12px !important;
}
.row-total dt { font-weight: 600; color: var(--ink); font-size: 13.5px; }

.row.waived dt,
.row.waived dd { color: #B3A995; font-weight: 300; font-size: 12.5px; }
/* no italics: CJK has no true oblique, browsers fake it and it looks wrong */
.row.waived dd { white-space: normal; }

/* ---------- psf strip ---------- */

.psf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 4px;
}

.psf > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.psf span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.psf b {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.psf b.dim { color: var(--ink-2); font-weight: 500; }

/* ---------- monthly block ---------- */

.monthly {
  background: #FBF7EF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 6px 16px 14px;
}
.monthly .row { border-bottom-color: #EFE7D8; }
.monthly .row-total dd {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ---------- roi band ---------- */

.roi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
}

.roi span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.roi b {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- down-payment verdict ---------- */

.verdict {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 14px 18px;
}

.verdict-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.verdict-main span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.verdict-main b {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.verdict-note {
  margin: 9px 0 0;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.65;
}

.verdict.ok { background: #EAF4EE; border-color: #CBE3D5; }
.verdict.ok .verdict-main span,
.verdict.ok .verdict-note { color: #2C6B4C; }
.verdict.ok .verdict-main b { color: var(--green); }

.verdict.need { background: #FBEDE9; border-color: #F0D3C9; }
.verdict.need .verdict-main span,
.verdict.need .verdict-note { color: #9C4028; }
.verdict.need .verdict-main b { color: var(--red); }

/* ---------- inline fee inputs ---------- */

.fees .row dd { display: flex; align-items: baseline; justify-content: flex-end; gap: 1px; }

.rm { font-size: 13.5px; font-weight: 500; color: var(--ink); }

/* marks a figure that is an expectation, not a fixed charge */
.tag-est {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #8A5A00;
  background: #FFF1D6;
  border: 1px solid #F0D29A;
  border-radius: 999px;
  vertical-align: 1px;
}
.row dd.est { color: #8A5A00; }

/* Tab 2 Laurel: step-by-step payment of the SPA Price */
.paysteps .row.step { border-top: 1px solid var(--line); padding-top: 10px; }
.paysteps .row.step:first-child { border-top: none; }
.paysteps .row.step dt { font-weight: 600; color: var(--ink); }
.paysteps .row.sub dt { padding-left: 16px; }
.paysteps .row.total dt { font-weight: 500; color: var(--ink); }
.paysteps .row.total dd { font-weight: 600; }

/* quick-pick amount buttons (Spin & Win) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep);
  background: #FDF9F0;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--gold-bg); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.spin-row { align-items: flex-start; }

/* worked calculation shown under a computed fee (MOT stamp duty) */
.fees .calc {
  margin: 0 0 8px;
  padding: 10px 14px;
  background: #FBF7EF;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.fees .calc dd { margin: 0; }

.calc-note {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--muted);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.calc-table td { padding: 4px 0; color: var(--ink-2); font-weight: 300; }
.calc-table td:nth-child(2) { color: var(--muted); text-align: right; padding-right: 18px; white-space: nowrap; }
.calc-table td:last-child { text-align: right; font-weight: 500; color: var(--ink); white-space: nowrap; width: 1%; }
.calc-table td small { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
/* label cells that span two columns: the amount is the row's 2nd cell */
.calc-table td[colspan] + td { padding-right: 0; color: var(--ink); font-weight: 500; }
.calc-table tr.calc-total td {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  font-weight: 600;
  color: var(--ink);
}
/* the amount is this row's 2nd cell too, so undo the rate column's gutter */
.calc-table tr.calc-total td:last-child { padding-right: 0; }

.inline-amt, .inline-pct {
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: right;
  padding: 3px 7px;
  font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s;
  -moz-appearance: textfield;
}

.inline-amt {
  font-size: 13.5px;
  width: 110px;
  border-bottom-color: var(--line);
}

.inline-pct {
  font-size: 11.5px;
  width: 46px;
  color: var(--gold-deep);
  border-bottom-color: var(--gold-line);
  padding: 1px 4px;
}

.inline-amt:hover, .inline-pct:hover { background: #FCFAF6; border-color: var(--gold-line); }
.inline-amt:focus, .inline-pct:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154, 122, 46, .12);
}

.inline-amt::-webkit-outer-spin-button, .inline-amt::-webkit-inner-spin-button,
.inline-pct::-webkit-outer-spin-button, .inline-pct::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* ============================================================
   Tab 5 — comparison table & differences
   ============================================================ */

.table-scroll {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-variant-numeric: tabular-nums;
}

.cmp thead th {
  background: var(--head);
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
  text-align: right;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.cmp thead th:first-child { text-align: left; }

.cmp thead th em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 2px;
}

/* keep both project columns the same width so the shading reads evenly */
.cmp th:nth-child(2), .cmp td:nth-child(2),
.cmp th:nth-child(3), .cmp td:nth-child(3) { width: 29%; }

.cmp td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.cmp td:first-child {
  text-align: left;
  font-weight: 400;
  color: var(--ink-2);
  white-space: normal;
}

.cmp tbody tr:last-child td { border-bottom: none; }

.cmp tr.group td {
  background: #FBF8F1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 20px;
}

.cmp td.win {
  background: var(--gold-bg);
  color: var(--gold-deep);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--gold);
}

.cmp td.txt { font-weight: 400; color: var(--ink-2); white-space: normal; }

.legend {
  margin: 12px 2px 0;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend .dot {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-line);
  box-shadow: inset 2px 0 0 var(--gold);
  flex: none;
}

.sec-title {
  margin: 32px 0 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.diff-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.diff-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.diff-card h4::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--ink);
  flex: none;
}
.diff-card[data-project="bc"] h4::before { background: var(--plum); }

.diff-card ul { margin: 0; padding-left: 18px; }

.diff-card li {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.6;
}
.diff-card li::marker { color: var(--gold-line); }
.diff-card li b { font-weight: 600; color: var(--ink); }
.diff-card li:last-child { margin-bottom: 0; }

/* ============================================================
   Tab 6 — package sheet
   ============================================================ */

.pkg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.pkg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pkg-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pkg-head h3::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--ink);
  flex: none;
}
.pkg-card[data-project="bc"] .pkg-head h3::before { background: var(--plum); }
.pkg-head span { font-size: 12px; color: var(--muted); }

.pkg-list { margin: 0; }

.pkg-list > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pkg-list > div:last-child { border-bottom: none; }

.pkg-list dt { font-size: 12.5px; font-weight: 600; color: var(--ink); }

.pkg-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.65;
}

.pkg-list ul { margin: 0; padding-left: 17px; }
.pkg-list li { margin-bottom: 4px; }
.pkg-list li:last-child { margin-bottom: 0; }
.pkg-list li::marker { color: var(--gold-line); }

.pkg-list .hot { color: var(--red); font-weight: 400; }

.pkg-lead {
  margin: 0 0 6px;
  padding: 8px 12px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold-deep);
  font-weight: 400;
}
.pkg-lead b { font-weight: 600; }
.pkg-list .hot li::marker { color: var(--red); }

/* Binastra partial furnish list */
.pkg-sec { margin-top: 20px; }

.furnish {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.furnish th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold-deep);
  padding: 14px 0 5px;
  border-bottom: 1px solid var(--line);
}
.furnish tr:first-child th { padding-top: 2px; }

.furnish td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-weight: 300;
  vertical-align: top;
}
.furnish td:last-child {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  padding-left: 16px;
  width: 1%;
}
.furnish td small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

/* items that don't come with a Type B unit */
.furnish tr.na td,
.furnish tr.na td small { color: #C3BAA9; }

.orig { margin-top: 14px; font-size: 12.5px; }
.orig summary { cursor: pointer; color: var(--gold-deep); font-weight: 500; }
.orig img {
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.pkg-fine {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
}

.foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 110ch;
}
.foot b { font-weight: 600; color: var(--ink-2); }
.foot .fine { color: #A79D8D; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .grid-2, .diff-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .pkg-list > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .inputs { grid-template-columns: minmax(0, 1fr); }
  .psf { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > div:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .kpis > div:nth-child(2n) { border-right: none; }
  .kpis > div:nth-child(n+4) { border-bottom: 1px solid var(--line-soft); }
  .kpis > div:nth-child(n+5) { border-bottom: none; }
  .panel { padding: 16px; }
  .card-head { padding: 12px 16px; }
  .row .hero { font-size: 19px; }
  .roi b { font-size: 22px; }
}

/* ============================================================
   Print — every tab is printed, one after another
   ============================================================ */

@media print {
  body { background: #fff; font-size: 10.5px; }
  .wrap { max-width: none; padding: 0; }
  .tabs { display: none; }
  .chips { display: none; }

  .tabpanel[hidden] { display: block !important; }
  .tabpanel { break-before: page; }
  .summary + #tabs-anchor + .tabs + main .tabpanel:first-child { break-before: auto; }

  .tab-heading {
    position: static;
    width: auto; height: auto;
    clip: auto;
    overflow: visible;
    white-space: normal;
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 600;
  }

  .grid-2, .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sum-card, .panel, .diff-card, .pkg-card, .table-scroll { box-shadow: none; break-inside: avoid; }
  .inputs input, .inline-amt, .inline-pct {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
  }
  .table-scroll { overflow: visible; }
  .cmp { min-width: 0; }
  @page { margin: 12mm; }
}
