/* HOME-1b: the homepage, direction A of HOME-1a ("Flagship first", docs/design/home-1a/, PR #530).
   Homepage only: every rule is scoped to body.home1b, so no other page changes.
   Brand tokens only (docs/BRAND.md); Inter Tight with its metric-matched fallback (css/site-chrome.css), so the
   font swap moves nothing (CLS 0). No hero image, no canvas: the LCP element is the h1. */
body.home1b {
  --h-bone: #F3F1E7; --h-ink: #0E1512; --h-brand: #1f4c3b; --h-brand-l: #247857; --h-clay: #C97A3A;
  --h-moss: #4C7A5B; --h-denim: #3B639B; --h-sky: #8FADC2; --h-surface: #ffffff;
  --h-muted: color-mix(in srgb, var(--h-ink) 72%, var(--h-bone));
  --h-line: color-mix(in srgb, var(--h-ink) 12%, transparent);
  --h-max: 1200px;
  background: var(--h-bone); color: var(--h-ink); margin: 0;
  font-family: "Inter Tight", "Inter Tight Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.home1b *, .home1b *::before, .home1b *::after { box-sizing: border-box; }
.home1b :focus-visible { outline: 3px solid var(--h-brand-l); outline-offset: 2px; border-radius: 6px; }
.home1b .h-wrap { width: min(100% - 32px, var(--h-max)); margin-inline: auto; }
.home1b .h-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--h-brand); margin: 0 0 .75rem; }
.home1b .h-h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1rem; color: var(--h-ink); }
.home1b .h-h1 em { font-style: normal; color: var(--h-brand); }
.home1b .h-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--h-muted); margin: 0 0 1.5rem; max-width: 36rem; }
.home1b .h-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.home1b .h-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .8rem 1.3rem; border-radius: 10px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; }
.home1b .h-btn--primary { background: var(--h-brand); color: #fff; }
.home1b .h-btn--primary:hover { background: var(--h-brand-l); }
.home1b .h-btn--ghost { background: transparent; color: var(--h-brand); border-color: color-mix(in srgb, var(--h-brand) 35%, transparent); }
.home1b .h-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; font-weight: 600; color: var(--h-muted); }
.home1b .h-trust li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--h-moss); margin-right: .45rem; vertical-align: middle; }

/* Hero: the headline on the left, the live simulation on the right */
.home1b .h-hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.home1b .h-hero .h-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.home1b .h-hero__copy { min-width: 0; }

/* HOME-LIVE-1: the live simulation card (js/home-sim.js). Fixed heights on everything the script fills, so a result
   arriving moves nothing (CLS 0); the h1 stays the LCP element. */
.home1b .h-sim { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 18px; padding: 1.25rem 1.3rem 1.1rem; box-shadow: 0 18px 40px color-mix(in srgb, var(--h-ink) 10%, transparent); position: relative; }
.home1b .h-sim__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.home1b .h-sim__tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--h-ink); background: color-mix(in srgb, var(--h-clay) 20%, var(--h-surface)); border-radius: 999px; padding: .28rem .65rem; }
.home1b .h-sim__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--h-clay); box-shadow: 0 0 0 0 color-mix(in srgb, var(--h-clay) 60%, transparent); }
.home1b .h-sim.is-running .h-sim__pulse { animation: hs-pulse 1s ease-out infinite; }
@keyframes hs-pulse { to { box-shadow: 0 0 0 8px transparent; } }
.home1b .h-sim__status { font-size: .78rem; font-weight: 600; color: var(--h-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home1b .h-sim__h { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .3rem; }
.home1b .h-sim__setup { margin: 0 0 .7rem; font-size: .86rem; line-height: 1.4; color: var(--h-muted); min-height: 2.8em; }
.home1b .h-sim__verdict { margin: 0 0 .55rem; font-size: 1.02rem; font-weight: 800; line-height: 1.35; color: var(--h-ink); min-height: 2.7em; transition: opacity .2s; }
.home1b .h-sim[data-winner="shares"] .h-sim__verdict { color: var(--h-brand); }
.home1b .h-sim[data-winner="property"] .h-sim__verdict { color: color-mix(in srgb, var(--h-clay) 70%, var(--h-ink)); }
.home1b .h-sim.is-running .h-sim__verdict, .home1b .h-sim.is-running .h-sim__chart, .home1b .h-sim.is-running .h-sim__odds { opacity: .55; }
.home1b .h-sim__odds { transition: opacity .2s; }
.home1b .h-sim__oddsbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--h-line); }
.home1b .h-sim__oddsp { background: var(--h-clay); width: 50%; transition: width .5s ease; }
.home1b .h-sim__oddss { background: var(--h-moss); width: 50%; transition: width .5s ease; }
.home1b .h-sim__odds p { margin: .4rem 0 .6rem; font-size: .86rem; line-height: 1.4; color: var(--h-muted); min-height: 2.8em; }
.home1b .h-sim__odds strong { color: var(--h-ink); }
.home1b .h-sim__chart { margin: 0; transition: opacity .2s; }
.home1b .h-sim__chart svg { display: block; width: 100%; height: auto; aspect-ratio: 520 / 230; background: var(--h-bone); border-radius: 10px; }
.home1b .hs-grid line { stroke: color-mix(in srgb, var(--h-ink) 9%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.home1b .hs-axis { font: 600 11px "Inter Tight", "Inter Tight Fallback", sans-serif; fill: var(--h-muted); }
.home1b .hs-band--p { fill: color-mix(in srgb, var(--h-clay) 24%, transparent); }
.home1b .hs-band--s { fill: color-mix(in srgb, var(--h-moss) 24%, transparent); }
.home1b .hs-med { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.home1b .hs-med--p { stroke: var(--h-clay); }
.home1b .hs-med--s { stroke: var(--h-moss); }
.home1b .hs-med--p-dot { fill: var(--h-clay); stroke: var(--h-surface); stroke-width: 2; }
.home1b .hs-med--s-dot { fill: var(--h-moss); stroke: var(--h-surface); stroke-width: 2; }
.home1b .h-sim__legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: .55rem 0 0; font-size: .82rem; font-weight: 700; color: var(--h-ink); }
.home1b .h-sim__key::before { content: ""; display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.home1b .h-sim__key--p::before { background: var(--h-clay); }
.home1b .h-sim__key--s::before { background: var(--h-moss); }
.home1b .h-sim__key b { font-weight: 800; margin-left: .2rem; font-variant-numeric: tabular-nums; }
.home1b .h-sim__keynote { flex-basis: 100%; font-weight: 500; font-size: .76rem; color: var(--h-muted); }
.home1b .h-sim__inputs { display: grid; gap: .55rem; margin: .9rem 0 .2rem; padding-top: .85rem; border-top: 1px solid var(--h-line); }
.home1b .h-sim__field label { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: .86rem; font-weight: 700; color: var(--h-ink); }
.home1b .h-sim__field output { font-weight: 800; color: var(--h-brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home1b .h-sim__field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
.home1b .h-sim__field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--h-brand) var(--fill), color-mix(in srgb, var(--h-ink) 14%, transparent) var(--fill)); }
.home1b .h-sim__field input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--h-ink) 14%, transparent); }
.home1b .h-sim__field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--h-brand); }
.home1b .h-sim__field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--h-surface); border: 3px solid var(--h-brand); box-shadow: 0 1px 4px color-mix(in srgb, var(--h-ink) 25%, transparent); }
.home1b .h-sim__field input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--h-surface); border: 3px solid var(--h-brand); }
.home1b .h-sim__field input[type="range"]:focus-visible { outline: 3px solid var(--h-brand-l); outline-offset: 2px; border-radius: 6px; }
.home1b .h-sim__extra { margin: -.2rem 0 0; font-size: .76rem; color: var(--h-muted); }
.home1b .h-sim__privacy { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font-size: .8rem; font-weight: 600; color: var(--h-brand); }
.home1b .h-sim__privacy svg { width: 15px; height: 15px; flex: 0 0 auto; }
.home1b .h-sim__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--h-line); }
.home1b .h-sim__reset { min-height: 44px; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--h-line); background: var(--h-surface); color: var(--h-ink); font: 700 .9rem "Inter Tight", "Inter Tight Fallback", sans-serif; cursor: pointer; }
.home1b .h-sim__reset:hover { border-color: var(--h-brand); color: var(--h-brand); }
.home1b .h-sim__go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--h-brand); text-decoration: none; }
.home1b .h-sim__go:hover { text-decoration: underline; }
.home1b .h-sim__noscript { margin: .6rem 0 0; font-size: .9rem; }
.home1b .h-sim.is-failed .h-sim__chart, .home1b .h-sim.is-failed .h-sim__odds, .home1b .h-sim.is-failed .h-sim__inputs, .home1b .h-sim.is-failed .h-sim__reset { display: none; }
@media (prefers-reduced-motion: reduce) {
  .home1b .h-sim *, .home1b .h-flip * { transition: none !important; animation: none !important; }
}

/* The five question cards */
.home1b .h-sec { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.home1b .h-sec--white { background: var(--h-surface); border-block: 1px solid var(--h-line); }
.home1b .h-sec__h { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.home1b .h-sec__sub { color: var(--h-muted); margin: 0 0 1.6rem; font-size: 1.05rem; }
.home1b .h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.home1b .h-card { display: flex; flex-direction: column; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 14px; padding: 1.15rem 1.15rem 1rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; min-height: 170px; position: relative; }
.home1b .h-card:hover { border-color: color-mix(in srgb, var(--h-brand) 45%, transparent); transform: translateY(-2px); }
.home1b .h-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--h-brand)); }
.home1b .h-card__name { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); margin: 0 0 .45rem; }
.home1b .h-card__q { font-size: 1.25rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 .5rem; }
.home1b .h-card__d { color: var(--h-muted); font-size: .95rem; line-height: 1.45; margin: 0 0 .9rem; }
.home1b .h-card__viz { display: block; width: 120px; height: 44px; margin: 0 0 .7rem; overflow: visible; }
.home1b .h-card__viz path, .home1b .h-card__viz rect { vector-effect: non-scaling-stroke; }
.home1b .v-clay, .home1b .v-moss, .home1b .v-denim, .home1b .v-brand, .home1b .v-dash, .home1b .v-base { fill: none; stroke-width: 3; stroke-linecap: round; }
.home1b .v-clay { stroke: var(--h-clay); } .home1b .v-moss { stroke: var(--h-moss); } .home1b .v-denim { stroke: var(--h-denim); } .home1b .v-brand { stroke: var(--h-brand-l); }
.home1b .v-dash { stroke: color-mix(in srgb, var(--h-ink) 40%, transparent); stroke-width: 2; stroke-dasharray: 4 4; }
.home1b .v-base { stroke: color-mix(in srgb, var(--h-ink) 25%, transparent); stroke-width: 1.5; }
.home1b .f-moss { fill: var(--h-moss); } .home1b .f-clay { fill: var(--h-clay); } .home1b .f-denim { fill: var(--h-denim); } .home1b .f-brand { fill: var(--h-brand); } .home1b .f-sky { fill: var(--h-sky); }
.home1b .f-denim-soft { fill: color-mix(in srgb, var(--h-denim) 16%, transparent); } .home1b .f-brand-soft { fill: color-mix(in srgb, var(--h-brand-l) 18%, transparent); }
.home1b .h-card__out { font-size: .8rem; font-weight: 700; color: var(--h-ink); margin: 0 0 .8rem; padding: .35rem .55rem; border-radius: 8px; background: var(--h-bone); align-self: flex-start; }
.home1b .h-card__go { margin-top: auto; font-weight: 800; color: var(--h-brand); font-size: .95rem; }
.home1b .h-also { margin: 1.1rem 0 0; color: var(--h-muted); font-size: .95rem; }
.home1b .h-also a { color: var(--h-brand); font-weight: 700; }

/* HOME-LIVE-1: "One assumption can flip the answer" (rows drawn by js/home-sim.js from the engine) */
.home1b .h-flip { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.home1b .h-flip__level { margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.45; min-height: 3em; color: var(--h-ink); }
.home1b .h-flip__level strong { color: var(--h-brand); }
.home1b .h-flip__points { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
.home1b .h-flip__points li { padding-left: 1.1rem; position: relative; color: var(--h-muted); line-height: 1.45; }
.home1b .h-flip__points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--h-moss); }
.home1b .h-flip__points b { color: var(--h-ink); }
.home1b .h-flip__fig { margin: 0; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 1.1rem 1.2rem 1rem; }
.home1b .h-flip__head { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); margin-bottom: .5rem; }
.home1b .h-flip__sides { display: flex; gap: .9rem; }
.home1b .hf-k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.home1b .hf-k--s::before { background: var(--h-moss); } .home1b .hf-k--p::before { background: var(--h-clay); }
.home1b .h-flip__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 306px; }
.home1b .hf-row { display: grid; grid-template-columns: 3.2rem 1fr 8.5rem; align-items: center; gap: .7rem; min-height: 30px; padding: 0 .4rem; border-radius: 8px; font-size: .88rem; }
.home1b .hf-row--wait { grid-template-columns: 1fr; color: var(--h-muted); }
.home1b .hf-row.is-current { background: color-mix(in srgb, var(--h-brand) 8%, var(--h-surface)); outline: 1px solid color-mix(in srgb, var(--h-brand) 30%, transparent); }
.home1b .hf-rate { font-weight: 800; font-variant-numeric: tabular-nums; }
.home1b .hf-track { position: relative; height: 12px; background: linear-gradient(to right, transparent calc(50% - 1px), color-mix(in srgb, var(--h-ink) 25%, transparent) calc(50% - 1px), color-mix(in srgb, var(--h-ink) 25%, transparent) calc(50% + 1px), transparent calc(50% + 1px)); }
.home1b .hf-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; transition: width .5s ease; }
.home1b .hf-row--shares .hf-bar { background: var(--h-moss); }
.home1b .hf-row--property .hf-bar { background: var(--h-clay); }
.home1b .hf-row--close .hf-bar { background: var(--h-sky); }
.home1b .hf-words { font-weight: 600; color: var(--h-ink); font-variant-numeric: tabular-nums; }
.home1b .h-flip__fig figcaption { margin-top: .7rem; font-size: .78rem; color: var(--h-muted); line-height: 1.4; }
.home1b .h-plans { margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--h-line); color: var(--h-muted); font-size: .95rem; }
.home1b .h-plans a { color: var(--h-brand); font-weight: 700; }

/* Social band */
.home1b .h-social { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.home1b .h-social__h { font-size: 1.4rem; font-weight: 800; margin: 0 0 .25rem; }
.home1b .h-social p { margin: 0; color: var(--h-muted); }
.home1b .h-social ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.home1b .h-social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--h-line); background: var(--h-surface); color: var(--h-ink); text-decoration: none; font-weight: 700; }
.home1b .h-social a:hover { border-color: var(--h-brand); color: var(--h-brand); }
.home1b .h-social svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* The three kept internal-link asides, word for word, in three columns above the footer */
.home1b .h-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.home1b .h-links aside { margin: 0 !important; width: auto !important; padding: 0 !important; }
.home1b .h-links h2 { font-size: .85rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); }
/* HOME-LIVE-1: quiet, on-brand related links (the words stay as they are; links keep their underline for axe
   link-in-text-block, in the brand colour rather than the browser blue). */
.home1b .h-links aside { border-top-color: var(--h-line) !important; padding-top: 1rem !important; color: var(--h-muted); font-size: .9rem !important; }
.home1b .h-links aside a { color: var(--h-brand); text-decoration-color: color-mix(in srgb, var(--h-brand) 40%, transparent); text-underline-offset: 2px; }
.home1b .h-links aside a:hover { text-decoration-color: currentColor; }

/* Phone */
@media (max-width: 860px) {
  .home1b .h-hero .h-wrap { grid-template-columns: 1fr; }
  .home1b .h-flip, .home1b .h-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home1b .h-grid { grid-template-columns: 1fr; }
  .home1b .h-card { min-height: 0; }
  .home1b .h-btn { flex: 1 1 100%; justify-content: center; }
  .home1b .h-social ul { width: 100%; }
  .home1b .h-social a { flex: 1 1 calc(50% - .6rem); justify-content: center; }
  .home1b .h-sim { padding: 1.05rem 1rem 1rem; }
  .home1b .h-sim__status { display: none; }
  .home1b .hf-row { grid-template-columns: 2.6rem 1fr 6.8rem; gap: .5rem; font-size: .82rem; }
  .home1b .h-flip__fig { padding: .9rem .7rem; }
}
