.fiind-onboarding {
  --onb-ink: #11100f;
  --onb-paper: #fff;
  --onb-muted: #6f6258;
  --onb-shadow: 0 7px 24px rgba(42,32,25,.06);
  position: fixed;
  z-index: 120;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--onb-paper);
  color: var(--onb-ink);
  -webkit-overflow-scrolling: touch;
  font-family: var(--sans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}
body.onboarding-open { overflow: hidden; }
.fiind-onboarding *, .fiind-onboarding *::before, .fiind-onboarding *::after { box-sizing: border-box; }
.onb-layout { width: min(100%, 640px); min-height: 100dvh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 26px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.onb-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--onb-ink); cursor: pointer; }
.onb-icon svg { width: 23px; height: 23px; }
.onb-content { flex: 1; padding: 34px 0 28px; }
.onb-content.is-forward { animation: onb-enter .24s cubic-bezier(.22,.8,.25,1) both; }
.onb-content.is-back { animation: onb-back .24s cubic-bezier(.22,.8,.25,1) both; }
.onb-eyebrow { margin: 0 0 14px; color: var(--onb-muted); font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.onb-title { max-width: 510px; margin: 0 auto; font-family: var(--serif, Didot, "Bodoni MT", "Times New Roman", serif); font-weight: 400; font-size: clamp(34px, 8.8vw, 49px); letter-spacing: -.045em; line-height: 1.035; text-align: center; text-wrap: balance; outline: 0; }
.onb-description { max-width: 430px; margin: 18px auto 0; color: var(--onb-muted); font-size: 14px; font-weight: 400; line-height: 1.6; text-align: center; text-wrap: pretty; }
.onb-stage { margin-top: 30px; }
.onb-primary, .onb-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; width: 100%; min-height: 56px; padding: 15px 20px; border: 0; border-radius: 11px; background: var(--onb-ink); color: #fff; font-family: inherit; font-size: 15px; font-weight: 670; line-height: 1.3; text-align: center; cursor: pointer; transition: transform .13s ease, background .16s ease, opacity .16s ease; }
.onb-primary svg, .onb-secondary svg { width: 20px; height: 20px; flex-shrink: 0; }
.onb-primary:active, .onb-secondary:active { transform: scale(.985); }
.onb-primary:disabled, .onb-secondary:disabled { opacity: .43; cursor: default; }
.onb-secondary { background: #fff; color: var(--onb-ink); box-shadow: var(--onb-shadow); }
.onb-text { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 12px; border: 0; background: transparent; color: var(--onb-muted); font-size: 13px; font-weight: 550; cursor: pointer; }
.onb-text.strong { color: var(--onb-ink); font-weight: 650; }
.onb-footer { position: sticky; z-index: 4; bottom: 0; display: grid; gap: 5px; padding-top: 15px; padding-bottom: max(3px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--onb-paper) 80%, rgba(251,248,243,0)); }
.onb-footer .onb-note { margin: 7px 12px; }
.onb-note { color: var(--onb-muted); font-size: 11px; font-weight: 450; line-height: 1.55; text-align: center; }
.onb-footnote { margin: 18px auto 0; max-width: 390px; }
.onb-status { margin: 0; padding: 9px 4px; color: var(--onb-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.onb-status:empty { display: none; }
.onb-status.is-error { padding: 12px 14px; border-radius: 9px; background: #fff; color: var(--onb-ink); box-shadow: var(--onb-shadow); }
.onb-crop-shell { height: min(48dvh,410px); min-height: 250px; overflow: hidden; border-radius: 15px; background: #e9e2d9; }
.onb-crop-shell > img { display: block; max-width: 100%; }
.onb-crop-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.onb-output { position: relative; width: min(100%,390px); margin: 0 auto; }
.onb-output img { display: block; width: 100%; max-height: 58dvh; object-fit: contain; border-radius: 15px; background: #f0e9e0; }
.onb-loading { padding: 40px 18px; text-align: center; }
.onb-loading-visual { position: relative; display: grid; place-items: center; width: 132px; height: 165px; margin: 0 auto 24px; overflow: hidden; border-radius: 15px; background: #fff; box-shadow: var(--onb-shadow); }
.onb-loading-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.onb-loading-visual::after { position: absolute; content: ""; left: 10%; right: 10%; top: 15%; height: 2px; background: #e93e6b; animation: onb-scan 2.5s ease-in-out infinite alternate; }
.onb-loading h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.1; }
.onb-loading p { margin: 0; color: var(--onb-muted); font-size: 13px; line-height: 1.6; }
.onb-spinner { display: inline-block; width: 17px; height: 17px; border: 1.5px solid #e2d9d0; border-top-color: var(--onb-ink); border-radius: 50%; animation: onb-spin .85s linear infinite; }
.onb-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.fiind-onboarding :is(button, input, select, a):focus-visible { outline: 2px solid var(--onb-ink); outline-offset: 4px; }
.fiind-onboarding .onb-primary:focus-visible { outline-color: #e93e6b; }
@keyframes onb-enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes onb-back { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes onb-spin { to { transform: rotate(360deg); } }
@keyframes onb-scan { from { top: 15%; } to { top: 85%; } }
@media (min-width: 720px) { .fiind-onboarding { background: #f0e9e1; } .onb-layout { padding-inline: 48px; background: var(--onb-paper); box-shadow: 0 0 70px rgba(66,45,33,.08); } .onb-content { padding-top: 42px; } }
@media (max-width: 360px) { .onb-layout { padding-inline: 19px; } .onb-content { padding-top: 27px; } .onb-title { font-size: 33px; } .onb-description { font-size: 13px; } }
@media (max-height: 680px) { .onb-content { padding-top: 23px; } .onb-stage { margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { .fiind-onboarding *, .fiind-onboarding *::before, .fiind-onboarding *::after { animation: none !important; transition-duration: .01ms !important; transform: none !important; scroll-behavior: auto !important; } .onb-loading-visual::after { top: 50%; } }

/* The upload screen establishes the new theme without restyling later steps. */
.fiind-onboarding.onb-photo-step { --onb-ink: #15171d; --onb-muted: #626774; --onb-paper: #fff; background: var(--onb-paper); }
.onb-photo-step .onb-layout { width: min(100%, 520px); padding: max(12px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); background: var(--onb-paper); box-shadow: none; }
.onb-photo-header { min-height: 44px; display: flex; align-items: center; }
.onb-photo-header .onb-icon { margin-left: -10px; }
.onb-photo-step .onb-content { padding: 26px 0 12px; }
.onb-photo-step .onb-title { max-width: 360px; margin-bottom: 28px; font-family: var(--serif); font-size: clamp(34px, 8.8vw, 49px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.onb-photo-upload { display: flex; width: 100%; min-height: 160px; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 26px 18px; border: 1.5px dashed #d9dee8; border-radius: 18px; background: #f7f8fb; color: var(--onb-ink); font: inherit; cursor: pointer; }
.onb-photo-upload svg { width: 40px; height: 40px; }
.onb-photo-upload span { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.onb-photo-upload:hover { background: #f0f2f7; }
.onb-photo-examples-title { margin: 28px 0 16px; font-size: 14px; line-height: 1.4; font-weight: 400; text-align: center; letter-spacing: -.015em; }
.onb-photo-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onb-photo-example { display: block; min-width: 0; padding: 0; aspect-ratio: 3 / 4; overflow: hidden; border: 0; border-radius: 11px; background: #f1f3f7; cursor: pointer; }
.onb-photo-example img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.onb-photo-step .onb-footer { padding-top: 0; background: var(--onb-paper); }
.onb-photo-step .onb-status { color: var(--onb-muted); }
@media (max-height: 740px) { .onb-photo-step .onb-content { padding-top: 14px; } .onb-photo-step .onb-title { margin-bottom: 22px; } .onb-photo-upload { min-height: 130px; padding-block: 18px; } .onb-photo-examples-title { margin-top: 22px; } }

/* Reuse the app's crop-shell/frame styles; only the onboarding page chrome differs. */
.fiind-onboarding.onb-crop-step { --onb-ink: #15171d; --onb-muted: #626774; --onb-paper: #fff; background: var(--onb-paper); }
.onb-crop-step .onb-layout { width: min(100%, 520px); padding: max(12px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); background: var(--onb-paper); box-shadow: none; }
.onb-crop-header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.onb-crop-header .onb-icon { margin-left: -10px; }
.onb-crop-header .onb-text { padding-right: 0; font-size: 14px; }
.onb-crop-step .onb-content { flex: 0 0 auto; padding: 0; }
.onb-crop-step .onb-crop-shell { height: min(56svh, 560px); min-height: 220px; border-radius: 23px; background: #151311; }
.onb-crop-copy { margin: 26px 0 24px; }
.onb-crop-copy .onb-title { margin: 0; max-width: none; font-family: var(--serif); font-size: clamp(34px, 8.8vw, 49px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; text-align: left; }
.onb-crop-copy .onb-description { margin: 10px 0 0; max-width: none; color: var(--onb-muted); font-size: 15px; line-height: 1.4; text-align: left; }
.onb-crop-step .onb-footer { margin-top: auto; padding-top: 12px; background: var(--onb-paper); }
.onb-crop-step .onb-status { color: var(--onb-muted); }
.onb-crop-step .is-searching .onb-primary:disabled { opacity: 1; }
.onb-crop-step .is-searching .onb-status.inline-status { margin: 0; color: var(--pink); font-weight: 700; }
.onb-crop-step .is-searching .onb-crop-copy { opacity: .48; }
.onb-crop-step .is-searching .onb-crop-header button:disabled { cursor: default; opacity: .48; }
@media (max-height: 680px) { .onb-crop-step .onb-crop-shell { height: 49svh; } .onb-crop-copy { margin: 20px 0 14px; } }

/* Isolated Satin Atlas location screen; later onboarding retains its theme. */
@font-face { font-family: "Findit Location Inter"; src: url("/assets/location-globe/InterVariable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
.fiind-onboarding.onb-location-step { --onb-paper: #fff; --onb-ink: #101318; --onb-muted: #777b84; background: #fff; font-family: "Findit Location Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.onb-location-step .onb-layout { width: min(100%, 430px); min-height: 100svh; padding: max(20px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); background: #fff; box-shadow: none; }
.onb-location-header { height: 48px; display: flex; align-items: center; flex-shrink: 0; }
.onb-location-header .onb-icon { margin-left: -12px; }
.onb-location-step .onb-content { flex: 0 0 auto; padding: 0; animation: none; }
.onb-location-step .onb-title { margin: 39px -8px 22px; font: 400 clamp(34px, 8.8vw, 49px)/1.08 var(--serif); letter-spacing: -.045em; max-width: none; }
.onb-globe-stage { position: relative; height: clamp(310px, 43.4svh, 396px); margin: 0 -24px 27px; isolation: isolate; }
.onb-globe { position: relative; z-index: 1; width: 100%; height: 100%; }
.onb-globe canvas { display: block; }
.onb-globe[data-unavailable="true"]::before { content: ""; position: absolute; width: min(82%, 325px); aspect-ratio: 1; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 32% 26%, #fff, #e3e5e7 58%, #adb1b7); }
.onb-globe-shadow { position: absolute; z-index: 0; left: 23%; right: 23%; bottom: 7px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, #4347504a 0%, #676b7330 35%, #8b8f9910 63%, #fff0 73%); filter: blur(8px); opacity: 0; }
.onb-location-field { position: relative; }
.onb-location-field select { display: block; appearance: none; -webkit-appearance: none; font: inherit; color: #111318; background: #fff; width: 100%; height: 55px; border: 1px solid #d4d6db; border-radius: 11px; padding: 0 43px 0 16px; font-size: 16px; letter-spacing: -.018em; box-shadow: 0 1px 2px #10131802; }
.onb-location-field svg { width: 20px; height: 20px; position: absolute; right: 15px; top: 18px; pointer-events: none; color: #7a7d84; }
.onb-location-help { font-size: 13px; line-height: 1.55; letter-spacing: -.008em; color: var(--onb-muted); margin: 13px 0 0; max-width: 340px; }
.onb-location-step .onb-footer { position: static; margin-top: auto; padding: 30px 0 0; background: #fff; }
.onb-location-step .onb-primary { min-height: 52px; border: 1px solid #14161a; border-radius: 12px; background: #14161a; font: 600 16px/1.2 "Findit Location Inter", Inter, sans-serif; letter-spacing: -.018em; }
.onb-location-step .onb-primary:disabled { opacity: 1; background: #e6e7e9; border-color: #e6e7e9; color: #999ca2; cursor: default; }
.onb-location-step .onb-status:empty { display: none; }

/* The results use the same app sections/cards/controls, inside white onboarding chrome. */
.fiind-onboarding.onb-results-step { --paper: #fff; --onb-paper: #fff; background: #fff; }
.onb-results-step .onb-layout { width: min(100%, 760px); padding: max(12px, env(safe-area-inset-top)) 30px max(28px, env(safe-area-inset-bottom)); background: #fff; box-shadow: none; }
.onb-results-header { min-height: 52px; display: flex; align-items: center; }
.onb-results-header .onb-icon { margin-left: -12px; }
.onb-results-step .onb-content { padding: 0; animation: none; }
.onb-results-step #onbTitle { outline: 0; }
.onb-results-step .quick-insight-heading { text-align: center; }
.onb-results-step .quick-insight-section { margin-bottom: 42px; }
.onb-results-step .onb-footer { position: static; padding: 0; background: #fff; }
.onb-results-step .product-card-results,
.onb-results-step .quick-result-card { background: #fff; }
.onb-results-step .product-retailer { color: inherit; text-decoration: none; }
.onb-results-step .result-filter-panel-surface,
.onb-results-step .result-toolbar-button:not(.selected) { background: #fff; }
@media (max-width: 520px) { .onb-results-step .onb-layout { padding-inline: 18px; } }
@media (max-height: 760px) { .onb-location-step .onb-layout { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(22px, env(safe-area-inset-bottom)); } .onb-location-step .onb-title { margin-top: 21px; margin-bottom: 14px; } .onb-globe-stage { height: clamp(250px, 41svh, 325px); margin-bottom: 22px; } .onb-location-step .onb-footer { padding-top: 24px; } }
@media (max-width: 350px) { .onb-location-step .onb-layout { padding-inline: 20px; } .onb-globe-stage { margin-inline: -20px; } .onb-location-help { font-size: 12px; } .onb-location-field select { font-size: 16px; } }

.onb-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.onb-nav-pair { display: flex; align-items: center; gap: 2px; }
.onb-forward:disabled { opacity: .25; cursor: default; }
