:root {
  --navy: #0b1f4d;
  --navy-ink: #10265a;
  --blue: #4a90f0;
  --peach: #fb8b46;
  --pale-peach: #feeee6;
  --mist: #eef1f4;
  --paper: #fbfaf7;
  --ink: #172746;
  --muted: #53627a;
  --line: #ccd5e1;
  --focus: #d9602f;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100dvh; }
.topline { min-height: 52px; padding: 13px clamp(20px, 7vw, 88px); background: var(--mist); color: var(--navy); font-size: .91rem; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 16px clamp(20px, 7vw, 88px); background: var(--paper); border-bottom: 1px solid rgba(11, 31, 77, .1); }
.brand { color: var(--navy); font: 700 1.15rem/1 "Roboto Condensed", Arial, sans-serif; letter-spacing: .075em; text-transform: uppercase; text-decoration: none; }
.brand sup { font-size: .6em; }
.brand-note { color: var(--muted); font-size: .88rem; }

.screen { min-height: calc(100dvh - 124px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); min-height: calc(100dvh - 124px); background: var(--pale-peach); }
.hero-copy { display: flex; align-items: center; padding: clamp(42px, 5vw, 82px) clamp(24px, 7vw, 108px); background: linear-gradient(90deg, rgba(254,238,230,.97) 30%, rgba(254,238,230,.55) 78%, rgba(254,238,230,.08)); }
.hero-copy-inner { max-width: 690px; }
.hero-photo { min-height: 480px; background: linear-gradient(90deg, rgba(254,238,230,.12), rgba(11,31,77,.05)), url("/api/hero?v=4") center / cover no-repeat; }
.eyebrow { margin: 0 0 20px; color: #245bc0; font: 700 .78rem/1.35 "Roboto Condensed", Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: Caladea, Georgia, serif; font-weight: 700; line-height: 1.03; }
h1 { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
p { margin: 0; }
.intro-copy { max-width: 56ch; margin-top: 25px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 25px; border: 0; border-radius: 3px; background: var(--orange); color: var(--navy); font: 700 .86rem/1 "Roboto Condensed", Arial, sans-serif; letter-spacing: .08em; text-align: center; text-decoration: none; text-transform: uppercase; transition: background-color .16s ease, transform .16s ease; }
.action:hover { background: var(--orange-hover); transform: translateY(-1px); }
.action-secondary { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.action-secondary:hover { background: rgba(11,31,77,.06); }
.action-meta { color: var(--muted); font-size: .94rem; }

.quiz-screen { background: var(--paper); }
.quiz-hero { padding: clamp(38px, 7vw, 84px) clamp(20px, 7vw, 112px) clamp(48px, 7vw, 96px); background: var(--mist); }
.quiz-hero-inner { max-width: 850px; }
.quiz-hero h1, .quiz-hero h2 { max-width: 19ch; }
.quiz-content { width: min(100% - 40px, 820px); margin: 0 auto; padding: clamp(40px, 7vw, 82px) 0; }
.progress-wrap { padding-bottom: 24px; }
.progress-label { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 10px; color: var(--navy); font: 700 .77rem/1.3 "Roboto Condensed", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
progress { width: 100%; height: 8px; border: 0; accent-color: var(--blue); }
progress::-webkit-progress-bar { background: #d9e0e9; }
progress::-webkit-progress-value { background: var(--blue); }
.question { max-width: 23ch; margin-top: 34px; }
.option-list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 19px 4px; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.04rem; font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.option:hover { background: rgba(254,238,230,.6); }
.option input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: .26rem 0 0; accent-color: var(--navy); }
.option:has(input:checked) { color: var(--navy); background: rgba(254,238,230,.88); }
.error { min-height: 1.4em; margin-top: 18px; color: #9f1d16; font-weight: 700; }
.field { display: grid; gap: 7px; margin-top: 22px; }
.field label { color: var(--navy); font-weight: 700; }
.field input { width: 100%; min-height: 52px; padding: 11px 12px; border: 1px solid #abb8ca; border-radius: 2px; background: #fff; color: var(--ink); }
.required { color: var(--focus); }

.result { background: var(--paper); }
.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .64fr); background: var(--mist); }
.result-heading { display: flex; align-items: center; padding: clamp(48px, 7vw, 100px) clamp(20px, 7vw, 112px); }
.result-heading h1 { max-width: 20ch; }
.result-photo { min-height: 370px; background: url("https://triumphsteps.com/wp-content/uploads/2026/06/beatriz-casual.jpg") center top / cover no-repeat; }
.result-copy { width: min(100% - 40px, 820px); margin: 0 auto; padding: clamp(45px, 7vw, 88px) 0 0; }
.result-copy p { max-width: 68ch; margin-bottom: 22px; }
.result-copy h3 { margin: 42px 0 18px; }
.result-copy ul { max-width: 68ch; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.result-copy li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); }
.result-copy li::before { position: absolute; left: 0; top: 20px; width: 11px; height: 11px; border-radius: 50%; background: var(--peach); content: ""; }
.offer { margin-top: clamp(44px, 7vw, 88px); padding: clamp(42px, 6vw, 76px) max(20px, calc((100vw - 820px) / 2)); background: var(--navy); color: #f9f7f0; }
.offer-inner { width: min(100%, 820px); }
.offer h3 { color: #fff; margin-bottom: 16px; }
.offer p { max-width: 64ch; }
.testimonial { width: min(100% - 40px, 820px); margin: clamp(52px, 8vw, 96px) auto; padding: 26px 0 0; border-top: 2px solid var(--peach); color: var(--navy); }
.testimonial blockquote { margin: 0; font-family: Caladea, Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.38; }
.testimonial figcaption { margin-top: 16px; font: 700 .78rem/1.35 "Roboto Condensed", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.webinar { padding: clamp(55px, 8vw, 105px) max(20px, calc((100vw - 820px) / 2)); background: var(--pale-peach); }
.webinar-inner { width: min(100%, 820px); }
.webinar h2 { max-width: 12ch; }
.webinar p { max-width: 58ch; margin-top: 16px; }
.webinar .action-row { margin-top: 30px; }
.small-note { color: var(--muted); font-size: .94rem; }
.footer { padding: 34px clamp(20px, 7vw, 88px); background: var(--navy); color: #d9e3f2; font-size: .82rem; }

@media (max-width: 760px) {
  .brand-note { display: none; }
  .hero, .result-hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 210px; grid-row: 1; background-position: center top; }
  .hero-copy { padding-top: 40px; padding-bottom: 42px; }
  .result-photo { min-height: 220px; grid-row: 1; }
  .result-heading { padding-top: 40px; padding-bottom: 46px; }
  h1 { max-width: 18ch; font-size: clamp(2rem, 8.8vw, 2.35rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .action-row { gap: 10px; margin-top: 28px; }
  .action { width: 100%; }
  .action-secondary { width: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy-inner, .quiz-hero-inner, .result-heading > div { animation: arrive .42s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

/* Interaction polish */
:root {
  --peach: #ffa275;
  --peach-hover: #ffb894;
  --orange: #f58a45;
  --orange-hover: #ff9e62;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --focus-ring: rgba(75, 141, 239, .42);
}

:focus-visible { outline: 0; }
.action:focus-visible,
.brand:focus-visible,
.option:has(input:focus-visible),
.field input:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--focus-ring);
}

.action {
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.action:active { transform: scale(.97); }
.action:hover { background: var(--peach-hover); box-shadow: 0 6px 15px rgba(11, 31, 77, .13); }
.action-secondary:hover { background: rgba(11,31,77,.06); box-shadow: inset 0 0 0 1px var(--navy); }
.action[disabled] { cursor: wait; opacity: .72; }
.action.is-loading { gap: 9px; }
.action.is-loading::after { width: 13px; height: 13px; border: 2px solid rgba(11,31,77,.28); border-top-color: var(--navy); border-radius: 50%; content: ""; animation: spin .68s linear infinite; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.option {
  min-height: 62px;
  padding: 18px 14px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  transform-origin: center;
  transition: transform 160ms var(--ease-out), color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.option:first-child { border-top-color: var(--line); }
.option:has(input:checked) { border-color: rgba(11,31,77,.38); background: var(--pale-peach); box-shadow: 0 4px 12px rgba(11,31,77,.06); }
.option:active { transform: scale(.992); }
.option input { accent-color: var(--navy); }
.option:has(input:focus-visible) { position: relative; z-index: 1; }

.progress-wrap { position: relative; }
.progress-bar { height: 8px; overflow: hidden; background: #d9e0e9; }
.progress-fill { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(var(--from-progress)); transform-origin: left center; }
.progress-ready .progress-fill { transform: scaleX(var(--to-progress)); transition: transform 280ms var(--ease-out); }

.result-copy { padding-bottom: clamp(10px, 2vw, 22px); }
.result-copy > p { margin-bottom: 0; }
.result-copy > p + p { margin-top: 24px; }
.result-copy > h3 { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 22px; }
.result-copy > ul + p { margin-top: 30px; }
.offer { margin-top: clamp(58px, 8vw, 112px); }
.testimonial { margin-top: clamp(64px, 9vw, 116px); margin-bottom: clamp(64px, 9vw, 116px); }
.form-status { min-height: 1.4em; margin-top: 16px; color: var(--muted); font-size: .94rem; }

.app-shell.screen-arriving > * { opacity: 0; transform: translateY(8px); filter: blur(1px); }
.app-shell.screen-arriving.screen-ready > * { opacity: 1; transform: translateY(0); filter: blur(0); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), filter 180ms ease; }

@media (hover: hover) and (pointer: fine) {
  .option:hover { color: var(--navy); background: rgba(254,238,230,.72); border-color: rgba(11,31,77,.22); box-shadow: 0 5px 14px rgba(11,31,77,.05); transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .app-shell.screen-arriving > *, .app-shell.screen-arriving.screen-ready > * { opacity: 1; transform: none; filter: none; }
}

@keyframes spin { to { transform: rotate(360deg); } }


/* Quiz navigation: Back stays small on the left, the primary action takes the right.
   Scoped to the two quiz forms so the landing and webinar CTA rows are untouched. */
#question-form .action-row,
#contact-form .action-row { flex-wrap: nowrap; justify-content: space-between; }
#question-form .action-secondary,
#contact-form .action-secondary { flex: 0 0 auto; width: auto; }
#question-form .action:not(.action-secondary),
#contact-form .action:not(.action-secondary) { flex: 0 1 auto; }

@media (max-width: 760px) {
  #question-form .action:not(.action-secondary),
  #contact-form .action:not(.action-secondary) { flex: 1 1 auto; width: auto; }
}
