/* BetterLife SG Family Trusts v39.8 — calmer editorial hierarchy */

:root {
  --v398-content: 1240px;
  --v398-reading: 720px;
  --v398-header: 76px;
  --v398-footer: 64px;
  --v398-soft-line: rgba(23, 59, 50, 0.14);
  --v398-soft-paper: rgba(255, 253, 248, 0.72);
}

body {
  background: #f8f3e9;
}

.experience-shell {
  grid-template-rows: var(--v398-header) minmax(0, 1fr) var(--v398-footer);
}

.app-header {
  min-height: var(--v398-header);
  padding-block: 12px;
  border-bottom-color: var(--v398-soft-line);
  background: rgba(250, 247, 239, 0.94);
  box-shadow: none;
}

.brand-button img {
  width: clamp(130px, 12vw, 168px);
}

.journey-nav {
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: clamp(8px, 1.4vw, 20px);
}

.journey-nav button {
  min-height: 44px;
  padding-inline: 7px;
  color: #77837d;
  font-size: 12px;
  font-weight: 650;
}

.journey-nav button small,
.journey-nav button:not([aria-current="step"]) strong {
  display: none;
}

.journey-nav button[aria-current="step"] {
  color: var(--v38-forest-900);
  font-weight: 780;
}

.header-tools button {
  min-width: 44px;
  min-height: 44px;
}

.header-tools button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.experience-stage {
  background: transparent;
}

.stage-screen {
  animation-duration: 110ms;
}

.stage-kicker,
.path-label-v391,
.funding-entry-v396 small,
.scenario-panel > span,
.brief-sheet section > p {
  letter-spacing: 0.07em;
}

.calm-start-primary,
.scenario-next,
.brief-actions-v393 .whatsapp-action-v393 a {
  min-height: 50px;
  border: 1px solid var(--v38-gold);
  border-radius: 999px;
  color: #fff;
  background: var(--v38-forest-900);
  box-shadow: 0 12px 26px rgba(13, 43, 36, 0.12);
  font: 760 14px/1.2 var(--v38-sans);
}

.calm-start-primary:focus-visible,
.scenario-next:focus-visible,
.brief-actions-v393 a:focus-visible {
  outline: 3px solid rgba(185, 149, 63, 0.42);
  outline-offset: 3px;
}

/* Start — one message, one action, one supporting comparison. */
body[data-journey-stage="start"] .experience-shell,
body[data-journey-stage="scenario"] .experience-shell,
body[data-journey-stage="brief"] .experience-shell {
  grid-template-rows: var(--v398-header) minmax(0, 1fr);
}

body[data-journey-stage="start"] .app-footer,
body[data-journey-stage="scenario"] .app-footer,
body[data-journey-stage="brief"] .app-footer {
  display: none;
}

.start-screen {
  width: min(var(--v398-content), 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 52px) clamp(28px, 4vw, 56px) clamp(24px, 3vh, 40px);
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(22px, 3vh, 34px);
  overflow: auto;
}

.start-intro {
  min-height: 0;
  grid-template-columns: minmax(330px, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}

.start-copy {
  align-self: center;
}

.start-copy h1 {
  max-width: 15ch;
  margin: 8px 0 18px;
  font-size: clamp(48px, 4.5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.start-copy > p:not(.stage-kicker) {
  max-width: 570px;
  margin: 0;
  color: var(--v38-muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
}

.calm-start-primary {
  margin-top: 28px;
  padding: 0 26px;
  cursor: pointer;
}

.calm-start-secondary {
  min-height: 44px;
  margin-top: 10px;
  padding: 0;
  display: block;
  color: var(--v38-forest-800);
  background: transparent;
  border: 0;
  font: 720 13px/1.3 var(--v38-sans);
  text-decoration: underline;
  text-decoration-color: rgba(21, 58, 48, 0.32);
  text-underline-offset: 4px;
}

.intro-video {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.intro-video-copy,
.intro-caption-band,
.decision-thread {
  display: none !important;
}

.intro-video-frame {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--v398-soft-line);
  border-radius: 18px;
  background: #102a24;
  box-shadow: 0 22px 50px rgba(24, 41, 35, 0.11);
}

.intro-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.intro-transcript-button {
  grid-column: 2;
  grid-row: 2;
  min-height: 44px;
  justify-self: end;
  color: var(--v38-forest-800);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
}

.decision-lanes {
  gap: 0;
  border-top: 1px solid var(--v398-soft-line);
  border-bottom: 1px solid var(--v398-soft-line);
}

.decision-lanes article {
  min-height: 0;
  padding: 18px clamp(14px, 2vw, 28px);
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 14px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.decision-lanes article + article {
  border-left: 1px solid var(--v398-soft-line);
}

.decision-lanes .lane-mark {
  width: 40px;
  height: 40px;
  border-color: var(--v398-soft-line);
  background: transparent;
}

.decision-lanes h2 {
  margin: 0 0 5px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.1;
}

.decision-lanes ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.decision-lanes li {
  color: var(--v38-muted);
  font-size: 14px;
}

.decision-lanes li svg {
  display: none;
}

.decision-lanes article > button,
.stage-hint {
  display: none !important;
}

/* Questions — a single reading column and quiet context. */
.question-screen {
  width: min(1120px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(190px, 0.32fr) minmax(480px, 0.68fr);
  gap: clamp(42px, 6vw, 84px);
  overflow: auto;
}

.question-guide {
  align-self: start;
  min-height: 0;
  position: static;
  padding: 18px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.question-guide::after {
  display: none;
}

.question-guide img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.question-guide > div {
  position: static;
  margin-top: 14px;
}

.question-guide > div p {
  font-size: 13px;
}

.question-guide > div strong {
  display: block;
  max-width: 230px;
  margin-top: 6px;
  font: 560 22px/1.18 var(--v38-serif);
}

.question-main {
  width: 100%;
  max-width: 740px;
  padding: 0 0 32px;
  gap: 0;
}

.question-progress {
  margin-bottom: 24px;
}

.question-main h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.question-main h1 + p {
  max-width: 630px;
  margin: 14px 0 22px;
  color: var(--v38-muted);
  font-size: 15px;
  line-height: 1.6;
}

.question-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--v398-soft-line);
}

.question-choices button,
.question-choices button.choice-exclusive-v392 {
  min-height: 74px;
  padding: 14px 46px 14px 4px;
  grid-column: auto;
  border: 0;
  border-bottom: 1px solid var(--v398-soft-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.question-choices button:hover,
.question-choices button.selected {
  background: rgba(233, 223, 196, 0.34);
}

.question-choices button > strong {
  font-size: 15px;
}

.question-choices button > small,
.question-choices button.choice-exclusive-v392 > small {
  color: var(--v38-muted);
  font-size: 14px;
  line-height: 1.45;
}

.question-main > .back-button {
  margin-top: 18px;
}

.app-footer {
  min-height: var(--v398-footer);
  padding-block: 9px;
  border-top-color: var(--v398-soft-line);
  background: rgba(250, 247, 239, 0.96);
  box-shadow: none;
}

.app-footer p,
.app-footer small,
.app-footer span {
  font-size: 13px;
}

/* Result — keep the map, reduce panel competition. */
.result-screen-v391 {
  width: min(var(--v398-content), 100%);
  padding: clamp(26px, 4vh, 48px) clamp(28px, 4vw, 56px) 36px;
}

.result-hero-v391 {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--v398-soft-line);
}

.result-hero-v391 h1 {
  font-size: clamp(45px, 4.3vw, 62px);
}

.answers-disclosure-v391 {
  width: 220px;
}

.result-map-v391 {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  gap: clamp(28px, 4vw, 48px);
}

.continuity-path-v391 {
  border-left-width: 1px;
}

.path-step-v391 {
  grid-template-columns: 32px 54px minmax(240px, 1fr) minmax(240px, 0.72fr);
  gap: 16px;
  margin-left: -16px;
}

.path-number-v391 {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.path-icon-v391 {
  width: 50px;
  height: 50px;
  border-color: var(--v398-soft-line);
}

.path-icon-v391 svg {
  width: 25px;
  height: 25px;
}

.path-content-v391 > h2 {
  font-size: clamp(27px, 2.2vw, 34px);
}

.structure-summary-v391 {
  min-height: 0;
  padding: 16px 18px;
  background: #20463d;
}

.family-pattern-v391,
.route-item-v391 {
  background: transparent;
}

.benefit-limit-v391 {
  align-self: start;
  border: 1px solid var(--v398-soft-line);
  background: var(--v398-soft-paper);
  box-shadow: none;
}

.benefit-limit-v391 section {
  padding: 18px;
}

.selected-scenario-v391 {
  margin-top: 30px;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--v398-soft-line);
  border-bottom: 1px solid var(--v398-soft-line);
  background: transparent;
  box-shadow: none;
}

.boundaries-v391 {
  margin-top: 10px;
  background: transparent;
  border-color: var(--v398-soft-line);
}

.boundaries-v391[open] {
  padding-bottom: 12px;
}

.funding-entry-v396 {
  margin: 18px 0 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--v398-soft-line);
  border-bottom: 1px solid var(--v398-soft-line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.funding-entry-v396::after {
  display: none;
}

.funding-entry-v396 small {
  color: var(--v38-copper);
  font-size: 12px;
}

.funding-entry-v396 h3 {
  margin: 4px 0;
  font-size: 25px;
}

.funding-entry-v396 p {
  font-size: 14px;
}

.funding-entry-v396 button {
  min-height: 46px;
  background: transparent;
  color: var(--v38-forest-900);
  box-shadow: none;
}

/* Scenario — one local next action; no duplicate footer CTA. */
.scenario-screen {
  width: min(var(--v398-content), 100%);
  margin: 0 auto;
  padding: 20px clamp(28px, 4vw, 56px) 34px;
  grid-template-rows: 46px auto;
}

.scenario-topbar {
  border-bottom: 1px solid var(--v398-soft-line);
}

.scenario-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(42px, 5vw, 68px);
  padding-top: 28px;
}

.scenario-story {
  padding: 0 0 28px;
}

.scenario-story h1 {
  max-width: 12ch;
  font-size: clamp(46px, 4.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.scenario-story blockquote {
  margin-block: 20px;
  padding: 0 0 0 18px;
  border-left-width: 2px;
  font-size: clamp(21px, 2vw, 28px);
}

.scenario-tabs {
  border-bottom: 1px solid var(--v398-soft-line);
}

.scenario-panel {
  padding: 20px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.role-map-v393,
.mechanism-timeline-v393 {
  border-top: 1px solid var(--v398-soft-line);
  border-bottom: 1px solid var(--v398-soft-line);
}

.benefit-limit {
  gap: 0;
  border: 1px solid var(--v398-soft-line);
  background: var(--v398-soft-paper);
}

.benefit-limit > div {
  border: 0;
  background: transparent;
}

.benefit-limit > div + div {
  border-left: 1px solid var(--v398-soft-line);
}

.scenario-media {
  top: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.scenario-video {
  overflow: hidden;
  border: 1px solid var(--v398-soft-line);
  border-radius: 18px;
  background: #102a24;
  box-shadow: 0 22px 50px rgba(24, 41, 35, 0.11);
}

.scenario-media-copy {
  padding: 18px 0 14px;
}

.scenario-media-copy > p {
  color: var(--v38-copper);
}

.scenario-media-copy h2 {
  color: var(--v38-forest-900);
  font-size: 29px;
}

.scenario-media-copy > div {
  color: var(--v38-muted);
}

.scenario-media-copy > button {
  color: var(--v38-forest-800);
}

.scenario-next {
  width: auto;
  margin-top: 4px;
  padding-inline: 24px;
  display: flex;
  justify-self: start;
}

/* Brief — remove the repeated overview; the printable sheet owns the page. */
.brief-screen {
  width: min(var(--v398-content), 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 46px) clamp(28px, 4vw, 56px) 40px;
  grid-template-columns: minmax(300px, 0.7fr) minmax(540px, 1.3fr);
  gap: clamp(42px, 6vw, 80px);
  overflow: auto;
}

.brief-intro {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 10px 0 30px;
}

.brief-intro h1 {
  max-width: 13ch;
  font-size: clamp(44px, 4.1vw, 60px);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

.brief-overview-v393 {
  display: none;
}

.brief-sheet-v392 {
  max-height: none;
  padding: clamp(26px, 3vw, 40px);
  overflow: visible;
  border: 1px solid var(--v398-soft-line);
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 20px 48px rgba(24, 41, 35, 0.08);
}

.brief-sheet-v392 section {
  padding-block: 18px;
}

.brief-sheet-v392 li,
.brief-sheet-v392 section span,
.brief-sheet-v392 section > p:not(:first-child) {
  font-size: 14px;
  line-height: 1.55;
}

.brief-actions-v393 {
  gap: 12px;
  padding-top: 22px;
}

.brief-actions-v393 > button {
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
}

.brief-actions-v393 .whatsapp-action-v393 a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-action-v393 small {
  font-size: 13px;
}

@media (max-width: 1080px) {
  .start-intro {
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    gap: 36px;
  }

  .result-map-v391 {
    grid-template-columns: 1fr;
  }

  .benefit-limit-v391 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-step-v391 {
    grid-template-columns: 32px 50px minmax(220px, 1fr) minmax(220px, 0.7fr);
  }

  .scenario-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
    gap: 32px;
  }
}

@media (max-width: 820px) {
  :root {
    --v398-header: 64px;
    --v398-footer: auto;
  }

  body,
  .experience-shell {
    height: auto;
    min-height: 100%;
  }

  body {
    overflow: auto;
  }

  .experience-shell,
  body[data-journey-stage] .experience-shell {
    grid-template-rows: var(--v398-header) auto auto;
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .journey-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .experience-stage,
  .stage-screen {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .experience-stage {
    padding-bottom: 0;
  }

  .start-screen,
  .question-screen,
  .result-screen-v391,
  .scenario-screen,
  .brief-screen {
    padding: 26px 20px 34px;
  }

  .start-intro,
  .question-screen,
  .scenario-layout,
  .brief-screen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .start-copy h1,
  .question-main h1,
  .scenario-story h1,
  .brief-intro h1 {
    font-size: clamp(39px, 11vw, 52px);
  }

  .intro-video {
    display: grid;
  }

  .decision-lanes {
    grid-template-columns: 1fr;
  }

  .decision-lanes article + article {
    border-left: 0;
    border-top: 1px solid var(--v398-soft-line);
  }

  .decision-lanes ul {
    display: grid;
  }

  .question-guide {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--v398-soft-line);
  }

  .question-guide img {
    width: 54px;
    height: 54px;
  }

  .question-guide > div {
    margin: 0;
  }

  .question-guide > div strong {
    font-size: 19px;
  }

  .question-main {
    max-width: none;
    padding-bottom: 0;
  }

  .question-choices button > small,
  .question-choices button.choice-exclusive-v392 > small {
    display: block;
  }

  .app-footer {
    position: sticky;
    bottom: 0;
    z-index: 18;
    min-height: 68px;
  }

  body[data-journey-stage="start"] .app-footer,
  body[data-journey-stage="scenario"] .app-footer,
  body[data-journey-stage="brief"] .app-footer {
    display: none;
  }

  .result-hero-v391,
  .result-map-v391,
  .benefit-limit-v391 {
    grid-template-columns: 1fr;
  }

  .answers-disclosure-v391 {
    width: 100%;
    justify-self: stretch;
  }

  .path-step-v391 {
    margin-left: -14px;
    padding-bottom: 24px;
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 10px;
  }

  .path-step-v391 .structure-summary-v391,
  .path-family-v391 .path-content-v391,
  .path-routes-v391 .path-content-v391 {
    grid-column: 3;
  }

  .path-number-v391 {
    width: 28px;
    height: 28px;
  }

  .path-icon-v391 {
    width: 40px;
    height: 40px;
  }

  .structure-summary-v391 {
    margin-top: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .selected-scenario-v391,
  .funding-entry-v396 {
    grid-template-columns: 1fr;
  }

  .funding-entry-v396 button {
    width: 100%;
  }

  .scenario-topbar {
    position: static;
    padding-inline: 0;
  }

  .scenario-layout {
    padding-top: 20px;
  }

  .scenario-story {
    padding-inline: 0;
  }

  .scenario-media {
    position: static;
  }

  .benefit-limit > div + div {
    border-left: 0;
    border-top: 1px solid var(--v398-soft-line);
  }

  .brief-intro {
    position: static;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-screen {
    animation: none;
  }
}

@media print {
  .calm-start-primary {
    display: none !important;
  }

  .calm-start-secondary {
    display: none !important;
  }

  .brief-overview-v393 {
    display: none !important;
  }
}
