/* Access and current-state surfaces. Loaded after the legacy styles and
   rediseno-base.css; all photography and fonts are served by RAV itself. */
.rav-pilot-page { margin: 0; min-width: 0; min-height: 100svh; background: #000; color: #fff; font-family: var(--rav-font, Inter, system-ui, sans-serif); }
.rav-pilot-page *, .rav-access-layout *, .current-state-page * { box-sizing: border-box; }
.rav-pilot-layout, .auth-email-layout.rav-access-layout { width: 100%; max-width: 90rem; margin-inline: auto; min-height: 100svh; background: #000; }
.rav-access-hero, .auth-email-layout .auth-story.rav-access-hero { display: flex; flex-direction: column; position: relative; isolation: isolate; min-width: 0; min-height: 33rem; padding: max(1.75rem, env(safe-area-inset-top)) 1.75rem 1rem; border: 0; background: #000; overflow: hidden; }
.rav-access-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: url('/rediseno-assets/sena.jpg') center 23% / cover no-repeat; }
.rav-access-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #0009 0%, #0000 32%, #0004 59%, #000 100%); }
.rav-access-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.rav-access-top .rav-brand-lockup { display: inline-flex; align-items: center; gap: .5rem; flex: none; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 800; font-size: 1.375rem; letter-spacing: .02em; line-height: 1; }
.rav-access-top .rav-brand-lockup img { width: 2.125rem; height: 1.875rem; object-fit: contain; mix-blend-mode: screen; }
.rav-access-badge { max-width: 100%; border: 1px solid #ffffff70; border-radius: 999px; padding: .45rem .65rem; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; text-align: center; background: #0005; }
.rav-access-hero-copy, .auth-email-layout .auth-story .intro.rav-access-hero-copy { margin-top: auto; padding-top: 12rem; min-width: 0; }
.rav-access-hero-copy h1, .auth-email-layout .auth-story .rav-access-hero-copy h1 { color: #fff; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 900; font-size: clamp(2.25rem, 11.3vw, 2.75rem); line-height: .99; letter-spacing: -.025em; text-transform: uppercase; margin: 0; overflow-wrap: normal; }
.rav-access-hero-copy p, .auth-email-layout .auth-story .rav-access-hero-copy p { color: var(--rav-text-2, #c9c9d1); font-size: 1rem; line-height: 1.45; max-width: 32rem; margin: .9rem 0 0; }
.auth-email-layout .auth-story .rav-access-hero-copy .eyebrow { color: var(--rav-text-2, #c9c9d1); margin-bottom: .75rem; font-size: .6875rem; line-height: 1.5; }
.rav-pilot-panel { min-width: 0; padding: 1rem 1.75rem max(2rem, env(safe-area-inset-bottom)); }
.rav-pilot-panel form { display: grid; gap: .75rem; }
.rav-pilot-panel label { color: var(--rav-text-3, #a3a3ad); font-size: .75rem; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; font-weight: 600; }
.rav-pilot-panel input { display: block; min-width: 0; width: 100%; min-height: 3.5rem; padding: .85rem 1rem; border: 1px solid var(--rav-border-strong, #34343a); border-radius: .875rem; background: #0e0e10; color: #fff; font: inherit; font-size: 1rem; }
.rav-pilot-panel button { display: flex; align-items: center; justify-content: center; gap: .8rem; width: 100%; min-height: 3.5rem; border: 1px solid #fff; border-radius: 1rem; padding: 1rem; background: #fff; color: #000; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-size: 1rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; box-shadow: 0 0 30px #ffc40020; cursor: pointer; }
.rav-pilot-panel small { display: block; margin-top: 1.4rem; color: var(--rav-text-4, #8d8d97); font-size: .75rem; line-height: 1.5; text-align: center; }
.rav-pilot-panel .error { border: 1px solid var(--rav-border-strong, #34343a); border-radius: .75rem; padding: .85rem; color: #fff; line-height: 1.5; }
.rav-access-skip { position: fixed; left: 1rem; top: -6rem; z-index: 20; padding: .8rem 1rem; background: #fff; color: #000; }
.rav-access-skip:focus { top: 1rem; }
.rav-pilot-page :is(a, button, input):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.auth-email-layout.rav-access-layout { grid-template-columns: minmax(0, 1fr); }
.auth-email-layout .auth-story.rav-access-hero { min-height: 25rem; }
.auth-email-layout .auth-story .intro.rav-access-hero-copy { padding-top: 8rem; }
.auth-email-layout .auth-panel { padding: 1.25rem 1.75rem 2.5rem; background: #000; min-width: 0; }
.auth-email-layout .auth-form { max-width: 30rem; }
.auth-email-layout .auth-form h2 { color: #fff; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 800; font-size: 1.625rem; letter-spacing: -.02em; line-height: 1.2; }
.auth-email-layout .auth-form .eyebrow { color: var(--rav-text-3, #a3a3ad); }
.auth-email-layout .auth-form .intro-copy { color: var(--rav-text-2, #c9c9d1); font-size: .9375rem; line-height: 1.5; margin-bottom: 1.5rem; }
.auth-email-layout .auth-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: .3rem; gap: .3rem; border: 1px solid var(--rav-border, #222226); border-radius: .875rem; background: var(--rav-surface-2, #121215); }
.auth-email-layout .auth-tabs button { min-width: 0; min-height: 2.75rem; padding: .65rem .5rem; border: 1px solid transparent; border-radius: .6rem; background: transparent; color: var(--rav-text-2, #c9c9d1); font-size: .875rem; font-weight: 600; }
.auth-email-layout .auth-tabs button[aria-pressed="true"] { border-color: #fff; background: #fff; color: #000; }
:is(.auth-email-layout, .account-security, .account-action-page) .field > :is(span, label) { color: var(--rav-text-2, #c9c9d1); }
:is(.auth-email-layout, .account-security, .account-action-page) .field input { background: var(--rav-surface-2, #121215); border-color: var(--rav-border-strong, #34343a); color: #fff; border-radius: .875rem; min-height: 3.5rem; font-size: 1rem; }
:is(.auth-email-layout, .account-security, .account-action-page) .field input::placeholder { color: var(--rav-text-3, #a3a3ad); }
:is(.auth-email-layout, .account-security, .account-action-page) :is(.field small, .field-help, .auth-help, .auth-password-match, .auth-pilot-note) { color: var(--rav-text-3, #a3a3ad); }
:is(.auth-email-layout, .account-security, .account-action-page) .password-toggle { min-height: 3.5rem; border-color: var(--rav-border-strong, #34343a); border-radius: .875rem; background: transparent; color: #fff; }
.auth-email-layout .check { border-color: var(--rav-border, #222226); background: var(--rav-surface, #0b0b0d); color: var(--rav-text-2, #c9c9d1); }
.auth-email-layout .check input { accent-color: #fff; }
:is(.auth-email-layout, .account-security, .account-action-page) .btn { min-height: 2.75rem; border-color: var(--rav-border-strong, #34343a); background: transparent; color: #fff; }
:is(.auth-email-layout, .account-security, .account-action-page) .btn.primary, .current-state-page .btn.primary { min-height: 3.5rem; background: #fff; border-color: #fff; color: #000; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-size: .9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 1rem; box-shadow: 0 0 30px #ffc40020; }
:is(.auth-email-layout, .account-security, .account-action-page) .btn.primary:hover:not(:disabled), .current-state-page .btn.primary:hover:not(:disabled) { background: #ededed; }
:is(.auth-email-layout, .account-security, .account-action-page) :is(.auth-service-note, .auth-feedback, .auth-state-pill) { background: var(--rav-surface-2, #121215); border-color: var(--rav-border-strong, #34343a); color: var(--rav-text-2, #c9c9d1); }
:is(.auth-email-layout, .account-security, .account-action-page) .form-error { color: #fff; }
:is(.auth-email-layout, .account-security, .account-action-page) :is(a, button, input):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.auth-security-card, .account-action-card { background: var(--rav-surface, #0b0b0d); border: 1px solid var(--rav-border, #222226); border-radius: 1.375rem; box-shadow: none; }
.account-security .page-intro h1, .auth-security-card h2, .account-action-card h1 { color: #fff; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 800; }
.account-security .page-intro .eyebrow, .account-action-card > .eyebrow { color: var(--rav-text-3, #a3a3ad); }
.account-security .question-toolbar .link, .auth-email-state strong { color: #fff; }
.auth-security-card > p, .account-action-card > p:not(.eyebrow) { color: var(--rav-text-2, #c9c9d1); }
.auth-security-card form { border-color: var(--rav-border, #222226); }
.account-action-page { min-height: 100svh; background: #000; }
.account-action-card h1 { text-transform: uppercase; letter-spacing: -.025em; overflow-wrap: normal; }

/* Keep real radios and full explanation text; the label is the touch target. */
.current-state-page, .current-state-card { --state-tint: #fff; min-width: 0; }
.current-state-page { max-width: 45rem; }
.current-state-heading { display: grid; grid-template-columns: 4rem minmax(0,1fr); gap: 1.1rem; align-items: center; border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; }
.current-state-heading .eyebrow { display: block; color: var(--rav-text-3, #a3a3ad); font-size: .6875rem; letter-spacing: .16em; line-height: 1.5; margin-bottom: .45rem; }
.current-state-heading h1 { margin: 0; color: #fff; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 900; font-size: 1.625rem; line-height: 1.06; text-transform: uppercase; letter-spacing: -.02em; overflow-wrap: normal; }
.current-state-signal { display: inline-flex; flex-direction: row; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.current-state-heading .current-state-signal { width: 4rem; }
.current-state-heading .rav-state-mark { width: 4rem; height: auto; overflow: visible; }
.current-state-intro { margin-top: 1rem; color: var(--rav-text-2, #c9c9d1); line-height: 1.5; font-size: .9375rem; }
.current-state-options { margin-top: 1.25rem; }
.current-state-options .current-state-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.current-state-page [data-current-color="rojo"], .current-state-card[data-current-color="rojo"] { --state-tint: #ff2d55; --state-surface: #18050a; }
.current-state-page [data-current-color="amarillo"], .current-state-card[data-current-color="amarillo"] { --state-tint: #ffc400; --state-surface: #171304; }
.current-state-page [data-current-color="verde"], .current-state-card[data-current-color="verde"] { --state-tint: #19e68c; --state-surface: #04140d; }
.current-state-option { position: relative; display: flex; gap: .875rem; padding: 1rem; margin-bottom: .65rem; border: 2px solid var(--rav-border, #222226); border-radius: 1.125rem; background: var(--rav-surface, #0b0b0d); color: #fff; box-shadow: none; }
.current-state-option input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.current-state-option > .current-state-light { width: .875rem; height: .875rem; min-width: .875rem; margin-top: .35rem; border: 0; background: var(--state-tint); box-shadow: none; overflow: visible; }
.current-state-option > .current-state-light::after { display: none; }
.current-state-option-copy { display: block; line-height: 1.5; font-size: .875rem; }
.current-state-option-copy strong { display: block; color: #fff; font-family: var(--rav-heading-font, Montserrat, sans-serif); font-size: 1.0625rem; font-weight: 800; line-height: 1.4; margin-bottom: .2rem; }
.current-state-option-copy > span { color: var(--rav-text-2, #c9c9d1); }
.current-state-option-copy > span:last-child { color: var(--rav-text-2, #c9c9d1); }
.current-state-option-copy > span + span::before { content: ' '; }
.current-state-option:has(input:checked) { border-color: var(--state-tint); background: var(--state-surface); box-shadow: 0 0 22px color-mix(in srgb, var(--state-tint) 12%, transparent); }
.current-state-option:has(input:checked) .current-state-light { box-shadow: 0 0 12px color-mix(in srgb, var(--state-tint) 65%, transparent); }
.current-state-option:has(input:checked) .current-state-option-copy > span:last-child { color: var(--rav-text-2, #c9c9d1); }
.current-state-option:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 4px; }
.current-state-page :is(.current-state-consent, .current-state-change-note) { color: var(--rav-text-4, #8d8d97); font-size: .75rem; line-height: 1.6; padding: 0; margin-top: .75rem; }
.current-state-save { border: 0; background: none; border-radius: 0; padding: 1.5rem 0 0; }
.current-state-save [role="status"] { color: var(--rav-text-2, #c9c9d1); font-size: .8125rem; margin-bottom: .8rem; }
.current-state-save .form-error { color: #fff; }
.current-state-actions { flex-direction: column; }
.current-state-actions .btn { width: 100%; overflow-wrap: normal; }
.current-state-page .btn.ghost { color: #fff; border-color: var(--rav-border-strong, #34343a); background: transparent; }
.current-state-page :is(button, a, summary):focus-visible, .current-state-card a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.current-state-reading { border-color: var(--rav-border, #222226); }
.current-state-reading summary { color: var(--rav-text-2, #c9c9d1); }
.current-state-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .75rem; align-items: center; padding: 1rem; border: 1px solid var(--rav-border, #222226); border-radius: 1rem; background: var(--rav-surface, #0b0b0d); box-shadow: none; }
.current-state-card-heading { gap: .75rem; }
.current-state-card .current-state-signal { width: 2.5rem; }
.current-state-card .rav-state-mark { width: 2.5rem; height: auto; }
.current-state-card h2 { color: var(--rav-text-3, #a3a3ad); font-family: var(--rav-font, Inter, sans-serif); font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }
.current-state-card-color { color: var(--state-tint); font-family: var(--rav-heading-font, Montserrat, sans-serif); font-weight: 800; font-size: 1.25rem; }
.current-state-card p { color: var(--rav-text-2, #c9c9d1); font-size: .8125rem; line-height: 1.45; margin-top: .2rem; }
.current-state-card .current-state-card-note { color: var(--rav-text-3, #a3a3ad); font-size: .8125rem; }
.current-state-card .btn { color: var(--rav-text-2, #c9c9d1); border: 0; border-radius: .5rem; background: transparent; margin: 0; padding: .5rem 0 .5rem .35rem; font-size: .8125rem; font-weight: 500; min-height: 2.75rem; }
@media (max-width: 640px) {
  html[data-text-size="extra"] .current-state-heading { grid-template-columns: minmax(0,1fr); }
  html[data-text-size="extra"] .current-state-heading .rav-state-mark, html[data-text-size="extra"] .current-state-heading .current-state-signal { width: 3rem; }
  html[data-text-size="extra"] .current-state-heading h1 { font-size: 1.4rem; }
  html[data-text-size="extra"] .current-state-card { grid-template-columns: minmax(0,1fr); }
  html[data-text-size="extra"] .current-state-card-edit { justify-self: start; padding-inline: 0; }
}
@media (min-width: 768px) {
  .current-state-heading { grid-template-columns: 6rem minmax(0,1fr); gap: 1.5rem; }
  .current-state-heading .current-state-signal, .current-state-heading .rav-state-mark { width: 6rem; }
  .current-state-heading h1 { font-size: 2rem; }
  .rav-pilot-layout, .auth-email-layout.rav-access-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
  .rav-pilot-page .rav-access-hero, .auth-email-layout .auth-story.rav-access-hero { min-height: 100svh; padding: 2.5rem; }
  .rav-pilot-panel, .auth-email-layout .auth-panel { padding: 2.5rem; align-self: center; }
  .rav-pilot-panel { width: 100%; max-width: 34rem; margin-inline: auto; }
  .rav-access-hero-copy, .auth-email-layout .auth-story .intro.rav-access-hero-copy { padding-top: 16rem; padding-bottom: 2rem; }
  .rav-access-hero-copy h1, .auth-email-layout .auth-story .rav-access-hero-copy h1 { font-size: clamp(2.25rem,4.6vw,4.25rem); }
  .rav-access-top { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .rav-access-hero, .auth-email-layout .auth-story.rav-access-hero, .rav-pilot-panel, .auth-email-layout .auth-panel { padding-inline: 1.1rem; }
  .rav-access-badge { font-size: .625rem; letter-spacing: .08em; }
  .current-state-heading { grid-template-columns: 2.75rem minmax(0,1fr); gap: .75rem; padding: 0; }
  .current-state-heading .current-state-signal, .current-state-heading .rav-state-mark { width: 2.75rem; margin-bottom: 0; }
  .current-state-heading h1 { font-size: 1.4rem; }
  .current-state-option { padding: .85rem .75rem; gap: .7rem; }
  html[data-text-size="extra"] .current-state-heading { grid-template-columns: minmax(0,1fr); }
  html[data-text-size="extra"] .current-state-heading h1 { font-size: 1.4rem; }
  html[data-text-size="extra"] .current-state-option { display: flex; }
  html[data-text-size="extra"] .current-state-option > .current-state-light { margin-top: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rav-pilot-page *, .rav-access-layout *, .current-state-page *, .current-state-card *, .account-action-page * { animation: none; transition: none; }
}
@media (forced-colors: active) {
  .current-state-option input { position: static; width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; opacity: 1; clip-path: none; }
  .current-state-option > .current-state-light { display: none; }
  .current-state-option:has(input:checked) { outline: 2px solid Highlight; box-shadow: none; }
  .rav-pilot-panel button, :is(.auth-email-layout, .account-security, .account-action-page) .btn.primary, .current-state-page .btn.primary { border: 1px solid ButtonText; box-shadow: none; }
}
