/* ========================================================
   BrickReturn™ — premium financial-product landing page
   Palette: deep slate + warm terracotta-brick accent + cream
   ======================================================== */

:root {
  --bg: #0e1118;
  --bg-elev: #161a24;
  --bg-soft: #f7f4ee;
  --ink: #0b0d12;
  --ink-soft: #2a2f3a;
  --muted: #6b7080;
  --line: #e5e1d8;
  --line-dark: #232838;

  --brick: #c8553d;
  --brick-deep: #a8412c;
  --brick-soft: #e89880;
  --gold: #d4a24c;
  --cream: #f5efe2;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(15,20,35,.08), 0 2px 4px rgba(15,20,35,.04);
  --shadow-lg: 0 30px 60px rgba(15,20,35,.18);

  --max: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(15,20,35,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brick), var(--brick-deep));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(168,65,44,.35);
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.logo-text sup { font-size: 0.55em; opacity: .6; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:hover { color: var(--brick); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--brick); transform: translateY(-1px); }

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(11,13,18,.14);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav-cta-mobile { display: none; }

@media (max-width: 820px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid rgba(15,20,35,.08);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    /* collapsed */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height .32s ease, opacity .24s ease, transform .24s ease, visibility .24s;
  }
  .nav.menu-open .nav-links {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 15px 28px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(15,20,35,.05);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-cta-mobile {
    display: block !important;
    margin: 12px 28px 6px;
    text-align: center;
    background: var(--brick);
    color: #fff !important;
    border-radius: 999px;
    border-bottom: none !important;
  }

  /* animate hamburger → X when open */
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: all .25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brick);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200,85,61,.32);
}
.btn-primary:hover {
  background: var(--brick-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(200,85,61,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11,13,18,.2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 100px;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(200,85,61,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(212,162,76,.08), transparent 60%),
    var(--bg-soft);
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,13,18,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,18,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(200,85,61,.10);
  color: var(--brick-deep);
  border: 1px solid rgba(200,85,61,.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 980px;
  margin: 0 auto 28px;
}
.hero-title sup { font-size: 0.4em; opacity: .55; }
.accent {
  color: var(--brick);
  font-style: italic;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15,20,35,.05);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  font-weight: 700;
  color: var(--brick);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}
.section-dark {
  background: var(--bg);
  color: #d8dbe4;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-lede { color: #98a0b3; }

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--brick-soft); }
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-top: 18px;
  line-height: 1.6;
}
.section-lede strong { color: var(--ink); font-weight: 600; }
.section-dark .section-lede strong { color: #fff; }

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .3s, border-color .3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--brick);
}
.problem-num {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brick-soft);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.problem-card h3 {
  color: #fff;
  margin-bottom: 18px;
}
.problem-stat {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brick);
  line-height: 1;
  margin-bottom: 18px;
}
.problem-stat span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.problem-card p:not(.problem-stat) {
  color: #aab0c0;
  font-size: 0.96rem;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---------- Insight quote ---------- */
.section-insight {
  background: linear-gradient(135deg, var(--brick) 0%, var(--brick-deep) 100%);
  color: #fff;
  padding: 90px 0;
}
.insight-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.insight-quote {
  color: #fff;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  margin: 20px 0 24px;
  font-weight: 600;
}
.insight-attribution {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  font-family: 'Inter', sans-serif;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,20,35,.05);
  transition: box-shadow .3s, transform .3s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brick), var(--brick-deep));
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(200,85,61,.3);
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--ink-soft); font-size: 1rem; }
.step-body p strong { color: var(--brick-deep); font-weight: 600; }

.allocation-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.allocation-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.allocation-list li:first-child { border-top: none; }
.allocation-list span {
  display: inline-block;
  min-width: 46px;
  padding: 3px 10px;
  background: var(--cream);
  color: var(--brick-deep);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 640px) {
  .step { flex-direction: column; gap: 16px; padding: 26px; }
}

/* ---------- EMI Table ---------- */
/* ---------- EMI relief chart ---------- */
.emi-chart-card {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 28px 30px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.emi-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.emi-chart-head h3 { color: #fff; font-size: 1.2rem; }
.emi-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; }
.emi-chart-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #98a0b3;
  font-weight: 500;
}
.emi-chart-legend .lg i {
  width: 13px; height: 13px;
  border-radius: 3px;
  display: inline-block;
}
.lg-bank i   { background: #98a0b3; }
.lg-net i    { background: var(--brick); }
.lg-rebate i { background: rgba(200,85,61,.28); border: 1px solid var(--brick-soft); }

.emi-chart { width: 100%; }
.emi-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.emi-chart .grid-line { stroke: var(--line-dark); stroke-width: 1; }
.emi-chart .axis-label { fill: #6b7080; font-size: 12px; font-family: 'Inter', sans-serif; }
.emi-chart .rebate-area { fill: url(#rebateGrad); opacity: 0; transition: opacity .9s ease .5s; }
.emi-chart.in .rebate-area { opacity: 1; }
.emi-chart .line-bank { fill: none; stroke: #98a0b3; stroke-width: 2.5; stroke-dasharray: 6 5; }
.emi-chart .line-net  { fill: none; stroke: var(--brick); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.emi-chart .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.3s ease;
}
.emi-chart.in .draw { stroke-dashoffset: 0; }
.emi-chart .dot { fill: var(--brick); stroke: var(--bg-elev); stroke-width: 2.5; opacity: 0; transition: opacity .4s ease 1.2s; }
.emi-chart.in .dot { opacity: 1; }
.emi-chart .dot-label { fill: #fff; font-size: 12.5px; font-weight: 700; font-family: 'Inter', sans-serif; opacity: 0; transition: opacity .4s ease 1.3s; }
.emi-chart.in .dot-label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .emi-chart .draw { transition: none; stroke-dashoffset: 0; }
  .emi-chart .rebate-area, .emi-chart .dot, .emi-chart .dot-label { transition: none; opacity: 1; }
}
@media (max-width: 600px) {
  .emi-chart-card { padding: 22px 16px 16px; }
  .emi-chart-head h3 { font-size: 1.05rem; }
}

.emi-table-wrap {
  max-width: 900px;
  margin: 0 auto 48px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-dark);
}
.emi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 600px;
}
.emi-table th, .emi-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
}
.emi-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #98a0b3;
  font-weight: 600;
  background: rgba(0,0,0,.15);
}
.emi-table td { color: #d8dbe4; font-variant-numeric: tabular-nums; }
.emi-table tbody tr:last-child td { border-bottom: none; }
.emi-table .rebate { color: var(--brick-soft); font-weight: 600; }
.emi-table .net { color: #fff; font-weight: 700; }
.emi-table tr.highlight { background: rgba(200,85,61,.10); }
.emi-table tr.highlight td { color: #fff; font-size: 1.05rem; }
.emi-table tr.highlight .net { color: var(--brick-soft); }

.math-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.callout {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.callout-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brick-soft);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.callout-label {
  font-size: 0.88rem;
  color: #98a0b3;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .math-callouts { grid-template-columns: 1fr; }
}

/* ---------- Properties catalog ---------- */
.section-properties { background: var(--cream); }

.prop-filters {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.6fr auto;
  gap: 14px;
  align-items: end;
  background: #fff;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,20,35,.06);
  margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.filter-group select,
.filter-group input {
  padding: 11px 14px;
  border: 1px solid rgba(15,20,35,.12);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(200,85,61,.12);
}
.filter-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 12px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .prop-filters { grid-template-columns: 1fr 1fr; }
  .filter-group-search { grid-column: 1 / -1; }
  .filter-meta { grid-column: 1 / -1; padding-bottom: 0; }
}

.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prop-grid { grid-template-columns: 1fr; } }

.prop-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(15,20,35,.07);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  color: var(--ink);
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,85,61,.35);
}
.prop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.prop-tag {
  display: inline-block;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.tag-live { background: #e8f5ee; color: #1f7a3f; }
.tag-completed { background: #efeae0; color: #7a5a1f; }
.prop-city {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.prop-name {
  font-size: 1.18rem;
  margin-bottom: 6px;
  line-height: 1.25;
}
.prop-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.prop-meta .dot { color: var(--muted); }
.prop-specs {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.prop-specs strong { color: var(--ink); font-weight: 700; }

.prop-price-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.prop-price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}
.prop-price-label { color: var(--muted); }
.prop-price-val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.prop-price-line-savings .prop-price-label { color: var(--brick-deep); font-weight: 600; }
.prop-savings { color: var(--brick) !important; font-weight: 700 !important; }
.prop-savings-pill {
  margin-top: 8px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--brick), var(--brick-deep));
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(200,85,61,.25);
}
.prop-cta-row {
  margin-top: auto;
  padding-top: 6px;
}
.prop-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brick);
}
.prop-card:hover .prop-link { color: var(--brick-deep); }

.prop-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.prop-loadmore-wrap {
  text-align: center;
  margin-top: 36px;
}
.prop-note {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 800px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Stakeholders ---------- */
.stake-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stake-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid rgba(15,20,35,.06);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.stake-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,85,61,.25);
}
.stake-card-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.stake-card-featured h3 { color: #fff; }
.stake-card-featured ul li { color: #c8ccd6; border-bottom-color: rgba(255,255,255,.08); }
.stake-card-featured ul li::before { color: var(--brick-soft); }

.stake-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.stake-card h3 { margin-bottom: 16px; font-size: 1.25rem; }
.stake-card ul { display: flex; flex-direction: column; gap: 0; }
.stake-card ul li {
  padding: 12px 0 12px 20px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.stake-card ul li:last-child { border-bottom: none; }
.stake-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brick);
  font-weight: 700;
}

@media (max-width: 980px) {
  .stake-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .stake-grid { grid-template-columns: 1fr; }
}

/* ---------- Safety section ---------- */
.section-safety {
  background: var(--cream);
}
.safety-inner { max-width: 1000px; margin: 0 auto; }
.safety-inner .eyebrow { text-align: center; display: block; }
.safety-inner h2 { text-align: center; margin-bottom: 56px; }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.safety-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border-left: 4px solid var(--brick);
  box-shadow: var(--shadow-sm);
}
.safety-item h4 { color: var(--brick-deep); margin-bottom: 10px; }
.safety-item p { color: var(--ink-soft); font-size: 0.97rem; }
.safety-item strong { color: var(--ink); }

@media (max-width: 720px) {
  .safety-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(15,20,35,.07);
  padding: 22px 28px;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover { border-color: rgba(200,85,61,.3); }
.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: rgba(200,85,61,.3);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brick);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- CTA section ---------- */
.section-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.section-cta h2 { color: #fff; margin: 16px 0 18px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-cta p {
  color: #b0b6c6;
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.section-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.section-cta .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: #06080d;
  color: #8a91a3;
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-left p {
  margin-top: 16px;
  max-width: 420px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.footer-left .logo-text { color: #fff; }
.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.footer-col h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: #8a91a3;
  font-size: 0.93rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--brick-soft); }

.footer-bottom { padding: 24px 0; }
.footer-bottom p {
  font-size: 0.78rem;
  color: #5a6076;
  line-height: 1.6;
  max-width: 900px;
}

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-right { grid-template-columns: 1fr 1fr; }
}

/* ---------- Property detail page ---------- */
.detail-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  font-size: 1.1rem;
}

.detail-hero {
  padding: 56px 0 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--brick); }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { margin: 0 8px; color: var(--line); }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.detail-head .prop-tag { margin-bottom: 14px; }
.detail-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.detail-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.detail-price-tag {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,20,35,.07);
  text-align: right;
}
.dpt-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.dpt-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brick);
}

.detail-facts {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 28px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}
.fact span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.fact strong { color: var(--ink); font-weight: 600; }
.fact a { color: var(--brick); }
.fact a:hover { text-decoration: underline; }
@media (max-width: 820px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

.detail-compare { background: var(--bg-soft); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
.compare-col {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15,20,35,.06);
  position: relative;
}
.compare-col-br {
  background: linear-gradient(180deg, #fff 0%, #fff7f3 100%);
  border: 2px solid var(--brick);
  box-shadow: 0 20px 40px rgba(200,85,61,.15);
}
.compare-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.compare-tag-bad { background: #f3eae7; color: #8a3a2e; }
.compare-tag-good { background: var(--brick); color: #fff; }
.compare-col h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.compare-row strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.compare-row-total {
  border-bottom: none;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 1.05rem;
}
.compare-row-total strong { font-size: 1.25rem; }
.compare-col-br .compare-row-total { border-top-color: var(--brick); }
.text-warn { color: #a8412c !important; }
.text-good { color: var(--brick-deep) !important; }
.compare-foot {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 820px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.schedule-title {
  font-size: 1.5rem;
  margin-bottom: 22px;
  text-align: center;
}
.emi-table-wrap-light {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.emi-table-light th {
  color: var(--muted);
  background: var(--cream);
}
.emi-table-light th, .emi-table-light td {
  border-bottom-color: var(--line);
}
.emi-table-light td { color: var(--ink-soft); }
.emi-table-light .rebate { color: var(--brick) !important; }
.emi-table-light .net { color: var(--ink) !important; }
.emi-table-light tr.highlight { background: rgba(200,85,61,.08); }
.emi-table-light tr.highlight td { color: var(--ink); font-weight: 600; }
.emi-table-light tr.highlight .net { color: var(--brick-deep) !important; }

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}
.ss-item {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.ss-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brick-soft);
  margin-bottom: 8px;
}
.ss-label {
  font-size: 0.85rem;
  color: #b0b6c6;
}
@media (max-width: 720px) { .schedule-summary { grid-template-columns: 1fr; } }

.detail-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Backend calculation panel (v2 — methods + simulation) ---------- */
.backend-calc {
  background: linear-gradient(180deg, #fff 0%, #fbf8f1 100%);
  border: 1px solid rgba(15,20,35,.08);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  margin: 56px 0 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) { .backend-calc { padding: 32px 22px; } }

/* ---------- Live visualization panel (property detail) ---------- */
.viz-panel { margin: 48px 0; }
.viz-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.viz-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 8px 0 8px; }
.viz-head p { color: var(--muted); font-size: 0.98rem; }
.viz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .viz-grid { grid-template-columns: 1fr; } }

.viz-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.viz-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.viz-card-head h4 { color: #fff; font-size: 1.05rem; letter-spacing: -0.01em; }
.viz-sub { font-size: 0.8rem; color: #98a0b3; }
.viz-sub strong { color: var(--brick-soft); }
.viz-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.viz-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: #98a0b3; font-weight: 500; }
.viz-legend .lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.viz-chart { width: 100%; position: relative; }
.viz-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz-chart .vz-grid { stroke: var(--line-dark); stroke-width: 1; }
.viz-chart .vz-axis { fill: #6b7080; font-size: 11px; font-family: 'Inter', sans-serif; }
.viz-chart .vz-area { opacity: .9; }
.viz-chart .vz-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.viz-chart .vz-dashed { stroke-dasharray: 5 5; stroke-width: 2; }
.viz-chart .vz-dot { stroke: var(--bg-elev); stroke-width: 2; }
.viz-chart .vz-bar { transition: opacity .15s; }
.viz-chart .vz-bar-lbl { fill: #c7ccd8; font-size: 10.5px; font-family: 'Inter', sans-serif; font-weight: 600; text-anchor: middle; }
.viz-chart .vz-hit { fill: transparent; cursor: crosshair; }
.viz-chart .vz-guide { stroke: rgba(255,255,255,.16); stroke-width: 1; }

/* comparison bars (chart 4) */
.viz-bars2 { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 4px; }
.viz-bar2-row .viz-bar2-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.viz-bar2-row .viz-bar2-name { font-size: 0.86rem; color: #c7ccd8; font-weight: 600; }
.viz-bar2-row .viz-bar2-val { font-size: 0.86rem; font-weight: 700; }
.viz-bar2-track { height: 26px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; }
.viz-bar2-fill { height: 100%; border-radius: 8px 0 0 8px; transition: width .5s ease; }
.viz-bar2-fill.seg { border-radius: 0; }
.viz-fill-std { background: linear-gradient(90deg, #5a6072, #6b7080); }
.viz-fill-pay { background: linear-gradient(90deg, var(--brick-deep), var(--brick)); }
.viz-fill-save { background: linear-gradient(90deg, #2f8a4d, #3fa861); }
.viz-bars2-legend { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.viz-bars2-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: #98a0b3; }
.viz-bars2-legend .lg i { width: 11px; height: 11px; border-radius: 3px; }

/* hover tooltip */
.viz-tip {
  position: absolute;
  pointer-events: none;
  background: #0b0d12;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.78rem;
  color: #d8dbe4;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -115%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s;
  z-index: 5;
}
.viz-tip.show { opacity: 1; }
.viz-tip .vt-yr { color: #98a0b3; font-size: 0.72rem; margin-bottom: 3px; }
.viz-tip .vt-row { display: flex; align-items: center; gap: 6px; }
.viz-tip .vt-row i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.viz-tip .vt-row b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .viz-bar2-fill { transition: none; }
}

/* BR profitability banner */
.br-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border-left: 4px solid;
}
.br-banner-good {
  background: linear-gradient(135deg, rgba(47, 138, 77, 0.10), rgba(47, 138, 77, 0.04));
  border-left-color: #2f8a4d;
}
.br-banner-warn {
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.16), rgba(212, 162, 76, 0.06));
  border-left-color: var(--gold);
}
.br-banner-bad {
  background: linear-gradient(135deg, rgba(168, 65, 44, 0.14), rgba(168, 65, 44, 0.05));
  border-left-color: #a8412c;
}
.br-banner-bad .br-banner-icon { background: #a8412c; color: #fff; }
.br-banner-bad .br-banner-body b { color: #a8412c; }
.br-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.br-banner-good .br-banner-icon { background: #2f8a4d; }
.br-banner-warn .br-banner-icon { background: var(--gold); color: #4a3a14; }
.br-banner-body { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.br-banner-body strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 2px; }
.br-banner-body b { color: var(--brick-deep); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Worked example block */
.worked-example {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .worked-example { padding: 26px 22px; } }

.we-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(15,20,35,.10);
}
.we-head .bc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}
.we-head h4 { font-size: 1.25rem; margin: 0; letter-spacing: -0.005em; }
.we-head .bc-tagline { margin-left: auto; }
@media (max-width: 720px) { .we-head .bc-tagline { margin-left: 0; width: 100%; } }

.we-shared {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.we-shared h5 {
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brick);
  font-weight: 700;
  margin-bottom: 16px;
}
.we-rows { display: flex; flex-direction: column; gap: 0; }
.we-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(15,20,35,.08);
  font-size: 0.93rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.we-row:last-child { border-bottom: none; }
.we-row em { font-style: italic; color: var(--brick-deep); font-family: 'Playfair Display', serif; }
.we-row small { color: var(--muted); font-size: 0.8em; }
.we-row strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.we-row-key { background: rgba(200,85,61,.06); padding: 10px 14px !important; margin: 4px 0; border-radius: 6px; border: none !important; }
.we-row-key span { color: var(--brick-deep); font-weight: 600; }
.we-row-key strong { color: var(--brick-deep) !important; font-size: 1.04rem !important; }
.we-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 8px;
}
.we-tag-actual { background: rgba(212,162,76,.20); color: #8a6c1a; }
.we-tag-buyer  { background: rgba(47,138,77,.16); color: #1f6a3a; }
.we-tag-inv    { background: rgba(15,20,35,.10); color: var(--ink-soft); }
.we-tag-bonus  { background: var(--brick); color: #fff; }
.we-good { color: #2f8a4d !important; }
.we-bad  { color: #a8412c !important; }

.we-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 720px) { .we-grid { grid-template-columns: 1fr; } }

.we-method-card {
  background: #fff;
  border: 1px solid rgba(15,20,35,.10);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.we-mtag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.we-mtag-1 { background: var(--brick); color: #fff; }
.we-mtag-2 { background: var(--ink); color: #fff; }

.we-desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 12px; line-height: 1.5; }
.we-formula {
  background: #f5efe2;
  border-left: 3px solid var(--brick);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.we-formula strong { color: var(--brick-deep); font-weight: 700; font-family: 'Inter', sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.we-impl { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 10px; line-height: 1.5; }
.we-y2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15,20,35,.04);
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.we-y2 strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.we-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(212,162,76,.10);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.we-note strong { color: var(--ink); }

/* Per-year yield customization */
.custom-yields {
  background: var(--cream);
  border: 1px solid rgba(15,20,35,.10);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.cy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cy-head h4 {
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.005em;
}
.cy-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cy-preset {
  background: #fff;
  border: 1px solid rgba(15,20,35,.15);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.cy-preset:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cy-preset-reset:hover { background: var(--brick); border-color: var(--brick); }

.cy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.cy-cell {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: 8px;
  padding: 10px 8px 8px;
  text-align: center;
  position: relative;
  transition: border-color .2s, background .2s;
}
.cy-cell-set  { border-color: var(--brick); background: linear-gradient(180deg, #fff, rgba(200,85,61,.04)); }
.cy-cell-cap  { border-color: #2f8a4d;     background: linear-gradient(180deg, #fff, rgba(47,138,77,.06)); }
.cy-cell-loss { border-color: #a8412c;     background: linear-gradient(180deg, #fff, rgba(168,65,44,.10)); }
.cy-yr {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.cy-input-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.cy-input {
  width: 60px;
  padding: 4px 4px;
  text-align: right;
  border: 1px solid rgba(15,20,35,.15);
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.cy-input::-webkit-outer-spin-button,
.cy-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cy-input:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 2px rgba(200,85,61,.18);
}
.cy-input::placeholder { color: rgba(15,20,35,.25); }
.cy-pct {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.cy-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.cy-hint strong { color: var(--brick-deep); }

/* Year selector for worked example */
.we-year-select {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  margin: 0 4px;
  font-variant-numeric: tabular-nums;
}
.we-year-select:hover { background: var(--brick-deep); }
.we-year-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(200,85,61,.25); }
.we-year-select option { color: var(--ink); background: #fff; }

/* Aggregate summary stats */
.we-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed rgba(15,20,35,.12);
}
@media (max-width: 720px) { .we-summary { grid-template-columns: 1fr 1fr; } }
.we-summary-item {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.we-ss-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.we-ss-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.we-ss-sub {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}
.we-summary-br-good { border-top: 3px solid #2f8a4d; }
.we-summary-br-good .we-ss-val { color: #2f8a4d; }
.we-summary-br-loss { border-top: 3px solid #a8412c; background: rgba(168,65,44,.04); }
.we-summary-br-loss .we-ss-val { color: #a8412c; }

/* Method toggle */
.method-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 720px) { .method-toggle { grid-template-columns: 1fr; } }
.method-opt {
  display: block;
  padding: 22px 24px;
  background: #fff;
  border: 2px solid rgba(15,20,35,.10);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.method-opt:hover { border-color: rgba(200,85,61,.4); }
.method-opt.active {
  border-color: var(--brick);
  background: linear-gradient(180deg, #fff 0%, rgba(200,85,61,.04) 100%);
  box-shadow: 0 8px 18px rgba(200,85,61,.12);
}
.method-opt input { display: none; }
.method-opt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.method-opt-title strong { font-size: 1.05rem; color: var(--ink); }
.method-opt-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brick);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.method-opt p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.method-opt p em { color: var(--brick-deep); font-style: italic; font-weight: 600; }

/* Stress toggle */
.stress-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  margin-bottom: 32px;
  transition: background .2s, border-color .2s;
}
.stress-toggle:hover { background: #fdfaf2; }
.stress-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brick);
  flex-shrink: 0;
}
.stress-toggle div {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.stress-toggle strong { color: var(--ink); font-weight: 600; }

/* Setup strip (steps 1-3 mini) */
.bc-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 820px) { .bc-setup-grid { grid-template-columns: 1fr; } }
.bc-mini-step {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.bc-mini-num {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--brick);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.bc-mini-step h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.bc-mini-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bc-mini-rows > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(15,20,35,.07);
  gap: 12px;
}
.bc-mini-rows > div:last-child { border-bottom: none; }
.bc-mini-rows strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-mini-key {
  background: rgba(200,85,61,.08);
  padding: 9px 12px !important;
  border-radius: 6px;
  border: none !important;
  margin-top: 4px;
}
.bc-mini-key span { color: var(--brick-deep); font-weight: 600; }
.bc-mini-key strong { color: var(--brick-deep) !important; }

/* Year-by-year sim section */
.bc-sim { margin-bottom: 40px; }
.bc-sim-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bc-sim-head h4 {
  font-size: 1.3rem;
  margin: 0;
}
.bc-sim-head .bc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brick);
  margin-right: 8px;
}
.bc-method-tag {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 10px;
  vertical-align: middle;
}
.bc-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.bc-sim-table-wrap {
  background: var(--ink);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}
.bc-sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 760px;
}
.bc-sim-table th {
  background: rgba(0,0,0,.25);
  color: #98a0b3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bc-sim-table td {
  padding: 12px 16px;
  color: #d8dbe4;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bc-sim-table tbody tr:last-child td { border-bottom: none; }
.bc-sim-table td strong { color: #fff; font-weight: 700; }
.bc-sim-table tr.sim-loss td { background: rgba(168, 65, 44, 0.18); }
.bc-sim-table tr.sim-loss td:first-child { border-left: 3px solid #d65a3f; }
.bc-sim-table .sim-loss-tag {
  background: #a8412c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
}
.bc-sim-table .sim-zero { color: #6b7080; font-style: italic; }
.bc-sim-table tr.sim-final td {
  background: rgba(200, 85, 61, 0.18);
  font-weight: 600;
}
.bc-sim-table tr.sim-final.sim-loss td { background: rgba(168, 65, 44, 0.30); }
.bc-sim-table tr.sim-final td:first-child { border-left: 3px solid var(--brick); }

/* Final outcome cards */
.bc-final-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}
.bc-final-head .bc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brick);
}
.bc-final-head h4 { font-size: 1.3rem; margin: 0; }

.bc-final-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 820px) { .bc-final-grid { grid-template-columns: 1fr; } }
.bc-final-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brick);
  text-align: center;
}
.bc-final-buyer { border-top-color: #2f8a4d; }
.bc-final-investor { border-top-color: var(--gold); }
.bc-final-br { border-top-color: var(--brick); }
.bc-final-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.bc-final-buyer .bc-final-tag { color: #1f6a3a; }
.bc-final-investor .bc-final-tag { color: #8a6c1a; }
.bc-final-br .bc-final-tag { color: var(--brick-deep); }
.bc-final-val {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.bc-final-lbl {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.bc-final-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.bc-final-sub span { color: var(--ink); font-weight: 600; }

.bc-alt {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(15,20,35,.04);
  border: 1px dashed rgba(15,20,35,.18);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}
.bc-alt strong { color: var(--brick-deep); font-weight: 600; }
.bc-alt-link {
  background: none;
  border: none;
  color: var(--brick);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  text-decoration: underline;
}
.bc-alt-link:hover { color: var(--brick-deep); }

/* ---------- Methods explainer (3 perspectives × 2 methods) ---------- */
.methods-explainer {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin: 0 0 48px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) { .methods-explainer { padding: 36px 22px; } }

.me-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 44px;
}
.me-head .eyebrow { color: var(--brick-soft); }
.me-head h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.015em;
  margin: 12px 0 14px;
  line-height: 1.2;
}
.me-head p {
  color: #b0b6c6;
  font-size: 1rem;
  line-height: 1.6;
}

.me-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 960px) { .me-grid { grid-template-columns: 1fr; } }

.me-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.me-card-br      { border-top: 4px solid var(--brick); }
.me-card-investor { border-top: 4px solid var(--gold); }
.me-card-buyer   { border-top: 4px solid #4caf7a; }

.me-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(255,255,255,.12);
}
.me-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.me-tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brick-soft);
  margin-bottom: 4px;
}
.me-card-br      .me-tag { color: var(--brick-soft); }
.me-card-investor .me-tag { color: #f0d796; }
.me-card-buyer   .me-tag { color: #a5e0bd; }
.me-card-head h4 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: -0.005em;
}

.me-card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.me-method {
  background: rgba(0,0,0,.20);
  border-radius: 10px;
  padding: 16px 18px;
}
.me-method-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.me-method-1 { background: var(--brick); color: #fff; }
.me-method-2 { background: rgba(255,255,255,.10); color: #fff; }

.me-method p {
  margin: 0;
  font-size: 0.92rem;
  color: #c8ccd6;
  line-height: 1.55;
}
.me-method p strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.me-method p em { color: var(--brick-soft); font-style: italic; }

.me-note {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #a5e0bd;
  padding: 10px 14px;
  background: rgba(76,175,122,.10);
  border-left: 3px solid #4caf7a;
  border-radius: 6px;
}

/* Decision footer */
.me-decision {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(200,85,61,.16), rgba(200,85,61,.08));
  border: 1px solid rgba(200,85,61,.35);
  border-radius: var(--radius);
}
.me-decision-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.me-decision h5 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.me-decision p {
  margin: 0;
  font-size: 0.94rem;
  color: #c8ccd6;
  line-height: 1.55;
}
.me-decision strong { color: var(--brick-soft); font-weight: 600; }

/* Legacy backend-calc-old (no longer used but left in case) */
.backend-head {
  text-align: center;
  margin-bottom: 40px;
}
.backend-head h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 12px 0 12px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.backend-head p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.bc-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid rgba(15,20,35,.06);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.bc-step-final {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1f2c 100%);
  border-color: var(--ink);
  color: #fff;
}
.bc-step-final h4 { color: #fff; }
.bc-step-final .bc-num { color: var(--brick-soft); }
.bc-step-final .bc-tagline { color: #b0b6c6; }

.bc-step-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(15,20,35,.12);
}
.bc-step-final .bc-step-head { border-bottom-color: rgba(255,255,255,.12); }

.bc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: -0.02em;
}
.bc-step h4 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.bc-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-left: auto;
}
@media (max-width: 720px) {
  .bc-tagline { margin-left: 0; width: 100%; font-size: 0.85rem; }
}

.bc-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(15,20,35,.07);
  font-size: 0.94rem;
  color: var(--ink-soft);
  gap: 16px;
}
.bc-step-final .bc-row { border-bottom-color: rgba(255,255,255,.08); color: #c8ccd6; }
.bc-row:last-child { border-bottom: none; }
.bc-row span { flex: 1; }
.bc-row strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  white-space: nowrap;
}
.bc-step-final .bc-row strong { color: #fff; }
.bc-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}
.bc-step-final .bc-row em { color: #fff; }
.bc-row-formula {
  background: rgba(200,85,61,.04);
  padding: 14px 14px;
  border-radius: 8px;
  margin: 4px 0;
  border: 1px solid rgba(200,85,61,.10);
}
.bc-row-formula em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.96rem;
}
.bc-row-key {
  background: var(--brick);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 8px;
  border: none !important;
}
.bc-row-key span, .bc-row-key em { color: #fff; }
.bc-row-key strong { color: #fff !important; font-size: 1.08rem !important; }
.bc-row-key em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.bc-row-sub { color: var(--muted); font-size: 0.92rem; }
.bc-row-sub .text-warn { color: #8a3a2e; }

.bc-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.bc-divider {
  text-align: center;
  font-size: 1.8rem;
  color: var(--brick);
  font-weight: 300;
  margin: 14px 0;
  opacity: 0.6;
  line-height: 1;
}

/* Outcome cells in the final step */
.bc-outcome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.bc-outcome-cell {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.bc-outcome-cell-final {
  background: rgba(200,85,61,.18);
  border-color: var(--brick);
}
.bc-oc-label {
  font-size: 0.78rem;
  color: #b0b6c6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}
.bc-oc-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.bc-outcome-cell-final .bc-oc-val { color: var(--brick-soft); }
.bc-oc-sub {
  font-size: 0.78rem;
  color: #b0b6c6;
}

.bc-cumulative {
  margin-top: 22px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--brick), var(--brick-deep));
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bc-cumulative span {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}
.bc-cumulative strong {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (max-width: 720px) {
  .backend-calc { padding: 32px 22px; }
  .bc-outcome { grid-template-columns: 1fr; }
}

/* ---------- Sliders panel (property detail) ---------- */
.sliders-panel {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: var(--radius-lg);
  padding: 32px 36px 56px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 44px;
  position: relative;
}
@media (max-width: 720px) { .sliders-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px 56px; } }

.slider-block {
  display: flex;
  flex-direction: column;
}
.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.slider-head label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.slider-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

/* Custom range slider */
.slider-block input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--brick) 0%, var(--brick) var(--fill, 50%),
    #e6e1d6 var(--fill, 50%), #e6e1d6 100%);
  outline: none;
  cursor: pointer;
  margin: 6px 0;
}
.slider-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brick);
  box-shadow: 0 4px 10px rgba(200,85,61,.35);
  cursor: grab;
  transition: transform .15s;
}
.slider-block input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-block input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.slider-block input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brick);
  box-shadow: 0 4px 10px rgba(200,85,61,.35);
  cursor: grab;
}

.slider-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.slider-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.slider-reset {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 1px solid rgba(15,20,35,.15);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.slider-reset:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
@media (max-width: 880px) {
  .slider-reset { position: static; align-self: flex-start; margin-top: 4px; }
}

/* ---------- How-it-works page ---------- */
.nav-links a.active { color: var(--brick); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--brick);
  border-radius: 2px;
  margin-top: 4px;
}

.hiw-hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(200,85,61,.10), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hiw-hero-inner { text-align: center; }
.hiw-hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.025em;
  margin: 24px 0 18px;
  line-height: 1.08;
}
.hiw-hero h1 sup { font-size: 0.4em; opacity: .55; }
.hiw-lede {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hiw-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 880px;
  margin: 0 auto;
}
.hiw-toc a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: all .2s;
}
.hiw-toc a:hover {
  background: var(--brick);
  color: #fff;
  border-color: var(--brick);
}

.hiw-section {
  padding: 90px 0;
}
.hiw-section-alt { background: var(--cream); }
.hiw-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 14px 0 22px;
  line-height: 1.15;
}
.hiw-narrow {
  max-width: 760px;
  margin: 0 auto;
}
.hiw-narrow p { margin-bottom: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.hiw-narrow p strong { color: var(--ink); }
.hiw-lede-small {
  color: var(--ink-soft);
  margin-bottom: 36px;
  font-size: 1.02rem;
}

.hiw-callout {
  margin-top: 28px;
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--brick), var(--brick-deep));
  color: #fff;
  border-radius: var(--radius);
  position: relative;
}
.hiw-callout-mark {
  position: absolute;
  top: -14px;
  left: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
.hiw-callout p {
  color: #fff;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* Flow diagram */
.flow-diagram {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.flow-node {
  background: #fff;
  border: 2px solid rgba(15,20,35,.08);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s;
}
.flow-node:hover { transform: translateX(2px); }
.flow-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.flow-node-investor { border-left: 4px solid var(--gold); }
.flow-node-investor .flow-tag { background: #fdf5e2; color: #8a6c1a; }
.flow-node-investor-small { border-left: 4px solid var(--gold); }
.flow-node-investor-small .flow-tag { background: #fdf5e2; color: #8a6c1a; }
.flow-node-br { border-left: 4px solid var(--brick); }
.flow-node-br .flow-tag { background: rgba(200,85,61,.12); color: var(--brick-deep); }
.flow-node-dev { border-left: 4px solid #4a6fa5; }
.flow-node-dev .flow-tag { background: #e9eff7; color: #2c4670; }
.flow-node-corpus { border-left: 4px solid var(--ink); background: var(--ink); color: #fff; }
/* higher specificity (.x.y) so these win over the generic .flow-node p/h4 below */
.flow-node-corpus.flow-node h4 { color: #fff; }
.flow-node-corpus.flow-node p { color: rgba(255,255,255,.86); }
.flow-node-corpus.flow-node p strong { color: #fff; }
.flow-node-corpus .flow-tag { background: rgba(255,255,255,.15); color: var(--brick-soft); }
.flow-node-corpus .flow-amount { color: var(--brick-soft); }
.flow-node-buyer { border-left: 4px solid #2f8a4d; }
.flow-node-buyer .flow-tag { background: #e3f3ea; color: #1f6a3a; }

.flow-node h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.flow-node p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.flow-node p strong { color: var(--ink); }
.flow-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brick);
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}

.flow-arrow {
  text-align: center;
  font-size: 1.8rem;
  color: var(--muted);
  line-height: 1;
  font-weight: 300;
}
.flow-split {
  display: flex;
  justify-content: space-around;
  font-size: 1.8rem;
  color: var(--muted);
  padding: 6px 60px;
  font-weight: 300;
}
.flow-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) {
  .flow-bottom { grid-template-columns: 1fr; }
  .flow-split { padding: 6px 0; }
}

/* Players grid */
.players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.player-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(15,20,35,.06);
  box-shadow: var(--shadow-sm);
}
.player-card-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.player-card-featured h3, .player-card-featured .player-role, .player-card-featured .player-why { color: #fff; }
.player-card-featured .player-puts, .player-card-featured .player-gets { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.player-card-featured .player-puts span, .player-card-featured .player-gets span { color: var(--brick-soft); }
.player-card-featured .player-puts strong, .player-card-featured .player-gets strong { color: #fff; }

.player-num {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brick);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  font-weight: 600;
}
.player-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.player-role {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 18px;
}
.player-puts, .player-gets {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.player-puts span, .player-gets span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brick);
  margin-bottom: 4px;
}
.player-puts strong, .player-gets strong {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
}
.player-why {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (max-width: 820px) { .players-grid { grid-template-columns: 1fr; } }

/* Detailed steps */
.steps-detailed {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.step-d {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border-left: 4px solid var(--brick);
  box-shadow: var(--shadow-sm);
}
.step-d-num {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--brick);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-d h3 { font-size: 1.4rem; margin-bottom: 12px; }
.step-d p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 14px; }
.step-d-key {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.step-d-key strong { color: var(--brick-deep); }
.alloc-detail {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alloc-detail li {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--cream);
  border-radius: 8px;
  align-items: flex-start;
  font-size: 0.94rem;
}
.alloc-pct {
  background: var(--brick);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

/* Math tables */
.math-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}
.math-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 14px;
  font-weight: 700;
}
.hiw-math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.hiw-math-table td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.hiw-math-table td.r { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hiw-math-table tr.hl td { border-bottom: none; border-top: 2px solid var(--ink); padding-top: 14px; }
.hiw-math-note { font-size: 0.8rem; color: var(--muted); font-style: italic; padding-top: 4px !important; border: none !important; }
.text-good { color: var(--brick-deep); }
.hiw-math-conclusion {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
}

/* Scenarios accordion */
.scenario {
  background: #fff;
  border: 1px solid rgba(15,20,35,.08);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 12px;
}
.scenario summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scenario summary::-webkit-details-marker { display: none; }
.scenario summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brick);
  font-weight: 300;
  transition: transform .25s;
}
.scenario[open] summary::after { transform: rotate(45deg); }
.scenario[open] { box-shadow: var(--shadow-sm); border-color: rgba(200,85,61,.3); }
.scenario p {
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Example timeline */
.example-timeline {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.example-timeline li {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  border-left: 3px solid var(--brick);
  box-shadow: var(--shadow-sm);
}
.ex-time {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brick);
  min-width: 80px;
}
.ex-body h4 { font-size: 1.1rem; margin-bottom: 6px; }
.ex-body p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.ex-body p strong { color: var(--ink); }

.example-comp {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.ec-side {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.ec-side h4 { font-size: 1.1rem; margin-bottom: 10px; }
.ec-side-bad { border-top: 4px solid #8a3a2e; }
.ec-side-good { border-top: 4px solid var(--brick); }
.ec-side p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.ec-vs {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brick);
}
@media (max-width: 720px) {
  .example-comp { grid-template-columns: 1fr; }
  .ec-vs { padding: 8px 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
