/* ============================================================
   Home page (WP-20, WP-59, WP-87): one story in the /plan look. The hero
   (the headline on a band of the video, the estimate form at its right),
   the interactive example, Jay's line on a deep-green band, the use
   cases, how it works, privacy, the films, the close, the disclosures.
   Tokens only (brand.css); every rule is scoped to .home-page, so no
   other page changes. Loaded on the front page only.
   One width for every section, with the same two columns where a
   section has two parts, so left edges and centre lines line up.
   One emphasis effect: the gold highlighter wash (.home-mark).
   ============================================================ */

.home-page {
  /* The page's edge is the header's and the footer's (brand.css --page-edge, WP-79), so the hero's words start under
     the logo and the calculator ends under Login; past 1920px wide the content stops growing. The gap between two
     columns stays about four fifths of the edge. */
  --home-edge: var(--page-edge, max(clamp(20px, 5vw, 80px), calc((100% - 1760px) / 2)));
  --home-gap: clamp(32px, 4vw, 64px);
  /* One vertical rhythm: every section's padding, top and bottom. */
  --sec-pad: clamp(40px, 3.2vw, 60px);
  /* The calculator's column at the hero's right: the width its three-across rows need (502px inside its border), so
     the words beside it get the rest (WP-71). */
  --form-w: 520px;
  --mark-light: color-mix(in srgb, var(--gold, #C59F6D) 44%, var(--bg-main, #F8F6F2));
  --mark-dark: color-mix(in srgb, var(--gold-on-dark, #D1AB64) 42%, var(--brand, #0F4535));
  background: var(--bg-main, #F8F6F2);
}

.home-page .home-inner {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 var(--home-edge);
}

.home-page .marketing-main {
  padding-bottom: 0; /* the close meets the footer, with no strip of page between them */
}

.home-page p,
.home-page h1,
.home-page h2,
.home-page h3 {
  padding-bottom: 0; /* the theme pads every paragraph and heading */
}

/* ---------- The highlighter wash: a gold band behind the full height of the words and digits ---------- */
.home-page .home-mark {
  background-image: linear-gradient(var(--mark-light), var(--mark-light));
  background-repeat: no-repeat;
  background-position: 0 62%;
  background-size: 100% 80%;
  padding: 0 0.1em;
  margin: 0 -0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  white-space: nowrap; /* a highlighted phrase never splits across lines */
}
.home-page .home-hero-text .home-mark,
.home-page .home-say .home-mark,
.home-page .home-close .home-mark {
  background-image: linear-gradient(var(--mark-dark), var(--mark-dark));
}
/* It sweeps in once, on load, in the hero. */
@keyframes home-mark-in { from { background-size: 0 80%; } to { background-size: 100% 80%; } }
.home-page .home-hero-text .home-mark { animation: home-mark-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 650ms both; }
@media (prefers-reduced-motion: reduce) {
  .home-page .home-mark { animation: none !important; transition: none !important; background-size: 100% 80% !important; }
}

/* ---------- The hero (WP-87): a band of the background video as tall as the estimate form. The words at the left,
   centred on the form's height; the form at the right, on the calculator's 520px column ----------
   The video is tinted deep green and held under a deep-green layer strong enough for every line over it to keep
   its contrast at the video's brightest moments: 80% behind the headline, deepening to 94% at the top, behind the
   small gold line. The site's pause button (marketing.js) sits in the band's bottom left corner, on the page's edge,
   under the words. */
.home-page .home-hero {
  --top-pad: clamp(22px, 1.9vw, 36px);
  position: relative;
  overflow: hidden;
  padding: var(--top-pad) 0 calc(var(--top-pad) + 4px);
  background: var(--brand, #0F4535);
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-hero > .home-inner { position: relative; z-index: 1; }
/* The hero's two columns: the words, and at the right what LifeARC is, the button to the form and the film; short, so
   the example's figures show on the first screen (WP-89). */
.home-page .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--form-w));
  column-gap: var(--home-gap);
  align-items: end;
}
.home-page .home-hero-side { padding: 0 0 4px; }
.home-page .home-hero-side .home-hero-plain { margin: 0; }
.home-page .home-hero-jump { margin: 18px 0 0; }
/* The ticker and the h1 on one row, on their shared baseline; under 390px the h1 drops under the ticker. */
.home-page .home-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 4px;
}
.home-page .home-hero-ticker {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gold-on-dark, #D1AB64);
}
.home-page .hero-subtitle.hero-subtitle {
  margin: 0;
  opacity: 1;
  animation: none;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  color: var(--on-solid, #F8F6F2);
}
/* A phone: a step smaller, so the two still share a row from a 390px screen. */
@media (max-width: 480px) {
  .home-page .home-hero-kicker { column-gap: 12px; }
  .home-page .home-hero-ticker { font-size: 13px; }
  .home-page .hero-subtitle.hero-subtitle { font-size: 16px; }
}
.home-page .home-hero-line {
  margin: 18px 0 0;
  max-width: 16.5em;
  text-wrap: balance; /* even lines, so no word is left alone before the highlighted phrase */
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: clamp(32px, 2.85vw, 54px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-hero-answer {
  margin: 10px 0 0;
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: clamp(26px, 2vw, 38px);
  font-style: italic;
  line-height: 1.2;
  color: var(--gold-on-dark, #D1AB64);
}
/* Under the headline: what LifeARC is, in one sentence, and the film. */
.home-page .home-hero-plain {
  margin: 26px 0 0;
  max-width: 30em;
  font-size: clamp(19px, 1.2vw, 22px);
  line-height: 1.5;
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--on-solid, #F8F6F2) !important;
  font: 600 17px/1.4 var(--font-sans, "Rethink Sans", sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--gold-on-dark, #D1AB64);
  cursor: pointer;
}
.home-page .home-hero-watch svg { color: var(--gold-on-dark, #D1AB64); }
.home-page .home-hero-watch:hover { text-decoration-thickness: 2px; }
.home-page .home-hero-watch:focus-visible { outline: 2px solid var(--on-solid, #F8F6F2); outline-offset: 4px; }
/* One column under 1200px: the words, then the side's sentence, button and film. */
@media (max-width: 1199.98px) {
  .home-page .home-hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
}

/* ---------- The form's section, right under the example (WP-93): at the left the heading, Ralph's line and a short How
   it works (what happens after the form); at the right the form, about 60% of the width (three across; six across once
   the card is 900px or wider, hero-calc.js). Both columns start at the top. ---------- */
.home-page .home-est { scroll-margin-top: 104px; }
.home-page .home-est-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: var(--home-gap);
  align-items: start;
}
.home-page .home-est-text h2 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--brand, #0F4535);
}
.home-page .home-est-lede { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--text-main, #1A1A1A); }
.home-page .home-est-how {
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line, rgba(15, 69, 53, 0.16));
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--brand, #0F4535);
}
.home-page .home-est-steps { margin: 12px 0 0 !important; padding: 0 !important; list-style: none; }
.home-page .home-est-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted, #4A5551);
}
.home-page .home-est-steps b { font-weight: 700; color: var(--text-main, #1A1A1A); }
.home-page .home-est-n {
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: 26px;
  line-height: 1.05;
  color: var(--brand, #0F4535);
}
.home-page .home-est-form #lifearc-hero-calc-root .hc-card {
  max-width: none !important;
  border: 1px solid var(--brand, #0F4535);
  box-shadow: 0 24px 48px -30px color-mix(in srgb, var(--brand, #0F4535) 60%, transparent);
}
@media (max-width: 1199.98px) {
  .home-page .home-est-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
}
}
}

/* The theme recolours a focused button with its own accent; the calculator's button keeps the coral fill while focused or pressed (the keyboard ring comes from overrides.css). */
.home-page .hc-btn:focus, .home-page .hc-btn:active { background: var(--cta, #EF966E) !important; color: var(--cta-ink, #1A1A1A) !important; }

/* The theme paints every table in .main-content white and stripes its odd rows (build/style.css, selectors with four
   parts); the disclosures' table sits on the page's own background, so its root's id outweighs it. */
.home-page #home-disc table.home-disc-t,
.home-page #home-disc .home-disc-t tr {
  background: transparent;
}
/* Text buttons: plain underlined words (the theme dresses every <button>). */
.home-page .home-textbtn {
  display: inline;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.home-page .home-textbtn:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: 2px; }
.home-page .home-nowrap { white-space: nowrap; } /* "(assumptions below)" keeps its brackets on its line */

/* ---------- The interactive example (WP-86, WP-88 to WP-90; plan-tool.js fills #lifearc-tool-root), right under the
   hero on the light background: Linda and Tom side by side, each one's figure first, then the one choice (Default
   Assumption or LifeARC Planning) across both, then each one's inputs and markets' table, then the notes across both.
   One emphasis, the light gold wash, on the two figures.
   Type: up to 60 the figures, 28 the names, 20 the options and the tables' figures, 17 the lines and rows, 15 the
   labels, notes and caveats. ---------- */
.home-page .home-tool {
  padding: clamp(32px, 2.8vw, 48px) 0 var(--sec-pad);
  background: var(--bg-main, #F8F6F2);
  color: var(--text-main, #1A1A1A);
  scroll-margin-top: 104px; /* the footer's "Why LifeARC" lands here, clear of the sticky header */
}
.home-page .home-tool [hidden] { display: none !important; }
.home-page .home-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.home-page .home-tool-twins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "lh th" "lf tf" "tog tog" "li ti" "lt tt" "cav cav";
  column-gap: var(--home-gap);
}
.home-page .home-tool-head.is-linda { grid-area: lh; }
.home-page .home-tool-head.is-tom { grid-area: th; }
.home-page .home-tool-take.is-linda { grid-area: lf; }
.home-page .home-tool-take.is-tom { grid-area: tf; }
.home-page .home-tool-inputs.is-linda { grid-area: li; }
.home-page .home-tool-inputs.is-tom { grid-area: ti; }
.home-page #lifearc-tool-root .home-tool-t.is-linda { grid-area: lt; } /* a table under each (WP-107) */
.home-page #lifearc-tool-root .home-tool-t.is-tom { grid-area: tt; }
.home-page .home-tool-head h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand, #0F4535);
}
.home-page .home-tool-who {
  margin: 4px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-main, #1A1A1A);
}
.home-page .home-tool-take { margin: 14px 0 0; }
.home-page .home-tool-n {
  margin: 0;
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--brand, #0F4535);
}
.home-page .home-tool-sub {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-muted, #4A5551);
}

/* The one choice: two options on one bar at the left, under both figures. The LifeARC option is coral, the page's
   action colour, until it is chosen; then the brand green. */
.home-page .home-tool-ctl1 { grid-area: tog; justify-self: start; width: min(100%, 560px); margin: 30px 0 0; }
/* Before the first click: one coral button with a verb, 60px tall. */
.home-page .home-tool-gobtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 60px;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: var(--radius-box, 4px) !important;
  box-shadow: none !important;
  background: var(--cta, #EF966E) !important;
  color: var(--cta-ink, #1A1A1A) !important;
  font: 400 21px/1.2 var(--font-serif, "IBM Plex Serif", Georgia, serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
.home-page .home-tool-gobtn:hover { background: var(--cta-hover, #DD7E53) !important; }
.home-page .home-tool-gobtn:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: 3px; }
.home-page .home-tool-gobtn.is-pulse { animation: home-tool-pulse 650ms ease-in-out 2; }
@keyframes home-tool-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 150, 110, 0); }
  50% { transform: scale(1.025); box-shadow: 0 0 0 8px rgba(239, 150, 110, 0.35); }
}
/* After it: a two-sided switch; the chosen side green with a check, the other white; the green slides across. */
.home-page .home-tool-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 60px;
  border: 1.5px solid var(--brand, #0F4535);
  border-radius: var(--radius-box, 4px);
  background: var(--surface, #FFFFFF);
  overflow: hidden;
}
.home-page .home-tool-seg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--brand, #0F4535);
  transform: translateX(0);
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
}
.home-page .home-tool-seg.is-l::before { transform: translateX(100%); }
.home-page .home-tool-seg:not(.is-g):not(.is-l)::before { opacity: 0; }
/* The theme dresses every <button>; these are the switch's two sides. */
.home-page .home-tool-seg button {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--brand, #0F4535) !important;
  text-align: center !important;
  font: 400 20px/1.2 var(--font-serif, "IBM Plex Serif", Georgia, serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: color 300ms cubic-bezier(0.2, 0, 0, 1);
}
.home-page .home-tool-seg button[aria-pressed="true"] { color: var(--on-solid, #F8F6F2) !important; cursor: default; }
.home-page .home-tool-seg button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--brand, #0F4535) 8%, transparent) !important; }
.home-page .home-tool-check { display: none; font-family: var(--font-sans, "Rethink Sans", sans-serif); font-weight: 700; }
.home-page .home-tool-seg button[aria-pressed="true"] .home-tool-check { display: inline; }
.home-page .home-tool-seg button:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: -5px; }
.home-page .home-tool-seg button[aria-pressed="true"]:focus-visible { outline-color: var(--on-solid, #F8F6F2); }
/* The figures fade in their new values and the wash redraws when the choice changes; the other view's figure under each. */
/* Under each figure, the risk before the person's number, in plain text beside the figure it qualifies. */
.home-page .home-tool-risk { margin: 6px 0 0; font-size: 17px; line-height: 1.4; color: var(--text-main, #1A1A1A); }
.home-page .home-tool-risk:empty { display: none; }
.home-page .home-tool-alt { margin: 6px 0 0; font-size: 16px; font-style: italic; line-height: 1.4; color: var(--text-muted, #4A5551); }
.home-page .home-tool-alt:empty { display: none; }
/* While a figure counts to its new value (plan-tool.js, 1.4s) its wash redraws with it; tabular figures keep the
   digits from jostling as they change. */
.home-page .home-tool-n { font-variant-numeric: tabular-nums; }
.home-page .home-tool-take.is-swap .home-mark { animation: home-mark-in 1400ms cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) {
  .home-page .home-tool-gobtn.is-pulse { animation: none; }
  .home-page .home-tool-seg::before,
  .home-page .home-tool-seg button { transition: none; }
}

/* Each one's inputs: spending, savings and stock allocation, side by side (story.js's square steppers); each column at
   least as wide as its value needs (WP-105), so "$2,000,000" and "80%" never clip. */
.home-page .home-tool-inputs {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(172px, 1.3fr) minmax(112px, 0.8fr);
  gap: 12px;
  margin: 30px 0 0;
}
.home-page .home-tool-stl {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main, #1A1A1A);
}
.home-page .home-tool-st {
  display: flex;
  align-items: stretch;
  height: 48px;
  border: 1.5px solid var(--brand, #0F4535);
  border-radius: var(--radius-box, 4px);
  background: var(--surface, #FFFFFF);
  overflow: hidden;
}
.home-page .home-tool-step {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--brand, #0F4535) !important;
  font: 400 24px/1 var(--font-serif, "IBM Plex Serif", Georgia, serif) !important;
  cursor: pointer;
}
.home-page .home-tool-step:hover:not(:disabled) { background: color-mix(in srgb, var(--brand, #0F4535) 8%, transparent) !important; }
.home-page .home-tool-step:disabled { color: color-mix(in srgb, var(--brand, #0F4535) 30%, transparent) !important; cursor: default; }
.home-page .home-tool-in {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-left: 1px solid var(--line, rgba(15, 69, 53, 0.16)) !important;
  border-right: 1px solid var(--line, rgba(15, 69, 53, 0.16)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--brand, #0F4535) !important;
  font: 400 18px/1 var(--font-serif, "IBM Plex Serif", Georgia, serif) !important;
  text-align: center !important;
}
.home-page .home-tool-step:focus-visible,
.home-page .home-tool-in:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: -3px; }
/* Mid widths: slimmer step buttons and a size smaller, so the three still sit side by side. */
@media (max-width: 1440px) {
  .home-page .home-tool-step { flex-basis: 30px !important; width: 30px !important; font-size: 22px !important; }
  .home-page .home-tool-in { font-size: 17px !important; }
}

/* Each one's periods: lowest, average and highest since 1928. The theme paints every table in .main-content white and stripes its odd rows
   (WP-53), so these rules are keyed to the root's id. */
.home-page #lifearc-tool-root table.home-tool-t,
.home-page #lifearc-tool-root .home-tool-t tr { background: transparent; }
.home-page #lifearc-tool-root .home-tool-t {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0;
  margin: 24px 0 0;
  align-self: start;
}
.home-page #lifearc-tool-root .home-tool-t col.home-tool-c0 { width: 40%; }
.home-page #lifearc-tool-root .home-tool-t col.home-tool-c1 { width: 60%; }
.home-page #lifearc-tool-root .home-tool-t th,
.home-page #lifearc-tool-root .home-tool-t td {
  height: 48px;
  padding: 0 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line, rgba(15, 69, 53, 0.16));
  background: transparent;
  text-align: left;
  vertical-align: middle;
  font: 400 17px/1.3 var(--font-sans, "Rethink Sans", sans-serif);
  color: var(--text-main, #1A1A1A);
}
.home-page #lifearc-tool-root .home-tool-t thead th {
  height: auto;
  padding-bottom: 8px;
  border-top: 0;
  vertical-align: bottom;
  font-size: 15px;
  font-weight: 700;
}
.home-page #lifearc-tool-root .home-tool-t tbody tr:last-child > * { border-bottom: 1px solid var(--line, rgba(15, 69, 53, 0.16)); }
.home-page #lifearc-tool-root .home-tool-t .home-tool-fig { text-align: right; }
.home-page #lifearc-tool-root .home-tool-t th.home-tool-fig:last-child,
.home-page #lifearc-tool-root .home-tool-t td.home-tool-fig:last-child { padding-right: 0; }
.home-page #lifearc-tool-root .home-tool-t td.home-tool-fig {
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* The notes across both, and the one line that this is not advice, with the link to the assumptions. */
.home-page .home-tool-cavs { grid-area: cav; margin: 24px 0 0; }
.home-page .home-tool-cav {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted, #4A5551);
}
.home-page .home-tool-cav + .home-tool-cav { margin-top: 6px; }
.home-page .home-tool-caveat {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #4A5551);
}
.home-page .home-tool-caveat strong { font-weight: 700; color: var(--text-main, #1A1A1A); }
.home-page .home-tool-caveat .home-textbtn { font-style: normal !important; font-weight: 600 !important; color: var(--brand, #0F4535) !important; }

/* Narrower: each one's three inputs one above the other. */
@media (max-width: 1100px) {
  .home-page .home-tool-inputs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
/* A phone: Linda whole, then Tom whole: the figures first, then the choice, then each one's inputs and table. */
@media (max-width: 760px) {
  .home-page .home-tool-twins { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lh" "lf" "th" "tf" "tog" "li" "lt" "ti" "tt" "cav"; }
  .home-page .home-tool-head.is-tom { margin-top: 32px; }
  .home-page .home-tool-inputs.is-tom { margin-top: 40px; }
  .home-page .home-tool-seg button { padding: 0 8px !important; font-size: 18px !important; }
  .home-page .home-tool-gobtn { font-size: 19px !important; }
  .home-page #lifearc-tool-root .home-tool-t td.home-tool-fig { font-size: 18px; }
  .home-page #lifearc-tool-root .home-tool-t th,
  .home-page #lifearc-tool-root .home-tool-t td { height: auto; padding: 10px 8px 10px 0; font-size: 16px; }
  .home-page #lifearc-tool-root .home-tool-t thead th { font-size: 14px; }
  .home-page #lifearc-tool-root .home-tool-t td.home-tool-fig { font-size: 17px; }
}

/* ---------- Jay's line (WP-59, WP-87): a deep-green band under the example, one statement on the page's left edge
   ---------- */
.home-page .home-say {
  padding: var(--sec-pad) 0;
  background: var(--brand, #0F4535);
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-say h2 {
  margin: 0;
  max-width: 26em;
  text-wrap: balance;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--on-solid, #F8F6F2);
}

/* The assumptions and disclosures (WP-68, WP-86): open, in a section of their own at the foot of the page, which the
   example's "(assumptions below)" scrolls to. Its heading is the small print's, not a section heading's. */
/* The assumptions and disclosures in a pop-up (WP-102), opened from the line under the example: a modal dialog over a
   dimmed page, its content scrolling inside when it is taller than the screen. */
.home-page .home-disc-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-box, 4px);
  background: var(--surface, #FFFFFF);
  color: var(--text-main, #1A1A1A);
  box-shadow: 0 16px 48px rgba(15, 30, 25, 0.28);
  overflow: auto;
  overscroll-behavior: contain;
}
.home-page .home-disc-dialog::backdrop { background: rgba(15, 30, 25, 0.55); }
.home-page .home-disc { margin: 0; padding: 28px 32px 24px; }
@media (max-width: 640px) { .home-page .home-disc { padding: 20px 18px 18px; } }
.home-page .home-disc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.home-page .home-disc-close {
  flex: none;
  margin: 0 !important;
  padding: 6px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--brand, #0F4535) !important;
  font: 600 16px/1.2 var(--font-sans, "Rethink Sans", sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.home-page .home-disc-close:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: 2px; }
.home-page #home-disc h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--brand, #0F4535);
}
.home-page #home-disc .home-disc-t { width: 100%; border-collapse: collapse; margin: 0 0 16px; border: 0; }
.home-page #home-disc .home-disc-t th,
.home-page #home-disc .home-disc-t td {
  padding: 8px 16px 8px 0;
  border: 0;
  border-top: 1px solid var(--line, rgba(15, 69, 53, 0.16));
  background: transparent;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted, #4A5551);
}
.home-page #home-disc .home-disc-t th { width: 22%; font-weight: 700; color: var(--text-main, #1A1A1A); }
@media (max-width: 640px) { .home-page #home-disc .home-disc-t th { width: 34%; } }
.home-page .home-disc p {
  margin: 0 0 10px;
  max-width: 72em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #4A5551);
}

/* ---------- Sections ---------- */
.home-page .home-section {
  padding: var(--sec-pad) 0;
  border-bottom: 1px solid var(--line, rgba(15, 69, 53, 0.16));
  background: var(--bg-soft, #F1ECE2); /* light sections alternate: warm, then white (--plain) */
}
.home-page .home-section--plain {
  background: var(--surface, #FFFFFF);
}
.home-page .home-section h2,
.home-page .home-close h2 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--brand, #0F4535);
}
.home-page .home-section h2 em { font-style: italic; }
.home-page .home-lede {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted, #4A5551);
}
.home-page .home-caption {
  margin: 18px 0 0;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted, #4A5551);
}

/* Two parts side by side, centred on each other. */
.home-page .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--home-gap);
  align-items: center;
}
@media (max-width: 1000px) {
  .home-page .home-split { grid-template-columns: 1fr; }
}

/* ---------- What your months ahead help you plan: the /plan switch, one statement at a time ---------- */
/* The heading and the stacked tabs at the left, the statement at the right, as in the other two-part sections. */
.home-page .home-seg {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 24px 0 0;
  border: 1.5px solid var(--brand, #0F4535);
  border-radius: var(--radius-box, 4px);
}
.home-page .home-seg [role="tab"] {
  margin: 0 !important;
  padding: 12px 20px !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--brand, #0F4535) !important;
  font: 700 16px/1.2 var(--font-sans, "Rethink Sans", sans-serif) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
.home-page .home-seg [role="tab"] + [role="tab"] { border-top: 1.5px solid var(--brand, #0F4535) !important; }
.home-page .home-seg [role="tab"]:hover { background: color-mix(in srgb, var(--brand, #0F4535) 8%, transparent) !important; }
.home-page .home-seg [role="tab"][aria-selected="true"] { background: var(--brand, #0F4535) !important; color: var(--on-solid, #F8F6F2) !important; }
.home-page .home-seg [role="tab"]:focus-visible { outline: 2px solid var(--brand, #0F4535); outline-offset: 2px; }
/* Every panel sits in the same grid cell, the hidden ones invisible, so the area keeps the tallest panel's height and
   nothing below moves as the tabs change. */
.home-page .home-case-panels { min-height: 240px; display: grid; align-items: center; }
.home-page .home-case { grid-area: 1 / 1; padding: 0; }
.home-page .home-case[hidden] { display: block; visibility: hidden; }
.home-page .home-case-line {
  margin: 0;
  max-width: 22em;
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.2;
  color: var(--brand, #0F4535);
}
.home-page .home-case-body {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted, #4A5551);
}
.home-page .home-link {
  margin-left: 6px;
  color: var(--brand, #0F4535) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.home-page .home-case.is-showing { animation: home-case-in 450ms ease both; }
@keyframes home-case-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home-page .home-case.is-showing { animation: none; } }
@media (max-width: 1000px) {
  .home-page .home-seg { max-width: none; }
  .home-page .home-case-panels { min-height: 0; }
}

/* ---------- How it works: three steps on rules, across the full width ---------- */
.home-page .home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gap);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.home-page .home-steps li {
  margin: 0;
  padding: 20px 0 0;
  border-top: 2px solid var(--brand, #0F4535);
  list-style: none;
}
.home-page .home-step-n {
  display: block;
  font-family: var(--font-serif, "IBM Plex Serif", Georgia, serif);
  font-size: 40px;
  line-height: 1;
  color: var(--brand, #0F4535);
}
.home-page .home-steps h3 {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-main, #1A1A1A);
}
.home-page .home-steps p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted, #4A5551);
}
@media (max-width: 860px) {
  .home-page .home-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Private and secure: the heading and lede at the left, the four points on hairlines at the right, two
   across (one across on a phone) ---------- */
.home-page .home-split > .home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--home-gap); margin: 0; }
.home-page .home-split > .home-trust li { padding: 18px 0 22px; }
@media (max-width: 640px) {
  .home-page .home-split > .home-trust { grid-template-columns: minmax(0, 1fr); }
}
.home-page .home-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gap);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.home-page .home-trust li {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line, rgba(15, 69, 53, 0.16));
  list-style: none;
}
.home-page .home-trust h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--brand, #0F4535);
}
.home-page .home-trust p {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted, #4A5551);
}
@media (max-width: 860px) {
  .home-page .home-trust { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Two short films, side by side, each on its own preview ---------- */
.home-page .home-films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
  margin: 40px 0 0;
}
.home-page .home-film { margin: 0; }
.home-page .home-film .yt-embed {
  border-radius: var(--radius-box, 4px);
  box-shadow: none;
  background: var(--brand, #0F4535);
}
/* The play button in the corner, so it covers neither a face nor the poster's title. */
.home-page .home-film .yt-embed-play {
  left: 24px;
  top: auto;
  bottom: 24px;
  transform: none;
  width: 60px;
  height: 60px;
  background: var(--cta, #EF966E);
  color: var(--cta-ink, #1A1A1A);
  box-shadow: none;
}
.home-page .home-film .yt-embed-play svg { width: 26px; height: 26px; }
.home-page .home-film .yt-embed-facade:hover .yt-embed-play { background: var(--cta-hover, #DD7E53); }
.home-page .home-film figcaption { margin: 0; }
.home-page .home-film h3 {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-main, #1A1A1A);
}
.home-page .home-film p {
  margin: 8px 0 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted, #4A5551);
}
@media (max-width: 760px) {
  .home-page .home-films { grid-template-columns: 1fr; }
}

/* ---------- The close: deep green, the line at the left, the ask at the right ---------- */
.home-page .home-close {
  background: var(--brand, #0F4535);
  padding: var(--sec-pad) 0;
}
.home-page .home-close-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px var(--home-gap);
}
.home-page .home-close h2 {
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-close-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 0;
  font-size: 17px;
  color: var(--on-solid, #F8F6F2);
}
.home-page .home-cta {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  border-radius: var(--radius-box, 4px);
  background: var(--cta, #EF966E);
  color: var(--cta-ink, #1A1A1A) !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
}
.home-page .home-cta:hover { background: var(--cta-hover, #DD7E53); }
.home-page .home-cta:focus-visible,
.home-page .home-close-phone:focus-visible {
  outline: 2px solid var(--on-solid, #F8F6F2);
  outline-offset: 3px;
}
.home-page .home-close-phone {
  color: var(--gold-on-dark, #D1AB64) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
