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

:root {
  --ink: #0b0b0c;
  --charcoal: #161617;
  --flamingo: #e8556d;
  --gold: #c9a84c;
  --grey: #8a8a8a;
  --paper: #f6f1ea;
  --paper-2: #ece6d8;
  --muted: #b7b4ae;
  --focus: #f3c14a;
}

*,
*::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.45;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

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

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

.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(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0 0.4rem;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

.tag {
  color: var(--grey);
  font-size: 0.8rem;
}

.hero {
  padding: 1.2rem 0 2rem;
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.kicker {
  color: var(--flamingo);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.85rem, 4.8vw, 2.7rem);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.math {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.form-card {
  background: var(--charcoal);
  border: 1px solid #2b2b2d;
  padding: 1.4rem;
  margin-bottom: 3rem;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
}

.chip {
  background: transparent;
  color: var(--paper);
  border: 1px solid #3a3a3c;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

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

@media (min-width: 740px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

label span {
  color: var(--muted);
}

select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #3a3a3c;
  padding: 0.7rem 0.75rem;
  width: 100%;
}

select:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.error {
  color: var(--flamingo);
  margin: 0.6rem 0 0;
}

.field-note {
  color: var(--grey);
  font-size: 0.8rem;
  margin: -0.35rem 0 0;
  max-width: 40rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
}

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

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

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

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  color: var(--grey);
  font-size: 0.82rem;
  padding-bottom: 2rem;
}

/* Result / PDF sheet */
#view-result {
  padding-bottom: 4rem;
}

.result-toolbar {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1rem 0;
}

.sheet-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 0 1.1rem;
}

.sheet {
  --sheet-bg: var(--charcoal);
  --sheet-fg: var(--paper);
  --sheet-muted: var(--muted);
  --sheet-rule: #2b2b2d;
  --sheet-card: #1f1f21;
  background: var(--sheet-bg);
  color: var(--sheet-fg);
  border: 1px solid var(--sheet-rule);
  padding: 1.6rem 1.4rem 2rem;
}

.sheet h1,
.sheet h2,
.sheet h3 {
  color: var(--sheet-fg);
}

.sheet h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  max-width: 34rem;
}

.sheet-h2 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--gold);
}

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

/* Teaser variant (?view=teaser): headline, stats and the call to action stay sharp; the path is blurred. */
.teaser-gate {
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--sheet-card, #1b1b1c);
}
.teaser-gate h2 { margin: 0 0 0.4rem; font-size: 1.25rem; text-wrap: balance; }
.teaser-gate p { margin: 0 0 1rem; color: var(--sheet-muted, #b7b4ae); max-width: 62ch; }
.is-teaser .teaser-body {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
}
.is-teaser .result-toolbar #print,
.is-teaser #cta-bottom { display: none; }
@media print {
  .is-teaser .teaser-body { display: none; }
}

/* A button that follows the reader down the blurred section, so there is always one to press. */
.teaser-wrap {
  position: relative;
}

.teaser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.teaser-overlay .btn {
  position: sticky;
  top: 42vh;
  align-self: flex-start;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

@media print {
  .teaser-overlay { display: none; }
}

/* The decorative stand-in behind the blur. No lead data reaches these shapes. */
.ph-cell {
  display: inline-block;
  height: 0.72em;
  margin: 0.18em 0.3em 0.18em 0;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.22;
  vertical-align: middle;
}
.chart .ph-bars rect {
  fill: currentColor;
  opacity: 0.16;
}
.chart .ph-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  opacity: 0.45;
}

.sooner-line {
  margin: 0.2rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  text-wrap: balance;
}

.match-meta {
  color: var(--sheet-muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.1rem 0 1.2rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats.book {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  border-top: 2px solid var(--gold);
  padding-top: 0.45rem;
}

.stat b {
  display: block;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

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

.book {
  margin-top: 0.4rem;
}

.book .stat {
  border-top-color: var(--sheet-rule);
}

.book .stat b {
  font-size: 1.15rem;
}

.power {
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
}

.book-note {
  color: var(--sheet-muted);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.stage-line {
  font-size: 1.02rem;
  margin: 0 0 0.8rem;
  color: var(--sheet-fg);
}

.landing {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--sheet-card);
  border-left: 3px solid var(--flamingo);
}

.landing .sheet-h2 {
  margin-top: 0;
}

.landing-line {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.chart {
  background: #fffdf8;
  color-scheme: light;
  border: 1px solid var(--sheet-rule);
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart .plot {
  fill: #fffdf8;
}

.chart .hold-band {
  fill: rgba(201, 168, 76, 0.16);
}

.chart .gap-band {
  fill: rgba(138, 138, 138, 0.18);
}

.chart .grid {
  stroke: #eadfcd;
  stroke-width: 1;
}

.chart .portfolio-area {
  fill: rgba(183, 180, 174, 0.22);
}

.chart .debt-area {
  fill: rgba(201, 168, 76, 0.32);
}

.chart .portfolio {
  fill: none;
  stroke: #b7b4ae;
  stroke-width: 1.6;
}

.chart .debt {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
}

.chart .equity {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
}

.chart .equity-total {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0.55;
}

.chart .income-panel {
  margin-top: 6px;
}

.chart .income-area {
  fill: var(--flamingo);
  opacity: 0.14;
}

.chart .income-line {
  fill: none;
  stroke: var(--flamingo);
  stroke-width: 2;
}

.chart .income-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--flamingo);
  paint-order: stroke fill;
  stroke: #fbf9f4;
  stroke-width: 4px;
}

.chart .panel-title {
  font-weight: 600;
  fill: #6b665e;
}

.chart .goal {
  stroke: var(--flamingo);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}

.chart .goal-label {
  fill: var(--flamingo);
  font-size: 11px;
  font-family: Figtree, sans-serif;
}

.chart .axis {
  fill: #6a655c;
  font-size: 10px;
  font-family: Figtree, sans-serif;
}

.chart .axis.caption {
  font-size: 9px;
}

.chart .pin {
  fill: var(--gold);
  stroke: #fffdf8;
  stroke-width: 1.5;
}

.chart .pin.pin-stretch {
  fill: #fbf9f4;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 3 2;
}

.chart .pin-num-stretch {
  fill: var(--gold);
}

.moves tr.is-stretch td,
.moves tr.is-stretch th {
  color: var(--sheet-muted, #8a8a8a);
}

.moves tr.is-stretch .pin-num {
  background: transparent;
  border: 1.5px dashed var(--gold);
  color: var(--gold);
}

.chart .pin-num-range {
  font-size: 9px;
}

.chart .pin-num {
  fill: var(--ink);
  font-size: 9px;
  font-weight: 700;
  font-family: Figtree, sans-serif;
  text-anchor: middle;
}

.chart.is-compact .pin-num {
  font-size: 11px;
}

.chart .pin-stem {
  stroke: #b7b4ae;
  stroke-width: 1;
}

.chart .pin-label {
  fill: var(--ink);
  font-size: 9.5px;
  font-family: Figtree, sans-serif;
  text-anchor: middle;
}

.chart .hit-ring {
  fill: #fbf9f4;
  stroke: var(--flamingo);
  stroke-width: 1.5;
  opacity: 0.9;
}

.chart .hit-label,
.chart .pin-label {
  paint-order: stroke fill;
  stroke: #fbf9f4;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.chart .hit {
  fill: var(--flamingo);
  stroke: #fffdf8;
  stroke-width: 1.5;
}

.chart .hit-label {
  fill: var(--flamingo);
  font-size: 11px;
  font-weight: 700;
  font-family: Figtree, sans-serif;
}

.chart.is-compact .axis {
  font-size: 12px;
}

.chart.is-compact .hit-label {
  font-size: 13px;
}

.chart.is-compact .equity {
  stroke-width: 3;
}

.moves {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.moves caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--gold);
}

.moves th,
.moves td {
  border-bottom: 1px solid var(--sheet-rule);
  text-align: left;
  padding: 0.45rem 0.4rem 0.45rem 0;
}

.moves thead th {
  color: var(--sheet-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.moves tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.moves td:last-child {
  text-align: right;
  white-space: nowrap;
}

.pin-num {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: -3px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.78rem;
  color: var(--sheet-muted);
  margin: 0.55rem 0 0;
}

.swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.swatch-ink {
  background: var(--ink);
}

.swatch-dashed {
  background: transparent;
  border-top: 2px dashed var(--muted);
  height: 0;
}

.swatch-income {
  background: var(--flamingo);
  opacity: 0.5;
}

.swatch-stretch {
  background: transparent;
  border: 1.5px dashed var(--gold);
  border-radius: 50%;
}

.swatch-portfolio {
  background: #b7b4ae;
}

.swatch-gold {
  background: var(--gold);
}

.swatch-hold {
  background: rgba(201, 168, 76, 0.4);
}

.swatch-goal {
  background: var(--flamingo);
}

.phase-rail {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1.2rem;
  counter-reset: phase;
}

.phase {
  counter-increment: phase;
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sheet-rule);
  font-size: 0.9rem;
  color: var(--sheet-muted);
}

.phase::before {
  content: counter(phase);
  font-weight: 700;
  color: var(--sheet-muted);
}

.phase small {
  font-size: 0.78rem;
  color: var(--sheet-muted);
  white-space: nowrap;
}

.phase.is-now {
  color: var(--sheet-fg);
  font-weight: 600;
}

.phase.is-now::before {
  color: var(--flamingo);
}

.phase.is-now span::after {
  content: " · now";
  color: var(--flamingo);
  font-weight: 600;
}

@media (min-width: 640px) {
  .phase-rail {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0;
    border-top: 1px solid var(--sheet-rule);
  }

  .phase {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.7rem 0.6rem 0.5rem 0;
    border-bottom: 0;
    border-top: 3px solid var(--sheet-rule);
    margin-top: -1px;
  }

  .phase::before {
    display: none;
  }

  .phase.is-now {
    border-top-color: var(--flamingo);
  }
}

.journey {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .journey {
    grid-template-columns: 1fr 1fr;
  }
}

.step {
  background: var(--sheet-card);
  padding: 0.9rem 0.95rem;
  border-left: 3px solid var(--gold);
}

.step.is-muted {
  opacity: 0.55;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step p {
  margin: 0;
  color: var(--sheet-muted);
  font-size: 0.95rem;
}

.next {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sheet-rule);
}

.next h2 {
  font-size: 1.35rem;
  max-width: 30rem;
}

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

.next-top {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin: 1.2rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--sheet-rule, #2a2a2b);
  border-left: 4px solid var(--flamingo);
  border-radius: 10px;
  background: var(--sheet-card, #1b1b1c);
}

.next-top h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.next-top .fine {
  margin: 0;
}

@media (min-width: 700px) {
  .next-top {
    grid-template-columns: 1fr auto;
  }
}

.btn-cta {
  font-size: 1rem;
  padding: 0.9rem 1.3rem;
  white-space: nowrap;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

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

@media (min-width: 900px) {
  body.has-sticky {
    padding-bottom: 0;
  }
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.94);
  border-top: 1px solid #2a2a2b;
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.sticky-cta .btn {
  white-space: nowrap;
}

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

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

@media print {
  .demo-banner,
  .result-toolbar,
  #view-form,
  .sticky-cta,
  .cta-row .btn-ghost,
  .site-head .tag {
    display: none !important;
  }

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

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

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

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

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

  .chart {
    border-color: #d9d2c5;
  }
}
