/* Income Launch · design system (the AvatarFactory funnel system, recoloured)
   Layout concept: one question per screen on an ivory canvas, blue pill
   actions pinned to the bottom, a quiet live preview of the store at the side.
   Component vocabulary follows shadcn/ui (button, card, radio-group, checkbox,
   input, badge, progress, dialog, toast, tooltip) themed to the brand tokens. */

:root {
  color-scheme: light;
  /* color */
  --bg: #FFFCF5;
  --surface: #FFFEFA;
  --surface-2: #F7F1E8;
  --surface-3: #F1EADF;
  --border: #ECE4D8;
  --border-strong: #D6CBBB;
  --fg: #2B1D16;
  --fg-2: #5B4A3F;
  --muted: #776759;   /* same warm hue as before, darkened to pass WCAG AA (≥ 4.5:1) on the canvas, surfaces and blue-50 */
  --muted-2: #B5A999; /* decorative only (icons, separators): never text */
  --primary: #225AEA;
  --primary-hover: #1B4BCC;
  --primary-press: #173FAE;
  --on-primary: #FFFFFF;
  --blue-50: #F0F4FE;
  --blue-100: #E3EAFD;
  --blue-200: #C7D6FB;
  --blue-300: #9DB7F6;
  --blue-700: #1A43B0;
  --accent: #225AEA;
  --accent-soft: rgba(34, 90, 234, 0.12);
  --star: #E9A43F;
  --success: #4F6A22;
  --success-soft: rgba(101, 124, 37, 0.12);
  --danger: #B43732;
  --danger-soft: rgba(180, 55, 50, 0.1);
  --ring: #4F7DF0;    /* focus ring: a lighter brand blue, ≥ 3:1 against the canvas and surfaces (WCAG 1.4.11) */
  /* shape */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(49, 30, 23, 0.05);
  --shadow: 0 10px 30px -14px rgba(49, 30, 23, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(49, 30, 23, 0.35);
  /* type */
  --font: 'Figtree', 'Aeonik Pro', 'Helvetica Neue', Arial, sans-serif;
  /* layout */
  --topbar-h: 80px;
  --progress-h: 4px;
  --cta-h: 96px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1200px;
  --content-w: 1120px;
  --side-w: 276px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
/* Keyboard focus (and any scroll into view) stops clear of the fixed top bar and the pinned CTA bar. */
html {
  scroll-padding-top: calc(var(--topbar-h) + var(--progress-h) + 16px + env(safe-area-inset-top, 0px));
  scroll-padding-bottom: calc(var(--cta-h) + 24px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 1140px) { html:has(body[data-side="on"]) { scroll-padding-top: calc(var(--topbar-h) + var(--progress-h) + 70px + env(safe-area-inset-top, 0px)); } }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }
::selection { background: var(--accent-soft); }
svg.ic { width: 1.1em; height: 1.1em; flex: none; }
.btn svg, .btn-ghost svg { width: 18px; height: 18px; }
.badge svg.ok { color: var(--success); }

/* ---------- Top bar + progress ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  height: var(--topbar-h); max-width: var(--maxw); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--fg); white-space: nowrap; }
.brand svg { width: 26px; height: 28px; fill: var(--primary); }
.section-label { font-size: 15px; font-weight: 600; color: var(--fg); text-align: center; letter-spacing: 0.01em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg); transition: background .15s, border-color .15s, transform .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--primary); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: 0; pointer-events: none; }
.progress { display: flex; gap: 4px; height: var(--progress-h); background: transparent; }
.progress i { flex: 1; background: var(--blue-100); position: relative; overflow: hidden; }
.progress i b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--primary); transition: width .5s var(--ease); }
.progress[hidden] { display: none; }

/* Live avatar strip (narrow screens) */
.avatar-strip {
  position: fixed; left: 0; right: 0; z-index: 25; top: calc(var(--topbar-h) + var(--progress-h) + 1px + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 92%, white); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: none;
}
.avatar-strip button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter-r) 8px var(--gutter); text-align: left; }
.avatar-strip img, .avatar-strip .ph { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar-strip .t { min-width: 0; flex: 1; font-size: 14px; line-height: 1.25; }
.avatar-strip .t b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-strip .t span { color: var(--muted); }
.avatar-strip .pct { font-size: 14px; font-weight: 700; color: var(--primary); background: var(--blue-50); padding: 4px 10px; border-radius: var(--pill); flex: none; }

/* ---------- Page scaffold ---------- */
.app { min-height: 100vh; }
.screen {
  padding-top: calc(var(--topbar-h) + var(--progress-h) + 48px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--cta-h) + 40px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
body[data-cta="none"] .screen { padding-bottom: 64px; }
@media (max-width: 1140px) { body[data-side="on"] .avatar-strip { display: block; } }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.layout.with-side { grid-template-columns: minmax(0, 1fr) var(--side-w); }
.main { min-width: 0; }

.q-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.eyebrow { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.q-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
.q-title b { font-weight: 600; }
.q-sub { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.q-sub strong { color: var(--fg); font-weight: 600; }
.q-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.q-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- Option grids ---------- */
.grid { display: grid; gap: 20px; margin: 0 auto; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1128px; }
.grid.cols-2.wide { max-width: 860px; }

.card {
  position: relative; display: flex; flex-direction: column; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card[aria-checked="true"], .card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary), var(--shadow); }
.card[aria-checked="true"] .card-foot, .card.is-selected .card-foot { background: var(--blue-50); }
.card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring), var(--shadow); }
.card-media { position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); overflow: hidden; }
.card-media.landscape { aspect-ratio: 4 / 3; }
.card-media.square { aspect-ratio: 1 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 10px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface) 92%, white); color: var(--fg); box-shadow: var(--shadow-sm);
}
.card-media .tag.is-accent { background: var(--blue-100); color: var(--blue-700); } /* soft badge: only the CTAs are solid blue */
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.card-foot .txt { min-width: 0; display: block; }
.card-label { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.card-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.card.compact .card-foot { padding: 14px 16px; }

.radio, .checkbox {
  flex: none; width: 24px; height: 24px; border: 1.5px solid var(--border-strong); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.radio { border-radius: 50%; }
.checkbox { border-radius: 7px; }
.radio svg, .checkbox svg { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; color: var(--on-primary); }
[aria-checked="true"] .radio, [aria-checked="true"] .checkbox, .is-selected .radio { background: var(--primary); border-color: var(--primary); }
[aria-checked="true"] .radio svg, [aria-checked="true"] .checkbox svg, .is-selected .radio svg { opacity: 1; transform: none; }

/* Start screen cards (gender) */
.start-title { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; text-align: center; text-wrap: balance; }
.start-sub { margin: 18px 0 32px; text-align: center; font-size: 19px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.card.start .card-media { aspect-ratio: 4 / 5; background: var(--surface-2); }
.card.start .pill-cta {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  height: 56px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; font-size: 18px; font-weight: 600;
}
.card.start .pill-cta i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.card.start .pill-cta i svg { width: 18px; height: 18px; }
.card.start:hover .pill-cta { background: var(--primary-hover); }
.legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--fg-2); max-width: 1128px; margin-inline: auto; }
.legal a { color: var(--primary); font-weight: 600; padding: 14px 0; } /* inline: the padding grows the tap area to 44px+, not the line */
.legal small { display: block; color: var(--muted); margin-top: 2px; font-size: 14px; }
.alt-link { display: block; text-align: center; margin-top: 18px; font-size: 15px; color: var(--muted); }
.alt-link a { font-weight: 600; color: var(--fg); }

/* Row options (single or multi) */
.rows { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.rows.two-col { max-width: 1128px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.row {
  width: 100%; min-height: 84px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.row[aria-checked="true"] { border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary); background: var(--blue-50); }
.row[aria-checked="true"] .row-icon { background: var(--blue-100); color: var(--primary); }
.row:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.row-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); }
.row-icon svg { width: 20px; height: 20px; }
.row-icon.img { overflow: hidden; width: 52px; height: 52px; border-radius: 12px; }
.row-icon.img img { width: 100%; height: 100%; object-fit: cover; }
.row-label { font-size: 17px; font-weight: 600; line-height: 1.3; }
.row-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Chips (names) */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; margin: 0 auto; }
.chip {
  height: 50px; padding: 0 22px; border-radius: var(--pill); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 16px; font-weight: 600; transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.chip[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Swatches (hair color) */
.swatch-group { margin-top: 32px; }
.swatch-title { text-align: center; font-size: 15px; font-weight: 600; color: var(--fg-2); margin-bottom: 14px; }
.swatches { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 76px; font-size: 14px; color: var(--muted); font-weight: 500; }
.swatch i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border-strong); transition: box-shadow .15s, transform .15s; }
.swatch:hover i { transform: scale(1.06); }
.swatch[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--primary); }
.swatch[aria-checked="true"] { color: var(--fg); font-weight: 600; }

/* "Show 3 more" */
.more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.btn-more {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--pill);
  border: 1.5px dashed var(--border-strong); background: var(--surface); font-weight: 600; font-size: 15px; color: var(--fg);
  transition: border-color .15s, background .15s;
}
.btn-more:hover { border-color: var(--primary); background: var(--surface-2); }
.btn-more small { color: var(--muted); font-weight: 500; font-size: 14px; }
.btn-more svg { width: 16px; height: 16px; color: var(--accent); }
.btn-more[disabled] { opacity: .5; cursor: default; }

/* Skeleton / loading */
.skeleton .card-media, .sk { background: linear-gradient(100deg, var(--surface-3) 30%, var(--surface-2) 45%, var(--surface-3) 60%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton .card-foot .sk { height: 18px; border-radius: 6px; width: 60%; }
@keyframes shimmer { to { background-position-x: -200%; } }
.gen-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 24px; padding: 10px 16px; border-radius: var(--pill); background: var(--surface-2); color: var(--fg-2); font-size: 14px; font-weight: 600; width: max-content; max-width: 100%; }
.gen-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.gen-status.is-done .dot { background: var(--success); animation: none; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; min-width: 300px; padding: 0 32px; border-radius: var(--pill);
  background: var(--primary); color: var(--on-primary); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: background .15s, transform .12s, box-shadow .15s; box-shadow: 0 8px 20px -10px rgba(34, 90, 234, 0.55);
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { background: #AEBBDC; color: #FFFFFF; box-shadow: none; cursor: not-allowed; }
.btn.block { width: 100%; min-width: 0; }
.btn.lower { text-transform: none; letter-spacing: 0; font-size: 17px; }
.btn.loading { pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: var(--pill); border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); transition: border-color .15s, background .15s; }
.btn-ghost:hover { border-color: var(--primary); background: var(--surface-2); }
.btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; }
.btn-link:hover { color: var(--fg); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: var(--pill); border: 1.5px solid var(--border-strong); background: #fff; font-weight: 700; font-size: 15px; }
.btn-google:hover { border-color: var(--primary); }
.btn-google svg { width: 20px; height: 20px; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 20px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cta-bar .hint { width: 100%; text-align: center; font-size: 14px; color: var(--muted); margin-top: -6px; }
/* An empty bar keeps its height and only slides out (transform), so emptying it never shifts the layout. */
.cta-bar { min-height: calc(var(--cta-h) + env(safe-area-inset-bottom, 0px)); }
body[data-cta="none"] .cta-bar { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--topbar-h) + 20px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -12px); z-index: 60;
  background: var(--primary); color: var(--on-primary); padding: 12px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); width: max-content; max-width: min(560px, 92vw); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: #FFFFFF; font-weight: 800; } /* white on #225AEA is 5.65:1; the old light blue was 3.88:1 */

/* ---------- Interstitials ---------- */
.inter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1128px; margin: 0 auto; min-height: 460px; }
.inter-text .big { font-size: clamp(34px, 3.8vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.024em; text-wrap: balance; }
.inter-text .big b { font-weight: 700; }
.inter-text .lede { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.inter-text .lede strong { color: var(--fg); font-weight: 600; }
.inter-text p + p { margin-top: 12px; }
.inter-media { border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); aspect-ratio: 1 / 1; position: relative; box-shadow: var(--shadow); }
.inter-media img { width: 100%; height: 100%; object-fit: cover; }
.inter-media.strip { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; background: var(--surface-2); }
.inter-media.strip img { aspect-ratio: 3 / 4; border-radius: 16px; }
.inter-media .cap { position: absolute; left: 14px; bottom: 14px; background: color-mix(in srgb, var(--surface) 90%, white); padding: 8px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 6px; }
.inter-media .cap svg { width: 14px; height: 14px; color: var(--accent); }
.press { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.press .lbl { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.press .logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.press img { height: 16px; width: auto; filter: brightness(0) saturate(100%) opacity(0.62); }
.quote-card { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface-2); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; text-align: left; }
.quote-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-card .stars { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.quote-card blockquote { margin: 4px 0 6px; font-size: 16px; line-height: 1.45; font-style: normal; }
.quote-card figcaption { font-size: 14px; color: var(--muted); }
.quote-card figcaption b { color: var(--fg); }

/* ---------- Live avatar card (side) ---------- */
.side { position: sticky; top: calc(var(--topbar-h) + var(--progress-h) + 32px + env(safe-area-inset-top, 0px)); align-self: start; }
.avatar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.avatar-card .pic { aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); position: relative; }
.avatar-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.avatar-card .pic .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.avatar-card .pic .empty svg { width: 40px; height: 40px; color: var(--muted-2); }
.avatar-card .pic .badge { position: absolute; left: 10px; top: 10px; }
.avatar-card h4 { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.2; }
.avatar-card .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.attrs { margin-top: 12px; display: grid; gap: 6px; }
.attrs li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); min-height: 24px; }
.attrs li b { color: var(--fg); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64%; }
.attrs li.is-next { color: var(--fg); }
.attrs li.is-next b { color: var(--accent); }
.attrs li .k { display: inline-flex; align-items: center; gap: 6px; }
.attrs li .k svg { width: 14px; height: 14px; color: var(--success); }
.attrs li .k .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); margin: 0 4px; }
.attrs li.is-set .k .dot { display: none; }
.attrs li:not(.is-set) .k svg { display: none; }
.avatar-card .ready { margin-top: 12px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.avatar-card .ready b { display: block; height: 100%; background: var(--primary); width: 0; transition: width .5s var(--ease); }
.avatar-card .ready-lbl { margin-top: 6px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--pill); font-size: 14px; font-weight: 700; background: color-mix(in srgb, var(--surface) 90%, white); box-shadow: var(--shadow-sm); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.accent { background: var(--blue-100); color: var(--blue-700); }
.badge.plain { background: var(--surface-2); color: var(--fg-2); }
.badge svg { width: 12px; height: 12px; }

/* Bottom sheet (narrow screens) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(43, 29, 22, 0.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-backdrop.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--bg); border-radius: 24px 24px 0 0; padding: 12px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter); transform: translateY(105%); transition: transform .3s var(--ease); max-height: 85vh; overflow: auto; }
.sheet.is-on { transform: none; }
.sheet:focus, .sheet:focus-visible { outline: none; }
.sheet .handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 14px; }
.sheet .avatar-card { border: 0; box-shadow: none; padding: 0; animation: none; }
.sheet .avatar-card .pic { max-width: 220px; margin: 0 auto; }

/* ---------- Voice cards ---------- */
.voice { padding: 20px 20px 18px; gap: 14px; }
.voice .top { display: flex; align-items: center; gap: 14px; }
.play { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.play:hover { transform: scale(1.06); background: var(--primary-hover); }
.play svg { width: 18px; height: 18px; }
.play .ic-pause { display: none; }
.voice.is-playing .play .ic-play { display: none; }
.voice.is-playing .play .ic-pause { display: block; }
.voice .nm { font-size: 17px; font-weight: 600; flex: 1; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--border-strong); transition: background .2s; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(5n) { height: 45%; } .wave i:nth-child(7n) { height: 95%; } .wave i:nth-child(4n+1) { height: 55%; }
.voice.is-playing .wave i { background: var(--primary); animation: wave .7s ease-in-out infinite alternate; }
.voice.is-playing .wave i:nth-child(2n) { animation-delay: .12s; } .voice.is-playing .wave i:nth-child(3n) { animation-delay: .24s; }
@keyframes wave { from { transform: scaleY(.5); } to { transform: scaleY(1.25); } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 14px; font-weight: 600; color: var(--fg-2); background: var(--surface-2); padding: 4px 9px; border-radius: var(--pill); }
.voice .foot { display: flex; justify-content: flex-end; }

/* ---------- Money cards ---------- */
.money { padding: 24px; gap: 12px; }
.money .icon-box { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); }
.money .icon-box svg { width: 22px; height: 22px; }
.money .nm { font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.money .ex { font-size: 15px; color: var(--muted); line-height: 1.45; }
.money .tagline { display: inline-flex; width: max-content; }
.money details { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.money summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--fg-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.money summary::-webkit-details-marker { display: none; }
.money summary svg { width: 14px; height: 14px; transition: transform .2s; }
.money details[open] summary svg { transform: rotate(180deg); }
.money .steps { margin-top: 10px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-2); }
.money .steps li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.money .steps li i { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.money.help { background: var(--surface-2); border-style: dashed; }

/* ---------- Building ---------- */
.build { max-width: 560px; margin: 0 auto; text-align: center; }
.build .portrait { width: 240px; aspect-ratio: 3 / 4; margin: 0 auto 28px; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--surface-2); box-shadow: var(--shadow); }
.build .portrait img { width: 100%; height: 100%; object-fit: cover; }
.build .portrait::after { content: ""; position: absolute; left: -20%; right: -20%; height: 46%; top: -46%; background: linear-gradient(180deg, rgba(255, 252, 245, 0) 0%, rgba(255, 252, 245, 0.55) 50%, rgba(255, 252, 245, 0) 100%); animation: scan 2.6s linear infinite; }
@keyframes scan { to { top: 110%; } }
.stages { display: grid; gap: 18px; text-align: left; }
.stage .lbl { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.stage .lbl span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.stage .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.stage .bar b { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s linear; }
.stage.is-done .lbl span:last-child { color: var(--success); }
.counter { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--pill); background: var(--surface-2); font-size: 14px; color: var(--fg-2); }
.counter b { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--fg); }
.counter .radar { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: radar 1.4s ease-out infinite; }
@keyframes radar { to { box-shadow: 0 0 0 10px rgba(34, 90, 234, 0); } }

/* ---------- Dialogs ---------- */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(43, 29, 22, 0.5); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: min(520px, 100%); background: var(--bg); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg); animation: screen-in .25s var(--ease) both; }
.dialog h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.dialog p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.dialog .actions { margin-top: 22px; display: grid; gap: 10px; }
.dialog .who { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.dialog .who img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.dialog .who b { display: block; font-size: 16px; }
.dialog .who span { font-size: 14px; color: var(--muted); }
.dialog .x { position: absolute; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog:focus, .dialog:focus-visible { outline: none; }

/* ---------- Reveal / profile ---------- */
.profile { max-width: 1040px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; box-shadow: var(--shadow); }
.profile .portrait { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); position: relative; }
.profile .portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile .portrait .badge { position: absolute; left: 12px; top: 12px; }
.profile .nm { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.profile .niche { color: var(--muted); font-size: 16px; margin-top: 4px; }
.profile .chips { justify-content: flex-start; margin-top: 16px; gap: 8px; max-width: none; }
.profile .chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; background: var(--surface-2); padding: 6px 12px; border-radius: var(--pill); color: var(--fg-2); }
.profile .chips span svg { width: 12px; height: 12px; color: var(--success); }
.stats { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.stat .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.stat .lbl em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.stat .bar b { display: block; height: 100%; width: 0; background: var(--primary); transition: width 1s var(--ease); }
.outfits { margin-top: 22px; }
.outfits .ttl { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs button, .thumbs span { width: 60px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; position: relative; background: var(--surface-2); }
.thumbs button img, .thumbs span img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-pressed="true"] { border-color: var(--primary); }
.thumbs span img { filter: blur(6px) saturate(.8); transform: scale(1.1); }
.thumbs span i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--on-primary); }
.thumbs span i svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.equip { margin-top: 8px; font-size: 14px; color: var(--muted); }
.equip b { color: var(--fg); }
.reel-box { margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-2); }
.reel-box .radar { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: radar 1.4s ease-out infinite; }
.reel-box b { display: block; font-size: 15px; }
.reel-box small { color: var(--muted); font-size: 14px; }
.reel-box .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.reel-box .n small { display: block; font-weight: 500; }
.waiting { margin-top: 22px; padding: 18px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); }
.waiting .ttl { font-size: 15px; font-weight: 700; }
.waiting p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.waiting .thumbs { margin-top: 12px; }
.hear { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; height: 48px; padding: 0 18px 0 6px; border-radius: var(--pill); border: 1.5px solid var(--border-strong); font-weight: 600; font-size: 15px; background: var(--surface); }
.hear .play { width: 36px; height: 36px; }
.hear .play svg { width: 14px; height: 14px; }

/* ---------- Package ---------- */
.pkg { max-width: 680px; margin: 0 auto; }
.pkg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.pkg-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pkg-head img { width: 56px; height: 70px; border-radius: 12px; object-fit: cover; }
.pkg-head .ttl { font-size: 20px; font-weight: 700; }
.pkg-head .for { font-size: 14px; color: var(--muted); }
.pkg-head .badge { margin-left: auto; }
.pkg-grp { margin: 18px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pkg-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pkg-item:last-child { border-bottom: 0; }
.pkg-item .icon-box { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2); }
.pkg-item .icon-box svg { width: 19px; height: 19px; }
.pkg-item b { display: block; font-size: 15px; font-weight: 600; }
.pkg-item span.l { display: block; font-size: 14px; color: var(--muted); }
.pkg-item .price { font-size: 15px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pkg-item .price.free { color: var(--success); }
.tip-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-left: 6px; }
.tip { display: none; margin-top: 6px; font-size: 14px; color: var(--fg-2); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.tip.is-open { display: block; }
.deal { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.deal .lbl { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.deal .row2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deal s { color: var(--muted); font-size: 16px; }
.deal .now { font-size: 22px; font-weight: 700; }
.deal .timer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: var(--pill); background: var(--danger-soft); color: var(--danger); font-variant-numeric: tabular-nums; }
.deal .timer svg { width: 13px; height: 13px; }
.pkg-cta { margin-top: 18px; }
.fine { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.trust { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--fg-2); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--star); }
.trust .ok svg { color: var(--success); }

/* ---------- Forms (claim / checkout / account) ---------- */
.two { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; max-width: 1040px; margin: 0 auto; align-items: start; }
.two.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.portrait-card { border-radius: var(--radius-xl); overflow: hidden; position: relative; aspect-ratio: 3 / 4; background: var(--surface-2); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card img.blur { filter: blur(16px) saturate(.9); transform: scale(1.08); }
.portrait-card .badge { position: absolute; left: 14px; top: 14px; }
.portrait-card .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); top: 0; animation: scanline 2.4s linear infinite; opacity: .8; }
@keyframes scanline { to { top: 100%; } }
.caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.form-head .q-title { text-align: left; }
.form-head .q-sub { text-align: left; }
.form { margin-top: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg-2); }
.input {
  height: 56px; width: 100%; padding: 0 16px; border-radius: var(--radius); border: 1.5px solid var(--border-strong); background: var(--surface);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); } /* the placeholder is the phone format hint: it has to be readable */
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input.is-invalid { border-color: var(--danger); }
.input-wrap { position: relative; }
.input-wrap .right { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.input-wrap .right img, .input-wrap .right .brand-ic { height: 18px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { font-size: 14px; color: var(--danger); min-height: 20px; }
.err button { color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.err button + button { margin-left: 10px; color: var(--muted); font-weight: 600; }
.checks { margin-top: 20px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: var(--fg-2); align-items: flex-start; }
.checks li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.get { margin-top: 20px; font-size: 14px; font-weight: 700; }
.deal.mini { margin-top: 16px; }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B4A3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* Checkout */
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; }
.summary .who { display: flex; align-items: center; gap: 12px; }
.summary .who img { width: 52px; height: 64px; border-radius: 10px; object-fit: cover; }
.summary .who b { display: block; font-size: 16px; }
.summary .who span { font-size: 14px; color: var(--muted); }
.summary .held { margin-left: auto; }
.summary h3 { margin-top: 20px; font-size: 15px; font-weight: 700; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.summary .line s { color: var(--muted); }
.summary .line.total { font-size: 17px; font-weight: 700; border-bottom: 0; }
.summary .line.week { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; border: 0; font-weight: 700; margin-top: 8px; }
.summary ul.checks { margin-top: 8px; gap: 6px; }
.summary ul.checks li { font-size: 14px; }
.pay { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; }
.pay .method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--primary); background: var(--blue-50); font-weight: 600; font-size: 14px; }
.pay .method > svg { width: 16px; height: 16px; }
.pay .method .brands { margin-left: auto; display: flex; gap: 4px; }
.pay .method .brands span, .brand-ic { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; padding: 3px 5px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--fg-2); line-height: 1; }
.secure { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); display: flex; justify-content: center; gap: 6px; align-items: center; }
.secure svg { width: 13px; height: 13px; }
.guarantee { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--success-soft); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--fg-2); }
.guarantee svg { width: 22px; height: 22px; color: var(--success); }
.guarantee b { color: var(--fg); }
.proto-note { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* Finish */
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 15px; }
.notice svg { width: 18px; height: 18px; flex: none; }
.notice + .notice { margin-top: 10px; }
.upsell { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.upsell h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 10px; }
.upsell p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.upsell .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.upsell .three div { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.upsell .three img { width: 100%; height: 100%; object-fit: cover; }
.upsell .three .badge { position: absolute; left: 8px; bottom: 8px; }
.upsell .stat { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.upsell .stat b { font-size: 24px; font-weight: 700; color: var(--success); }
.upsell .stat span { font-size: 14px; color: var(--fg-2); }
.upsell .actions { margin-top: 18px; display: grid; gap: 10px; }
.upsell .price { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.account { margin-top: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.account h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.account .or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.account .or::before, .account .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Store */
.store-checks { margin-top: 18px; }
.store-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.note { font-size: 14px; color: var(--muted); }

/* Done */
.done { text-align: center; max-width: 560px; margin: 0 auto; }
.done .portrait { width: 200px; aspect-ratio: 3 / 4; margin: 0 auto 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.done .portrait img { width: 100%; height: 100%; object-fit: cover; }
.done .actions { margin-top: 28px; display: grid; gap: 12px; justify-items: center; }

/* Import */
.steps-list { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.steps-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; font-weight: 500; }
.steps-list li i { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 14px; }
.center-form { max-width: 560px; margin: 24px auto 0; }

/* Popup question during building */
.popup { text-align: left; }
.popup .rows { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .layout.with-side { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  /* Room for the store strip goes on the step's own content (new on every step), not on the page frame: showing or
     hiding the strip then never moves a persistent box (no layout shift). */
  body[data-side="on"] .main { padding-top: 46px; }
  /* The toast drops below the store strip so it never covers the strip's launch score as it bumps. */
  body[data-side="on"] .toast { top: calc(var(--topbar-h) + var(--progress-h) + 53px + 12px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 900px) {
  .inter { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .inter-media { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .inter-text { text-align: center; }
  .press { justify-content: center; }
  .profile { grid-template-columns: 1fr; padding: 18px; }
  .profile .portrait { max-width: 320px; margin: 0 auto; width: 100%; }
  .two, .two.rev { grid-template-columns: 1fr; gap: 28px; }
  .two .portrait-card { max-width: 360px; margin: 0 auto; }
  .rows.two-col { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 64px; --cta-h: 92px; }
  .brand { font-size: 19px; }
  .brand .wordmark { display: none; }
  .section-label { font-size: 14px; }
  .screen { padding-top: calc(var(--topbar-h) + var(--progress-h) + 28px + env(safe-area-inset-top, 0px)); }
  body[data-side="on"] .main { padding-top: 66px; }
  .q-head { margin-bottom: 24px; }
  .q-title { font-size: 28px; }
  .q-sub { font-size: 16px; }
  .start-title { font-size: 34px; }
  .start-sub { font-size: 16px; margin: 14px 0 22px; }
  .grid { gap: 12px; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2.wide, .grid.voices { grid-template-columns: 1fr; }
  .grid.voices { max-width: 560px; }
  .card-foot { padding: 12px 14px; }
  .card-label { font-size: 15px; }
  .card.start .pill-cta { height: 50px; font-size: 16px; left: 8px; right: 8px; bottom: 8px; }
  .btn { min-width: 0; width: 100%; }
  .cta-bar { padding-top: 14px; }
  .row { min-height: 72px; padding: 14px 16px; }
  .chips { gap: 10px; }
  .money { padding: 18px; }
  .profile .nm { font-size: 28px; }
  .stats { grid-template-columns: 1fr; }
  .pkg-card { padding: 18px; }
  .summary, .pay, .upsell, .account { padding: 18px; }
  .dialog { padding: 22px; }
  .inter-text .big { font-size: 30px; }
  .inter-text .lede { font-size: 16px; }
  .press .lbl { font-size: 18px; width: 100%; text-align: center; }
  .press .logos { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- Round 2: hair recolor, voice recommendation, simpler money, modern reveal ---------- */
.card-media img { transition: transform .6s var(--ease), opacity .25s; }
.card-media img.is-swapping { opacity: .35; }
.swatch-group { margin: 0 auto 28px; }
.swatch-hint { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.attrs li b { display: inline-flex; align-items: center; gap: 7px; max-width: 66%; }
.attrs li b > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attrs .thumb { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex: none; background: var(--surface-3); }

.voice-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.voice-wrap .grid.voices { max-width: none; margin: 0; }
.voice.is-reco { padding: 22px 24px; gap: 14px; border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary), var(--shadow); }
.voice.is-reco .top .radio { margin-left: auto; }
.voice .top .radio { margin-left: auto; }
.voice .foot { display: none; }
.reco-badge { width: max-content; }
.reco-why { font-size: 15px; color: var(--fg-2); line-height: 1.45; }
.voice.is-reco .play { width: 56px; height: 56px; }
.voice.is-reco .play svg { width: 22px; height: 22px; }
.voice.is-reco .nm { font-size: 20px; }

.money-rows { max-width: 640px; }
.money-row { min-height: 96px; padding: 18px 22px; }
.money-row .row-icon { width: 48px; height: 48px; }
.money-row .row-icon svg { width: 22px; height: 22px; }
.row-tag { display: inline-flex; margin-bottom: 6px; }
.money-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.money-links .sep { color: var(--muted-2); }
.how-list { margin-top: 16px; display: grid; gap: 16px; max-height: 60vh; overflow: auto; }
.how > b { display: block; font-size: 16px; margin-bottom: 8px; }
.how .steps { display: grid; gap: 8px; font-size: 15px; color: var(--fg-2); margin: 0; padding: 0; }
.how .steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.how .steps li i { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }

.reveal { max-width: 1060px; margin: 0 auto; display: grid; gap: 18px; }
.reveal-hero { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.reveal-portrait { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.reveal-portrait img { width: 100%; height: 100%; object-fit: cover; }
.reveal-portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(180deg, rgba(43, 29, 22, 0) 0%, rgba(43, 29, 22, 0.55) 100%); pointer-events: none; }
.reveal-portrait .badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.hear-pill { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 6px; border-radius: var(--pill); background: var(--surface); color: var(--fg); font-weight: 700; font-size: 15px; box-shadow: var(--shadow); transition: transform .15s; }
.hear-pill:hover { transform: translateY(-1px); }
.hear-pill .play { width: 36px; height: 36px; }
.hear-pill .play svg { width: 14px; height: 14px; }
.hear-pill.is-playing .ic-play { display: none; }
.hear-pill.is-playing .ic-pause { display: block; }
.reveal-body { min-width: 0; }
.reveal-niche { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.reveal-name { margin-top: 6px; font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.reveal-story { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.spec { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.spec dt { font-size: 14px; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.scores { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.score { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.score .lbl { display: block; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score em { display: block; font-style: normal; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.score .bar { margin-top: 10px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.score .bar b { display: block; height: 100%; width: 0; background: var(--primary); transition: width 1s var(--ease); }
.reveal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reveal-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 0; }
.reveal-card .ttl { font-size: 16px; font-weight: 700; line-height: 1.3; }
.reveal-card p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.reveal-card .thumbs { margin-top: 14px; }
.reveal-card .equip { margin-top: 10px; }
.reveal-card.reels { background: var(--surface-2); border-color: transparent; }
.reveal-card.reels .radar { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: radar 1.4s ease-out infinite; }
.reveal-card.reels .n { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.1; }
.reveal-card.reels .ttl { font-size: 15px; font-weight: 600; margin-top: 2px; }
@media (max-width: 900px) {
  .reveal-hero { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .reveal-portrait { max-width: 340px; width: 100%; margin: 0 auto; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reveal-row { grid-template-columns: 1fr; }
  .voice.is-reco { padding: 18px; }
}
.swatch-group { margin: 28px auto 0; }
.avatar-card .pic .pic-note { position: absolute; left: 10px; bottom: 10px; }
.avatar-card .pic img { transition: opacity .3s; }

/* ---------- Motion: step transitions, progress slide, selection pop ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }
@keyframes pop { 35% { transform: scale(1.025); } }
@keyframes check-in { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } to { transform: scale(1); } }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes bump { 40% { transform: scale(1.12); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes label-swap { from { opacity: 0; transform: translateY(6px); } }
.main > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.main[data-dir="back"] > * { animation-name: rise-left; }
.main.is-leaving > * { animation: leave .17s ease-in both !important; }
.grid > li, .rows > li, .chips > li, .swatches > .swatch, .reveal-row > *, .spec > div, .scores > .score, .pkg-items > li, .checks > li, .steps-list > li, .thumbs > *, .popup .rows > li { animation: rise .5s var(--ease) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }
.main.is-leaving .grid > li, .main.is-leaving .rows > li, .main.is-leaving .chips > li { animation: none; }
.is-pop { animation: pop .38s var(--ease); }
[aria-checked="true"] .radio svg, [aria-checked="true"] .checkbox svg { animation: check-in .35s var(--ease); }
.card:active, .row:active, .chip:active { transform: scale(.985); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(34, 90, 234, 0.6); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.progress i b { transition: width .75s cubic-bezier(.2, .7, .2, 1); }
.progress i.is-active b::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, rgba(255, 252, 245, 0) 0%, rgba(255, 252, 245, .45) 50%, rgba(255, 252, 245, 0) 100%); animation: sheen 2.4s ease-in-out infinite; }
.section-label.is-swap { animation: label-swap .35s var(--ease) both; }
.icon-btn { transition: background .15s, border-color .15s, transform .15s, opacity .25s; }
.cta-bar { transform: translateY(110%); transition: transform .38s var(--ease); }
body[data-cta="on"] .cta-bar { transform: none; }
body[data-cta="none"] .cta-bar { display: flex; }
.cta-bar .btn { animation: rise .45s var(--ease) both; animation-delay: .12s; }
.avatar-card .pic img.pic-in { animation: fade-in .45s var(--ease) both; }
.attrs li.row-in { animation: rise .45s var(--ease) both; }
.avatar-strip .pct.bump { animation: bump .4s var(--ease); }
.avatar-strip img { transition: opacity .3s; }
.toast { transition: opacity .25s, transform .3s var(--ease); }
.gen-status { animation: rise .4s var(--ease) both; }
.dialog { animation: rise .3s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .cta-bar { transform: none; } body[data-cta="none"] .cta-bar { display: none; } }
/* Row text stacks: label, then description */
.row > span:nth-child(2) { display: block; min-width: 0; }
.row-label, .row-sub { display: block; }
.row-sub { margin-top: 3px; line-height: 1.4; }
.row-tag { display: inline-flex; width: max-content; margin-bottom: 8px; }
.money-row .row-label { font-size: 18px; }
.avatar-card .pic .pic-note { top: auto; bottom: 10px; left: 10px; }
.avatar-card .pic .badge.pic-note { top: auto; bottom: 10px; left: 10px; height: auto; }
