/* Gradient Glass onboarding — shared design tokens and components */
:root {
  color-scheme: dark;
  --ob-gradient: linear-gradient(180deg, #6d3fb0 0%, #c04d7c 55%, #e8794a 100%);
  --ob-gradient-top: #6d3fb0;
  --ob-gradient-bottom: #e8794a;
  --ob-primary: #6d3fb0;
  --ob-bg: #6d3fb0;
  --ob-text: #ffffff;
  --ob-muted: rgba(255, 255, 255, 0.75);
  --ob-muted-strong: rgba(255, 255, 255, 0.85);
  --ob-glass: rgba(255, 255, 255, 0.14);
  --ob-glass-strong: rgba(255, 255, 255, 0.16);
  --ob-glass-border: rgba(255, 255, 255, 0.28);
  --ob-glass-border-strong: rgba(255, 255, 255, 0.3);
  --ob-blur: blur(14px) saturate(160%);
  --ob-progress-track: rgba(255, 255, 255, 0.2);
  --ob-progress-fill: #ffffff;
  --ob-dot-off: rgba(255, 255, 255, 0.3);
  --ob-dot-on: #ffffff;
  --ob-red: #ffb4b4;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

html:has(body.ob-page):not([data-page="preview"]):not([data-page="my-tryons"]):not([data-page="tryon-view"]),
html[data-page="swipe"]:not(.ob-white-surface) {
  color-scheme: light;
  min-height: 100dvh;
  background-color: var(--ob-gradient-top);
  background-image: var(--ob-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

html:has(body.ob-page)::before {
  display: none;
}

html[data-page="preview"],
html[data-page="my-tryons"],
html[data-page="tryon-view"],
html.ob-white-surface {
  color-scheme: light;
  background-color: #ffffff !important;
  background-image: none !important;
}

html[data-page="preview"] body,
html[data-page="my-tryons"] body,
html[data-page="tryon-view"] body,
html.ob-white-surface body {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Safari: fixed purple/white top strip + body endpoint color for the bottom bar. */
.ob-safari-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: max(12px, env(safe-area-inset-top, 0px));
  min-height: 12px;
  margin: 0;
  padding: 0;
  background-color: var(--ob-gradient-top);
  pointer-events: none;
  z-index: 0;
}

html[data-page="preview"] .ob-safari-top,
html[data-page="my-tryons"] .ob-safari-top,
html[data-page="tryon-view"] .ob-safari-top,
html.ob-white-surface .ob-safari-top {
  background-color: #ffffff;
}

.ob-page {
  margin: 0;
  color: var(--ob-text);
  -webkit-font-smoothing: antialiased;
}

.ob-page body,
body.ob-page {
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

html:not([data-page="preview"]):not([data-page="my-tryons"]):not([data-page="tryon-view"]):not(.ob-white-surface) body.ob-page,
html[data-page="swipe"] body:not(.swipe-deck-mode) {
  background-color: var(--ob-gradient-bottom);
  background-image: var(--ob-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll;
}

.ob-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding:
    calc(12px + env(safe-area-inset-top))
    20px
    calc(18px + env(safe-area-inset-bottom));
}

.ob-shell.hidden { display: none; }

.ob-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 8px;
}

.ob-back {
  color: var(--ob-muted);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px 4px 0;
}

.ob-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ob-dot-off);
  transition: background 0.25s, transform 0.25s;
}

.ob-dot.on {
  background: var(--ob-dot-on);
  transform: scale(1.15);
}

.ob-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.ob-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.ob-section-head {
  margin: 0 0 16px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.ob-lead {
  margin: 0 0 20px;
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ob-muted-strong);
}

.ob-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ob-muted-strong);
}

.ob-body + .ob-body { margin-top: 14px; }

.ob-body strong { color: var(--ob-text); font-weight: 600; }

.ob-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: var(--ob-text);
  border: 1px solid var(--ob-glass-border-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
}

.ob-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0 0 28px;
}

.ob-pill {
  padding: 16px 18px;
  border: 1px solid var(--ob-glass-border);
  border-radius: 16px;
  background: var(--ob-glass);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ob-text);
  text-align: left;
}

.ob-actions {
  width: 100%;
  max-width: 340px;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, opacity 0.2s;
}

.ob-btn:active { transform: scale(0.98); }

.ob-btn-primary {
  background: #ffffff;
  color: var(--ob-primary);
  font-weight: 700;
}

.ob-btn-secondary {
  background: var(--ob-glass-strong);
  color: var(--ob-text);
  border: 1px solid var(--ob-glass-border-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  font-weight: 600;
}

.ob-btn-icon {
  width: 56px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0;
  border-radius: 16px;
  background: var(--ob-glass-strong);
  border: 1px solid var(--ob-glass-border-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  color: var(--ob-text);
  font-size: 26px;
  font-weight: 400;
}

.ob-empty {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
  max-width: 440px;
  margin: 0 auto;
}

.ob-empty.hidden { display: none; }

.ob-empty p {
  margin: 0;
  color: var(--ob-muted-strong);
  line-height: 1.5;
}

.ob-empty a {
  color: var(--ob-text);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ob-primary);
}

/* Basic character deck */
.ob-deck {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  min-height: 0;
}

.ob-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 4px 4px 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ob-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.ob-slide.leaving-left {
  opacity: 0;
  transform: translateX(-24px);
}

.ob-slide-intro .ob-lead {
  max-width: 320px;
  color: var(--ob-text);
  font-size: clamp(20px, 5.2vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.ob-char-name {
  margin: 0 0 12px;
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ob-text);
}

.ob-tagline {
  margin: 0 0 20px;
  font-size: clamp(16px, 4.2vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ob-text);
  max-width: 320px;
}

.ob-cta-head {
  margin: 0 0 14px;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  max-width: 340px;
}

.ob-cta-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ob-muted-strong);
  max-width: 340px;
}

/* Full-image character deck (collage route) */
.ob-character-page {
  overflow: hidden;
  background-color: var(--ob-gradient-bottom);
  background-image: var(--ob-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.ob-character-shell {
  position: relative;
  width: min(100%, 548px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.ob-character-shell.hidden { display: none; }

.ob-character-deck {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.ob-character-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ob-character-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.ob-character-slide.leaving-left {
  opacity: 0;
  transform: translateX(-24px);
}

.ob-character-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.ob-character-back-hit,
.ob-character-next-hit {
  position: absolute;
  z-index: 3;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ob-character-back-hit {
  top: 0;
  left: 0;
  width: 18%;
  height: 12%;
}

.ob-character-next-hit {
  right: 4%;
  bottom: 1.5%;
  left: 4%;
  height: 12%;
  padding: 0;
}

.ob-character-back-hit:focus-visible,
.ob-character-next-hit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  border-radius: 18px;
}

/* ── Form pages (portrait, profile) ─────────────────────────────── */
.ob-form-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.ob-form-back {
  color: var(--ob-muted);
  text-decoration: none;
  font-size: 22px;
  padding: 4px 0 12px;
  align-self: flex-start;
}

.ob-form-app h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.ob-form-lead {
  margin: 0 0 22px;
  color: var(--ob-muted-strong);
  font-size: 15px;
  line-height: 1.5;
}

.ob-photo-card {
  min-height: 220px;
  max-height: 320px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: var(--ob-glass);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.ob-photo-card.has-image {
  border-style: solid;
  border-color: var(--ob-glass-border-strong);
  padding: 0;
  min-height: 280px;
}

.ob-pick-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.ob-pick-row label { display: block; width: 100%; }

.ob-pick-row input { display: none; }

.ob-btn-pick {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ob-glass-border-strong);
  background: var(--ob-glass-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  color: var(--ob-text);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.ob-btn-pick:active { transform: scale(0.98); }

.ob-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ob-drop-hint {
  margin: 0;
  color: var(--ob-muted-strong);
  font-size: 14px;
  line-height: 1.45;
}

.ob-drop-title { margin: 0; font-weight: 600; font-size: 16px; }

.ob-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.ob-photo-card.has-image .ob-drop-icon,
.ob-photo-card.has-image .ob-drop-hint,
.ob-photo-card.has-image .ob-drop-title { display: none; }

.ob-photo-card.has-image .ob-preview {
  display: block;
  position: absolute;
  inset: 0;
}

.ob-tips {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-tips li {
  font-size: 13px;
  color: var(--ob-muted);
  padding-left: 16px;
  position: relative;
}

.ob-tips li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.ob-privacy {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ob-muted);
  line-height: 1.45;
}

.ob-form-error {
  margin: 12px 0 0;
  color: var(--ob-red);
  font-size: 14px;
  min-height: 20px;
}

.ob-form-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-form-btn {
  width: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease;
}

.ob-form-btn:active:not(:disabled) { transform: scale(0.98); }

.ob-form-btn-primary {
  background: #ffffff;
  color: var(--ob-primary);
}

.ob-form-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ob-form-btn-secondary {
  background: transparent;
  color: var(--ob-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 12px;
}

.ob-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.ob-portrait-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--ob-glass-border-strong);
  flex-shrink: 0;
}

.ob-user-meta .label {
  margin: 0;
  font-size: 13px;
  color: var(--ob-muted);
}

.ob-user-meta .char {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.ob-field { margin-bottom: 16px; }

.ob-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ob-text);
}

.ob-field input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--ob-glass-border-strong);
  background: var(--ob-glass);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  color: var(--ob-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.ob-field input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}

.ob-field input::placeholder { color: rgba(255, 255, 255, 0.45); }

.ob-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ob-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ob-form-note {
  margin: -4px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ob-muted);
}

/* ── Generating page ─────────────────────────────────────────────── */
.ob-gen-app {
  flex: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.ob-gen-app h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
}

.ob-gen-lead {
  margin: 0;
  color: var(--ob-muted-strong);
  font-size: 15px;
  line-height: 1.5;
}

.ob-pulse {
  width: 72px;
  height: 72px;
  margin: 24px auto;
  border-radius: 50%;
  background: var(--ob-glass-strong);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: ob-pulse 1.6s ease-in-out infinite;
}

@keyframes ob-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.ob-ready-icon {
  width: 72px;
  height: 72px;
  margin: 24px auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--ob-text);
}

.ob-ready-icon.show { display: flex; }

.ob-pulse.hidden { display: none; }

.ob-gen-progress {
  height: 4px;
  background: var(--ob-progress-track);
  border-radius: 2px;
  overflow: hidden;
  margin: 8px auto 0;
  max-width: 280px;
  width: 100%;
}

.ob-gen-progress span {
  display: block;
  height: 100%;
  background: var(--ob-progress-fill);
  width: 0%;
  transition: width 0.3s ease;
}

.ob-gen-actions { display: none; margin-top: 8px; }

.ob-gen-actions.show { display: block; }

.ob-home-link {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ob-muted);
  font-size: 14px;
  text-decoration: none;
}

/* ── Gallery page ────────────────────────────────────────────────── */
.ob-gallery-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.ob-gallery-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 4px 20px;
}

.ob-gallery-top h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.ob-gallery-top .ob-tag {
  margin: 0;
  align-self: flex-start;
}

.ob-gallery-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-photo-wrap {
  flex: 1;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ob-glass);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  border: 1px solid var(--ob-glass-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  position: relative;
}

.ob-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.ob-gallery-meta {
  text-align: center;
  flex-shrink: 0;
}

.ob-gallery-counter {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ob-text);
  font-weight: 700;
}

.ob-gallery-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.ob-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex-shrink: 0;
}

.ob-nav-btn {
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--ob-glass-border-strong);
  background: var(--ob-glass-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  color: var(--ob-text);
  cursor: pointer;
}

.ob-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ob-nav-btn.primary {
  background: #ffffff;
  color: var(--ob-primary);
  font-weight: 700;
  border-color: transparent;
}

.ob-nav-btn:active:not(:disabled) { transform: scale(0.98); }

.ob-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.ob-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ob-dot-off);
}

.ob-gallery-dot.on { background: var(--ob-dot-on); }

.ob-gallery-loading {
  margin: 0;
  color: var(--ob-muted-strong);
  font-size: 15px;
  text-align: center;
}

.ob-gallery-loading[hidden] {
  display: none !important;
}

.ob-photo-wrap .ob-gallery-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-gallery-stage.hidden { display: none; }

html[data-page="gallery"] .hidden { display: none !important; }

/* ── Home page ───────────────────────────────────────────────────── */
html[data-page="home"] .hidden { display: none !important; }

html[data-page="home"] .ob-home-app {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0;
  min-height: 0;
  height: auto;
  padding:
    calc(8px + env(safe-area-inset-top, 0px))
    24px
    calc(8px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

html[data-page="home"] .ob-home-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.ob-home-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  min-height: 100%;
  padding: 20px 24px 16px;
  gap: 0;
  box-sizing: border-box;
}

.ob-home-logo {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.ob-home-title {
  margin-bottom: 16px;
  font-size: clamp(28px, 7vw, 34px);
  max-width: 320px;
}

.ob-home-lead {
  margin-bottom: 0;
  max-width: 300px;
}

.ob-home-status {
  margin: 20px 0 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ob-glass-strong);
  border: 1px solid var(--ob-glass-border-strong);
  backdrop-filter: var(--ob-blur);
  -webkit-backdrop-filter: var(--ob-blur);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ob-text);
  max-width: 320px;
}

.ob-home-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 28px;
}

.ob-home-actions .ob-btn {
  text-decoration: none;
}

.ob-home-reset {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ob-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

html[data-page="home"] .ob-home-footer {
  margin-top: 24px;
  padding-top: 0;
}

.ob-home-footer {
  margin-top: 24px;
  padding-top: 0;
}

.ob-home-footer a {
  color: var(--ob-muted);
  font-size: 13px;
  text-decoration: none;
}

.ob-home-footer a:hover { color: var(--ob-text); }

/* ── Prep page (before swipe test) ───────────────────────────────── */
html[data-page="prep"] body.ob-page {
  display: block !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    20px
    calc(88px + env(safe-area-inset-bottom, 0px));
}

html[data-page="prep"] body.ob-page::-webkit-scrollbar {
  display: none;
}

.ob-prep-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 16px;
}

.ob-prep-app .ob-form-back {
  align-self: flex-start;
  margin-bottom: 12px;
}

.ob-prep-app .ob-eyebrow,
.ob-prep-app h1,
.ob-prep-app .ob-form-lead {
  width: 100%;
  max-width: 320px;
}

.ob-prep-app h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 6vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}

.ob-prep-app .ob-form-lead {
  margin-bottom: 24px;
}

.ob-prep-list {
  width: 100%;
  max-width: 340px;
  margin: 0 0 20px;
}

.ob-prep-list .ob-pill {
  text-align: left;
}

.ob-prep-list .ob-pill strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.ob-pill-accent {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
}

.ob-prep-actions {
  flex-shrink: 0;
  width: 100%;
  max-width: 340px;
  padding-top: 0;
}

.ob-prep-actions .ob-btn {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .ob-character-slide,
  .ob-slide,
  .ob-pulse {
    transition: none;
    animation: none;
  }
}
