/* Baby Words redesign 2026-11-30 — matches the recovered Codex onboarding mockups.
   Theme-aware: lavender + gold (girl) and blue + gold (boy) come from the app's own --bw-* variables. */

html[data-baby=soft] body{
  background:
    radial-gradient(120% 60% at 0% 0%, var(--bw-accent-soft) 0%, transparent 60%),
    radial-gradient(120% 70% at 100% 100%, var(--bw-accent-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--bw-wash) 0%, var(--bw-wash-2) 100%);
  background-attachment: fixed;
}

/* Soft theme wash behind everything (a little richer than before, like the mockup) */
html[data-baby=soft] .pilot-app{
  background:
    radial-gradient(70% 45% at 0% 10%, var(--bw-accent-soft) 0%, transparent 70%),
    radial-gradient(70% 50% at 100% 90%, var(--bw-accent-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--bw-wash) 0%, var(--bw-wash-2) 100%) fixed !important;
}

/* Trial banner: soft butter strip with rounded bottom, like the mockup */
html[data-baby=soft] .bw-taste{
  background:linear-gradient(180deg,#fbeec1 0%,#fdf3d3 100%);
  border-bottom:1px solid var(--bw-gold-line);
  border-radius:0 0 22px 22px;
  box-shadow:0 6px 18px -14px rgba(73,37,95,.45);
  color:#4a3b2a;
}
html[data-baby=soft] .bw-taste a{color:var(--bw-deep);text-decoration-thickness:2px;text-underline-offset:3px}
html[data-baby=soft] .bw-taste .pilot-language{border:1.5px solid var(--bw-gold-line);background:#fff}
html[data-baby=soft] .bw-taste select{border:0;background:transparent;color:var(--bw-ink);font-weight:800;box-shadow:none}

/* Brand header */
html[data-baby=soft] .bw-brand b{font-family:var(--bw-display);font-weight:800;color:var(--bw-deep);letter-spacing:-.01em}
html[data-baby=soft] .bw-brand small{color:var(--bw-gold);letter-spacing:.16em;font-weight:800;text-transform:uppercase}
html[data-baby=soft] .bw-emblem{filter:drop-shadow(0 4px 8px rgba(201,167,108,.45))}

/* Cards: white, thin gold line, soft lift */
html[data-baby=soft] .bw-card{
  background:#fff;
  border:1.5px solid var(--bw-gold-line);
  border-radius:24px;
  box-shadow:0 18px 40px -30px rgba(40,20,60,.45),0 2px 0 rgba(255,255,255,.8) inset;
}
html[data-baby=soft] .bw-card h2,
html[data-baby=soft] .bw-first-look h2{font-family:var(--bw-display);font-weight:800;color:var(--bw-deep);letter-spacing:-.015em}
html[data-baby=soft] .bw-first-look h2{font-size:clamp(1.55rem,6.4vw,2.3rem);line-height:1.12;margin-bottom:.35em}
html[data-baby=soft] .bw-first-look .bw-soft{color:var(--bw-soft)}

/* Girl / Boy chips */
html[data-baby=soft] .bw-swatch{
  border:1.5px solid var(--bw-line);background:#fff;border-radius:999px;
  font-weight:800;color:var(--bw-ink);box-shadow:0 4px 12px -10px rgba(0,0,0,.4);
}
html[data-baby=soft] .bw-swatch[aria-pressed=true]{
  background:var(--bw-accent-soft);border-color:var(--bw-gold);color:var(--bw-deep);
  box-shadow:0 0 0 3px rgba(201,167,108,.18),0 6px 14px -10px rgba(0,0,0,.45);
}

/* Family picker: square photos with gold frame, selected = dark frame + check badge */
html[data-baby=soft] .bw-looks{gap:14px}
html[data-baby=soft] .bw-look{
  position:relative;background:#fff;border:1.5px solid var(--bw-gold-line);border-radius:18px;
  padding:6px 6px 10px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
html[data-baby=soft] .bw-look img{
  width:100%;aspect-ratio:1/1;object-fit:cover;object-position:50% 30%;
  border-radius:13px;border:1.5px solid var(--bw-gold-light);display:block;
}
html[data-baby=soft] .bw-look span{color:var(--bw-ink);font-weight:800;line-height:1.2;margin-top:7px;display:block}
html[data-baby=soft] .bw-look:hover{transform:translateY(-2px);box-shadow:0 12px 22px -16px rgba(40,20,60,.6)}
html[data-baby=soft] .bw-look[aria-pressed=true]{
  border:3px solid var(--bw-deep);padding:4.5px 4.5px 8.5px;
  box-shadow:0 14px 26px -16px rgba(40,20,60,.7);
}
html[data-baby=soft] .bw-look[aria-pressed=true]::after{
  content:"\2713";position:absolute;top:12px;inset-inline-end:12px;
  background:var(--bw-deep);color:#fff;font-weight:900;font-size:.9rem;line-height:1;
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;border:2px solid #fff;box-shadow:0 4px 10px -4px rgba(0,0,0,.55);
}

/* Summary chip + Continue row (onboarding) */
html[data-baby=soft] .bw-first-look{display:grid;grid-template-columns:1fr;row-gap:12px}
html[data-baby=soft] .bw-first-look > *{min-width:0}
html[data-baby=soft] .bw-first-look[data-bw-sum]::after{
  content:attr(data-bw-sum);order:9;
  display:flex;align-items:center;justify-content:center;text-align:center;
  background:var(--bw-butter-2,#fff7dd);color:var(--bw-deep);
  font-family:var(--bw-display);font-weight:800;font-size:1.05rem;
  border-radius:999px;padding:.6em 1em;border-top:1px solid var(--bw-gold-light);
}
html[data-baby=soft] .bw-first-look > .bw-primary{order:10}

/* Primary buttons: deep gradient pill */
html[data-baby=soft] .bw-primary{
  background:linear-gradient(180deg,var(--bw-accent) 0%,var(--bw-deep) 100%);
  color:#fff;border:0;border-radius:999px;font-family:var(--bw-display);font-weight:800;
  letter-spacing:.01em;box-shadow:0 12px 22px -14px var(--bw-deep),0 1px 0 rgba(255,255,255,.25) inset;
}
html[data-baby=soft] .bw-primary:disabled{opacity:.55;filter:saturate(.7)}
html[data-baby=soft] .bw-first-look > .bw-primary{font-size:1.25rem;min-height:54px;justify-content:center}
html[data-baby=soft] .bw-first-look > .bw-primary{display:flex;align-items:center;gap:.35em}
html[data-baby=soft] .bw-first-look > .bw-primary svg{order:2;width:1.05em;height:1.05em;background:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M9 5l7 7-7 7%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/contain no-repeat}
html[data-baby=soft] .bw-first-look > .bw-primary svg path{display:none}
html[dir=rtl][data-baby=soft] .bw-first-look > .bw-primary svg{transform:scaleX(-1)}

/* Ghost / secondary buttons */
html[data-baby=soft] .bw-ghost,html[data-baby=soft] .bw-secondary{
  border-radius:999px;border-color:var(--bw-gold-line);color:var(--bw-deep);font-weight:800;background:#fff;
}

/* Bottom tab bar: every tab reachable (scrolls sideways), gold top line, active pill */
html[data-baby=soft] .bw-tabs{
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;justify-content:flex-start;
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);
  border-top:1.5px solid var(--bw-gold-line);
  box-shadow:0 -10px 24px -18px rgba(40,20,60,.45);
}
html[data-baby=soft] .bw-tabs::-webkit-scrollbar{display:none}
html[data-baby=soft] .bw-tabs [role=tab]{flex:0 0 auto;min-width:64px;scroll-snap-align:center;color:var(--bw-soft);font-weight:800}
html[data-baby=soft] .bw-tabs [role=tab][aria-selected=true]{color:var(--bw-deep)}
html[data-baby=soft] .bw-tabs [role=tab][aria-selected=true] .bw-tab-icon{
  background:var(--bw-accent-soft);box-shadow:0 0 0 1.5px var(--bw-gold-line) inset;color:var(--bw-deep);
}

/* Lullabies list: framed rows, round play button in the theme color */
html[data-baby=soft] .bw-song{border:1.5px solid var(--bw-gold-line);border-radius:18px;background:#fff}
html[data-baby=soft] .bw-song-name b{font-family:var(--bw-display);color:var(--bw-deep)}
html[data-baby=soft] .bw-song-play{background:linear-gradient(180deg,var(--bw-accent) 0%,var(--bw-deep) 100%);color:#fff;box-shadow:0 10px 18px -12px var(--bw-deep)}
html[data-baby=soft] .bw-song-num{background:linear-gradient(180deg,var(--bw-accent) 0%,var(--bw-deep) 100%);color:#fff}

/* Decorative corner art: keep it from peeking in as a cut-off sliver on phones */
@media (max-width:560px){html[data-baby=soft] .bw-corner-art{display:none}}

/* Lullaby list sits flush inside its card (also right-to-left) */
html[data-baby=soft] .bw-song-list{padding:0;margin-inline:0}

/* Privacy footer: lock sits centered above the line instead of squeezed at the edge */
html[data-baby=soft] .bw-foot{flex-direction:column;align-items:center;gap:6px;text-align:center}
html[data-baby=soft] .bw-foot svg{flex:none;width:18px;height:18px;color:var(--bw-gold)}

/* Wide screens (laptop/tablet landscape): the first screen spreads out like the mockup —
   five families per row, link + language on the header row, summary chip beside Continue. */
@media (min-width:980px){
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste{max-width:1300px;position:relative;padding:10px 24px}
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste > span{flex:1 1 100%}
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste > a,
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste > .pilot-language{position:absolute;top:calc(100% + 26px);z-index:3}
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste > .pilot-language{inset-inline-end:24px}
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste > a{inset-inline-end:270px;font-size:1.02rem}
  html[data-baby=soft] .bw-main:has(> .bw-first-look){max-width:1300px;padding-inline:24px}
  html[data-baby=soft] .bw-main:has(> .bw-first-look) .bw-corner-art{display:none}
  html[data-baby=soft] .bw-main:has(> .bw-first-look) .bw-top{min-height:64px}
  html[data-baby=soft] .bw-first-look{grid-template-columns:1fr 1fr;column-gap:40px;padding:26px 36px 30px}
  html[data-baby=soft] .bw-first-look > *{grid-column:1 / -1}
  html[data-baby=soft] .bw-first-look h2{font-size:2.6rem;text-align:center;margin-bottom:.1em}
  html[data-baby=soft] .bw-first-look > .bw-soft{text-align:center}
  html[data-baby=soft] .bw-first-look .bw-theme-pick{justify-items:center}
  html[data-baby=soft] .bw-first-look .bw-chips{justify-content:center}
  html[data-baby=soft] .bw-first-look .bw-looks{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 26px;padding-bottom:14px;border-bottom:1px solid var(--bw-gold-light)}
  html[data-baby=soft] .bw-first-look[data-bw-sum]::after{grid-column:1;order:9;margin:0;font-size:1.4rem}
  html[data-baby=soft] .bw-first-look > .bw-primary{grid-column:2;order:10;margin:0;font-size:1.5rem;min-height:58px}
  html[data-baby=soft] .bw-first-look > .bw-soft{font-size:1.15rem;margin-top:0}
  html[data-baby=soft] .bw-first-look .bw-swatch{font-size:1.15rem;padding:.55em 1.6em}
  html[data-baby=soft] .bw-first-look .bw-look span{font-size:1.08rem}
  html[data-baby=soft] .bw-first-look .bw-looks{row-gap:12px}
  html[data-baby=soft] .bw-first-look{row-gap:10px;padding-top:18px}
  html[data-baby=soft] .bw-first-look .bw-look img{aspect-ratio:1.08/1}
  html[data-baby=soft] .bw-main:has(> .bw-first-look) .bw-brand b{font-size:2.2rem}
  html[data-baby=soft] .bw-main:has(> .bw-first-look) .bw-brand small{font-size:.95rem}
  html[data-baby=soft] .bw-main:has(> .bw-first-look) .bw-emblem{width:76px;height:76px}
  html[data-baby=soft] .bw-app:has(.bw-first-look) .bw-taste{font-size:1.05rem}
  html[data-baby=soft] .bw-first-look:not([data-bw-sum]) > .bw-primary{grid-column:1 / -1;max-width:560px;justify-self:center;width:100%}
}
