/* Personal summary and first useful action. Light appearance is a brand decision. */
:root { color-scheme: only light; }

.welcome-frame {
  width: min(640px, calc(100% - 28px));
  padding: clamp(22px, 4vw, 38px);
  background: #fffdf9;
  border-color: #e4d9cd;
  border-radius: 22px;
  box-shadow: 0 16px 48px #39261b07;
  text-align: center;
}

.welcome-frame h1 {
  margin: 8px 0 12px;
  font: 500 clamp(1.95rem, 4.2vw, 2.55rem)/1.17 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.welcome-frame .eyebrow { font-size: .75rem; letter-spacing: .1em; color: #80583c; }
.welcome-lead { max-width: 450px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.6; color: #65564c; }
.welcome-profile-line { margin: 14px auto 0; max-width: 470px; font-size: .875rem; line-height: 1.6; color: #736355; }
.welcome-profile-line span { padding: 0 3px; }
.welcome-kicker { font-size: .875rem; margin: 0 0 18px; color: #6e5b48; }
.welcome-kicker svg { width: 20px; height: 20px; }
.welcome-frame .assessment-progress { margin-bottom: 22px; }
.assessment-progress small { font-size: .8125rem; }
.assessment-stairs { width: 82px; height: 49px; }
.stairs-lit { stroke-width: 3.2; opacity: var(--lit-opacity, 1); filter: drop-shadow(0 0 3px #e5ae5480); }
.stairs-halo { fill: none; stroke: #e9bc69; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: var(--to); opacity: calc(var(--lit-opacity, 1) * .6); filter: blur(2px) drop-shadow(0 0 5px #e7b45db3); }
.stairs-spark { stroke: #ffdc8f; stroke-width: 4.6; filter: drop-shadow(0 0 3px #e5b25e) drop-shadow(0 0 7px #e7b35ba6); }
.assessment-progress.is-complete .stairs-halo { opacity: .8; filter: blur(2px) drop-shadow(0 0 7px #e0ac5199); }
.stairs-star.is-complete { fill: #d7a34f; filter: drop-shadow(0 0 3px #f1c46f) drop-shadow(0 0 9px #e3b35ca6); }
.welcome-frame .guide-mark { width: 60px; height: 54px; margin-bottom: 18px; }
.welcome-frame .guide-mark img { width: 46px; height: 46px; }

.welcome-assets { margin: 24px 0 0; text-align: left; }
.welcome-assets h2 { font: 500 .875rem/1.5 var(--sans); letter-spacing: 0; color: #65564c; margin: 0 0 9px; }
.welcome-chips { gap: 7px; margin: 0; }
.welcome-chip { gap: 5px; border: 0; padding: 7px 10px; font-size: .8125rem; color: #41533a; background: #edf1e8; }
.welcome-chip svg { width: 14px; height: 14px; flex: none; }
.welcome-more summary { min-height: 44px; display: flex; align-items: center; font-size: .875rem; color: #6d594a; cursor: pointer; }
.welcome-section { margin-top: 27px; }
.welcome-path { display: grid; gap: 0; margin: 0; }
.welcome-path-step { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 0 0 13px; animation: none; }
.welcome-path-step:last-child { padding-bottom: 0; }
.welcome-path-step:not(:last-child)::after { left: 18px; top: 42px; bottom: 0; background: #ded2c2; }
.welcome-path-step.is-next::after { background: linear-gradient(#c9a361, #ded2c2); }
.path-node { width: 38px; height: 38px; border: 0; background: #f1ece5; color: #7c6855; }
.welcome-path-step .path-node { background: #f1ece5; margin-top: 8px; }
.welcome-path-step.is-next .path-node { background: #f0dfbe; color: #84602f; border: 0; box-shadow: 0 0 0 4px #f1e6d350; }
.welcome-path-step .path-node svg { width: 19px; height: 19px; }
.welcome-path-step.is-next > .path-current { padding: 18px; background: #fbf5ea; border: 1px solid #e6d1af; border-radius: 15px; }
.welcome-frame .path-current h2 { font: 550 1.125rem/1.4 var(--sans); letter-spacing: -.015em; margin: 4px 0 0; }
.path-label { display: block; color: #80613e; font-size: .75rem; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 3px; }
.welcome-path-step p.path-reason { font-size: 1rem; line-height: 1.55; margin: 9px 0 0; color: #655448; }
.welcome-path-step .btn { margin-top: 17px; min-height: 48px; width: 100%; font-size: 1rem; padding: 11px 16px; border-radius: 11px; }
.path-caption { display: block; margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: #77644f; }
.path-preview { padding: 2px 0 0; min-width: 0; text-align: left; }
.path-preview summary { list-style: none; min-height: 56px; padding: 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.path-preview summary::-webkit-details-marker { display: none; }
.path-preview summary > span { min-width: 0; }
.path-preview summary strong { font-size: 1rem; font-weight: 500; line-height: 1.4; color: #65584d; }
.path-preview summary > svg { width: 18px; height: 18px; color: #806a55; flex: none; transition: transform 180ms ease; }
.path-preview[open] summary > svg { transform: rotate(180deg); }
.welcome-path-step .path-detail p { font-size: .9375rem; line-height: 1.55; margin: 7px 0; }
.welcome-path-step .path-detail .path-dependency { color: #735b43; }
.path-detail .linkbtn { min-height: 44px; font-size: .875rem; }
.welcome-finished { padding: 20px 0; }
.welcome-finished > svg { color: var(--sage); width: 32px; height: 32px; margin-bottom: 10px; }
.welcome-finished p { font-size: 1rem; margin: 12px 0; }

.welcome-tools { margin-top: 24px; padding: 0; border-color: #e6ded4; }
.welcome-tools > summary { min-height: 58px; font-size: .9375rem; font-weight: 500; gap: 14px; color: #6b5543; }
.welcome-tools > summary > span { display: inline-flex; align-items: center; gap: 9px; }
.welcome-tools > summary svg { width: 19px; height: 19px; flex: none; }
.welcome-tools[open] > summary span { transform: none; }
.welcome-tools[open] > summary > svg { transform: rotate(180deg); }
.welcome-tool-list { display: grid; gap: 16px; padding: 5px 0 16px; }
.welcome-tool { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 11px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.welcome-tool > .welcome-tool-icon { display: grid; place-items: center; grid-row: auto; width: 32px; height: 32px; margin-top: 3px; background: #f3ede5; color: #7c6249; border: 0; border-radius: 9px; }
.welcome-tool-icon svg { width: 18px; height: 18px; }
.tool-state { display: block; font-size: .75rem; color: #70604e; margin-bottom: 2px; }
.welcome-tool h3 { font: 500 .9375rem/1.4 var(--sans); margin: 0 0 4px; }
.welcome-tool p { font-size: .875rem; line-height: 1.55; color: #6b5b50; }
.welcome-tools .welcome-tool-note { font-size: .8125rem; line-height: 1.5; color: #736355; margin: 0 0 6px; }
.welcome-tools .linkbtn { min-height: 44px; font-size: .875rem; }

.welcome-options { margin-top: 22px; }
.welcome-save { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; text-align: left; margin: 0 0 16px; }
.welcome-save-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #f3ece5; border-radius: 50%; color: #866447; }
.welcome-save-icon svg { width: 17px; height: 17px; }
.welcome-frame .welcome-save h2 { font: 500 1rem/1.4 var(--sans); margin: 0 0 4px; }
.welcome-save p { font-size: .875rem; margin: 0 0 10px; }
.welcome-save .btn { min-height: 46px; border-radius: 10px; }
.welcome-utilities { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 0; }
.welcome-utilities .linkbtn { min-height: 44px; font-size: .875rem; font-weight: 500; color: #6e5647; }
.welcome-storage { font-size: .8125rem; line-height: 1.55; margin-top: 12px; color: #736355; }
.sample-options { display: grid; justify-items: stretch; gap: 2px; }
.sample-options .btn { min-height: 48px; font-size: .9375rem; }
.sample-options .linkbtn { min-height: 44px; font-size: .875rem; font-weight: 500; }
.welcome-notice { text-align: left; margin-top: 20px; font-size: .9375rem; }

/* The real action shares the welcome surface rather than opening a dashboard. */
.guide-frame > p:not(.eyebrow):not(.welcome-profile-line):not(.welcome-storage) { font-size: 1rem; }
.guide-frame .guide-task { padding: 18px; border-radius: 14px; text-align: left; }
.guide-frame .guide-task p { font-size: 1rem; line-height: 1.6; }
.guide-frame .guide-task details, .guide-frame .guide-task summary { font-size: .875rem; }
.guide-frame summary { min-height: 44px; cursor: pointer; }
.guide-frame .field { font-size: .875rem; text-align: left; }
.guide-frame input, .guide-frame select, .guide-frame textarea { font-size: 1rem; min-height: 48px; border-radius: 10px; }
.guide-frame .form-stack { margin-top: 22px; gap: 17px; }
.guided-cost-form { text-align: left; }
.guided-cost-form .btn { width: 100%; min-height: 48px; font-size: 1rem; margin-top: 3px; }
.guided-cost-form .muted { font-size: .875rem; }
.guided-answer-form { text-align: left; }
.guided-answer-form > .btn { width: 100%; min-height: 48px; }
.guided-service-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.guided-service-options legend { font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
.guided-service-options label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 12px; border: 1px solid #ded3c6; border-radius: 10px; background: #fffdf9; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.guided-service-options label:has(input:checked) { border-color: #a77b49; background: #fbf2e3; }
.guide-frame .guided-service-options input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 0; padding: 0; accent-color: #966c43; }
.guided-completion { padding: 22px 18px; border: 1px solid #d8e2ce; border-radius: 15px; background: #f1f5eb; text-align: left; margin: 22px 0; }
.guided-completion h2 { font-size: 1.125rem; }
.guided-completion p { font-size: 1rem; margin-top: 10px; }
.completion-amount { display: block; font: 500 clamp(1.6rem, 4vw, 2rem)/1.25 var(--serif); color: #405337; margin: 12px 0; }
.completion-amount > span { display: block; font: 500 1rem/1.5 var(--sans); margin: 0 0 5px; }
.completion-amount > strong { display: block; font-weight: 500; }
.completion-amount small { font: 400 .9375rem/1.5 var(--sans); margin-left: 6px; }
.guided-completion .completion-amount > p { font: 400 1rem/1.6 var(--sans); }
.guide-frame .welcome-actions { gap: 8px; margin-top: 22px; }
.guide-frame .welcome-actions .btn { width: 100%; max-width: none; min-height: 48px; font-size: 1rem; border-radius: 11px; }
.guide-frame .welcome-actions .linkbtn { min-height: 44px; font-size: .875rem; }
.guide-frame > .muted { font-size: .875rem; }

.assessment-frame .hint { font-size: 1rem; }
.assessment-frame .choice { font-size: 1rem; min-height: 60px; }
.assessment-frame .muted, .assessment-skip .linkbtn { font-size: .875rem; }
.assessment-skip .linkbtn { min-height: 44px; }
.assessment-frame .btn { min-height: 48px; }
.header-inner .home-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; }

#plan-access { width: min(640px, calc(100% - 28px)); }
#plan-access .plan-access-inner summary, #plan-access details:not([open]) > summary { min-height: 44px; font-size: .875rem; }
#plan-access .plan-access-inner p { font-size: .9375rem; line-height: 1.6; }
#plan-access.claim-screen { margin: 32px auto 0; }
#plan-access.claim-screen .plan-access-inner { padding: 30px; border: 1px solid #e4d9cd; border-radius: 22px; background: #fffdf9; box-shadow: 0 16px 48px #39261b07; }
#plan-access.claim-screen h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin-bottom: 14px; }
#plan-access .btn, #plan-access .linkbtn { min-height: 44px; }

@media (max-width: 480px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0; padding: 8px 0 0; }
  .header-inner .logo { white-space: nowrap; flex-shrink: 0; }
  .header-inner .home-link { flex-basis: 100%; justify-content: center; min-height: 34px; }
  .welcome-frame { padding: 23px 18px; border-radius: 18px; }
  .welcome-frame h1 { font-size: 2rem; }
  .welcome-lead { font-size: 1rem; }
  .welcome-path-step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .path-node { width: 32px; height: 32px; }
  .welcome-path-step:not(:last-child)::after { left: 15px; top: 39px; }
  .welcome-path-step.is-next > .path-current { padding: 15px 13px; }
  .welcome-path-step .btn { padding-inline: 12px; }
  .welcome-utilities { gap: 0 14px; }
  .assessment-frame .choices { grid-template-columns: 1fr; }
  .assessment-frame .choice { min-height: 50px; padding: 12px; }
  .assessment-frame .choice[aria-pressed=true] { padding: 11px; }
  .logo { font-size: 22px; }
  .logo img { width: 34px; }
  #plan-access.claim-screen .plan-access-inner { padding: 24px 20px; }
}

@media (max-width: 350px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 0; padding: 10px 0 4px; }
  .welcome-frame { padding-inline: 15px; }
  .welcome-frame h1 { font-size: 1.85rem; }
  .welcome-path-step { gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-advancing .stairs-halo { animation: mm-step-glow 850ms ease-out both; }
  .is-advancing .stairs-lit { animation: stair-advance 720ms cubic-bezier(.22,1,.36,1) both; }
  .is-advancing .stairs-spark { animation: mm-spark 800ms cubic-bezier(.22,1,.36,1) both; }
  .assessment-progress.is-complete .stairs-star { animation: mm-star-glow 1050ms ease-out both; }
  @keyframes mm-step-glow { 0% { stroke-dashoffset: var(--from); opacity: .35; } 45% { opacity: 1; } 100% { stroke-dashoffset: var(--to); opacity: .6; } }
  @keyframes mm-star-glow { 0% { opacity: .55; filter: drop-shadow(0 0 2px #e9b65c); } 55% { opacity: 1; filter: drop-shadow(0 0 5px #f1c46f) drop-shadow(0 0 13px #e3b35cb3); } 100% { opacity: 1; filter: drop-shadow(0 0 3px #f1c46f) drop-shadow(0 0 9px #e3b35ca6); } }
  .welcome-frame { animation: mm-considered-enter 240ms ease-out both; }
  .welcome-path-step { animation: none; }
  .guided-completion { animation: mm-considered-enter 240ms ease-out both; }
  @keyframes mm-considered-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-frame, .welcome-frame *, .assessment-frame * { animation: none !important; transition: none !important; }
}
