@layer reset, base, layout, components, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, input { font: inherit; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
  img { display: block; }
  [hidden] { display: none !important; }
}
@layer base {
  :root { --paper: #faf9f6; --white: #fff; --ink: #383c38; --muted: #646761; --orange: #b76219; --orange-light: #fff7ed; --accent: #eea044; --green: #568369; --line: #e5e4dd; --radius: 22px; }
  html { scroll-behavior: smooth; scroll-padding-top: 24px; }
  body { background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
  a { color: inherit; text-underline-offset: 4px; }
  button, a, input { touch-action: manipulation; }
  button { cursor: pointer; }
  :focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
  h1, h2, h3 { line-height: 1.2; font-weight: 500; }
  p { color: var(--muted); }
  .container { width: min(100% - 48px, 1320px); margin-inline: auto; }
  .eyebrow { color: var(--orange); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.7; }
  .skip-link { position: fixed; top: -100px; left: 24px; padding: 12px; background: white; z-index: 20; clip-path: inset(50%); }
  .skip-link:focus { top: 12px; clip-path: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@layer layout {
  .site-header { background: #fffefa; border-bottom: 1px solid var(--line); }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 24px; }
  .header-inner > *, .hero > *, .steps li > *, .option-copy, .fields > *, .actions > * { min-width: 0; }
  .union-brand { display: grid; text-decoration: none; line-height: 1.45; }
  .union-brand strong { font-size: 1.375rem; font-weight: 650; letter-spacing: -.025em; }
  .union-brand span, .partner-brand > span { color: var(--muted); font-size: 0.75rem; letter-spacing: .05em; }
  .partner-brand { display: grid; justify-items: end; line-height: 1.3; }
  .partner-brand strong { font-size: 2rem; letter-spacing: -.055em; }
  .partner-brand strong span { color: var(--accent); }
  .convenio-pill { background: #f9bd69; padding: 7px 19px; border-radius: 50px; font-size: 0.75rem; letter-spacing: .09em; font-weight: 700; }
  .hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 56px; padding-block: 64px; }
  .hero h1 { font-size: clamp(2rem, 3.05vw, 2.6875rem); line-height: 1.16; letter-spacing: -.037em; margin: 19px 0 24px; max-width: 740px; text-wrap: pretty; }
  .hero h1 span { color: var(--orange); white-space: nowrap; }
  .hero-description { font-size: 1.0625rem; max-width: 590px; line-height: 1.75; }
  .microbenefits { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 24px 0 28px; font-size: 0.875rem; }
  .microbenefits li:first-child { flex-basis: 100%; }
  .microbenefits span { color: var(--green); font-weight: 700; padding-right: 5px; }
  .hero-invitation { display: flex; align-items: center; gap: 14px; max-width: 480px; margin: -4px 0 22px; padding: 15px 18px; border: 1px solid #eccb9e; border-radius: 16px; background: linear-gradient(135deg, #ffeed5, #fff8ed); box-shadow: 0 9px 22px #9a531314; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
  .invitation-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 1.125rem; line-height: 1; }
  .hero-invitation strong { color: var(--orange); font-weight: 700; }
  .cta-note { font-size: 0.8125rem; margin-top: 14px; max-width: 380px; }
  .hero-visual { position: relative; }
  .photo-window { position: relative; aspect-ratio: 985 / 850; overflow: hidden; border-radius: 24px; background: #ded9ce; }
  .photo-window img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 35%; }
  .photo-caption { position: relative; margin: -96px 20px 0; display: flex; gap: 14px; background: #fffefa; border: 1px solid var(--line); padding: 23px; border-radius: 18px; box-shadow: 0 14px 35px #34352c09; }
  .photo-caption strong { display: block; font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
  .photo-caption p { font-size: 0.875rem; line-height: 1.55; margin-top: 8px; }
  .caption-mark { color: var(--green); font-size: 1.5rem; }
  .steps-section { margin-bottom: 64px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
  .steps li { display: flex; gap: 18px; padding: 28px; }
  .steps li + li { border-left: 1px solid var(--line); }
  .step-number { font-size: 0.8125rem; font-weight: 700; color: var(--orange); padding-top: 2px; flex-shrink: 0; white-space: nowrap; }
  .steps h2 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
  .steps p { font-size: 0.875rem; margin-top: 7px; }
  .roadmap-section { border-top: 1px solid var(--line); background: #f3f3ee; padding: 64px 0; }
  .section-intro { max-width: 760px; margin: 0 auto 28px; text-align: center; }
  .section-intro h2 { margin: 14px 0 18px; font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -.03em; }
  .section-intro > p:last-child { max-width: 640px; margin: auto; }
  .preview-note { display: flex; gap: 10px; align-items: baseline; max-width: 1120px; margin: 0 auto 14px; font-size: 0.8125rem; }
  .preview-note > span { color: var(--green); }
  .questionnaire { max-width: 1120px; margin: auto; padding: 38px 40px 0; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 12px 40px #34352c04; }
  .loading-copy { padding-bottom: 38px; }
  .form-footnote { margin-top: 20px; text-align: center; font-size: 0.8125rem; }
  .site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px; font-size: 0.75rem; }
  .site-footer strong { font-size: 0.875rem; }
  .site-footer span { display: block; color: var(--muted); }
  .site-footer a { align-self: center; padding-block: 12px; }
}
@layer components {
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 26px; border: 1px solid transparent; min-height: 52px; border-radius: 50px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: background 180ms, transform 180ms; line-height: 1.4; }
  .button.primary { background: var(--ink); color: white; }
  .button.primary:hover { background: #50574f; }
  .button.secondary { background: transparent; border-color: var(--line); }
  .button.secondary:hover { background: var(--paper); }
  .button:disabled { background: #e8e9e4; color: #70736c; cursor: not-allowed; }
  .progress-meta { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; }
  progress { width: 100%; height: 5px; border: 0; display: block; border-radius: 10px; overflow: hidden; color: var(--accent); background: #eeeee8; }
  progress::-webkit-progress-bar { background: #eeeee8; }
  progress::-webkit-progress-value { background: var(--accent); transition: width 180ms; }
  progress::-moz-progress-bar { background: var(--accent); }
  .stage-heading { margin: 30px 0 23px; }
  .stage-heading .eyebrow { font-size: 0.75rem; }
  .stage-heading h3 { font-size: clamp(1.5rem, 2.3vw, 1.875rem); letter-spacing: -.025em; margin: 8px 0 10px; max-width: 800px; }
  .stage-heading p { font-size: 0.9375rem; }
  .question-title:focus, .result-title:focus { outline: none; }
  .options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .option { width: 100%; display: flex; text-align: left; align-items: flex-start; gap: 13px; padding: 21px 18px; border: 1px solid #dddfd6; border-radius: 16px; background: var(--white); color: var(--ink); transition: border-color 180ms, background 180ms, box-shadow 180ms; line-height: 1.45; }
  @media (hover: hover) and (pointer: fine) {
    .option:not([aria-pressed="true"]):not([aria-disabled="true"]):hover { border-color: #c1c8bd; background: #fcfdfb; }
  }
  .option:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
  .option[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-light); box-shadow: inset 0 0 0 .5px var(--orange); }
  .option[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
  .icon { width: 23px; height: 23px; flex: 0 0 23px; color: var(--green); stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .option-copy { flex: 1; }
  .option-copy strong { display: block; font-size: 1rem; font-weight: 600; }
  .option-copy small { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 7px; line-height: 1.55; }
  .selection-mark { border: 1px solid #cfd4ca; width: 21px; height: 21px; flex: 0 0 21px; margin-top: 1px; border-radius: 6px; color: transparent; display: grid; place-items: center; font-size: 0.8125rem; transition: border-color 180ms, background-color 180ms, color 180ms; }
  .single .selection-mark { border-radius: 50%; }
  [aria-pressed="true"] .selection-mark { background: var(--orange); border-color: var(--orange); color: white; }
  .selection-status { margin-top: 18px; min-height: 24px; font-size: 0.875rem; color: var(--muted); }
  .actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 24px; padding-block: 23px; border-top: 1px solid var(--line); }
  .actions-note { font-size: 0.8125rem; }
  .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .field { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; }
  .field input { width: 100%; min-width: 0; border: 1px solid #cfd4ca; border-radius: 10px; padding: 12px 14px; min-height: 50px; font-size: 1rem; color: var(--ink); background: #fff; font-weight: 400; }
  .field input:focus { border-color: var(--green); }
  fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
  legend { font-size: 1rem; font-weight: 600; margin-bottom: 12px; padding: 0; }
  .contact-options { display: flex; flex-wrap: wrap; gap: 10px; }
  .check-label { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; min-height: 48px; font-size: 0.875rem; cursor: pointer; }
  input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--orange); margin: 0; }
  .consent-box { margin-top: 26px; padding: 22px; background: var(--paper); border-radius: 16px; border: 1px solid var(--line); }
  .consent-box .check-label { padding: 0; align-items: flex-start; border: 0; min-height: 0; }
  .consent-box input { margin-top: 3px; }
  .consent-box p { font-size: 0.8125rem; margin: 12px 0 0 29px; }
  .privacy-link { display: inline-block; padding-block: 12px; font-size: 0.875rem; }
  .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .error { color: #a02f23; font-size: 0.875rem; margin-top: 12px; }
  .field-error { color: #a02f23; font-size: 0.8125rem; font-weight: 400; }
  input[aria-invalid="true"] { border-color: #a02f23; }
  .result { padding-bottom: 36px; }
  .result-icon { width: 52px; height: 52px; display: grid; place-items: center; background: #edf3eb; color: var(--green); border-radius: 50%; font-size: 1.5rem; margin: 0 0 22px; }
  .result h3 { font-size: 2.125rem; margin: 10px 0 24px; letter-spacing: -.03em; }
  .result dl { margin: 0 0 24px; }
  .result dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .result dl > .result-priority { padding: 24px; background: var(--orange-light); border: 1px solid #eed8bc; border-radius: 16px; }
  .result dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
  .result dd { margin: 0; font-size: 1.125rem; font-weight: 500; }
  .result dd ul { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
  .result dd li { font-size: 0.875rem; background: var(--paper); padding: 6px 12px; border-radius: 8px; }
  .result > p { max-width: 740px; margin-top: 16px; }
  .result .result-disclaimer { font-size: 0.875rem; padding: 18px; background: var(--paper); border-radius: 12px; }
  .result .button { margin-top: 24px; }
  .privacy-page { max-width: 800px; padding-block: 56px; }
  .privacy-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 16px 0 24px; letter-spacing: -.03em; }
  .privacy-page h2 { font-size: 1.3125rem; margin: 28px 0 10px; }
  .privacy-page p + p { margin-top: 12px; }
}
@layer responsive {
  @media (min-width: 801px) { .hero { padding-top: 34px; } }
  @media (min-width: 1600px) { .hero { padding-block: 46px 76px; } }
  @media (max-width: 1100px) { .hero { gap: 32px; grid-template-columns: 1.15fr 1fr; } .hero h1 { font-size: 2.125rem; } .photo-caption { margin-inline: 12px; padding: 19px; } .steps li { padding: 24px 20px; gap: 12px; } }
  @media (max-width: 800px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px; gap: 30px; }
    .hero-copy { max-width: 660px; }
    .hero h1 { font-size: clamp(1.9375rem, calc(1.375rem + 2.1vw), 2.375rem); }
    .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
    .photo-window { aspect-ratio: 985 / 750; }
    .steps li { display: block; padding: 22px 18px; }
    .step-number { display: block; margin-bottom: 9px; }
    .questionnaire { padding: 28px 24px 0; }
    .option { padding: 18px 14px; gap: 10px; }
    .site-footer { flex-direction: column; gap: 6px; }
    .site-footer a { align-self: flex-start; }
  }
  @media (max-width: 600px) {
    .container { width: calc(100% - 40px); }
    .header-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px 10px; padding-block: 19px 15px; }
    .union-brand strong { font-size: 1.125rem; }
    .union-brand span { font-size: 0.75rem; letter-spacing: .015em; }
    .partner-brand { grid-column: 2; grid-row: 1; }
    .partner-brand strong { font-size: 1.75rem; }
    .partner-brand > span { font-size: 0.75rem; letter-spacing: 0; text-align: right; }
    .convenio-pill { grid-row: 2; grid-column: 1 / -1; justify-self: center; font-size: 0.75rem; padding: 5px 14px; }
    .hero { padding-block: 32px 38px; }
    .eyebrow { font-size: 0.75rem; letter-spacing: .09em; }
    .hero h1 { margin-top: 16px; line-height: 1.14; }
    .hero-description { font-size: 1rem; line-height: 1.65; }
    .microbenefits { font-size: 0.8125rem; gap: 8px 16px; margin: 23px 0; }
    .hero-cta { width: 100%; }
    .cta-note { font-size: 0.8125rem; text-align: center; margin-inline: auto; }
    .hero-visual { padding-bottom: 0; }
    .photo-window { aspect-ratio: 985 / 880; border-radius: 20px; }
    .photo-caption { margin: -100px 12px 0; padding: 18px; gap: 9px; }
    .photo-caption strong { font-size: 1rem; }
    .photo-caption p { font-size: 0.8125rem; }
    .caption-mark { font-size: 1.25rem; }
    .steps { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
    .steps li { display: flex; gap: 18px; padding: 22px; }
    .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
    .steps-section { margin-bottom: 38px; }
    .roadmap-section { padding-block: 38px; }
    .section-intro { text-align: left; margin-bottom: 24px; }
    .section-intro h2 { font-size: 1.8125rem; }
    .section-intro > p:last-child { font-size: 0.9375rem; }
    .desktop-break { display: none; }
    .preview-note { font-size: 0.75rem; }
    .questionnaire { padding: 24px 18px 0; border-radius: 20px; }
    .stage-heading { margin: 25px 0 20px; }
    .stage-heading h3 { font-size: 1.5625rem; }
    .options, .fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .option { padding: 10px 12px; gap: 8px; min-height: 60px; }
    .option-copy strong { font-size: 0.9375rem; }
    .option-copy small { font-size: 0.875rem; margin-top: 3px; line-height: 1.4; }
    .actions { flex-wrap: wrap; padding-block: 18px; }
    .actions .button { min-height: 50px; padding-inline: 18px; }
    .actions > .primary { flex: 1; }
    .actions-note { flex-basis: 100%; }
    .questionnaire { --safe-area-bottom: env(safe-area-inset-bottom, 0px); --actions-height: 124px; }
    .can-continue .stage-content { padding-bottom: var(--actions-height); }
    /* The content reserves the measured bar height; its negative margin avoids counting that space twice. */
    .actions.is-ready { position: sticky; bottom: 0; z-index: 5; background: #fffffff5; backdrop-filter: blur(12px); margin-top: calc(24px - var(--actions-height)); margin-inline: -18px; padding-inline: 18px; padding-bottom: calc(18px + var(--safe-area-bottom)); border-radius: 0 0 19px 19px; }
    .questionnaire { scroll-margin-top: 16px; }
    .progress-header { position: sticky; top: 0; z-index: 4; background: #fff; margin: -8px -8px 0; padding: 8px 8px 16px; border-radius: 12px 12px 0 0; }
    .option, .field, .check-label, .privacy-link { scroll-margin-bottom: calc(var(--actions-height) + 16px); scroll-margin-top: 85px; }
    .consent-box { padding: 18px; }
    .contact-options { flex-direction: column; }
    .result { padding-bottom: 26px; }
    .result h3 { font-size: 1.875rem; }
    .result .result-priority { padding: 18px; }
    .result .button { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
}
