:root {
  --ink: #0b1831;
  --muted: #566578;
  --white: #fffdf8;
  --line: rgba(11, 24, 49, 0.18);
  --danger: #8f2932;
  --focus: #1459c7;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: calc(66px + env(safe-area-inset-top));
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #e8efec;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #e8efec;
}

body {
  min-height: 100svh;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.plan-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.plan-scene,
.plan-intro-video,
.plan-poster,
.plan-veil {
  position: absolute;
  inset: 0;
}

.plan-scene {
  position: fixed;
  z-index: -2;
  overflow: hidden;
  background: #8fb8c4;
}

.plan-intro-video,
.plan-poster {
  width: 100%;
  height: 100%;
}

.plan-intro-video {
  display: block;
  border: 0;
  object-fit: cover;
  object-position: 50% 50%;
}

.plan-poster {
  background-image: url("../assets/freedom-plan-hero.webp");
  background-position: 50% 48%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: filter 420ms ease, transform 420ms ease;
  transform-origin: 52% 48%;
}

.is-static-scene .plan-poster {
  opacity: 1;
  transform: scale(1.22);
  will-change: auto;
}

.is-static-scene .plan-intro-video,
:is(.is-quiet, .is-result) .plan-intro-video {
  display: none;
}

.plan-veil {
  background: linear-gradient(
    180deg,
    rgba(8, 35, 75, 0.08),
    rgba(5, 20, 42, 0.22) 44%,
    rgba(4, 15, 32, 0.82)
  );
  transition: background 420ms ease;
}

.is-quiet .plan-poster {
  opacity: 1;
  filter: blur(18px) saturate(0.68) brightness(1.14);
  transform: scale(1.22);
}

.is-quiet .plan-veil {
  background: linear-gradient(
    180deg,
    rgba(244, 248, 246, 0.74),
    rgba(247, 247, 238, 0.86) 42%,
    rgba(236, 243, 238, 0.96)
  );
}

.is-quiet {
  color: var(--ink);
}

.is-quiet :is(#question-screen, #processing-screen, #gate-screen) {
  color: var(--ink);
}

.is-result .plan-poster {
  opacity: 1;
  filter: saturate(0.84) brightness(0.96);
  transform: scale(1.22);
}

.is-result .plan-veil {
  background: linear-gradient(
    180deg,
    rgba(244, 248, 246, 0.78),
    rgba(247, 247, 238, 0.9) 42%,
    rgba(236, 243, 238, 0.96)
  );
}

.plan-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-height);
  min-height: var(--header-height);
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: 8px;
  padding-left: max(20px, env(safe-area-inset-left));
}

.plan-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.is-quiet .plan-brand,
.is-result .plan-brand {
  color: var(--ink);
}

.plan-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.plan-progress {
  width: min(43vw, 190px);
  color: rgba(11, 24, 49, 0.72);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.plan-progress-track {
  display: block;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(11, 24, 49, 0.14);
}

.plan-progress-track span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: #245dce;
  transition: width 250ms ease;
}

.plan-screen {
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  padding: 20px 22px 0;
  padding-bottom: calc(18px + var(--safe-bottom));
  padding-right: max(22px, env(safe-area-inset-right));
  padding-left: max(22px, env(safe-area-inset-left));
}

.plan-screen[hidden] {
  display: none;
}

.plan-screen-content {
  width: min(100%, 560px);
  margin: auto;
}

.plan-intro {
  align-items: center;
  color: white;
}

.plan-intro-content {
  display: grid;
  min-height: calc(100svh - var(--header-height) - 38px - var(--safe-bottom));
  max-width: 620px;
  grid-template-rows: auto 1fr auto;
  text-align: center;
}

.plan-intro-eyebrow-zone {
  padding-top: clamp(10px, 3svh, 30px);
}

.plan-intro-copy-zone {
  align-self: center;
  transform: translateY(-2svh);
}

.plan-intro-copy-zone > p {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.55;
}

.plan-intro-action-zone {
  align-self: end;
  padding-bottom: clamp(8px, 2.5svh, 24px);
}

.plan-intro h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 11.8vw, 70px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.plan-microcopy {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
}

.plan-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.82;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 9.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 500;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}

.plan-screen-content > p:not(.plan-eyebrow, .plan-error, .plan-insight, .plan-trust, .plan-gate-legal, .plan-disclaimer, .plan-result-number) {
  margin: 14px 0 24px;
  font-size: 15px;
  line-height: 1.55;
}

.plan-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(8, 22, 45, 0.2);
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 180ms ease;
}

.plan-button .plan-button-label {
  display: inline;
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

#start-button {
  justify-content: center;
}

.plan-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.plan-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.plan-button:active {
  box-shadow: 0 7px 18px rgba(8, 22, 45, 0.18);
  transform: scale(0.985);
}

.plan-back {
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 24px;
  padding: 8px 0;
  border: 0;
  color: #3d4d61;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

#question-screen {
  min-height: calc(100svh - var(--header-height));
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 4px;
}

.plan-question-form {
  display: grid;
  grid-template-rows: auto auto auto minmax(16px, 1fr) auto;
  min-height: calc(100svh - var(--header-height) - 22px - var(--safe-bottom));
  row-gap: 8px;
  margin: 0 auto;
}

.plan-question-back {
  justify-self: start;
  margin: 0;
}

.plan-question-title-zone {
  margin-bottom: 12px;
}

.plan-question-title {
  font-size: clamp(26px, 6.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

.plan-question-title-zone .plan-helper {
  margin: 9px 0 0;
}

.plan-helper-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-helper-row .plan-helper {
  flex: 0 1 auto;
}

.plan-info-button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin-top: 4px;
  border: 1px solid rgba(11, 24, 49, 0.2);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font-size: 12px;
}

.plan-tooltip {
  width: fit-content;
  max-width: 360px;
  margin: 8px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(11, 24, 49, 0.12);
  border-radius: 12px;
  color: #35485f;
  background: rgba(255, 253, 248, 0.88);
  font-size: 11px;
  line-height: 1.45;
}

.plan-question-control-zone {
  overflow: visible;
}

.plan-question-feedback {
  min-height: 0;
}

.plan-question-actions {
  grid-row: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.plan-secondary {
  min-height: 44px;
  margin-right: auto;
  padding: 0;
  border: 0;
  color: #31547f;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-continue {
  width: auto;
  min-width: 132px;
  min-height: 48px;
  justify-content: center;
  padding: 0 24px;
  font-weight: 500;
}

.plan-helper {
  margin: 11px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.plan-input-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.94);
  box-shadow: 0 13px 30px rgba(30, 50, 60, 0.09);
}

.plan-input-wrap span {
  padding-left: 19px;
  color: #53647a;
  font-size: 24px;
}

.plan-input-wrap input {
  width: 100%;
  min-height: 72px;
  padding: 0 19px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 30px;
  font-weight: 400;
}

.plan-input-wrap:has(input:focus-visible) {
  outline: 2px solid #34475f;
  outline-offset: 2px;
}

.plan-input-wrap input:focus-visible {
  outline: none;
}

.plan-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.plan-choice {
  position: relative;
  display: block;
}

.plan-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-choice span {
  position: relative;
  display: block;
  min-height: 66px;
  padding: 13px 50px 13px 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.plan-choice span:not(:has(small)) {
  display: flex;
  min-height: 54px;
  align-items: center;
}

.plan-choice strong,
.plan-choice small {
  display: block;
}

.plan-choice strong {
  font-size: 15px;
  font-weight: 500;
}

.plan-choice small {
  margin-top: 4px;
  color: #566578;
  font-size: 11px;
}

.plan-choice input:checked + span {
  border-color: #245dce;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 13px 28px rgba(33, 55, 69, 0.13);
}

.plan-choice input:checked + span::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #245dce;
  font-size: 13px;
  transform: translateY(-50%);
}

.plan-choice:active span {
  transform: scale(0.985);
}

.plan-button:focus-visible,
.plan-back:focus-visible,
.plan-secondary:focus-visible,
.plan-info-button:focus-visible,
.plan-brand:focus-visible,
.plan-legal a:focus-visible,
.plan-gate-legal a:focus-visible,
.plan-card > input:focus-visible,
.plan-consent input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.plan-choice input:focus-visible + span {
  outline: 2px solid #34475f;
  outline-offset: 2px;
}

.plan-error {
  min-height: 18px;
  margin: 7px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

:is(.plan-error, .plan-insight):empty {
  display: none;
}

.plan-insight {
  min-height: 20px;
  margin: 14px 0 0;
  color: #34475f;
  font-size: 12px;
  line-height: 1.45;
}

.plan-processing-content {
  width: min(100%, 430px);
  text-align: center;
}

.plan-processing-content h1 {
  font-size: clamp(26px, 6vw, 34px);
  letter-spacing: -0.035em;
}

.plan-processing-steps {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.plan-processing-steps li {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid rgba(11, 24, 49, 0.1);
  border-radius: 18px;
  color: rgba(11, 24, 49, 0.44);
  background: rgba(255, 253, 248, 0.62);
  font-size: 14px;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.plan-processing-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.5px solid rgba(11, 24, 49, 0.2);
  border-radius: 50%;
  font-size: 13px;
}

.plan-processing-steps li.is-active {
  border-color: rgba(36, 93, 206, 0.32);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  transform: translateX(3px);
}

.plan-processing-steps li.is-active > span {
  border: 2px solid rgba(36, 93, 206, 0.2);
  border-top-color: #245dce;
  animation: plan-orbit 800ms linear infinite;
}

.plan-processing-steps li.is-complete {
  color: var(--ink);
}

.plan-processing-steps li.is-complete > span {
  border-color: #245dce;
  color: white;
  background: #245dce;
}

.plan-processing-steps li.is-complete > span::before {
  content: "✓";
}

@keyframes plan-orbit {
  to { transform: rotate(360deg); }
}

.plan-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 20px 50px rgba(21, 42, 54, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.plan-card h1 {
  font-size: clamp(28px, 7.4vw, 38px);
  line-height: 1.08;
}

#gate-freedom-number {
  color: #245dce;
  white-space: nowrap;
}

.plan-card .plan-button {
  justify-content: center;
}

.plan-card label:not(.plan-consent) {
  display: block;
  margin: 17px 0 7px;
  font-size: 12px;
  font-weight: 500;
}

.plan-card > input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: white;
  font-size: 16px;
  font-weight: 400;
}

.plan-consent {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  color: #3f5066;
  font-size: 12px;
  line-height: 1.5;
}

.plan-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
}

.plan-trust,
.plan-disclaimer {
  color: #53647a;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.plan-gate-legal {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 0;
  font-size: 11px;
}

.plan-gate-legal a {
  min-height: 44px;
  padding: 12px 4px;
  color: #3e526c;
}

.plan-result-number {
  margin: 20px 0 6px;
  font-size: clamp(48px, 15vw, 76px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.plan-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0;
}

.plan-summary > div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 17px;
  background: rgba(4, 16, 34, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.plan-summary small,
.plan-summary strong {
  display: block;
}

.plan-summary small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.plan-summary strong {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 500;
}

.plan-actions {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.45;
}

.plan-actions li {
  margin: 10px 0;
}

.plan-actions strong {
  display: block;
  font-weight: 500;
}

.plan-result-content {
  width: min(100%, 720px);
  padding-top: 24px;
  padding-bottom: 16px;
}

.plan-result {
  align-items: flex-start;
  overflow-y: auto;
}

.plan-result-content {
  margin: 0 auto;
}

.plan-assumptions {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.55;
}

.plan-assumptions summary {
  min-height: 44px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 500;
}

.plan-assumptions p {
  margin: 0 0 16px;
}

.plan-research {
  margin: 24px 0 32px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(5, 18, 38, 0.48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.plan-research h2 {
  margin-top: 0;
}

.plan-research > p:not(.plan-eyebrow, .plan-research-status) {
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.plan-research-options {
  display: grid;
  gap: 8px;
}

.plan-research-option {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
}

.plan-research-option strong,
.plan-research-option small {
  display: block;
}

.plan-research-option strong {
  font-size: 13px;
  font-weight: 500;
}

.plan-research-option small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.4;
}

.plan-research-option:disabled {
  cursor: wait;
  opacity: 0.58;
}

.plan-research-option:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

.plan-research-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 12px;
}

.plan-research-skip {
  color: rgba(255, 255, 255, 0.78);
}

.plan-research-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.plan-research-actions .plan-secondary {
  color: rgba(255, 255, 255, 0.78);
}

.plan-gate-ring {
  position: relative;
  display: grid;
  width: 174px;
  height: 174px;
  margin: 2px auto 20px;
  place-content: center;
  color: white;
  text-align: center;
}

.plan-gate-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.plan-gate-ring circle {
  fill: none;
  stroke-width: 6;
}

.plan-gate-ring-track {
  stroke: rgba(135, 167, 213, 0.16);
}

.plan-gate-ring-progress {
  stroke: #5a96ff;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  stroke-linecap: round;
}

.plan-gate-ring > span {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.plan-gate-ring > small {
  margin-top: 5px;
  color: #91a8cc;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

#gate-screen .plan-card {
  max-width: 540px;
  padding: 24px;
  border-color: rgba(151, 187, 240, 0.2);
  color: white;
  background:
    radial-gradient(circle at 82% 6%, rgba(62, 132, 247, 0.24), transparent 42%),
    linear-gradient(145deg, #0b1831, #0e2d5f);
  box-shadow: 0 28px 70px rgba(7, 20, 43, 0.28);
}

#gate-screen .plan-back,
#gate-screen .plan-card > p,
#gate-screen .plan-card label,
#gate-screen .plan-trust,
#gate-screen .plan-gate-legal a {
  color: rgba(255, 255, 255, 0.82);
}

#gate-screen .plan-back {
  margin-bottom: 4px;
}

#gate-screen .plan-eyebrow {
  text-align: center;
}

#gate-screen h1 {
  font-size: clamp(25px, 6.8vw, 34px);
  text-align: center;
}

#gate-screen .plan-card > p:not(.plan-eyebrow, .plan-error, .plan-trust, .plan-gate-legal) {
  margin: 10px auto 18px;
  max-width: 430px;
  font-size: 13px;
  text-align: center;
}

#gate-screen .plan-card > input {
  border-color: transparent;
  outline: none;
}

#gate-screen .plan-card > input:focus-visible,
#gate-screen .plan-consent input:focus-visible {
  outline: 2px solid #dbe8ff;
  outline-offset: 3px;
}

#gate-screen .plan-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: #f7f9ff;
  color: #0b1831;
  box-shadow: 0 12px 28px rgba(3, 12, 28, 0.26);
}

#gate-screen .plan-error:empty + .plan-button {
  margin-top: 14px;
}

.plan-result {
  align-items: flex-start;
  overflow-y: auto;
  color: var(--ink);
}

.plan-result-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 0 28px;
}

.plan-result-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: plan-result-reveal 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.plan-result-reveal:nth-child(2) { animation-delay: 140ms; }
.plan-result-reveal:nth-child(3) { animation-delay: 280ms; }
.plan-result-reveal:nth-child(4) { animation-delay: 420ms; }
.plan-result-reveal:nth-child(5) { animation-delay: 560ms; }

@keyframes plan-result-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-snapshot {
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(119, 164, 232, 0.24);
  border-radius: 30px;
  color: white;
  background: linear-gradient(145deg, #0b1831 0%, #0c2754 58%, #174b98 130%);
  box-shadow: 0 26px 64px rgba(13, 38, 72, 0.22);
}

.plan-snapshot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.plan-snapshot-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}

.plan-snapshot h1 {
  font-size: clamp(25px, 6.5vw, 34px);
}

.plan-snapshot-label {
  margin: 22px 0 5px;
  color: #a9bddd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.plan-snapshot .plan-result-number {
  margin: 0;
  font-size: clamp(35px, 9.5vw, 56px);
  line-height: 1.06;
}

.plan-snapshot-context {
  margin: 10px 0 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.plan-snapshot .plan-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.plan-snapshot .plan-summary > div {
  min-width: 0;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 20, 44, 0.42);
}

.plan-snapshot .plan-summary strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.plan-snapshot .plan-disclaimer {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.plan-result-section,
.plan-research {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 42px rgba(31, 54, 65, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.plan-result-section h2,
.plan-research h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.plan-insights {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.plan-insight-card {
  padding: 16px;
  border: 1px solid rgba(11, 24, 49, 0.1);
  border-radius: 19px;
  background: rgba(246, 249, 248, 0.88);
}

.plan-insight-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.plan-insight-card p {
  margin: 7px 0 0;
  color: #53647a;
  font-size: 12px;
  line-height: 1.5;
}

.plan-insight-card .plan-insight-action {
  color: #173d73;
}

.plan-research > p:not(.plan-eyebrow, .plan-research-status) {
  color: #53647a;
}

.plan-research-option {
  border-color: rgba(11, 24, 49, 0.12);
  color: var(--ink);
  background: rgba(246, 249, 248, 0.92);
}

.plan-research-option small {
  color: #647389;
}

.plan-research-option:focus-visible {
  outline-color: #34475f;
}

.plan-research-actions .plan-secondary,
.plan-research-skip {
  color: #31547f;
}

.plan-calculation {
  background: rgba(251, 252, 248, 0.9);
}

.plan-calculation > p {
  color: #53647a;
  font-size: 13px;
  line-height: 1.55;
}

.plan-formula {
  padding: 16px;
  border-radius: 18px;
  background: #edf3f7;
}

.plan-formula span,
.plan-formula strong {
  display: block;
}

.plan-formula strong {
  margin-top: 6px;
  color: #174580;
  font-size: 16px;
  font-weight: 600;
}

.plan-formula strong span {
  display: inline;
}

.plan-calculation-definitions {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.plan-calculation-definitions > div {
  padding-top: 10px;
  border-top: 1px solid rgba(11, 24, 49, 0.1);
}

.plan-calculation-definitions dt {
  font-size: 12px;
  font-weight: 600;
}

.plan-calculation-definitions dd {
  margin: 4px 0 0;
  color: #647389;
  font-size: 11px;
  line-height: 1.5;
}

.plan-calculation .plan-assumptions {
  color: #53647a;
}

.plan-share-button {
  margin-top: 18px;
}

.plan-share-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #52647a;
  font-size: 11px;
  text-align: center;
}

@media (min-width: 760px) {
  .plan-header {
    padding-right: max(34px, env(safe-area-inset-right));
    padding-left: max(34px, env(safe-area-inset-left));
  }

  .plan-screen {
    padding: 30px 30px 0;
    padding-bottom: calc(30px + var(--safe-bottom));
    padding-right: max(30px, env(safe-area-inset-right));
    padding-left: max(30px, env(safe-area-inset-left));
  }

  .plan-card {
    padding: 34px;
  }

  .plan-choices {
    grid-template-columns: 1fr 1fr;
  }

  .plan-result-content {
    padding-top: 48px;
  }

  .plan-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .plan-poster {
    background-position: 50% 48%;
  }

  .plan-intro-content {
    min-height: calc(100svh - var(--header-height) - 38px - var(--safe-bottom));
  }

  .plan-intro h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.96;
  }

  .plan-intro .plan-eyebrow {
    margin-bottom: 7px;
  }

  .plan-intro .plan-screen-content > p:not(.plan-eyebrow, .plan-microcopy) {
    margin: 10px 0 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .plan-intro .plan-button {
    min-height: 52px;
  }

  .plan-intro .plan-microcopy {
    margin-top: 8px;
  }

  .plan-obstacle-choices {
    gap: 7px;
  }

  .plan-obstacle-choices .plan-choice span {
    min-height: 46px;
    padding: 9px 44px 9px 15px;
    border-radius: 18px;
  }

  .plan-obstacle-choices .plan-choice strong {
    font-size: 13px;
  }

  .plan-snapshot,
  .plan-result-section,
  .plan-research {
    padding: 19px;
  }

}

@media (hover: hover) {
  .plan-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(8, 22, 45, 0.24);
  }

  .plan-button:hover:active {
    transform: scale(0.985);
  }

  .plan-choice:hover span {
    border-color: rgba(11, 24, 49, 0.28);
  }
}

@media (max-height: 700px) {
  .plan-screen {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 12px;
  }

  #question-screen {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .plan-question-form {
    row-gap: 2px;
  }

  .plan-question-title {
    font-size: 27px;
  }

  .plan-question-control-zone {
    overflow: visible;
  }

  .plan-back {
    margin-bottom: 2px;
  }

  .plan-helper {
    margin-bottom: 14px;
  }
}

@media (max-height: 450px) {
  .plan-question-form {
    min-height: 560px;
  }

  .plan-question-title-zone {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .plan-poster {
    opacity: 1;
    transform: scale(1.22);
    will-change: auto;
  }

  .plan-processing-orbit {
    animation: none;
  }

  .plan-processing-steps li.is-active > span {
    animation: none;
  }

  .plan-result-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .plan-gate-ring-progress {
    transition: none;
  }

  :is(.plan-button, .plan-choice span):active {
    transform: none;
  }
}
