@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* Henderson palette, shared with the pathway page so the two funnels read as one brand. */
:root {
  --ink: #0b0b0c;
  --charcoal: #161617;
  --flamingo: #e8556d;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.16);
  --grey: #8a8a8a;
  --paper: #f6f1ea;
  --paper-2: #ece6d8;
  --muted: #b7b4ae;
  --rule: #2a2a2c;
  --focus: #f3c14a;
  --good: #6cc496;
  --bad: #e8846c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Figtree, system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}

.demo-banner {
  background: var(--flamingo);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.wrap {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
  gap: 1rem;
}

.brand-logo {
  width: 180px;
  height: auto;
}

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding: 2.5rem 0 2rem;
  max-width: 46rem;
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
}

/* ---------------------------------------------------------------- cards and steps */
.card {
  background: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.step-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 2rem 0 1rem;
}

.step-head:first-of-type {
  margin-top: 0;
}

.step-num {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.step-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.step-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

label {
  display: block;
}

label > span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* A $ or % that sits inside the field rather than floating beside it. */
.money-input {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}

.money-input i {
  display: grid;
  place-items: center;
  padding: 0 0.7rem;
  font-style: normal;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.money-input input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.money-input:focus-within {
  border-color: var(--gold);
}

.extra {
  margin-top: 0.9rem;
}

.extra summary,
.cap-help summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.9rem;
}

.extra > label {
  margin-top: 0.75rem;
  max-width: 22rem;
}

.cap-help {
  align-self: end;
}

.cap-help p {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* The live income running total. */
.running {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--gold-soft);
  border-radius: 10px;
}

.running b {
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.running span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.running .op {
  color: var(--muted);
  font-size: 0.95rem;
}

/* The dominant number. */
.headline-figure {
  margin: 1.75rem 0 0.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), transparent);
}

.figure-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.headline-figure b {
  display: block;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0;
}

.figure-sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-figure {
  border-color: var(--flamingo);
  background: linear-gradient(180deg, rgba(232, 85, 109, 0.14), transparent);
}

/* ---------------------------------------------------------------- mode toggle */
.mode-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mode {
  text-align: left;
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.mode b {
  display: block;
  font-size: 0.98rem;
}

.mode span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.mode.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--flamingo);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--paper);
}

.btn-small {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-cta {
  font-size: 1.02rem;
  padding: 0.95rem 1.7rem;
}

/* ---------------------------------------------------------------- the gate */
.gate {
  border-color: var(--gold);
}

.gate h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  text-wrap: balance;
}

.gate-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 44rem;
}

.gate .btn-primary {
  margin-top: 1rem;
}

.fine {
  font-size: 0.82rem;
  color: var(--grey);
  margin: 0.7rem 0 0;
}

.error {
  color: var(--flamingo);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

/* ---------------------------------------------------------------- the results sheet */
.sheet {
  --sheet-bg: var(--charcoal);
  --sheet-fg: var(--paper);
  --sheet-muted: var(--muted);
  --sheet-rule: var(--rule);
  background: var(--sheet-bg);
  color: var(--sheet-fg);
  border: 1px solid var(--sheet-rule);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.sheet-logo {
  width: 170px;
  margin-bottom: 1rem;
}

.sheet-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.sheet-title {
  margin: 0.3rem 0 0;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.sheet-h3 {
  margin: 2.25rem 0 0.4rem;
  font-size: 1.15rem;
}

.sheet-note {
  margin: 0 0 1rem;
  color: var(--sheet-muted);
  font-size: 0.92rem;
  max-width: 44rem;
}

.feas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feas h3 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.feas dl,
.scenario dl {
  margin: 0;
}

.feas dl > div,
.scenario dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--sheet-rule);
}

.feas dt,
.scenario dt {
  color: var(--sheet-muted);
  font-size: 0.92rem;
}

.feas dd,
.scenario dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.feas .total,
.scenario .total {
  border-bottom: 0;
  border-top: 2px solid var(--gold);
  margin-top: 0.35rem;
  padding-top: 0.6rem;
}

.feas .total dt,
.scenario .total dt {
  color: var(--sheet-fg);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.stat b {
  display: block;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--sheet-muted);
}

.not-viable {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--bad);
  background: rgba(232, 132, 108, 0.1);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------- sliders */
.sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem 1.75rem;
  margin-bottom: 1rem;
}

.slider label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--sheet-muted);
  margin-bottom: 0.3rem;
}

.slider label b {
  color: var(--sheet-fg);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

/* ---------------------------------------------------------------- cap rate cases */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
}

.case {
  border: 1px solid var(--sheet-rule);
  border-radius: 10px;
  padding: 1rem;
}

.case.is-base {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.case h4 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sheet-muted);
}

.case .rate {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.2rem 0 0.5rem;
  font-variant-numeric: tabular-nums;
}

.case dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.case dt {
  color: var(--sheet-muted);
}

.case dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ---------------------------------------------------------------- education */
.teach {
  margin-top: 3.5rem;
}

.teach-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.teach-lede {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.gap-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--charcoal);
  margin-bottom: 1.75rem;
}

.gap-side {
  text-align: center;
}

.gap-arrow {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.gap-side.down .gap-arrow {
  color: var(--good);
}

.gap-side.up .gap-arrow {
  color: var(--gold);
}

.gap-side b {
  display: block;
  margin-top: 0.3rem;
}

.gap-side span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.gap-middle {
  text-align: center;
  min-width: 9rem;
}

.gap-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flamingo);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gap-bar {
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gap-bar i {
  display: block;
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--good), var(--gold));
}

.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.scenario {
  --sheet-muted: var(--muted);
  --sheet-rule: var(--rule);
  --sheet-fg: var(--paper);
  background: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
}

.scenario h3 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scenario.is-better {
  border-color: var(--gold);
}

.scenario.is-better h3 {
  color: var(--gold);
}

.teach-note {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.teach-grid article {
  background: var(--charcoal);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
}

.teach-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.teach-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.teach-grid .paradox {
  border-color: var(--flamingo);
}

.teach-grid .paradox h3 {
  color: var(--flamingo);
}

.shift {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-left: 3px solid var(--gold);
  background: var(--charcoal);
  border-radius: 0 12px 12px 0;
}

.shift p {
  margin: 0 0 0.5rem;
}

.shift-a {
  color: var(--muted);
  font-size: 1.05rem;
}

.shift-b {
  font-size: 1.35rem;
  font-weight: 600;
  text-wrap: balance;
}

.shift-note {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 42rem;
  margin-top: 0.9rem !important;
}

/* ---------------------------------------------------------------- call to action */
.next {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--flamingo);
  border-radius: 14px;
  background: rgba(232, 85, 109, 0.08);
}

.next h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  text-wrap: balance;
}

.next p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 44rem;
}

.next-bottom {
  margin-top: 3.5rem;
}

.disclaimer {
  margin-top: 2.5rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--grey);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(11, 11, 12, 0.94);
  border-top: 1px solid var(--rule);
  backdrop-filter: blur(6px);
}

.sticky-cta span {
  font-size: 0.9rem;
}

body.has-sticky {
  padding-bottom: 4.5rem;
}

@media (min-width: 760px) {
  .sticky-cta {
    display: none;
  }

  body.has-sticky {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- print: the sheet on white */
@media print {
  .demo-banner,
  .sticky-cta,
  #calc,
  #gate,
  .hero,
  .teach,
  .next-bottom,
  .sliders,
  #reset-sliders,
  .site-head .tag {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sheet {
    --sheet-bg: #fff;
    --sheet-fg: #000;
    --sheet-muted: #4a4640;
    --sheet-rule: #d9d2c5;
    padding: 0;
    border: 0;
  }

  .sheet-logo {
    content: url("assets/henderson-logo-light.png");
  }

  .stat {
    background: #f6f1ea;
  }

  .headline-figure {
    background: none;
  }

  .btn-cta {
    border: 1px solid #000;
    color: #000 !important;
    background: #fff !important;
  }

  .btn-cta::after {
    content: ": henderson.com.au";
  }

  .disclaimer {
    color: #4a4640;
  }
}
