/* Financial Life Simulator V2 — Phase 3 landing page, composed for the
 * authoritative 1024 × 1536 editorial board. */

body.editorial-ui.v2-foundation.is-landing-view {
  overflow-x: hidden;
}

body.editorial-ui.v2-foundation.is-landing-view:has(#modules-view:not([hidden])) .app-shell {
  width: min(1440px, calc(100% - 80px));
  max-width: 1440px;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header {
  position: relative;
  z-index: 20;
  min-height: 70px;
  height: 70px;
  grid-template-columns: minmax(245px, 1fr) auto;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .site-name {
  font-family: var(--v2-font-interface);
  font-size: 15px;
  letter-spacing: .025em;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .primary-nav {
  gap: 8px;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .nav-action {
  min-height: 44px;
  padding: 9px 14px;
  border-color: transparent;
  font-family: var(--v2-font-interface);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .015em;
  text-transform: uppercase;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .nav-action[aria-current="page"] {
  border-color: transparent;
  background: transparent;
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .nav-action[aria-current="page"]::before {
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  background: var(--v2-coral);
  content: "";
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .landing-start-link {
  min-width: 92px;
  margin-left: 2px;
  border-color: var(--v2-ink);
}

body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .landing-start-link:hover {
  color: var(--v2-paper-light);
  background: var(--v2-ink);
}

.v2-landing {
  width: 100%;
  color: var(--v2-ink);
}

.v2-landing .landing-story {
  position: relative;
  height: clamp(760px, 82.2vw, 940px);
  min-height: 760px;
  border-bottom: 1px solid var(--v2-ink);
  isolation: isolate;
  overflow: hidden;
}

.v2-landing .landing-story-copy {
  position: relative;
  z-index: 5;
  width: min(41%, 510px);
  padding: clamp(66px, 7.1vw, 104px) 0 0 8px;
}

.v2-landing .landing-story-copy h1 {
  max-width: none;
  margin: 0;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: clamp(64px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.v2-landing .landing-story-copy h1 span {
  display: block;
  white-space: nowrap;
}

.v2-landing .landing-story-copy > p {
  max-width: 320px;
  margin: 33px 0 0;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.18;
}

.v2-landing .landing-after-word {
  position: absolute;
  z-index: 4;
  top: -30px;
  right: -18px;
  color: var(--v2-coral);
  font-family: var(--v2-font-display);
  font-size: clamp(575px, 63.2vw, 740px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .88;
  text-transform: uppercase;
  opacity: .98;
  pointer-events: none;
  transform: scaleX(.347);
  transform-origin: right top;
}

.v2-landing .landing-story picture {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
}

.v2-landing .landing-story-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

.v2-landing .landing-direct-actions {
  display: grid;
  width: 366px;
  max-width: 100%;
  margin-top: 52px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.v2-landing .landing-direct-action {
  position: relative;
  display: flex;
  min-height: 62px;
  padding: 12px 44px 12px 16px;
  align-items: center;
  color: var(--v2-paper-light);
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--action-color);
  font-family: var(--v2-font-interface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: transform var(--v2-motion-fast) ease, filter var(--v2-motion-fast) ease;
}

.v2-landing .landing-direct-action[data-tone="coral"] { --action-color: var(--v2-coral); }
.v2-landing .landing-direct-action[data-tone="teal"] { --action-color: var(--v2-teal); }
.v2-landing .landing-direct-action[data-tone="ultramarine"] { --action-color: var(--v2-ultramarine); }
.v2-landing .landing-direct-action[data-tone="ochre"] { --action-color: var(--v2-ochre); }

.v2-landing .landing-direct-action:hover {
  filter: saturate(1.12) contrast(1.04);
  transform: translateY(-2px);
}

.v2-landing .landing-direct-action svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}

.v2-landing .landing-story-caption {
  position: absolute;
  z-index: 5;
  right: -7px;
  bottom: 26px;
  width: 145px;
  margin: 0;
  padding: 10px 11px;
  color: var(--v2-ink);
  border-top: 1px solid var(--v2-ink);
  border-bottom: 1px solid var(--v2-ink);
  background: rgba(244, 232, 211, .82);
  font-family: var(--v2-font-editorial);
  font-size: 15px;
  line-height: 1.25;
}

.v2-landing .landing-cases {
  padding-top: 21px;
}

.v2-landing .landing-cases > header {
  display: flex;
  min-height: 59px;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.v2-landing .landing-cases > header > div > p,
.v2-landing .landing-cases > header > p {
  display: none;
}

.v2-landing .landing-cases h2 {
  margin: 0 0 14px;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.v2-landing .landing-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 7px;
}

.v2-landing .landing-case-card {
  --case-accent: var(--v2-coral);
  position: relative;
  display: grid;
  min-height: 168px;
  padding: 14px;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 32px;
  color: var(--v2-ink);
  border: 1px solid var(--v2-ink);
  background: rgba(251, 244, 230, .22);
  overflow: hidden;
}

.v2-landing .landing-case-card[data-tone="teal"] { --case-accent: var(--v2-teal); }
.v2-landing .landing-case-card[data-tone="ochre"] { --case-accent: var(--v2-ochre); }
.v2-landing .landing-case-card.is-featured {
  min-height: 171px;
  grid-column: 1 / -1;
  grid-template-columns: 195px minmax(0, 1fr) 208px;
  gap: 27px;
}

.v2-landing .landing-case-card.is-featured .landing-case-copy {
  width: calc(100% + 60px);
  transform: translateX(10px);
}

.v2-landing .landing-case-card > img {
  width: 195px;
  height: 140px;
  align-self: center;
  border: 0;
  object-fit: cover;
  filter: saturate(.88) contrast(.98);
}

.v2-landing .landing-case-copy {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 4px 0 2px;
  flex-direction: column;
}

.v2-landing .fictional-case-label {
  color: var(--case-accent);
  font-family: var(--v2-font-interface);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.v2-landing .landing-case-card h3 {
  margin: 5px 0 0;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

.v2-landing .landing-case-card p {
  max-width: 310px;
  margin: 4px 0 0;
  font-family: var(--v2-font-editorial);
  font-size: 14px;
  line-height: 1.25;
}

.v2-landing .landing-case-timeline {
  display: grid;
  min-width: 0;
  margin-top: auto;
  grid-template-columns: repeat(var(--case-points), minmax(0, 1fr));
}

.v2-landing .landing-case-time {
  position: relative;
  padding-top: 17px;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.v2-landing .landing-case-time::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--v2-ink);
  border-radius: 50%;
  background: var(--v2-paper-light);
  content: "";
}

.v2-landing .landing-case-time::after {
  position: absolute;
  top: 5px;
  right: -2px;
  left: 12px;
  height: 1px;
  background: var(--v2-ink);
  content: "";
}

.v2-landing .landing-case-time:first-child::before {
  border-color: var(--case-accent);
  background: var(--case-accent);
}

.v2-landing .landing-case-time:last-child::after { display: none; }

.v2-landing .landing-case-action {
  display: inline-flex;
  min-height: 58px;
  padding: 12px 17px;
  align-self: center;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--v2-paper-light);
  border: 1px solid var(--case-accent);
  border-radius: 0;
  background: var(--case-accent);
  font-family: var(--v2-font-interface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.v2-landing .landing-case-action svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.v2-landing .landing-case-card:not(.is-featured) .landing-case-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  color: var(--case-accent);
  border-color: transparent;
  background: transparent;
}

.v2-landing .landing-case-card:not(.is-featured) .landing-case-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.v2-landing .landing-case-action:hover {
  color: var(--v2-paper-light);
  background: var(--v2-ink);
  border-color: var(--v2-ink);
}

.v2-landing .landing-plan-lanes {
  display: grid;
  min-height: 105px;
  margin-top: 12px;
  padding: 8px 0;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--v2-ink);
  background: rgba(251, 244, 230, .16);
}

.v2-landing .landing-plan-lanes h2 {
  margin: 0;
  padding: 9px 24px 8px 42px;
  align-self: center;
  color: var(--v2-ink);
  font-family: var(--v2-font-editorial);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
}

.v2-landing .landing-plan-lanes nav {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.v2-landing .landing-plan-lanes button {
  display: flex;
  min-width: 0;
  min-height: 82px;
  padding: 4px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--v2-ink);
  border: 0;
  border-left: 1px solid var(--v2-rule-soft);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.v2-landing .landing-plan-lanes button:hover {
  background: rgba(251, 244, 230, .65);
}

.v2-landing .landing-plan-lanes button span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--v2-teal);
  font-family: var(--v2-font-display);
  font-size: 42px;
  line-height: 1;
}

.v2-landing .landing-plan-lanes button:nth-child(2) span { color: var(--v2-ultramarine); }
.v2-landing .landing-plan-lanes button:nth-child(3) span { color: var(--v2-coral); font-size: 54px; }
.v2-landing .landing-plan-lanes button:nth-child(4) span { color: var(--v2-ochre); }
.v2-landing .landing-plan-lanes button:nth-child(5) span { color: var(--v2-teal); }

body.editorial-ui.v2-foundation .landing-footer-colophon {
  display: none;
}

body.editorial-ui.v2-foundation.is-landing-view .site-footer.v2-footer {
  min-height: 60px;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--v2-ink);
}

body.editorial-ui.v2-foundation.is-landing-view .site-footer .footer-directory,
body.editorial-ui.v2-foundation.is-landing-view .site-footer .footer-meta {
  display: none;
}

body.editorial-ui.v2-foundation.is-landing-view .landing-footer-colophon {
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding-top: 15px;
  color: var(--v2-ink);
  font-family: var(--v2-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.editorial-ui.v2-foundation.is-landing-view .landing-footer-center {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

body.editorial-ui.v2-foundation.is-landing-view .landing-footer-colophon > span:last-child { text-align: right; }

body.editorial-ui.v2-foundation.is-landing-view .landing-footer-colophon .privacy-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.editorial-ui.v2-foundation.is-landing-view .landing-footer-colophon .privacy-controls button {
  min-height: 36px;
  padding: 5px 8px;
  color: var(--v2-ink);
  border: 0;
  background: transparent;
  font-family: var(--v2-font-interface);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fictional-case-dialog {
  width: min(810px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  color: var(--v2-ink);
  border: 1px solid var(--v2-ink);
  border-radius: 0;
  background-color: var(--v2-paper-light);
  background-image: url("assets/texture/paper-grain.svg");
  box-shadow: 0 20px 60px rgba(12, 53, 84, .24);
}

.fictional-case-dialog::backdrop {
  background: rgba(12, 53, 84, .58);
  backdrop-filter: blur(2px);
}

.fictional-case-dialog-inner {
  padding: 28px;
}

.fictional-case-dialog header {
  display: flex;
  padding-bottom: 18px;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--v2-ink);
}

.fictional-case-dialog .fictional-case-label {
  color: var(--v2-coral-readable);
  font-family: var(--v2-font-interface);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.fictional-case-dialog h2 {
  margin: 6px 0 0;
  font-family: var(--v2-font-editorial);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.fictional-case-dialog header p {
  margin: 7px 0 0;
  font-family: var(--v2-font-editorial);
  font-size: 17px;
}

.fictional-case-close {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--v2-ink);
  border: 1px solid var(--v2-ink);
  border-radius: 50%;
  background: transparent;
  font-family: var(--v2-font-interface);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fictional-case-boundary {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--v2-teal);
  background: rgba(47, 127, 124, .08);
  font-size: 14px;
  line-height: 1.4;
}

.fictional-case-assumptions {
  display: grid;
  max-height: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--v2-rule-soft);
  overflow-y: auto;
}

.fictional-case-assumption {
  display: grid;
  min-height: 66px;
  padding: 10px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--v2-rule-soft);
  border-bottom: 1px solid var(--v2-rule-soft);
}

.fictional-case-assumption:nth-child(even) { border-right: 0; }
.fictional-case-assumption span { min-width: 0; font-size: 13px; line-height: 1.25; }
.fictional-case-assumption span small {
  display: block;
  margin-top: 3px;
  color: var(--v2-ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.fictional-case-assumption strong {
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.fictional-case-dialog footer {
  display: flex;
  margin-top: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.fictional-case-dialog footer button {
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--v2-ink);
  border-radius: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.fictional-case-dialog .fictional-case-apply {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-paper-light);
  background: var(--v2-coral);
  border-color: var(--v2-coral);
}

.fictional-case-dialog .fictional-case-apply svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  body.editorial-ui.v2-foundation.is-landing-view:has(#modules-view:not([hidden])) .app-shell {
    width: calc(100% - 80px);
  }

  .v2-landing .landing-story {
    height: calc(100vw - 182px);
    min-height: 760px;
    max-height: 842px;
  }

  .v2-landing .landing-story picture { height: 100%; }
  .v2-landing .landing-case-card { gap: 26px; }
}

@media (max-width: 820px) {
  body.editorial-ui.v2-foundation.is-landing-view:has(#modules-view:not([hidden])) .app-shell {
    width: calc(100% - 40px);
  }

  body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header {
    display: grid;
    height: auto;
    min-height: 0;
    padding: 14px 0 12px;
    grid-template-columns: 1fr;
  }

  body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .primary-nav {
    min-width: 0;
    overflow-x: visible;
  }

  .v2-landing .landing-story {
    height: 760px;
    min-height: 760px;
  }

  .v2-landing .landing-story-copy {
    width: 65%;
    padding-top: 42px;
  }

  .v2-landing .landing-story-copy h1 { font-size: clamp(54px, 10vw, 74px); }
  .v2-landing .landing-after-word { top: 250px; right: -8px; font-size: 53vw; opacity: .85; }
  .v2-landing .landing-story picture { height: 100%; min-height: 390px; }
  .v2-landing .landing-direct-actions { margin-top: 32px; }
  .v2-landing .landing-case-card,
  .v2-landing .landing-case-card.is-featured {
    min-height: 190px;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
  .v2-landing .landing-case-card.is-featured .landing-case-copy {
    width: 100%;
    transform: none;
  }
  .v2-landing .landing-case-card > img { width: 180px; height: 160px; }
  .v2-landing .landing-case-card.is-featured .landing-case-action {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 48px;
    min-height: 48px;
    padding: 12px;
    color: var(--case-accent);
    border-color: transparent;
    background: transparent;
  }
  .v2-landing .landing-case-card.is-featured .landing-case-action > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .v2-landing .landing-plan-lanes { grid-template-columns: 190px minmax(0, 1fr); }
  .v2-landing .landing-plan-lanes h2 { padding-left: 24px; font-size: 26px; }
  .v2-landing .landing-plan-lanes button { font-size: 10px; }
}

@media (max-width: 560px) {
  body.editorial-ui.v2-foundation.is-landing-view:has(#modules-view:not([hidden])) .app-shell { width: calc(100% - 28px); }
  body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .primary-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.editorial-ui.v2-foundation.is-landing-view .site-header.v2-header .landing-start-link { margin-left: 0; }
  .v2-landing .landing-story { height: 790px; min-height: 790px; }
  .v2-landing .landing-story-copy { width: 100%; padding: 34px 4px 0; }
  .v2-landing .landing-story-copy h1 { max-width: none; font-size: clamp(42px, 12vw, 58px); }
  .v2-landing .landing-story-copy h1 span { white-space: normal; }
  .v2-landing .landing-story-copy > p { max-width: 270px; margin-top: 18px; font-size: 17px; }
  .v2-landing .landing-direct-actions { width: 100%; margin-top: 24px; grid-template-columns: 1fr; }
  .v2-landing .landing-direct-action { min-height: 52px; }
  .v2-landing .landing-after-word { top: 475px; font-size: 72vw; }
  .v2-landing .landing-story picture { top: auto; height: 300px; min-height: 0; }
  .v2-landing .landing-story-caption { right: 4px; bottom: 13px; width: 136px; font-size: 13px; }
  .v2-landing .landing-cases h2 { font-size: 38px; line-height: .98; }
  .v2-landing .landing-case-grid { grid-template-columns: 1fr; }
  .v2-landing .landing-case-card,
  .v2-landing .landing-case-card.is-featured {
    min-height: 0;
    padding: 10px;
    grid-column: auto;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .v2-landing .landing-case-card > img { width: 112px; height: 132px; }
  .v2-landing .landing-case-card h3 { font-size: 24px; }
  .v2-landing .landing-case-card p { font-size: 12px; }
  .v2-landing .landing-case-timeline { display: none; }
  .v2-landing .landing-plan-lanes { grid-template-columns: 1fr; }
  .v2-landing .landing-plan-lanes h2 { padding: 10px 14px 14px; text-align: center; }
  .v2-landing .landing-plan-lanes h2 br { display: none; }
  .v2-landing .landing-plan-lanes nav { grid-template-columns: repeat(5, minmax(68px, 1fr)); overflow-x: auto; }
  .v2-landing .landing-plan-lanes button:first-child { border-left: 0; }
  body.editorial-ui.v2-foundation.is-landing-view .landing-footer-colophon { font-size: 9px; }
  .fictional-case-dialog-inner { padding: 18px; }
  .fictional-case-dialog h2 { font-size: 34px; }
  .fictional-case-assumptions { grid-template-columns: 1fr; }
  .fictional-case-assumption { border-right: 0; }
  .fictional-case-dialog footer { align-items: stretch; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-landing .landing-direct-action { transition: none; }
  .v2-landing .landing-direct-action:hover { transform: none; }
}
