/* Express journey: one question per screen (Typeform style), mobile first.
   Shared look of the express pages (see docs/express-journey.md). Loaded after site.css.
   Same visual model as the sante-express.html prototype, which still keeps its own inline copy. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body.xp { margin: 0; background: var(--surface); color: var(--ink-900); font-family: var(--sans); overflow: hidden; -webkit-tap-highlight-color: transparent; }
.xp .app { height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }

/* Top bar: back, logo, status chip, close */
.xp .bar { flex: none; padding: max(10px, env(safe-area-inset-top)) 16px 8px; display: grid; grid-template-columns: 40px 1fr auto 40px; gap: 8px; align-items: center; }
.xp .icon-btn { width: 44px; height: 44px; margin: -2px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-700); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background-color var(--dur-2), opacity var(--dur-2); }
.xp .icon-btn:hover { background: var(--surface-2); }
.xp .icon-btn[disabled] { opacity: 0; pointer-events: none; }
.xp .icon-btn svg { width: 22px; height: 22px; }
.xp .logo { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--brand-800); justify-self: start; }
.xp .chip { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transform-origin: right center; transition: opacity var(--dur-3), transform var(--dur-3) var(--ease-out); }
.xp .chip.off { opacity: 0; transform: scale(.9); }
.xp .chip.ok { color: var(--success-700); background: var(--success-50); }
.xp .chip.bad { color: var(--warning-700); background: var(--warning-50); }
.xp .chip.bump { animation: xp-bump 420ms var(--ease-out); }
@keyframes xp-bump { 40% { transform: scale(1.08); } }
.xp .progress { height: 3px; background: var(--line); flex: none; }
.xp .progress i { display: block; height: 100%; width: 0; background: var(--brand-700); border-radius: 0 3px 3px 0; transition: width 420ms var(--ease-out); }

/* Stage: one screen at a time */
.xp .stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.xp .screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.xp .screen .inner { margin: auto 0; width: 100%; min-width: 0; }
.xp .screen.top .inner { margin-top: 0; }
@media (min-height: 760px) { .xp .screen:not(.top) .inner { margin-top: 12vh; } }
.xp .screen.enter { animation: xp-enter 460ms var(--ease-out) both; }
.xp .screen.enter.back { animation-name: xp-enter-back; }
.xp .screen.leave { animation: xp-leave 260ms ease-in both; pointer-events: none; }
.xp .screen.leave.back { animation-name: xp-leave-back; }
@keyframes xp-enter { from { opacity: 0; transform: translateY(40px); } }
@keyframes xp-enter-back { from { opacity: 0; transform: translateY(-40px); } }
@keyframes xp-leave { to { opacity: 0; transform: translateY(-32px); } }
@keyframes xp-leave-back { to { opacity: 0; transform: translateY(32px); } }
.xp .screen.enter .rise { animation: xp-rise 520ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 50ms); }
@keyframes xp-rise { from { opacity: 0; transform: translateY(14px); } }

.xp .kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--brand-700); margin: 0 0 12px; }
.xp .kicker .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--brand-700); color: #fff; display: inline-grid; place-items: center; font-size: 12px; flex: none; }
.xp .q { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 32px; letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink-900); outline: none; overflow-wrap: anywhere; }
@media (min-width: 560px) { .xp .q { font-size: 32px; line-height: 38px; } }
.xp .q.sm { font-size: 22px; line-height: 28px; }
@media (min-width: 560px) { .xp .q.sm { font-size: 26px; line-height: 32px; } }
.xp .hint { font-size: 15px; line-height: 22px; color: var(--ink-500); margin: 0 0 24px; }
.xp .opt { font-size: 13px; font-weight: 600; color: var(--ink-500); }

/* Choices: big tappable rows with a key letter */
.xp .choices { display: grid; gap: 10px; }
.xp .choice { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 12px 14px; text-align: left; font: inherit; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink-900); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); cursor: pointer; transition: border-color var(--dur-2), background-color var(--dur-2), transform var(--dur-1); overflow-wrap: anywhere; }
.xp .choice:hover { border-color: var(--brand-700); }
.xp .choice:active { transform: scale(.985); }
.xp .choice .key { width: 28px; height: 28px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-500); transition: inherit; }
.xp .choice small { display: block; font-weight: 500; font-size: 13px; line-height: 18px; color: var(--ink-500); margin-top: 2px; }
.xp .choice[aria-pressed="true"] { border-color: var(--brand-700); background: var(--brand-50); }
.xp .choice[aria-pressed="true"] .key { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.xp .choice.flash { animation: xp-flash 300ms steps(2, jump-none) 1; }
@keyframes xp-flash { 50% { background: var(--surface); } }

/* Inputs: large underline fields */
.xp .big { width: 100%; min-width: 0; font: inherit; font-family: var(--display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--brand-800); padding: 8px 0 10px; border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; background: transparent; outline: none; transition: border-color var(--dur-2); }
.xp .big::placeholder { color: var(--ink-300, #a3abc0); }
.xp .big:focus { border-bottom-color: var(--brand-700); }
.xp textarea.big { font-family: var(--sans); font-size: 18px; line-height: 26px; font-weight: 600; resize: none; min-height: 120px; field-sizing: content; max-height: 45vh; }
.xp input.big[type="date"] { appearance: none; -webkit-appearance: none; min-height: 52px; }
.xp .with-prefix, .xp .with-suffix { display: grid; gap: 10px; align-items: end; }
.xp .with-prefix { grid-template-columns: auto minmax(0, 1fr); }
.xp .with-suffix { grid-template-columns: minmax(0, 1fr) auto; }
.xp .with-prefix > span, .xp .with-suffix > span { font-family: var(--display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink-500); padding-bottom: 12px; }

.xp .err { min-height: 22px; margin-top: 12px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger-700); }
.xp .err:not(:empty) { animation: xp-shake 320ms; }
@keyframes xp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.xp .err a { color: inherit; }

.xp .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding: 0; border: 0; }
.xp .go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--brand-700); border: 0; border-radius: var(--r-ctl); cursor: pointer; text-decoration: none; text-align: center; transition: background-color var(--dur-2), transform var(--dur-1), opacity var(--dur-2); }
.xp .go:hover { background: var(--brand-800); }
.xp .go:active { transform: scale(.98); }
.xp .go[disabled] { opacity: .5; cursor: default; }
.xp .go svg { width: 18px; height: 18px; flex: none; }
.xp .go.wide { width: 100%; }
.xp .go.ghost { color: var(--ink-900); background: var(--surface); border: 1.5px solid var(--line-strong); }
.xp .go.ghost:hover { background: var(--surface-2); }
.xp .skip { min-height: 44px; padding: 0 6px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--brand-700); cursor: pointer; }
.xp .skip:hover { text-decoration: underline; }
.xp .enter-hint { font-size: 12px; color: var(--ink-500); }
.xp .enter-hint b { font-weight: 700; }
@media (hover: none) { .xp .enter-hint { display: none; } }

/* Intro, consent, done */
.xp .intro-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.xp .intro-points li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 22px; color: var(--ink-700); }
.xp .intro-points .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.xp .intro-points svg { width: 16px; height: 16px; }
.xp .fine { font-size: 13px; line-height: 18px; color: var(--ink-500); margin: 8px 0 0; }
.xp .consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 20px; color: var(--ink-700); cursor: pointer; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); }
.xp .consent + .consent { margin-top: 10px; }
.xp .consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand-700); }
.xp .spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: xp-spin 700ms linear infinite; }
@keyframes xp-spin { to { transform: rotate(360deg); } }
.xp .check { width: 72px; height: 72px; margin-bottom: 20px; }
.xp .check circle { fill: var(--success-50); stroke: var(--success-700); stroke-width: 2; }
.xp .check path { fill: none; stroke: var(--success-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: xp-draw 520ms 260ms var(--ease-out) forwards; }
@keyframes xp-draw { to { stroke-dashoffset: 0; } }
.xp .ref { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--brand-800); background: var(--brand-50); padding: 8px 14px; border-radius: 10px; margin: 4px 0 20px; letter-spacing: .03em; }
.xp .next-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; counter-reset: s; }
.xp .next-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink-700); counter-increment: s; }
.xp .next-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.xp .next-steps li.done::before { content: "✓"; background: var(--success-700); color: #fff; }
.xp .next-steps li.now::before { background: var(--brand-700); color: #fff; }
.xp .next-steps li strong { color: var(--ink-900); }
.xp .link { color: var(--brand-700); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .xp .screen.enter, .xp .screen.leave, .xp .screen.enter .rise, .xp .chip.bump, .xp .err:not(:empty), .xp .choice.flash { animation: none !important; }
  .xp .check path { animation: none; stroke-dashoffset: 0; }
}
