/* worth.css — design system for the public /worth experience
 * ("See what your tax bill can buy"). Page-scoped --w-* token layer, mirroring
 * the home-v2 hp-* approach: this surface has its own app-like design language.
 * Palette + type ported from the Brand design handoff. Fonts are the
 * self-hosted IBM Plex (loaded globally via fonts.css) — no render-blocking
 * web-font fetch, so the page keeps its Lighthouse budget. */

.worth {
  --w-forest: #1c3d2b;        /* primary deep green */
  --w-forest-700: #24503a;
  --w-accent: #1c8a4a;        /* bright CTA green — "share with advisor" */
  --w-accent-shadow: rgba(28, 138, 74, 0.24);
  --w-ink: #1a1c19;
  --w-body: #4a463d;
  --w-muted: #5f5a50;
  --w-faint: #9a9489;
  --w-paper: #ffffff;
  --w-cream: #f5f3ec;
  --w-cream-2: #f1efe8;
  --w-cream-3: #faf9f5;
  --w-line: #e7e3d8;
  --w-line-2: #ece8dd;
  --w-line-soft: #f0ece1;
  --w-terra: #c0612f;
  --w-green-tint: #f1f6ef;
  --w-green-border: #d7e3d3;
  --w-green-ink: #1c7a42;
  --w-green-ink-2: #3f6a45;
  --w-amber-bg: #fdf4ec;
  --w-amber-border: #f0ddc9;
  --w-amber-ink: #a8742e;
  --w-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --w-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--w-paper);
  font-family: var(--w-sans);
  color: var(--w-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.worth *,
.worth *::before,
.worth *::after {
  box-sizing: border-box;
}

/* ---- animation keyframes ---- */
@keyframes wFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wNumPop { 0% { opacity: 0; transform: translateY(8px) scale(0.97); } 60% { transform: translateY(0) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes wFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wSnow { 0% { transform: translateY(-12%) translateX(0); opacity: 0; } 12% { opacity: 0.9; } 88% { opacity: 0.9; } 100% { transform: translateY(125%) translateX(14px); opacity: 0; } }
@keyframes wSmoke { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 22% { opacity: 0.5; } 100% { transform: translateY(-58px) scale(1.7); opacity: 0; } }
@keyframes wGlow { 0%, 100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 0.8; transform: scale(1.15); } }
@keyframes wLeaf { 0% { transform: translateY(-10%) translateX(0) rotate(0); opacity: 0; } 15% { opacity: 0.85; } 100% { transform: translateY(125%) translateX(22px) rotate(240deg); opacity: 0; } }
@keyframes wRipple { 0% { transform: scale(0.4); opacity: 0.5; } 100% { transform: scale(2); opacity: 0; } }
@keyframes wShimmer { 0%, 100% { opacity: 0.12; transform: scaleX(0.92); } 50% { opacity: 0.42; transform: scaleX(1.06); } }
@keyframes wDrift { from { background-position: -140px 0; } to { background-position: 260px 0; } }

.worth-fade { animation: wFadeUp 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.worth-pop { animation: wNumPop 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .worth-fade, .worth-pop { animation: none; }
  .worth [data-scene] > * { animation: none !important; }
  .worth-float { animation: none !important; }
}

/* ---- header ---- */
.worth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--w-line-soft);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 30;
}
.worth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.worth-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--w-forest);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  font-style: italic;
}
.worth-brand-word {
  font-weight: 600;
  font-size: 19px;
  color: var(--w-forest);
  letter-spacing: -0.01em;
}
.worth-brand-word em { font-style: italic; font-weight: 500; }
.worth-header-right { display: flex; align-items: center; gap: 18px; }
.worth-step-count {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-share-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  padding: 6px 0 6px 2px;
  cursor: pointer;
  font-family: var(--w-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--w-forest);
}
.worth-share-link:hover {
  color: var(--w-forest-700);
  text-decoration: underline;
}
.worth-share-divider {
  width: 1px;
  height: 18px;
  background: var(--w-line);
}

/* ---- buttons ---- */
.w-btn {
  font-family: var(--w-sans);
  font-weight: 600;
  border: none;
  border-radius: 0; /* hard-edged CTAs */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.w-btn:active { transform: translateY(1px); }
.w-btn-forest { background: var(--w-forest); color: #fff; box-shadow: 0 8px 22px rgba(28, 61, 43, 0.22); }
.w-btn-forest:hover { background: var(--w-forest-700); }
.w-btn-accent { background: var(--w-accent); color: #fff; box-shadow: 0 6px 16px var(--w-accent-shadow); }
.w-btn-ghost { background: var(--w-paper); color: var(--w-muted); border: 1px solid var(--w-line); box-shadow: none; }
.w-btn-ghost:hover { border-color: #d8d1bf; }
.w-btn-lg { padding: 17px 28px; font-size: 16px; }
.w-btn-md { padding: 14px 18px; font-size: 14.5px; }
.w-btn-block { width: 100%; }
.w-btn-arrow { font-size: 1.1em; line-height: 1; }

/* ---- landing ---- */
/* Centered single-column hero: centered text, illustration below. Footer pins
   to the bottom via margin-top:auto. */
.worth-landing {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: flex;
  flex: 1 1 auto; /* fill the space between header and footer so the block centers vertically */
  flex-direction: row;
  align-items: center;
  gap: 56px;
}
.worth-landing-copy { flex: 1 1 480px; max-width: 560px; }
.worth-kicker {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w-faint);
  margin-bottom: 20px;
}
.worth-h1 {
  font-weight: 300;
  font-size: clamp(25px, 4vw, 50px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  color: var(--w-ink);
  margin: 0;
}
.worth-h1 .soft { font-weight: 300; color: #8b857a; }
.worth-h1 .accent { color: var(--w-forest); font-weight: 700; }
.worth-h1 .home { color: var(--w-terra); font-weight: 700; }
.worth-lede {
  font-weight: 300;
  font-size: 22.5px;
  line-height: 1.55;
  color: var(--w-muted);
  margin: 20px 0 0;
  max-width: 520px;
}
.worth-landing-cta { display: flex; align-items: center; justify-content: flex-start; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.worth-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 22px;
  font-family: var(--w-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-trust span:not(:first-child)::before {
  content: "·";
  margin: 0 14px;
  color: var(--w-faint);
}
.worth-landing-art { flex: 1 1 440px; min-width: 300px; display: flex; justify-content: center; }
.worth-landing-art .worth-scene { width: 100%; max-width: 460px; }
/* Soft edge fade on desktop art only — background is white so inline needs no mask */
.worth-landing-art .worth-scene img {
  mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, black 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, black 55%, transparent 85%);
}
/* Mobile-only inline art (between h1 and lede); hidden on desktop */
.worth-landing-art-inline { display: none; }

/* ---- flow shell (rail + main) ---- */
.worth-flow {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.worth-rail {
  flex: 1 1 318px;
  min-width: 296px;
  position: sticky;
  top: 92px;
  background: var(--w-cream);
  border: 1px solid var(--w-line-2);
  border-radius: 20px;
  padding: 30px 28px 26px;
}
.worth-progress { height: 4px; background: #e6e2d6; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.worth-progress > span { display: block; height: 100%; background: var(--w-forest); transition: width 0.3s ease; }
.worth-rail-kicker {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--w-faint);
  margin-bottom: 12px;
}
.worth-rail-title { font-weight: 700; font-size: 30px; line-height: 1.04; letter-spacing: -0.03em; margin: 0; }
.worth-rail-sub { font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--w-muted); margin-top: 13px; }
.worth-chosen { margin-top: 24px; }
.worth-chosen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.worth-chosen-label {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-chosen-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.worth-chosen-img {
  border: 1px solid #e3ddcf;
  border-radius: 14px;
  overflow: hidden;
  background: var(--w-paper);
}
.worth-chosen-img .worth-scene { display: block; width: 100%; }
/* Fill the frame width so the square art isn't pinned left in a wide rail
   card (scene is full-width but the base img is width:auto). */
.worth-chosen-img .worth-scene img { width: 100%; }

/* brief-step postcard: the chosen home, lifted off the cream rail */
.worth-postcard { margin-top: 24px; }
.worth-postcard .worth-chosen-label { margin-bottom: 12px; }
.worth-postcard-frame {
  border: 1px solid #e3ddcf;
  border-radius: 18px;
  overflow: hidden;
  background: var(--w-paper);
  padding: 10px;
  box-shadow: 0 14px 34px rgba(20, 30, 20, 0.12);
}
.worth-postcard-frame .worth-scene { display: block; width: 100%; }
.worth-postcard-frame .worth-scene img { width: 100%; }
.worth-postcard-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 16px;
  text-align: center;
}
.worth-postcard-meta {
  font-family: var(--w-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w-faint);
  margin-top: 4px;
  text-align: center;
}
.worth-rail-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e6e2d6;
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: #a8a294;
}
.worth-main { flex: 2 1 472px; min-width: 316px; }

/* ---- scene (house image + ambient overlay) ---- */
.worth-scene { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* Fit the whole home inside its frame, centered (flex-centered by .worth-scene)
   — square art at full width used to crop off-center on wide cards. */
.worth-scene img {
  position: relative;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.worth-scene[data-overlay] > .worth-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.worth-float { animation: wFloatY 6s ease-in-out infinite; }

/* ---- asset picker: full-width one-home-at-a-time carousel ---- */
.worth-picker {
  /* One square that fits the fold: capped by width on mobile, by height on
     desktop. Drives the card AND the carousel width (so arrows hug the card). */
  --scene: min(90vw, 46vh, 440px);
  display: flex;
  flex-direction: column;
  /* Center the carousel in the viewport below the header (not the full
     header->footer band — the footer is tall and would push the card down).
     Footer then sits just below the fold. */
  min-height: calc(100svh - 84px);
  justify-content: center;
  width: 100%;
  max-width: calc(var(--scene) + 220px);
  margin: 0 auto;
  padding: 24px 0 20px;
}
.worth-picker-head { text-align: center; padding: 0 24px; }
.worth-picker-title {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.025em;
  color: var(--w-ink);
}
.worth-carousel { position: relative; display: flex; align-items: center; margin-top: 22px; }
.worth-carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.worth-carousel-track::-webkit-scrollbar { display: none; }
.worth-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  padding: 6px 24px 10px;
}
.worth-slide .worth-card { width: fit-content; max-width: 100%; margin: 0 auto; }
.worth-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--w-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--w-forest);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 30, 20, 0.12);
}
.worth-carousel-arrow--prev { left: 6px; }
.worth-carousel-arrow--next { right: 6px; }
.worth-carousel-arrow:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.worth-carousel-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.worth-carousel-count {
  font-family: var(--w-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--w-faint);
}
/* On phones swipe is the nav, so drop the edge arrows that overlay the photo. */
@media (max-width: 540px) {
  .worth-carousel-arrow { display: none; }
  .worth-slide { padding: 6px 16px 10px; }
}
.worth-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--w-paper);
  border: 1.5px solid var(--w-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 30, 20, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.worth-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(20, 30, 20, 0.16);
  border-color: var(--w-forest);
}
/* Stretched hit target: the whole card is one tap, the pill is just the cue. */
.worth-card-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
}
.worth-card-hit:focus-visible { outline: 2px solid var(--w-forest); outline-offset: 3px; }
/* Square frame matches the square art, so the WHOLE scene always shows — no
   crop ever cuts the people, feet, or skis (the ground-level figures sit at the
   bottom and any cover crop would clip them). The art is already full-width, so
   a square frame has no side gutters either; its own sky/ground reads as scene. */
.worth-card-scene { width: var(--scene); aspect-ratio: 1 / 1; background: var(--w-paper); }
.worth-card-scene img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.worth-card-body {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--w-line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
}
.worth-tag {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w-terra);
  margin-bottom: 7px;
}
.worth-card-name { font-weight: 700; font-size: 23px; letter-spacing: -0.02em; line-height: 1.1; }
.worth-card-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.worth-card-stat {
  font-family: var(--w-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-card-stat i { font-style: normal; }
.worth-card-stat b { font-weight: 600; color: var(--w-terra); font-variant-numeric: tabular-nums; }
.worth-card-cta {
  margin-top: 6px;
  width: 100%;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  border-radius: 0; /* hard-edged CTA */
  background: var(--w-forest);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(28, 61, 43, 0.22);
  transition: background 0.15s ease;
}
.worth-card:hover .worth-card-cta { background: var(--w-forest-700); }
.worth-ribbon-hint { text-align: center; margin-top: 0; font-weight: 300; font-size: 12.5px; color: var(--w-faint); }

/* ---- inputs ---- */
.worth-panel-head { margin-bottom: 26px; }
.worth-panel-title { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--w-ink); }
.worth-panel-sub { font-weight: 300; font-size: 14px; line-height: 1.5; color: var(--w-muted); margin-top: 4px; }
.worth-field { margin-bottom: 28px; }
.worth-field-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 13px; }
.worth-field-label {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-muted);
}
.worth-field-value {
  font-family: var(--w-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
}
.worth-range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--w-mono);
  font-size: 10.5px;
  color: var(--w-faint);
}
.worth-field-hint { font-weight: 300; font-size: 12px; color: var(--w-faint); margin-top: 8px; }

.worth-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #e3ddcf;
  outline: none;
  cursor: pointer;
}
.worth-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--w-forest);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 30, 20, 0.32);
  cursor: grab;
}
.worth-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--w-forest);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 30, 20, 0.32);
  cursor: grab;
}

/* segmented control */
.worth-seg { display: flex; gap: 6px; background: var(--w-cream-2); padding: 5px; border-radius: 8px; }
.worth-seg.wrap { flex-wrap: wrap; }
.worth-seg-btn {
  flex: 1 1 auto;
  padding: 9px 6px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--w-sans);
  font-weight: 500;
  font-size: 12.5px;
  transition: all 0.15s;
  background: transparent;
  color: var(--w-muted);
}
.worth-seg-btn.active { background: var(--w-forest); color: #fff; }
.worth-seg-btn:not(.active):hover { color: var(--w-ink); }

/* toggle row */
.worth-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--w-line);
  border-radius: 11px;
  background: var(--w-paper);
}
.worth-toggle-title { font-weight: 600; font-size: 14.5px; }
.worth-toggle-sub { font-weight: 300; font-size: 12px; color: #8a8475; margin-top: 1px; }
.worth-switch {
  width: 44px;
  height: 25px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.2s;
  background: #d8d1c0;
  flex: 0 0 auto;
}
.worth-switch.on { background: var(--w-forest); }
.worth-switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.worth-switch.on > span { transform: translateX(19px); }

.worth-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ---- result ---- */
.worth-tier {
  display: flex;
  gap: 6px;
  background: var(--w-cream-2);
  padding: 5px;
  border-radius: 9px;
}
.worth-tier-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  color: var(--w-muted);
}
.worth-tier-btn.active { background: var(--w-forest); color: #fff; }
.worth-tier-price { font-size: 14px; font-weight: 600; }
.worth-tier-sub {
  font-family: var(--w-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8a294;
}
.worth-tier-btn.active .worth-tier-sub { color: #9bbaa6; }

/* Tax offset scenario module (right panel of the result step) — calculation
   focus, not a duplicated photo. */
.worth-scenario {
  margin-top: 18px;
  border: 1px solid var(--w-line);
  border-radius: 16px;
  background: var(--w-paper);
  padding: 24px 24px 22px;
  box-shadow: 0 1px 2px rgba(20, 30, 20, 0.04);
}
.worth-scenario-label {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-scenario-head {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--w-ink);
}
.worth-scenario-sub {
  margin: 8px 0 0;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--w-muted);
  max-width: 48ch;
}
/* Hero number = the year-one tax BENEFIT (not the deduction). */
.worth-benefit {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--w-green-tint);
  border: 1px solid var(--w-green-border);
  border-radius: 12px;
}
.worth-benefit-label {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-green-ink-2);
}
.worth-benefit-value {
  margin-top: 6px;
  font-family: var(--w-mono);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 36px);
  letter-spacing: -0.01em;
  color: var(--w-green-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.worth-srows { margin-top: 18px; }
.worth-srow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--w-line-soft);
}
.worth-srow:first-child { border-top: none; padding-top: 4px; }
.worth-srow-k { font-size: 14px; color: var(--w-body); }
.worth-srow-v {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.worth-srow-v--neg { color: #b4452a; }
.worth-srow--strong { border-top: 1px solid var(--w-line); }
.worth-srow--strong .worth-srow-k { font-weight: 600; color: var(--w-ink); }
.worth-srow--strong .worth-srow-v { font-weight: 700; }
/* tax bill target -> depreciation study -> potential benefit -> effective cash */
.worth-flowstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--w-line-soft);
  font-family: var(--w-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-flowstrip-arrow { color: var(--w-forest); }
.worth-cash-note {
  margin-top: 14px;
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--w-faint);
}
.worth-caption { font-weight: 300; font-size: 12px; line-height: 1.5; color: var(--w-faint); margin-top: 11px; }

.worth-chip {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 11px;
}
.worth-chip.ok { background: var(--w-green-tint); border: 1px solid var(--w-green-border); color: var(--w-green-ink-2); }
.worth-chip.warn { background: var(--w-amber-bg); border: 1px solid var(--w-amber-border); color: var(--w-amber-ink); }
.worth-chip-icon { font-family: var(--w-mono); font-weight: 600; font-size: 13px; line-height: 1.3; flex: 0 0 auto; }
.worth-chip-text { font-weight: 400; font-size: 13px; line-height: 1.45; }

.worth-section-label {
  margin-top: 30px;
  margin-bottom: 17px;
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-assume {
  border: 1px solid var(--w-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 26px;
  background: var(--w-paper);
}
.worth-assume-head { display: flex; align-items: center; justify-content: space-between; }
.worth-disclaimer { font-weight: 300; font-size: 11.5px; line-height: 1.5; color: var(--w-faint); margin-top: 14px; text-align: center; }

/* ---- brief ---- */
.worth-brief-card {
  border: 1px solid var(--w-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--w-paper);
}
.worth-brief-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--w-line-soft);
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w-faint);
}
.worth-brief-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
}
.worth-brief-row + .worth-brief-row { border-top: 1px solid #f4f1e9; }
.worth-brief-row .k { font-weight: 400; font-size: 13.5px; color: var(--w-muted); }
.worth-brief-row .v {
  font-family: var(--w-mono);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.worth-ask-grid { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.worth-ask {
  flex: 1 1 240px;
  border-radius: 13px;
  padding: 18px;
}
.worth-ask.cpa { border: 1px solid var(--w-green-border); background: #f6f9f4; }
.worth-ask.ria { border: 1px solid #e6dcc9; background: #faf7f0; }
.worth-ask-eyebrow {
  font-family: var(--w-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.worth-ask.cpa .worth-ask-eyebrow { color: var(--w-green-ink-2); }
.worth-ask.ria .worth-ask-eyebrow { color: var(--w-amber-ink); }
.worth-ask-q { font-weight: 500; font-style: italic; font-size: 15.5px; line-height: 1.3; margin-bottom: 13px; }
.worth-ask-list { display: flex; flex-direction: column; gap: 10px; }
.worth-ask-item { display: flex; gap: 8px; align-items: flex-start; font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--w-body); }
.worth-ask.cpa .worth-ask-item .arr { color: var(--w-green-ink-2); }
.worth-ask.ria .worth-ask-item .arr { color: var(--w-amber-ink); }
.worth-ask-item .arr { flex: 0 0 auto; }

/* capture form */
.worth-capture {
  margin-top: 24px;
  border: 1px solid var(--w-green-border);
  background: var(--w-green-tint);
  border-radius: 14px;
  padding: 20px;
}
.worth-capture-title { font-weight: 600; font-size: 16px; }
.worth-capture-sub { font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--w-body); margin-top: 4px; }
.worth-capture-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.worth-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--w-line);
  border-radius: 8px;
  background: var(--w-paper);
  font-family: var(--w-sans);
  font-size: 14.5px;
  color: var(--w-ink);
}
.worth-input:focus { outline: 2px solid var(--w-forest); outline-offset: -1px; border-color: var(--w-forest); }
.worth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.worth-capture-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.worth-capture-err { color: #b4452a; font-size: 13px; font-weight: 500; margin-top: 10px; }
.worth-sent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--w-paper);
  border: 1px solid var(--w-green-border);
}

.worth-back {
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid var(--w-line);
  border-radius: 7px;
  background: var(--w-paper);
  color: var(--w-muted);
  font-family: var(--w-sans);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
}

/* ---- footer ---- */
.worth-footer {
  margin-top: auto;
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding: 44px 32px 56px;
  border-top: 1px solid var(--w-line-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
}
.worth-footer-tagline {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--w-ink);
  flex: 0 1 auto;
}
.worth-footer-tagline .accent { color: var(--w-forest); }
.worth-footer-tagline .accent em { font-style: italic; font-weight: 500; color: var(--w-accent); }
.worth-footer-right { flex: 1 1 360px; min-width: 280px; text-align: right; }
.worth-footer-fine {
  font-weight: 300;
  font-size: 12px;
  line-height: 1.5;
  color: var(--w-faint);
  max-width: 56ch;
  margin: 0 0 0 auto;
}
.worth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 14px;
  font-family: var(--w-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.worth-footer-links a { color: var(--w-muted); text-decoration: none; }
.worth-footer-links a:hover { color: var(--w-forest); }
.worth-footer-copy { color: var(--w-faint); }

/* ---- responsive: mobile-app feel ---- */
@media (max-width: 860px) {
  .worth-footer { padding: 32px 18px 20px; flex-direction: column; align-items: flex-start; gap: 18px; }
  /* In column layout the base `flex: 1 1 360px` makes 360px a HEIGHT basis,
     forcing a ~260px empty block below the links. Reset to content height. */
  .worth-footer-right { flex: 0 0 auto; min-width: 0; text-align: left; }
  .worth-footer-fine { margin-left: 0; }
  .worth-footer-links { justify-content: flex-start; }
  .worth-header { padding: 14px 18px; }
  /* Once the rail (with its progress bar) sits at the top, the header step
     counter is redundant and just crowds the wordmark — drop it. */
  .worth-step-count { display: none; }
  /* Mobile: drop the header share CTA — the flow's own "Build my advisor
     brief" button covers sharing; keep the mobile header to the wordmark. */
  .worth-header-right .worth-share-link { display: none; }
  /* Mobile: hero fills the space between header and footer and centers its
     content vertically, so the leftover air splits above/below the block
     instead of pooling under the trust strip. */
  .worth-landing { flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 18px 28px; gap: 10px; }
  .worth-landing-copy { flex: 0 0 auto; width: 100%; max-width: 600px; }
  .worth-lede { display: none; }
  .worth-landing-cta { margin-top: 10px; justify-content: center; }
  /* One line, full landing width; clamp scales it down on narrow phones so it
     never wraps or overflows. margin-top gives ~2 lines of air under the CTA. */
  .worth-trust {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: center;
    margin-top: 32px;
    font-size: clamp(7px, 2.4vw, 9px);
    letter-spacing: 0.03em;
  }
  .worth-trust span:not(:first-child)::before { margin: 0 4px; }
  /* Desktop art hidden on mobile; inline art replaces it between h1 and lede */
  .worth-landing-art { display: none; }
  .worth-landing-art-inline { display: flex; justify-content: center; margin: 6px 0 2px; }
  /* width:100% lets the scene reach its max-width; img fills it (base img is
     width:auto, which otherwise pins the scene to the 64vw intrinsic size). */
  .worth-landing-art-inline .worth-scene { width: 100%; max-width: 300px; }
  .worth-landing-art-inline .worth-scene img { width: 100%; }
  .worth-flow { padding: 20px 16px 64px; gap: 20px; flex-direction: column; }
  .worth-rail { position: static; width: 100%; flex: 1 1 auto; padding: 22px 20px; border-radius: 16px; }
  .worth-rail-title { font-size: 25px; }
  .worth-main { width: 100%; flex: 1 1 auto; min-width: 0; }
  .worth-ribbon { height: 70vh; }
  .worth-ask-grid { flex-direction: column; }
}
@media (max-width: 520px) {
  .worth-field-value { font-size: 19px; }
}
