/* ============================================================
   JonatanMars Invest — Page layouts & bespoke architectural UI
   Round 2 Editorial & Private-Client Design System Pass.
   Extends tokens.css and site.css.
   No gold rules on boxes, cards, callouts, tiles or quotes.
   ============================================================ */

/* ---------- Shared helpers & scroll margins ---------- */
[id] { scroll-margin-top: 96px; }
.product-overview { padding-block: clamp(24px, 3.5vw, 38px); }
.product-overview .grid { align-items: start; }
.product-minimum { font-size: 1.125rem; line-height: 1.5; color: var(--text-invert-focused); }
.product-fee-note { border-top: 0; border-left: 0; padding: 0; }
.booking-expect { margin-top: 40px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Quiet Studio Atmospheric Light on Hero Canvases ---------- */
.home-hero,
.product-hero,
.contact-suite {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 64% 58% at 82% 34%, rgba(167, 160, 108, 0.085), transparent 68%),
    radial-gradient(ellipse 52% 60% at 10% 88%, rgba(45, 62, 74, 0.28), transparent 66%);
}
:root[data-theme="light"] .home-hero,
:root[data-theme="light"] .product-hero,
:root[data-theme="light"] .contact-suite {
  background-image:
    radial-gradient(ellipse 64% 55% at 84% 28%, rgba(167, 160, 108, 0.11), transparent 66%),
    radial-gradient(ellipse 46% 52% at 8% 92%, rgba(28, 38, 44, 0.03), transparent 62%);
}

/* ---------- 2-Column Asymmetric Architectural Product Hero ---------- */
.product-hero { padding-block: clamp(36px, 4.5vw, 64px); }
.product-hero__grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (min-width: 1020px) {
  .product-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}

/* Bespoke Right-Column Hero Architectural Panel / Monolith */
.hero-panel {
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--bg-invert-raised);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 56px -28px rgba(0, 0, 0, 0.65);
}
:root[data-theme="light"] .hero-panel {
  background: var(--jm-white);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-card);
}
.hero-panel__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-invert-hairline);
}
.hero-panel__kicker {
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  font-variation-settings: var(--fv-medium); color: var(--text-brand);
}
.hero-panel__tag {
  font-size: 13px; color: var(--text-invert-muted); font-variant-numeric: tabular-nums;
}
.hero-panel__foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border-invert-hairline);
  font-size: 13.5px; line-height: 1.5; color: var(--text-invert-muted);
}

/* Mini dual-mandate comparison inside PM hero panel */
.hero-mandates { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 540px) { .hero-mandates { grid-template-columns: 1fr 1fr; } }
.hero-mandate {
  padding: 16px;
  background: var(--bg-invert-deep);
  border: 1px solid var(--border-invert-hairline);
  border-radius: var(--radius-sm);
}
:root[data-theme="light"] .hero-mandate { background: var(--jm-bone); }
.hero-mandate__title {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 20px; line-height: 1.2; color: var(--text-invert-focused);
}
.hero-mandate__sub { margin-top: 3px; font-size: 13px; color: var(--text-invert-muted); }
.hero-mandate dl { margin-top: 14px; display: grid; gap: 8px; }
.hero-mandate__row {
  display: flex; justify-content: space-between; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--border-invert-hairline);
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.hero-mandate__row dt { color: var(--text-invert-muted); }
.hero-mandate__row dd { color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); text-align: right; }

/* Key-value ledger inside Company Cash & About hero panels */
.panel-ledger { display: grid; gap: 0; }
.panel-ledger__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border-invert-hairline);
  font-variant-numeric: tabular-nums;
}
.panel-ledger__row:first-child { padding-top: 0; }
.panel-ledger__row:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-ledger__row dt { font-size: 14px; color: var(--text-invert-muted); }
.panel-ledger__row dd { font-size: 15px; color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); text-align: right; }

/* Smart Beta conceptual 6-factor balance SVG block */
.factor-viz__grid { display: grid; gap: 18px; }
.factor-viz__block {
  padding: 14px 16px;
  background: var(--bg-invert-deep);
  border: 1px solid var(--border-invert-hairline);
  border-radius: var(--radius-sm);
}
:root[data-theme="light"] .factor-viz__block { background: var(--jm-bone); }
.factor-viz__lbl {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  font-size: 13px; color: var(--text-invert-muted);
}
.factor-viz__lbl strong { color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); }
.factor-viz__bars { display: flex; gap: 4px; height: 22px; align-items: stretch; }
.factor-viz__seg { border-radius: 2px; background: var(--jm-ink-300); opacity: 0.45; }
.factor-viz__seg--heavy { background: var(--text-invert-focused); opacity: 0.85; }
.factor-viz__seg--bal { flex: 1; background: var(--jm-gold-500); opacity: 0.85; }
:root[data-theme="light"] .factor-viz__seg--bal { background: var(--jm-gold-600); }
.factor-viz__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.factor-viz__tags span {
  font-size: 12.5px; padding: 3px 9px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-invert-hairline); color: var(--text-invert);
}

/* Smart Beta 5-layer bond stack visual */
.bond-stack {
  display: grid; gap: 8px; margin-top: 24px;
}
.bond-stack__layer {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 16px;
  background: var(--bg-invert-raised);
  border: 1px solid var(--border-invert-hairline);
  border-radius: var(--radius-sm);
}
:root[data-theme="light"] .bond-stack__layer { background: var(--jm-white); }
.bond-stack__num {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 15px;
  color: var(--text-brand); font-variant-numeric: tabular-nums;
}
.bond-stack__name { font-size: 15px; color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); }
.bond-stack__role { font-size: 13.5px; color: var(--text-invert-muted); }

/* Alpha 4-Stage Quantitative Pipeline Visual */
.alpha-pipeline { display: grid; gap: 0; }
.alpha-stage {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px;
  padding: 13px 0; position: relative;
  border-bottom: 1px solid var(--border-invert-hairline);
}
.alpha-stage:first-child { padding-top: 0; }
.alpha-stage:last-child { border-bottom: 0; padding-bottom: 0; }
.alpha-stage__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-xs);
  background: var(--bg-invert-deep); border: 1px solid var(--border-invert-muted);
  font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 14px;
  color: var(--text-brand); font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] .alpha-stage__n { background: var(--jm-bone); }
.alpha-stage__h { font-size: 15.5px; color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); line-height: 1.3; }
.alpha-stage__p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--text-invert-muted); }

/* INR 15-Year ZINR Horizon Diagram */
.inr-timeline { display: grid; gap: 12px; }
.inr-step {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding: 12px 14px;
  background: var(--bg-invert-deep);
  border: 1px solid var(--border-invert-hairline);
  border-radius: var(--radius-sm);
}
:root[data-theme="light"] .inr-step { background: var(--jm-bone); }
.inr-step__phase {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 15px;
  color: var(--text-brand); font-variant-numeric: tabular-nums;
}
.inr-step__val { font-size: 15px; color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); }
.inr-step__sub { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-invert-muted); }

/* ---------- Homepage Hero + Quick Service Doorway ---------- */
.home-hero { padding-block: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 36px); }
.home-hero .grid-split > div:first-child { padding: 0; }
.home-hero__grid { display: grid; gap: clamp(28px, 4.5vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) {
  .home-hero__grid { grid-template-columns: minmax(0, 1fr) 292px; }
}
@media (min-width: 1200px) {
  .home-hero__grid { grid-template-columns: minmax(0, 1fr) 308px; gap: 72px; }
}
.home-hero .jm-h1 { max-width: 19ch; text-wrap: balance; }
.home-hero__risk {
  margin-top: 20px; padding: 2px 0 2px 16px;
  border-left: 2px solid var(--border-invert-muted);
  font-size: 15px; line-height: 1.5; color: var(--text-invert-focused);
  max-width: 38em;
}
.home-hero__risk + .btn-row { margin-top: 24px; }

/* Quick 3-door architectural index bar inside hero fold */
.hero-routes {
  display: grid; grid-template-columns: 1fr;
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--border-invert-muted);
}
@media (min-width: 820px) {
  .hero-routes { grid-template-columns: repeat(3, 1fr); }
}
.hero-route {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-invert-hairline);
  color: var(--text-invert);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
@media (min-width: 820px) {
  .hero-route {
    padding: 18px 24px 16px;
    border-bottom: 0;
    border-right: 1px solid var(--border-invert-hairline);
  }
  .hero-route:first-child { padding-left: 0; }
  .hero-route:last-child { border-right: 0; padding-right: 0; }
}
.hero-route__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hero-route__num {
  font-size: 12px; letter-spacing: .08em; font-variation-settings: var(--fv-medium);
  color: var(--text-brand); font-variant-numeric: tabular-nums; margin-right: 8px;
}
.hero-route__title {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 19.5px; line-height: 1.25; color: var(--text-invert-focused);
  transition: color var(--dur-fast) var(--ease-standard);
}
.hero-route__arrow {
  width: 16px; height: 16px; flex: none; background: var(--text-brand);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
          mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform var(--dur-base) var(--ease-standard);
}
.hero-route:hover .hero-route__arrow { transform: translateX(4px); }
.hero-route:hover .hero-route__title { color: var(--text-brand); }
.hero-route__meta {
  font-size: 14px; line-height: 1.45; color: var(--text-invert-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Real App Captures (Home & App page) ---------- */
.app-capture { width: min(280px, 100%); margin-inline: auto; border: 1px solid var(--border-invert-muted); border-radius: var(--radius-md); overflow: hidden; }
.home-app {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.home-app .app-capture {
  width: min(268px, 100%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: #0D1216;
  box-shadow: 0 32px 72px -18px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
:root[data-theme="light"] .home-app .app-capture {
  background: var(--jm-ink-800);
  border-color: var(--jm-ink-600);
  box-shadow: 0 28px 64px -20px rgba(20, 27, 32, 0.32);
}
.home-app .app-capture img { border-radius: 20px; }
.app-capture img { display: block; width: 100%; height: auto; }
.app-capture .app-capture__light { display: none; }
:root[data-theme="light"] .app-capture .app-capture__light { display: block; }
:root[data-theme="light"] .app-capture .app-capture__dark { display: none; }
.home-app .app-illus { text-wrap: balance; }
.app-capture + .app-illus {
  max-width: 34ch; margin: 14px auto 0;
  font-size: 13.5px; line-height: 1.45; letter-spacing: 0; text-transform: none;
  color: var(--text-invert-muted);
}
.surf-paper .app-capture + .app-illus,
.surf-light .app-capture + .app-illus { color: var(--text-body-muted); }

/* ---------- Architectural Proof Ledger (Stats strip) ---------- */
.proof-ledger {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--border-invert-hairline);
  border-bottom: 1px solid var(--border-invert-hairline);
}
@media (min-width: 820px) { .proof-ledger { grid-template-columns: repeat(4, 1fr); } }
.proof-cell {
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--border-invert-hairline);
}
.proof-cell:nth-child(even) { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--border-invert-hairline); }
.proof-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 820px) {
  .proof-cell { padding: 28px 26px; border-bottom: 0; border-left: 1px solid var(--border-invert-hairline); }
  .proof-cell:first-child { padding-left: 0; border-left: 0; }
  .proof-cell:nth-child(even) { padding-left: 26px; padding-right: 26px; }
  .proof-cell:last-child { padding-right: 0; }
}
.proof-cell__val {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: clamp(1.95rem, 3.4vw, 44px); line-height: 1.04; color: var(--text-invert-focused);
  font-variant-numeric: tabular-nums;
}
.proof-cell__label { margin-top: 10px; font-size: 14px; line-height: 1.48; color: var(--text-invert-muted); }
.proof-cell__label a { color: inherit; text-decoration: underline; text-decoration-color: var(--jm-gold-500); text-underline-offset: 3px; }

/* ---------- Asymmetric Service Showcase (Homepage) ---------- */
.offer-flagship {
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-default); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
:root:not([data-theme="light"]) .offer-flagship {
  background: var(--bg-invert-raised);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 56px -28px rgba(0, 0, 0, 0.65);
}
@media (min-width: 900px) {
  .offer-flagship { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .offer-flagship .spec-rows { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--border-hairline); }
  :root:not([data-theme="light"]) .offer-flagship .spec-rows { border-left-color: var(--border-invert-hairline); }
}
.offer-tag {
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  font-variation-settings: var(--fv-medium); color: var(--text-brand-on-light);
}
:root:not([data-theme="light"]) .offer-tag { color: var(--text-brand); }

.spec-rows { width: 100%; border-top: 1px solid var(--border-hairline); }
:root:not([data-theme="light"]) .spec-rows { border-top-color: var(--border-invert-hairline); }
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-hairline);
  font-variant-numeric: tabular-nums;
}
:root:not([data-theme="light"]) .spec-row { border-bottom-color: var(--border-invert-hairline); }
.spec-row dt { font-size: 14px; color: var(--text-body-muted); }
.spec-row dd { font-size: 15px; color: var(--text-title); font-variation-settings: var(--fv-medium); text-align: right; }
:root:not([data-theme="light"]) .spec-row dt { color: var(--text-invert-muted); }
:root:not([data-theme="light"]) .spec-row dd { color: var(--text-invert-focused); }

.offer-doors { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
@media (min-width: 820px) { .offer-doors { grid-template-columns: 1fr 1fr; } }
.offer-door {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-default); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(20, 27, 32, 0.04);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.offer-door:hover { border-color: var(--border-muted); box-shadow: var(--shadow-card); transform: translateY(-2px); }
:root:not([data-theme="light"]) .offer-door {
  background: var(--bg-invert-raised);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px -24px rgba(0, 0, 0, 0.55);
}
:root:not([data-theme="light"]) .offer-door:hover { border-color: rgba(255, 255, 255, 0.22); }
.offer-door__facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: 14px; color: var(--text-body-muted); font-variant-numeric: tabular-nums;
}
:root:not([data-theme="light"]) .offer-door__facts { border-top-color: var(--border-invert-hairline); color: var(--text-invert-muted); }
.offer-door__facts strong { color: var(--text-title); font-variation-settings: var(--fv-medium); }
:root:not([data-theme="light"]) .offer-door__facts strong { color: var(--text-invert-focused); }
.offer-door .card-foot { margin-top: auto; padding-top: 22px; }

/* ---------- People Feature (Sticky Portrait + Full Team Strip + Ruled Rows) ---------- */
.people-feature {
  display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
@media (min-width: 960px) {
  .people-feature { grid-template-columns: 340px minmax(0, 1fr); }
  .people-aside { position: sticky; top: 104px; }
}
.portrait-figure { margin: 0; max-width: 340px; }
.portrait-figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 16%;
  display: block; border-radius: var(--radius-sm);
  border: 1px solid var(--border-invert-hairline);
}
.portrait-figure figcaption {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border-invert-hairline);
}
.surf-paper .portrait-figure figcaption,
.surf-light .portrait-figure figcaption { border-top-color: var(--border-hairline); }
.portrait-figure__name {
  display: block;
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 21px; line-height: 1.25; color: var(--text-invert-focused);
}
.surf-paper .portrait-figure__name,
.surf-light .portrait-figure__name { color: var(--text-title); }
.portrait-figure__role { display: block; margin-top: 3px; font-size: 14px; color: var(--text-invert-muted); }
.surf-paper .portrait-figure__role,
.surf-light .portrait-figure__role { color: var(--text-body-muted); }

/* Compact rest-of-team strip under Luka's portrait (closes whitespace & shows the real 5-person firm) */
.team-strip {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border-invert-hairline);
  max-width: 340px;
}
.team-strip__avatars { display: flex; align-items: center; gap: 10px; }
.team-strip__avatars img {
  width: 44px; height: 44px; border-radius: var(--radius-circle);
  object-fit: cover; object-position: center 16%;
  border: 1px solid var(--border-invert-muted);
}
.team-strip__note {
  margin-top: 10px; font-size: 13.5px; line-height: 1.48; color: var(--text-invert-muted);
}
.team-strip__note a {
  color: var(--text-invert-focused); text-decoration: underline;
  text-decoration-color: var(--jm-gold-500); text-underline-offset: 3px;
}

/* Hairline-ruled rows */
.ruled-rows { border-top: 1px solid var(--border-invert-hairline); }
.surf-paper .ruled-rows, .surf-light .ruled-rows, .surf-white .ruled-rows { border-top-color: var(--border-hairline); }
.ruled-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--border-invert-hairline);
}
.surf-paper .ruled-row, .surf-light .ruled-row, .surf-white .ruled-row { border-bottom-color: var(--border-hairline); }
.ruled-row__num {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 22px; line-height: 1.25; color: var(--text-brand); font-variant-numeric: tabular-nums;
}
.surf-paper .ruled-row__num, .surf-light .ruled-row__num, .surf-white .ruled-row__num { color: var(--text-brand-on-light); }
.ruled-row p { margin-top: 8px; }
.ruled-row .link-arrow { margin-top: 6px; }

/* ---------- Horizontal 4-Step Architectural Timeline (Homepage) ---------- */
.steps-horiz {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--border-invert-hairline);
}
@media (min-width: 720px) { .steps-horiz { grid-template-columns: 1fr 1fr; gap: 28px 32px; border-top: 0; } }
@media (min-width: 1080px) { .steps-horiz { grid-template-columns: repeat(4, 1fr); gap: 0 28px; } }
.step-col {
  padding: 22px 0; border-bottom: 1px solid var(--border-invert-hairline);
}
@media (min-width: 720px) {
  .step-col {
    padding: 22px 0 0; border-bottom: 0;
    border-top: 1px solid var(--border-invert-muted);
    position: relative;
  }
}
.step-col__num {
  display: inline-block;
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 32px; line-height: 1; color: var(--text-brand); font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.step-col h4 { margin-bottom: 8px; }
.step-col p { font-size: 15px; line-height: 1.55; color: var(--text-invert-muted); }

/* ---------- Safeguard Architectural Tiles (Homepage) ---------- */
.safeguard-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 680px) { .safeguard-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .safeguard-grid { grid-template-columns: repeat(4, 1fr); } }
.safeguard-tile {
  padding: 24px;
  background: var(--bg-default); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(20, 27, 32, 0.04);
}
:root:not([data-theme="light"]) .safeguard-tile {
  background: var(--bg-invert-raised); border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.safeguard-tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-paper); color: var(--text-brand-on-light);
  margin-bottom: 16px;
}
:root:not([data-theme="light"]) .safeguard-tile__icon {
  background: var(--bg-invert-deep); color: var(--text-brand);
  border: 1px solid var(--border-invert-hairline);
}
.safeguard-tile p { font-size: 15px; line-height: 1.55; margin-top: 8px; }

/* ---------- In-Page Sub-Navigation Jump Bar ---------- */
.subnav-band {
  background: var(--bg-invert-deep);
  border-top: 1px solid var(--border-invert-hairline);
  border-bottom: 1px solid var(--border-invert-hairline);
}
.subnav {
  display: flex; flex-wrap: nowrap; gap: 6px 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 48px; flex: none;
  font-size: 14px; font-variation-settings: var(--fv-medium);
  color: var(--text-invert-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.subnav a:hover, .subnav a:focus-visible { color: var(--text-invert-focused); border-bottom-color: var(--jm-gold-500); }

/* ---------- Product Quick-Fact Strip ---------- */
.fact-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
@media (min-width: 820px) { .fact-strip { grid-template-columns: repeat(4, 1fr); } }
.fact-strip__item { min-width: 0; }
.fact-strip__k { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-body-muted); }
.fact-strip__v {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: clamp(1.25rem, 2.2vw, 24px); line-height: 1.2; color: var(--text-title);
  font-variant-numeric: tabular-nums;
}
.fact-strip__sub { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--text-body-muted); }

/* ---------- Equal-Column Fee Comparison Table ---------- */
@media (min-width: 720px) {
  table.jm-table--compare { table-layout: fixed; }
  table.jm-table--compare col.col-item { width: 32%; }
  table.jm-table--compare col.col-strat { width: 34%; }
}
.fee-amt {
  display: block;
  font-variation-settings: var(--fv-medium); font-size: 17px; color: var(--text-title);
  font-variant-numeric: tabular-nums;
}
:root:not([data-theme="light"]) .surf-ink .fee-amt,
:root:not([data-theme="light"]) .surf-deep .fee-amt { color: var(--text-invert-focused); }
.fee-sub { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--text-body-muted); }
:root:not([data-theme="light"]) .surf-ink .fee-sub,
:root:not([data-theme="light"]) .surf-deep .fee-sub { color: var(--text-invert-muted); }

/* ---------- Visual Risk Profile Scale (Profiles 1-7 on 0-100% axis) ---------- */
.risk-scale { width: 100%; }
.risk-scale__legend {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  margin-bottom: 20px; font-size: 14px; color: var(--text-invert-muted);
}
.surf-paper .risk-scale__legend, .surf-light .risk-scale__legend { color: var(--text-body-muted); }
.rs-swatch { display: inline-flex; align-items: center; gap: 8px; }
.rs-swatch i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.rs-swatch--eq i { background: var(--text-invert-focused); }
.rs-swatch--bd i { background: var(--jm-gold-500); }
.rs-swatch--alt i { background: var(--jm-ink-300); }
:root[data-theme="light"] .rs-swatch--eq i { background: var(--jm-ink); }
:root[data-theme="light"] .rs-swatch--bd i { background: var(--jm-gold-600); }
:root[data-theme="light"] .rs-swatch--alt i { background: var(--jm-ink-400); }

.risk-scale__axis { display: none; }
@media (min-width: 860px) {
  .risk-scale__axis {
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border-invert-muted);
    font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-invert-muted); font-variant-numeric: tabular-nums;
  }
  .risk-scale__ticks { display: flex; justify-content: space-between; padding-left: 116px; padding-right: 108px; }
}
.risk-scale__list { border-top: 1px solid var(--border-invert-hairline); }
@media (min-width: 860px) { .risk-scale__list { border-top: 0; } }
.risk-item {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 20px 8px; border-bottom: 1px solid var(--border-invert-hairline);
  transition: background var(--dur-fast) var(--ease-standard);
}
.risk-item:hover { background: rgba(255, 255, 255, 0.025); }
:root[data-theme="light"] .risk-item:hover { background: rgba(26, 35, 41, 0.03); }
@media (min-width: 860px) {
  .risk-item { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
}
.risk-item__head { display: flex; align-items: baseline; gap: 12px; }
.risk-item__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  background: var(--bg-invert-raised);
  border: 1px solid var(--border-invert-muted); border-radius: var(--radius-xs);
  font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 16px;
  color: var(--text-invert-focused); font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] .risk-item__num { background: var(--jm-white); }
.risk-item__name {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 19px; line-height: 1.25; color: var(--text-invert-focused);
}
.risk-item__bars { display: grid; gap: 9px; }
.rs-bar-row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 96px; gap: 12px; align-items: center;
}
.rs-bar-lbl { font-size: 13px; color: var(--text-invert-muted); }
.rs-track {
  position: relative; height: 10px; border-radius: 3px;
  background:
    linear-gradient(90deg, transparent calc(25% - 0.5px), var(--border-invert-hairline) 25%, transparent calc(25% + 0.5px),
    transparent calc(50% - 0.5px), var(--border-invert-hairline) 50%, transparent calc(50% + 0.5px),
    transparent calc(75% - 0.5px), var(--border-invert-hairline) 75%, transparent calc(75% + 0.5px)),
    var(--border-invert-hairline);
}
.rs-fill {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  left: var(--from, 0%); width: calc(var(--to, 0%) - var(--from, 0%));
  min-width: 5px;
}
.rs-fill--eq { background: var(--text-invert-focused); }
.rs-fill--bd { background: var(--jm-gold-500); }
.rs-fill--alt { background: var(--jm-ink-300); }
:root[data-theme="light"] .rs-fill--eq { background: var(--jm-ink); }
:root[data-theme="light"] .rs-fill--bd { background: var(--jm-gold-600); }
:root[data-theme="light"] .rs-fill--alt { background: var(--jm-ink-400); }
.rs-val {
  font-size: 14px; font-variation-settings: var(--fv-medium); color: var(--text-invert-focused);
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 440px) {
  .rs-bar-row { grid-template-columns: 84px minmax(0, 1fr) 82px; gap: 8px; }
  .rs-bar-lbl, .rs-val { font-size: 13px; }
}

/* ---------- Company Cash Two-Branch Architecture Diagram ---------- */
.cash-diagram { display: grid; gap: 0; }
.cash-root {
  max-width: 420px; width: 100%; margin-inline: auto;
  padding: 16px 24px;
  border: 1px solid var(--border-muted); border-radius: var(--radius-sm);
  background: var(--bg-default); text-align: center;
  box-shadow: 0 1px 3px rgba(20, 27, 32, 0.04);
}
:root:not([data-theme="light"]) .cash-root {
  background: var(--bg-invert-raised); border-color: rgba(255, 255, 255, 0.16);
}
.cash-root__title {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 19px; color: var(--text-title);
}
:root:not([data-theme="light"]) .cash-root__title { color: var(--text-invert-focused); }
.cash-connector {
  display: none; height: 36px; width: 100%; max-width: 660px; margin-inline: auto;
  color: var(--border-muted);
}
:root:not([data-theme="light"]) .cash-connector { color: var(--border-invert-muted); }
@media (min-width: 780px) { .cash-connector { display: block; } }
.cash-branches { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
@media (min-width: 780px) { .cash-branches { grid-template-columns: 1fr 1fr; margin-top: 0; } }
.cash-branch {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  background: var(--bg-default);
  box-shadow: 0 1px 3px rgba(20, 27, 32, 0.04);
}
:root:not([data-theme="light"]) .cash-branch {
  background: var(--bg-invert-raised); border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cash-branch__kicker {
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  font-variation-settings: var(--fv-medium); color: var(--text-body-muted);
}
:root:not([data-theme="light"]) .cash-branch__kicker { color: var(--text-invert-muted); }
.cash-branch ul { margin-top: 14px; display: grid; gap: 9px; }
.cash-branch li {
  position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; color: var(--text-body);
}
:root:not([data-theme="light"]) .cash-branch li { color: var(--text-invert); }
.cash-branch li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1.5px;
  background: var(--text-body-muted);
}
:root:not([data-theme="light"]) .cash-branch li::before { background: var(--jm-gold-500); }

/* ---------- INR Structured Tax & Contribution Rule Ledger ---------- */
.rule-ledger { border-top: 1px solid var(--border-invert-hairline); }
.surf-paper .rule-ledger, .surf-light .rule-ledger { border-top-color: var(--border-hairline); }
.rule-ledger__row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 22px 0; border-bottom: 1px solid var(--border-invert-hairline);
}
.surf-paper .rule-ledger__row, .surf-light .rule-ledger__row { border-bottom-color: var(--border-hairline); }
@media (min-width: 720px) {
  .rule-ledger__row { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: baseline; }
}
.rule-ledger__fig {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: clamp(1.45rem, 2.4vw, 28px); line-height: 1.15;
  color: var(--text-invert-focused); font-variant-numeric: tabular-nums;
}
.surf-paper .rule-ledger__fig, .surf-light .rule-ledger__fig { color: var(--text-title); }
.rule-ledger__body h3 {
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: 20px; line-height: 1.25; margin-bottom: 6px;
}
.rule-ledger__body p { max-width: 40em; }

/* ---------- Closing Consultation Band with Real Person / Office ---------- */
.home-consultation__layout { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
.home-consultation__portrait {
  width: 240px; height: 300px; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius-sm);
}
.office-frame {
  margin: 0; overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-invert-hairline);
  background: var(--bg-invert-raised);
  box-shadow: 0 24px 56px -28px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] .office-frame {
  background: var(--jm-white);
  box-shadow: var(--shadow-card);
}
.office-frame img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
}
.office-frame figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 13px 18px; font-size: 13.5px; color: var(--text-invert-muted);
}
.office-frame figcaption strong { color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); }
.cta-person {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border-invert-hairline);
}
.cta-person img {
  width: 60px; height: 60px; border-radius: var(--radius-circle);
  object-fit: cover; object-position: center 16%; flex: none;
  border: 1px solid var(--border-invert-muted);
}
.cta-person__meta strong { display: block; color: var(--text-invert-focused); font-size: 16px; }
.cta-person__meta span { display: block; color: var(--text-invert-muted); font-size: 14px; }

/* ---------- Unified Above-the-Fold Contact Suite ---------- */
.contact-suite { padding-block: clamp(32px, 4.5vw, 56px) clamp(48px, 6vw, 80px); }
.contact-suite__head { margin-bottom: clamp(24px, 3vw, 36px); }
.contact-direct {
  display: grid; gap: 4px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-invert-hairline);
  font-size: 15px;
}
.advisor-card + .contact-direct { margin-top: 0; padding-top: 0; border-top: 0; }
.contact-direct a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-invert-focused);
  text-decoration: underline; text-decoration-color: var(--jm-gold-500); text-underline-offset: 3px;
}
.contact-direct__row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.contact-direct__k { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-invert-muted); min-width: 78px; }
.contact-agenda { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-invert-hairline); }
.contact-agenda ul { margin-top: 12px; display: grid; gap: 10px; }
.contact-agenda li { font-size: 15px; line-height: 1.5; color: var(--text-invert); }
.contact-agenda strong { color: var(--text-invert-focused); }
.embed-ph { min-height: 220px; border-radius: var(--radius-sm); }

/* ---------- Insights Masthead & Editorial Lead ---------- */
.insights-masthead { padding-block: clamp(36px, 4.5vw, 56px) clamp(20px, 2.5vw, 32px); }
.insights-masthead__bar {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: flex-end;
}
.insights-featured { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.insights-featured .post-thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.insights-featured .post-thumb img.post-cover-art { -webkit-mask: none; mask: none; }
.post-card .post-thumb img.post-cover-art { -webkit-mask: none; mask: none; }
.post-card .post-thumb { border-radius: var(--radius-sm); border: 1px solid var(--border-invert-hairline); }

/* ---------- FAQ Category Groups ---------- */
.faq-group + .faq-group { margin-top: clamp(40px, 6vw, 64px); }
.faq-group__title {
  margin-bottom: 16px;
  font-family: var(--font-display); font-weight: var(--fw-medium); font-variation-settings: var(--fv-display);
  font-size: clamp(1.3rem, 2.2vw, 26px); color: var(--text-invert-focused);
}

/* ---------- Legal Page Jump Index ---------- */
.legal-index {
  display: grid; grid-template-columns: 1fr; gap: 4px 24px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border-invert-hairline);
}
@media (min-width: 720px) { .legal-index { grid-template-columns: 1fr 1fr; } }
.legal-index a {
  display: flex; align-items: baseline; gap: 12px;
  min-height: 44px; padding: 8px 0;
  border-bottom: 1px solid var(--border-invert-hairline);
  font-size: 15px; color: var(--text-invert);
  transition: color var(--dur-fast) var(--ease-standard);
}
.legal-index a:hover { color: var(--text-brand); }
.legal-index__num { font-size: 13px; color: var(--text-invert-muted); font-variant-numeric: tabular-nums; min-width: 24px; }

/* ---------- Tools Hub 2x2 Balanced Grid ---------- */
.tools-grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .tools-grid-2 { grid-template-columns: 1fr 1fr; } }
.tool-example {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  font-size: 14px; color: var(--text-body-muted);
}
:root:not([data-theme="light"]) .tool-example { border-top-color: var(--border-invert-hairline); color: var(--text-invert-muted); }

/* ---------- Team Grid (About) ---------- */
.team-member .tm-photo img { object-position: center 16%; }
.team-member .tm-body { padding-bottom: 8px; }
.team-member .tm-bio { padding: 0 24px 24px; }
.team-member--function { display: flex; flex-direction: column; justify-content: center; }
.team-member--function .tm-body { padding: 32px 32px 8px; }
.team-member--function .tm-bio { padding: 0 32px 32px; }
.legal-document-link { margin-top: 20px; min-height: 44px; }
.legal-sections .prose { max-width: 68ch; }

/* ---------- Capital-Raising Exemptions Matrix ---------- */
.ex-legend {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center;
}
.ex-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 12.5px; line-height: 1.35; letter-spacing: .04em;
  font-variation-settings: var(--fv-medium);
  white-space: nowrap;
}
/* Light-theme / light-surface badge contrast (all >= 6.5:1) */
.ex-badge--outside { background: #E5F3EC; color: #0B5D3A; border-color: #B6DEC9; }
.ex-badge--exempt  { background: #EDE9D8; color: #4C462A; border-color: #CFC7A4; }
.ex-badge--notice  { background: #E4EEF5; color: #163E57; border-color: #B6CFE0; }
.ex-badge--full    { background: #E7EAEC; color: #1A2329; border-color: #C3CCD2; }

/* Dark-theme badge contrast (all >= 9:1 on deep ink #11171C / raised #222D35) */
:root:not([data-theme="light"]) .ex-badge--outside { background: #132E24; color: #8CE5BC; border-color: #21523F; }
:root:not([data-theme="light"]) .ex-badge--exempt  { background: #2D2A1C; color: #E6DFBA; border-color: #514B32; }
:root:not([data-theme="light"]) .ex-badge--notice  { background: #162B3A; color: #A8D4F0; border-color: #274C66; }
:root:not([data-theme="light"]) .ex-badge--full    { background: #263139; color: #E9EBEC; border-color: #41515C; }

.ex-route { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ex-route__name { display: block; font-variation-settings: var(--fv-medium); }
.ex-route__cite { display: block; font-size: 13px; line-height: 1.4; font-variation-settings: var(--fv-regular); color: var(--text-body-muted); }
:root:not([data-theme="light"]) .ex-route__cite { color: var(--text-invert-muted); }
.ex-table-wrap table.jm-table th, .ex-table-wrap table.jm-table td { padding-block: 16px; }
.ex-table-wrap table.jm-table tbody tr > th:first-child { min-width: 240px; }
.ex-table-wrap table.jm-table td:nth-child(2) { white-space: nowrap; }

.ex-facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-invert-hairline);
  font-size: 14px; line-height: 1.45; color: var(--text-invert-muted);
  font-variant-numeric: tabular-nums;
}
.ex-facts strong { color: var(--text-invert-focused); font-variation-settings: var(--fv-medium); }
:root[data-theme="light"] .ex-facts { border-top-color: var(--border-hairline); color: var(--text-body-muted); }
:root[data-theme="light"] .ex-facts strong { color: var(--text-title); }

@media (max-width: 719px) {
  .ex-table-wrap table.jm-table tbody tr > th:first-child { min-width: 0; }
  .ex-table-wrap table.jm-table td:nth-child(2) { white-space: normal; }
  .ex-table-wrap table.jm-table--stack tr { padding: 20px 0; gap: 14px 16px; }
  .ex-table-wrap table.jm-table--stack tr > :first-child[data-label]::before { display: none; }
  .ex-table-wrap table.jm-table--stack tr > :nth-child(4),
  .ex-table-wrap table.jm-table--stack tr > :nth-child(5) { grid-column: 1 / -1; }
}

/* ---------- Responsive Overrides ---------- */
@media (min-width: 960px) {
  .home-consultation__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; }
  .home-consultation__layout--office { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 64px; }
}

@media (max-width: 719px) {
  .product-overview { padding-block: 24px; }
  .booking-expect { margin-top: 28px; }
  .app-capture { width: min(256px, 100%); }
  .home-consultation__portrait { width: 160px; height: 200px; grid-row: 1; }
  .office-frame { grid-row: 1; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; padding: 24px 16px; }
  .team-member .tm-photo { width: 112px; height: 140px; aspect-ratio: auto !important; }
  .team-member .tm-photo img { object-fit: cover; object-position: center 16%; }
  .team-member .tm-body { padding: 0; }
  .team-member .tm-bio { grid-column: 1 / -1; padding: 0; font-size: 16px; }
  .team-member .tm-body .role { font-size: 12px; }
  .team-member--function { display: block; padding: 24px; }
  .team-member--function .tm-bio { margin-top: 16px; }
  .legal-sections .step { gap: 16px; }
  .legal-sections .step-num { min-width: 32px; font-size: 24px; }
}
