*{box-sizing:border-box}
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172738;background:#f6f8fa;font-size:100%;line-height:1.6}
body{margin:0}
main{width:100%;max-width:49rem;margin-inline:auto;padding:clamp(1rem,4vw,1.75rem);overflow-wrap:anywhere}
h1{font-size:clamp(2rem,7vw,2.7rem);line-height:1.18;margin-top:.25rem}
h2{font-size:clamp(1.35rem,5vw,1.65rem);line-height:1.35}
p,li{max-width:70ch}
.eyebrow{font-weight:700;color:#315169}
fieldset{min-inline-size:0;margin:1.4rem 0;border:1px solid #68788a;border-radius:.6rem;padding:1rem;background:#fff}
legend{max-width:100%;font-weight:750;padding-inline:.35rem;line-height:1.45}
label{display:flex;align-items:flex-start;gap:.65rem;min-height:44px;padding:.6rem .25rem;cursor:pointer}
input[type=radio]{flex:0 0 auto;width:1.15rem;height:1.15rem;margin:.2rem 0 0;accent-color:#174b7a}
fieldset:disabled{opacity:.7}
a{color:#064c88;text-underline-offset:.2rem}
button,a{touch-action:manipulation}
button{font:inherit;min-height:44px;padding:.7rem 1rem;border:2px solid #174b7a;border-radius:.4rem;background:#fff;color:#174b7a;cursor:pointer}
button:disabled{cursor:default;opacity:.6}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:.85rem 1.1rem;border:2px solid #174b7a;border-radius:.4rem;background:#174b7a;color:#fff;font-weight:750;text-align:center;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #9a5b00;outline-offset:4px}
aside,.notice,.help{padding:1rem;border-left:5px solid #9a5b00;background:#fff1d9}
.help{font-weight:650}
#result,#contact{margin-top:2rem;border-top:1px solid #a7b3c0;padding-top:1rem}
#notes{padding-left:1.35rem}
#notes li{margin-bottom:1rem}
.message{background:#fff;border:1px solid #68788a;border-radius:.4rem;padding:1rem;white-space:normal;overflow-wrap:anywhere}
footer{border-top:1px solid #68788a;margin-top:2.5rem;padding-top:.75rem;font-size:.92rem}
.mobile-contact{display:none}
.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus{position:fixed;inset-block-start:.5rem;inset-inline-start:.5rem;z-index:2;display:block;padding:.75rem;background:#fff}
[hidden]{display:none!important}
/* Separate mobile flow rows reserve the action's actual wrapping height, not a
   guessed fixed overlay height. Questions and preview scroll above the action. */
@media screen and (max-width:48rem){
  body{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100vh;height:100dvh}
  main{grid-row:1;min-height:0;overflow-y:auto;scroll-padding-block:1.5rem;padding-bottom:calc(1.75rem + env(safe-area-inset-bottom,0px));padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px))}
  #whatsapp{display:none}
  .mobile-contact{grid-row:2;display:block;position:sticky;bottom:0;align-self:end;padding:.65rem max(1rem,env(safe-area-inset-right,0px)) calc(.65rem + env(safe-area-inset-bottom,0px)) max(1rem,env(safe-area-inset-left,0px));border-top:1px solid #68788a;background:#f6f8fa}
  .mobile-contact .cta{display:flex;width:100%}
  fieldset,button,.message,#resultTitle{scroll-margin-block:1.5rem}
}
@media(max-width:400px){fieldset{padding:.8rem}.cta{display:flex;width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Release-1.1: header, questionnaire and mobile CTA occupy separate flow rows. */
@media screen and (max-width:48rem){
  body{grid-template-rows:auto minmax(0,1fr) auto}
  .release-header{grid-row:1}
  main{grid-row:2}
  .mobile-contact{grid-row:3}
}
