.onboarding {
  max-width: 1040px;
  padding-block: clamp(38px, 6vw, 75px) clamp(50px, 7vw, 96px);
}

.onboard-intro { max-width: 655px; margin-bottom: clamp(20px, 3vw, 34px); }
.onboard-intro h1 { margin: 0; font-size: clamp(48px, 7.1vw, 87px); line-height: 1; letter-spacing: -.074em; }
.onboard-intro p:not(.eyebrow), .onboard-copy p, .onboard-fallback p { color: var(--muted); font-weight: 650; line-height: 1.62; }
.onboard-intro p:not(.eyebrow) { max-width: 520px; margin: 12px 0 0; font-size: clamp(16px, 1.65vw, 18px); }
.onboarding [hidden] { display: none !important; }
.onboarding button { font-family: inherit; cursor: pointer; }
.onboarding button:focus-visible { outline: 3px solid #985016; outline-offset: 4px; }
.onboard-app { overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--white); }

.onboard-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; background: #e0dfd2; }
.onboard-progress li { display: flex; min-width: 0; justify-content: center; align-items: center; gap: 8px; padding: 13px 6px; color: var(--muted); background: #f1eee2; font-size: 13px; font-weight: 800; line-height: 1.25; }
.onboard-progress li span { display: grid; width: 26px; min-width: 26px; height: 26px; place-items: center; border: 1px solid #c4c6b6; border-radius: 50%; font-size: 12px; }
.onboard-progress li[aria-current="step"] { color: var(--white); background: var(--forest); }
.onboard-progress li[aria-current="step"] span { border-color: var(--amber); background: var(--amber); color: var(--forest); }
.onboard-progress li.onboard-past { color: var(--forest); background: #e2eadc; }
.onboard-progress li.onboard-past span { border-color: #879680; background: #f5f7ee; }

.onboard-stage {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr);
  grid-template-areas: "copy scene" "actions scene";
  grid-template-rows: 1fr 1fr;
  gap: 16px clamp(20px, 4.1vw, 60px);
  align-items: center;
  padding: clamp(21px, 4.2vw, 57px);
}
.onboard-copy { grid-area: copy; align-self: end; }
.onboard-copy h2 { margin: 0; font-size: clamp(33px, 4.4vw, 54px); line-height: 1; letter-spacing: -.067em; }
.onboard-copy h2:focus { outline: none; }
.onboard-copy p { margin: 9px 0 0; font-size: 15px; }
.onboard-copy strong { color: var(--forest); }
.onboard-scene { grid-area: scene; min-width: 0; }
.onboard-actions { grid-area: actions; display: flex; align-self: start; flex-wrap: wrap; gap: 8px; }
.onboard-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.onboard-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(9px, 1.5vw, 15px); margin: 0; padding: 0; border: 0; }
.onboard-choice { position: relative; display: grid; cursor: pointer; }
.onboard-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.onboard-choice-card { position: relative; display: grid; grid-template-rows: 1fr auto; overflow: hidden; min-width: 0; border: 2px solid #d9d8c9; border-radius: 13px; background: #f4efe2; }
.onboard-choice-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.onboard-choice-label { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 4px; padding: 9px 10px; color: var(--forest); font-size: 14px; font-weight: 800; line-height: 1.35; }
.onboard-choice-label::after { display: block; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #788276; border-radius: 50%; content: ""; }
.onboard-choice:hover .onboard-choice-card { border-color: #a18863; }
.onboard-choice input:checked + .onboard-choice-card { border-color: #915119; background: #fae8cb; }
.onboard-choice input:checked + .onboard-choice-card .onboard-choice-label::after { border: 4px solid #8a4a1c; background: #fff8e8; }
.onboard-choice input:focus-visible + .onboard-choice-card { outline: 3px solid #985016; outline-offset: 3px; }

.onboard-camera { overflow: hidden; border-radius: 14px; background: var(--forest); }
.onboard-viewfinder { position: relative; background: #19291e; }
.onboard-viewfinder img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center; }
.onboard-camera-label { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 5px; color: var(--white); background: #243323ed; font-size: 11px; font-weight: 800; }
.onboard-focus-mark { --stroke: 2px; position: absolute; top: 50%; left: 50%; width: 46px; color: #fff6d0; filter: drop-shadow(0 1px 2px #2c241d); transform: translate(-50%, -50%); }
.onboard-shutter { display: flex; width: 100%; min-height: 68px; justify-content: center; align-items: center; gap: 10px; padding: 8px; border: 0; color: var(--white); background: transparent; font-size: 14px; font-weight: 800; }
.onboard-shutter:hover { background: #2f4633; }
.onboarding .onboard-shutter:focus-visible { outline-color: var(--amber); outline-offset: -5px; }
.onboard-shutter-mark { width: 36px; height: 36px; border: 2px solid currentColor; border-radius: 50%; background: #fffdf7; box-shadow: inset 0 0 0 2px var(--forest); }

.onboard-drive { overflow: hidden; min-width: 0; padding: clamp(11px, 1.55vw, 15px); border: 1px solid #dbd7c5; border-radius: 14px; background: #f2f1e4; }
.onboard-drive-header { display: flex; min-width: 0; align-items: center; gap: 11px; margin-bottom: 10px; }
.onboard-drive-header p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 750; }
.onboard-drive-header h3 { margin: 0; color: var(--forest); font-size: 19px; line-height: 1.12; letter-spacing: -.034em; }
.onboard-file { overflow: hidden; margin: 0; border: 1px solid #d1d5c5; border-radius: 9px; background: #fffdf8; }
.onboard-file img { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.onboard-file figcaption { display: grid; gap: 3px; padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.onboard-file figcaption strong { color: var(--forest); font-size: 13px; }
.onboard-fallback { max-width: 635px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.onboard-fallback p { margin-top: 0; }

@media (max-width: 760px) {
  .onboard-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "copy" "scene" "actions"; }
  .onboard-copy, .onboard-actions { align-self: auto; }
  .onboard-viewfinder img, .onboard-file img { aspect-ratio: 1.85; }
}

@media (max-width: 460px) {
  .onboarding { padding-block: 31px 42px; }
  .onboard-app { border-radius: 15px; }
  .onboard-stage { gap: 15px; padding: 16px 14px; }
  .onboard-progress li { gap: 4px; padding-block: 11px; font-size: 10px; }
  .onboard-progress li span { width: 18px; min-width: 18px; height: 18px; font-size: 10px; }
  .onboard-choice-label { padding: 8px 6px; font-size: 12px; }
  .onboard-copy h2 { font-size: 34px; }
  .onboard-copy p { font-size: 14px; }
}
