/* Approved full-screen onboarding: GT America, Limestone and Solar Orange. */
.application {
  --ink: #0e0e0e;
  --muted: #716d67;
  --line: #d4cfc7;
  --surface: #eae6df;
  --form-width: 610px;
  position: fixed;
  inset: var(--app-top, 0px) 0 auto;
  width: 100%;
  max-width: none;
  height: var(--app-height, 100dvh);
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--limestone);
  color: var(--ink);
  overflow: hidden;
  /* Only .app-scroll should scroll. Hidden overflow still lets WebKit move
     this outer dialog when focusing a field, which can hide the close button. */
  overflow: clip;
  font: 400 16px/1.5 'GT America', Arial, sans-serif;
}
.application::backdrop { background: var(--limestone); }
.application[open] { display: block; animation: app-open .24s ease-out; }
body.application-open { overflow: hidden; }
.application button, .application input, .application textarea, .application select { font: inherit; }
.application button { cursor: pointer; }
.application button:active { transform: translateY(1px); }
.application :focus-visible { outline: 2px solid var(--reading-orange); outline-offset: 5px; }
.application [hidden] { display: none !important; }
.application .app-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.app-workspace { height: 100%; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.app-top { padding: 28px 52px 0; }
.app-top-line { display: flex; align-items: center; gap: 36px; min-height: 44px; padding-bottom: 26px; }
.app-brand { width: 104px; height: auto; }
.app-event { font: 500 10px/1.6 'GT America Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.app-event-divider { margin: 0 10px; }
.app-count { margin-left: auto; color: var(--muted); font: 500 12px/1.5 'GT America Mono', monospace; white-space: nowrap; }
.app-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; margin-right: -10px; border: 0; border-radius: 50%; background: transparent; transition: background .16s; }
.app-close:hover { background: var(--surface); }
.app-progress { height: 1px; background: var(--line); }
.app-progress span { display: block; width: 100%; height: 2px; margin-top: -1px; background: var(--orange); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform .28s ease; }
.app-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6bfb4 transparent; display: flex; flex-direction: column; padding: 48px 52px 60px; }
.app-stage { flex: 0 0 auto; width: 100%; max-width: var(--form-width); margin: auto; }
.app-content { width: 100%; margin: 0; }
.app-content.is-entering { animation: app-step .22s cubic-bezier(.2, .75, .3, 1); }
.app-question { text-align: center; margin-bottom: 34px; }
.app-eyebrow { font: 500 10px/1.5 'GT America Mono', monospace; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.app-title { font: 500 32px/1.2 'GT America Extended', sans-serif; letter-spacing: -.045em; text-wrap: balance; margin: 0; }
.app-title:focus { outline: none; }
.app-title--intro { font-size: 40px; }
.app-title--intro span { color: var(--muted); }
.app-description { margin: 16px auto 0; max-width: 560px; font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.app-copy { font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.app-copy + .app-copy { margin-top: 16px; }
.app-lead { color: var(--ink); font-size: 16px; }
.app-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; color: var(--muted); }
.app-options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.app-option { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 54px; padding: 14px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--surface); font-size: 15px; line-height: 1.4; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.app-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.app-option-mark { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 4px; }
.app-option-mark .app-icon:first-child { opacity: .5; }
.app-option-mark .app-icon:last-child { display: none; width: 17px; height: 17px; filter: invert(1); }
.app-option input[type='radio'] + .app-option-mark { border: 1px solid #a9a298; border-radius: 50%; width: 19px; height: 19px; }
.app-option input[type='radio'] + .app-option-mark .app-icon:first-child { display: none; }
.app-option:has(input:checked) { background: var(--salt); border-color: var(--orange); }
.app-option input:checked + .app-option-mark { background: var(--orange); border-color: var(--orange); }
.app-option input:checked + .app-option-mark .app-icon:first-child { display: none; }
.app-option input:checked + .app-option-mark .app-icon:last-child { display: block; }
.app-option:has(input:focus-visible) { outline: 2px solid var(--reading-orange); outline-offset: 4px; }
.app-options--grid { grid-template-columns: 1fr 1fr; }
.app-choice-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.application[data-layout='motivation'] { --form-width: 880px; }
.application[data-layout='motivation'] .app-question { margin-bottom: 44px; }
.application[data-layout='motivation'] .app-title { font-size: 42px; }
.application[data-layout='motivation'] .app-description { font-size: 19px; }
.app-options--chips { gap: 20px; }
.app-options--chips .app-option { padding: 19px 24px; min-width: 260px; min-height: 68px; font-size: 20px; border-radius: 15px; gap: 20px; }
.app-options--chips .app-option-mark { width: 25px; height: 25px; }
.app-options--chips .app-option-mark .app-icon:first-child { width: 25px; height: 25px; }
.app-options--chips .app-option-mark .app-icon:last-child { width: 19px; height: 19px; }
.app-fields { display: grid; gap: 20px; }
.app-field { display: block; font-size: 13px; line-height: 1.5; }
.app-field > span { display: block; margin-bottom: 8px; }
.app-field em { margin-left: 6px; font-style: normal; color: var(--muted); font-size: 11px; }
.app-input, .app-select, .app-textarea { width: 100%; min-height: 54px; border: 1px solid transparent; border-radius: 8px; padding: 15px 16px; background: var(--surface); color: var(--ink); transition: border-color .16s, background .16s; }
.app-select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url('assets/icons/chevron-down.svg'); background-size: 16px; background-position: right 16px center; background-repeat: no-repeat; cursor: pointer; }
.app-input::placeholder, .app-textarea::placeholder { color: #79736b; }
.application .app-input:focus, .application .app-select:focus, .application .app-textarea:focus { outline: 2px solid var(--muted); outline-offset: 2px; border-color: var(--muted); background-color: var(--salt); }
.application .app-input[aria-invalid='true'], .application .app-select[aria-invalid='true'], .application .app-textarea[aria-invalid='true'] { border-color: #a52f0b; }
.app-textarea { min-height: 166px; resize: vertical; line-height: 1.65; }
.app-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-help { margin-top: 12px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.app-consents { display: grid; gap: 14px; border: 0; margin: 22px 0 0; padding: 0; }
.app-consent { display: flex; align-items: start; gap: 10px; font-size: 12px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.app-consent input { margin: 2px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--reading-orange); }
.app-conditional { max-width: 560px; margin: 22px auto 0; }
.app-otp { display: block; max-width: 340px; font: 500 28px/1.5 'GT America Mono', monospace !important; letter-spacing: .36em; }
.app-text-actions { display: flex; gap: 24px; margin-top: 18px; }
.app-text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 0; padding: 4px 0; background: transparent; font-size: 12px !important; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.app-text-button .app-icon { width: 14px; height: 14px; }
.app-prototype-note { margin-top: 22px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.app-credentials { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin: 28px 0; font: 500 17px/1.5 'GT America Extended', sans-serif; }
.app-team-rule { height: 1px; background: var(--line); margin: 28px 0; }
.app-section-label { margin: 26px 0 12px; font-weight: 400; font-size: 14px; line-height: 1.5; }
.app-commit-copy { font-size: 13px; line-height: 1.7; color: var(--muted); }
.app-commit-copy + .app-commit-copy { margin-top: 10px; }
.app-footer { margin-top: 38px; }
.application[data-layout='motivation'] .app-footer { margin-top: 96px; }
.app-footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.app-back { display: inline-flex; align-items: center; gap: 17px; min-height: 52px; border: 0; padding: 12px 0; background: transparent; color: var(--ink); font-size: 15px !important; transition: opacity .16s; }
.app-back:hover { opacity: .6; }
.app-next-group { margin-left: auto; }
.app-next { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 52px; min-width: 200px; padding: 14px 22px; border: 0; border-radius: 5px; color: var(--ink); background: var(--orange); font-size: 15px !important; transition: background .16s; }
.app-next .app-icon { transition: transform .16s; }
.app-next:hover { background: #ec6229; }
.app-next:hover .app-icon { transform: translateX(3px); }
.application[data-layout='motivation'] .app-next { min-width: 256px; font-size: 19px !important; }
.application[data-layout='motivation'] .app-back { font-size: 19px !important; }
.application[data-layout='motivation'] .app-key-hint { font-size: 13px; }
.app-key-hint { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.app-key-hint .app-icon { width: 13px; height: 13px; opacity: .55; }
.app-error { margin-bottom: 14px; font-size: 12px; line-height: 1.5; color: #a52f0b; }
.app-error:empty, .app-status:empty { display: none; }
.app-success-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 24px; border-radius: 50%; background: var(--orange); }
.app-success-mark .app-icon { filter: invert(1); }
.app-referral { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.app-referral h3 { margin: 0 0 10px; font-size: 18px; font-weight: 400; line-height: 1.4; }
.app-referral-link { display: flex; align-items: center; gap: 8px; padding: 6px; margin: 16px 0 8px; background: var(--surface); border-radius: 8px; }
.app-referral-link input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px; }
.app-copy-link { flex: 0 0 auto; padding: 12px 16px; border: 0; border-radius: 5px; background: var(--ink); color: var(--salt); font-size: 12px !important; }
.app-referral-dots { display: flex; gap: 6px; margin: 24px 0 12px; }
.app-referral-dots span { flex: 1; height: 3px; background: var(--line); }
.app-status { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--reading-orange); }
.apply-button:not(:disabled) { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .app-option:hover { background: #e1dbd2; }
  .app-option:has(input:checked):hover { background: #fffaf5; }
  .app-input:hover, .app-select:hover, .app-textarea:hover { border-color: #bcb4a8; }
}
@keyframes app-open { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes app-step { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .app-top { padding: 22px 32px 0; }
  .app-scroll { padding: 40px 32px; }
  .app-top-line { gap: 24px; }
  .app-options--chips .app-option { min-width: 0; padding: 16px 18px; font-size: 15px; gap: 12px; }
  .app-choice-row { gap: 12px; }
  .app-options--chips { gap: 12px; }
}
@media (max-width: 600px) {
  .app-top { padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .app-top-line { gap: 14px; padding-bottom: 14px; }
  .app-brand { width: 70px; }
  .app-event { display: flex; flex-direction: column; font-size: 8px; line-height: 1.65; letter-spacing: .04em; white-space: nowrap; }
  .app-event-divider { display: none; }
  .app-count { font-size: 10px; }
  .app-close { margin-left: -7px; }
  .app-close .app-icon { width: 20px; height: 20px; }
  .app-scroll { padding: 30px max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); scroll-padding: 30px 0 110px; }
  .app-stage { padding: 0; }
  .app-question, .application[data-layout='motivation'] .app-question { margin-bottom: 28px; }
  .app-title, .application[data-layout='motivation'] .app-title { font-size: 25px; line-height: 1.25; }
  .app-title--intro { font-size: 30px; }
  .app-description, .application[data-layout='motivation'] .app-description { font-size: 14px; line-height: 1.6; margin-top: 13px; }
  .app-copy { font-size: 14px; }
  .app-lead { font-size: 15px; }
  .app-options--chips { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-choice-row { display: contents; }
  .app-options--chips .app-option { min-height: 60px; padding: 12px; gap: 9px; border-radius: 10px; font-size: 13px; }
  .app-options--chips .app-choice-row:last-child .app-option:last-child { grid-column: 1 / -1; justify-self: center; min-width: 160px; min-height: 50px; }
  .app-option-mark, .app-options--chips .app-option-mark { width: 18px; height: 18px; }
  .app-option-mark .app-icon, .app-options--chips .app-option-mark .app-icon:first-child { width: 18px; height: 18px; }
  .app-option-mark .app-icon:last-child, .app-options--chips .app-option-mark .app-icon:last-child { width: 14px; height: 14px; }
  .app-options--grid { gap: 8px; }
  .app-option { padding: 13px; min-height: 52px; font-size: 13px; gap: 10px; }
  .app-field-row { grid-template-columns: 1fr; gap: 20px; }
  .app-input, .app-select, .app-textarea { font-size: 16px !important; }
  .app-footer, .application[data-layout='motivation'] .app-footer { position: static; background: var(--limestone); margin-top: 26px; padding: 18px 0 max(22px, env(safe-area-inset-bottom)); }
  .app-footer-row { align-items: center; gap: 14px; }
  .app-next, .application[data-layout='motivation'] .app-next { min-width: 150px; min-height: 50px; font-size: 13px !important; padding: 14px 17px; gap: 16px; }
  .app-next .app-icon { width: 20px; height: 20px; }
  .app-back, .application[data-layout='motivation'] .app-back { min-height: 50px; font-size: 13px !important; gap: 8px; }
  .app-key-hint { display: none; }
  .app-meta { font-size: 11px; gap: 12px; }
  .app-credentials { font-size: 14px; gap: 22px; }
  .app-success-mark { margin-bottom: 20px; }
}
@media (max-width: 360px) {
  .app-event { display: none; }
  .app-title, .application[data-layout='motivation'] .app-title { font-size: 23px; }
  .app-options--chips .app-option { font-size: 12px; padding: 10px; gap: 7px; }
  .app-next, .application[data-layout='motivation'] .app-next { min-width: 140px; padding: 14px; gap: 12px; }
}
@media (any-pointer: coarse) {
  /* Keep phone and tablet fields readable in landscape as well as portrait. */
  .app-input, .app-select, .app-textarea { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .application[open], .app-content.is-entering { animation: none; }
  .application * { transition: none !important; }
}

/* Editorial invitation, team and commitment pages. */
.application[data-step='commitment'] { --form-width: 1060px; }
.app-editorial { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
.app-photo { position: relative; margin: 0; align-self: stretch; min-height: 470px; overflow: hidden; background: #242722; }
.app-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.app-photo figcaption { position: absolute; inset: auto 0 0; padding: 48px 24px 22px; color: #fff; background: linear-gradient(transparent, #0009); font: 10px/1.5 'GT America Mono', monospace; letter-spacing: .07em; text-transform: uppercase; }
.app-photo--team img { object-position: 56% center; }
.app-editorial .app-question { text-align: left; margin-bottom: 24px; }
.app-editorial .app-title { text-wrap: initial; }
.app-editorial .app-copy { color: #55514c; }
.app-editorial .app-lead { color: var(--ink); }
.app-editorial .app-meta { justify-content: flex-start; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); }
.app-waitlist-confirmation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; font-size: 14px; }
.app-waitlist-confirmation .app-icon { width: 18px; height: 18px; }
.app-waitlist-confirmation span { margin-left: auto; color: #55514c; font-size: 12px; }
.app-editorial--commit { align-items: start; }
.app-editorial--commit .app-photo { min-height: 650px; }
.app-commit-copy { color: #45423d; font-size: 15px; line-height: 1.65; }
.app-section-label { font-size: 15px; font-weight: 500; }
.app-referral { position: relative; isolation: isolate; padding: 30px; border: 1px solid #c3c4bb; border-radius: 14px; background: linear-gradient(125deg,#f0eee4 10%,#dce7df 38%,#e7e1ef 62%,#ece5d3 85%); box-shadow: 0 12px 32px #3333220b, inset 0 1px #fff; }
.app-referral-heading { position: relative; padding: 0 76px 22px 0; border-bottom: 1px solid #7775; }
.app-referral .app-eyebrow { margin: 0 0 18px; font-size: 9px; color: #4e514c; }
.app-referral h3 { max-width: 360px; font: 500 26px/1.25 'GT America Extended',sans-serif; letter-spacing: -.04em; }
.app-referral-seal { position: absolute; top: 8px; right: 0; width: 64px; height: 64px; padding: 10px; border-radius: 50%; border: 1px solid #fff9; background: url('assets/images/ticket-foil.webp') center / cover; transform: rotate(-12deg); }
.app-referral .app-help, .app-referral .app-prototype-note { color: #4e514c; }
.app-referral-link { background: #ffffffb3; }
.app-referral-dots { gap: 8px; }
.app-referral-dots span { height: 6px; border: 1px solid #8d948c; border-radius: 2px; background: #ffffff80; }
.app-options--chips .app-choice-row { flex-wrap: wrap; }
.app-options--chips .app-option { font-size: 17px; min-width: 0; }
@media (max-width: 750px) {
 .app-editorial { grid-template-columns: 1fr; gap: 28px; }
 .app-photo { min-height: 260px; max-height: 320px; aspect-ratio: 1.6; }
 .app-photo img { object-position: center 45%; }
 .app-photo--team { min-height: 220px; }
 .app-editorial--commit .app-photo { min-height: 200px; max-height: 240px; }
 .app-editorial--commit .app-photo img { object-position: center 57%; }
 .app-editorial .app-question { margin-bottom: 20px; }
 .app-waitlist-confirmation span { margin-left: 26px; width: 100%; }
 .app-options--chips .app-option { font-size: 14px; }
 .app-referral { padding: 22px; }
 .app-referral h3 { font-size: 22px; }
 .app-referral-heading { padding-right: 55px; }
 .app-referral-seal { width: 46px; height: 46px; padding: 7px; }
 .application[data-step='complete'] .app-stage { padding-bottom: 32px; }
}
.app-editorial > * { min-width: 0; }
@media (max-width: 750px) {
 .app-photo { width: 100%; min-height: 0; height: 260px; aspect-ratio: auto; }
 .app-photo--team { height: 220px; }
 .app-editorial--commit .app-photo { min-height: 0; height: 220px; }
}

/* Waitlist confirmation: one clear next step, with the image secondary. */
.app-count span { display: block; text-align: right; }
.app-followup { margin-top: 24px; }
.application[data-step='waitlist'] { --form-width: 1440px; }
.application[data-step='waitlist'] .app-top { padding: 44px 5.3vw 0; }
.application[data-step='waitlist'] .app-top-line { padding-bottom: 0; }
.application[data-step='waitlist'] .app-brand { display: none; }
.application[data-step='waitlist'] .app-event { font-size: 13px; }
.application[data-step='waitlist'] .app-scroll { padding: 8.5vh 6.7vw 13.7vh 7.8vw; }
.application[data-step='waitlist'] .app-stage { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 7vw; margin: auto; }
.application[data-step='waitlist'] .app-content { display: contents; }
.app-welcome-copy { grid-column: 1; grid-row: 1; padding-top: clamp(24px, 6.2vh, 64px); min-width: 0; }
.app-welcome-status { display: flex; align-items: center; gap: 18px; margin: 0 0 clamp(32px, 6.2vh, 64px); font-size: clamp(16px, 1.65vw, 25px); line-height: 1.5; }
.app-welcome-status:focus { outline: none; }
.app-welcome-check { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--orange); }
.app-welcome-status .app-icon { width: 22px; height: 22px; }
.app-welcome-copy .app-question { text-align: left; margin: 0; }
.app-welcome-copy .app-title { font-size: clamp(26px, 3.8vw, 60px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; text-wrap: initial; }
.app-welcome-copy .app-description { margin: clamp(24px, 3.6vh, 36px) 0 0; max-width: 600px; font: 500 clamp(17px, 1.9vw, 30px)/1.45 'GT America Extended', sans-serif; letter-spacing: -.025em; color: var(--ink); }
.app-welcome-photo { grid-column: 2; grid-row: 1 / 3; position: relative; margin: 0; min-height: 440px; height: min(69vh, 740px); overflow: hidden; background: var(--surface); }
.app-welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(1); }
.application[data-step='waitlist'] .app-footer { grid-column: 1; grid-row: 2; align-self: start; margin-top: clamp(36px, 10vh, 100px); padding: 0; border: 0; }
.application[data-step='waitlist'] .app-next-group { flex: 1; min-width: 0; margin-left: 0; }
.application[data-step='waitlist'] .app-next { width: 100%; min-width: 0; min-height: clamp(56px, 5.3vw, 82px); border-radius: 0; gap: 16px; padding: 20px 30px; font: 500 clamp(12px, 1.3vw, 20px)/1.4 'GT America Mono', monospace !important; letter-spacing: .01em; text-transform: uppercase; }
.application[data-step='waitlist'] .app-next .app-icon { width: 28px; height: 28px; }
.app-welcome-meta { margin-top: 14px; color: #595650; font: 500 clamp(10px, 1.05vw, 16px)/1.6 'GT America Mono', monospace; }
.app-welcome-meta span { margin-inline: 4px; }
.application[data-step='waitlist'] .app-test-notice { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 750px) {
  .application[data-step='waitlist'] .app-top { padding: max(14px, env(safe-area-inset-top)) 22px 0; }
  .application[data-step='waitlist'] .app-event { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; font-size: 9px; }
  .application[data-step='waitlist'] .app-event-divider { display: inline; margin: 0; }
  .application[data-step='waitlist'] .app-close { margin-left: 0; }
  .application[data-step='waitlist'] .app-scroll { padding: 28px 22px max(24px, env(safe-area-inset-bottom)); }
  .application[data-step='waitlist'] .app-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 0; margin: 0 auto; max-width: 500px; }
  .app-welcome-copy { padding-top: 0; }
  .app-welcome-status { gap: 12px; margin-bottom: 28px; font-size: 16px; }
  .app-welcome-check { flex-basis: 28px; height: 28px; }
  .app-welcome-status .app-icon { width: 18px; height: 18px; }
  .app-welcome-copy .app-title { font-size: clamp(24px, 6.6vw, 32px); line-height: 1.25; }
  .app-welcome-copy .app-description { margin-top: 20px; max-width: 420px; font: 400 16px/1.55 'GT America', sans-serif; letter-spacing: 0; }
  .application[data-step='waitlist'] .app-footer { position: static; margin-top: 30px; padding: 0; }
  .application[data-step='waitlist'] .app-next { min-height: 56px; padding: 16px; font-size: 12px !important; gap: 12px; }
  .app-welcome-meta { margin-top: 12px; font-size: 10px; }
  .app-welcome-meta span { margin-inline: 0; }
  .app-welcome-photo { grid-column: 1; grid-row: 3; min-height: 0; height: 230px; margin-top: 30px; }
  .application[data-step='waitlist'] .app-test-notice { grid-row: 4; }
}
@media (max-width: 359px) {
  .application[data-step='waitlist'] .app-scroll { padding-inline: 18px; }
  .application[data-step='waitlist'] .app-top { padding-inline: 18px; }
  .application[data-step='waitlist'] .app-next { padding-inline: 12px; font-size: 11px !important; gap: 8px; }
  .app-welcome-meta { font-size: 9px; }
}

/* The closing reflections are optional and clearly labelled. */
.application[data-step='profession'] { --form-width: 800px; }
.app-reflections .app-field > span { font-size: 15px; font-weight: 500; line-height: 1.5; }
.app-reflections .app-field:not(:first-child) { margin-top: 28px; }
.app-reflections .app-textarea { min-height: 120px; }
.app-editorial--commit .app-photo img { object-position: 50% 55%; }
@media (max-width: 600px) {
  .application[data-step='profession'] .app-options--grid { grid-template-columns: 1fr; }
  .app-reflections .app-field > span { font-size: 14px; }
}

/* A native select keeps keyboard and mobile picker behavior; the visible label stays compact. */
.app-phone-label { display: block; margin-bottom: 10px; font-size: 13px; }
.app-phone-row { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 10px; }
.app-phone-row select, .app-phone-row input { min-width: 0; }
.app-country-control { position: relative; min-width: 0; }
.app-country-control .app-select { appearance: none; -webkit-appearance: none; color: transparent; padding: 15px 36px 15px 14px; background-image: url('assets/icons/chevron-down.svg'); background-size: 16px; background-position: right 12px center; background-repeat: no-repeat; cursor: pointer; }
/* Autofill can force the native select's color, exposing its long label beneath ours. */
.app-country-control .app-select { -webkit-text-fill-color: transparent; }
.app-country-control .app-select option { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.app-country-value { position: absolute; left: 14px; right: 34px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 15px; white-space: nowrap; }
.app-phone-group .app-help { margin-top: 10px; }
.app-field-error { color: #a52f0b; font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.app-options > .app-field-error, .app-phone-row > .app-field-error { grid-column: 1 / -1; }
.app-options > .app-field-error { margin: 0; }
.app-code-destination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -12px 0 22px; }
.application[data-step='verification'] .app-stage { max-width: 460px; }
.application[data-step='verification'] .app-question { text-align: left; }
.application[data-step='verification'] .app-description { margin-left: 0; }
.application[data-step='verification'] .app-otp { max-width: none; min-height: 64px; font-size: 26px !important; letter-spacing: .38em; }
.application[data-step='verification'] .app-text-button { min-height: 44px; font-size: 14px !important; padding: 10px 4px; }
.application[data-step='verification'] .app-text-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.application[data-step='verification'] .app-text-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.application[data-step='verification'] .app-status { color: var(--ink); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.application[data-step='verification'] .app-status[data-state='error'] { color: #a52f0b; }
.application[data-step='verification'] .app-footer { margin-top: 22px; }
.application[data-step='verification'] .app-key-hint { display: none; }
@media (max-width: 600px) {
  .application[data-step='verification'] .app-scroll { justify-content: flex-start; padding-top: 32px; }
  .application[data-step='verification'] .app-stage { width: 100%; margin: 0 auto; }
  .application[data-step='verification'] .app-next-group { flex: 1; }
  .application[data-step='verification'] .app-next { width: 100%; justify-content: center; }
  .app-code-destination { gap: 8px; }
  .app-code-destination strong { font-size: 15px; }
}
@media (max-width: 360px) {
  .app-phone-row { grid-template-columns: 116px minmax(0, 1fr); gap: 8px; }
  .app-phone-row .app-input { padding-left: 12px; padding-right: 12px; }
  .app-country-control .app-select { background-position: right 10px center; }
  .app-country-value { left: 12px; font-size: 14px; }
}

/* Clear reading groups and a prominent referral benefit. */
.app-commit-summary { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.app-commit-summary .app-section-label { margin-top: 20px; margin-bottom: 6px; }
.app-commit-summary .app-section-label:first-child { margin-top: 0; }
.app-referral-benefit { margin: 24px 0 18px; padding: 20px; background: var(--ink); color: var(--salt); border-left: 4px solid var(--orange); }
.app-referral-benefit strong { display: block; font: 500 clamp(24px, 3vw, 32px)/1.2 'GT America Extended', sans-serif; letter-spacing: -.04em; }
.app-referral-benefit p { margin-top: 12px; font-size: 16px; line-height: 1.5; }
@media (max-width: 750px) {
  .app-editorial--commit { gap: 24px; }
  .app-editorial--commit .app-photo { height: clamp(140px, 43vw, 220px); }
  .app-editorial--commit .app-commit-copy { font-size: 15px; }
  .app-editorial--commit .app-option { min-height: 56px; padding: 15px 13px; font-size: 14px; line-height: 1.5; }
  .app-editorial--commit .app-options + .app-section-label { margin-top: 32px; }
  .app-referral-benefit { padding: 18px 16px; }
  .app-referral-heading { padding-right: 0; }
  .app-referral-heading h3 { padding-right: 0; }
  .app-referral-seal { display: none; }
  .application[data-step='waitlist'] .app-next { letter-spacing: 0; }
}

/* Policy links remain beside inputs and the submission action. */
.app-legal{font-size:11px;line-height:1.7;color:var(--muted);margin:24px 0 0;max-width:580px}.app-legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}.app-legal a:focus-visible{outline:2px solid currentColor;outline-offset:3px}.application[data-step='details'] .app-footer{margin-top:24px}

.app-consents--channels legend{font-size:12px;color:var(--carbon);padding:0;margin-bottom:12px}.app-consent-channels{display:flex;gap:28px}.app-consents--channels .app-help{margin:0}.app-consents--channels{gap:10px}
.app-consents--channels{display:block}.app-consents--channels legend{float:left;margin:0 24px 0 0;line-height:1.55}.app-consent-channels{display:inline-flex}.app-consents--channels .app-help{clear:both;margin-top:10px}

.application .app-returning{display:block;margin:16px 0 0 auto;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;}

/* Compact signup consent: one choice and one combined notice. */
.application[data-step='details'] .app-consents { margin-top: 20px; }
.application[data-step='details'] .app-consent { font-size: 13px; color: var(--ink); }
.application[data-step='details'] .app-legal { margin-top: 16px; max-width: none; font-size: 12px; line-height: 1.6; }

/* Keep the optional SMS choice together on the code-entry screen. */
.app-sms-choice { gap: 8px; margin-top: 24px; }
.app-sms-choice .app-consent { color: var(--ink); font-size: 13px; }
.app-sms-choice .app-help { margin: 0 0 0 26px; font-size: 11px; line-height: 1.6; }
.app-sms-choice a { color: inherit; text-underline-offset: 3px; }

/* Stable mobile layout: the form and its actions share one scroll area. */
@media (max-width: 600px) {
  .application .app-top { padding-top: max(10px, env(safe-area-inset-top)); }
  .application .app-top-line { padding-bottom: 8px; }
  .application .app-scroll { padding-top: 20px; padding-bottom: 24px; scroll-padding: 12px 0 20px; }
  .application .app-stage { margin-top: 0; margin-bottom: 0; }
}

/* Keep recovery choices secondary to entering the code. */
.app-recovery { margin-top: 16px; font-size: 13px; }
.app-recovery summary { cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.app-recovery [hidden] { display: none !important; }
