/* Bijou & Bow — pre-launch waiting list. Mobile-first (Instagram in-app browser), tokens from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-md)/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; font-variation-settings: 'opsz' 96; }
.display em { font-style: italic; color: var(--accent); }
.eyebrow { margin: 0 0 var(--s3); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.muted { color: var(--ink-3); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line), 0 18px 50px rgba(42, 22, 32, .09); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
  background: rgba(255, 248, 244, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t); }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 1.35rem/1 var(--font-display); font-style: italic; white-space: nowrap; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--paper-3); }
.brand i { color: var(--accent); }
.ig { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: box-shadow var(--t), color var(--t); }
.ig:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.ig svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig svg .dot { fill: currentColor; stroke: none; }
@media (max-width: 360px) { .ig span { display: none; } .ig { padding: 0 11px; } }

/* ---------- hero ---------- */
.hero { display: grid; gap: 0; padding: 0 0 var(--s6); }
.hero-art { margin: 0; position: relative; aspect-ratio: 4 / 3.3; max-height: 46vh; width: 100%; overflow: hidden; background: var(--paper-2); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; border-radius: inherit; animation: settle 1.4s var(--ease-out) both; }
.hero-art::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, var(--paper), rgba(255, 248, 244, 0)); pointer-events: none; }
.sticker { position: absolute; right: 14px; top: 14px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--accent); color: #fff; transform: rotate(-10deg); box-shadow: 0 10px 24px rgba(176, 32, 74, .35); animation: pop .8s .5s var(--ease-out) both; }
.sticker span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sticker b { font: italic 500 1.5rem/1 var(--font-display); }
.hero-copy { position: relative; z-index: 2; margin-top: -56px; padding: 0 16px; }
.hero-copy > .eyebrow, .hero-copy > h1, .hero-copy > .lede, .hero-copy > .count { animation: rise .9s var(--ease-out) both; }
.hero-copy > h1 { animation-delay: .06s; font-size: clamp(2.15rem, 1.2rem + 4.6vw, 5rem); }
.hero-copy > .lede { animation-delay: .12s; }
.lede { font-size: var(--fs-md); margin: var(--s3) 0 0; color: var(--ink-2); max-width: 36ch; }
.lede b { color: var(--ink); font-weight: 600; }
.count { margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- form ---------- */
.join, .done { margin-top: var(--s4); padding: 18px; animation: rise .9s .18s var(--ease-out) both; }
.field { display: grid; gap: 6px; }
.field label, .wanted-label { font-size: var(--fs-sm); font-weight: 600; margin: 0; }
input[type=email], input:not([type]), select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; /* ≥16px: iOS won't zoom */ transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid=true] { border-color: var(--danger); }
.err { margin: 0; min-height: 0; font-size: var(--fs-sm); color: var(--danger); }
.err:empty { display: none; }
.dog { margin-top: var(--s4); border-radius: 14px; background: var(--paper); border: 1.5px dashed var(--line); }
.dog summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; min-height: 48px; }
.dog summary::-webkit-details-marker { display: none; }
.dog summary::before { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; transition: transform var(--t); }
.dog[open] summary::before { transform: rotate(45deg); }
.dog summary span { color: var(--ink-3); font-weight: 400; }
.dog-grid { display: grid; gap: 12px; padding: 0 16px 16px; }
.dog-grid input, .dog-grid select { background: #fff; }
.wanted { margin-top: var(--s4); }
.wanted ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wanted li button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.wanted li button::after { content: '×'; font-size: 1.1em; opacity: .7; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s4); cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { --bg: var(--accent); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: var(--radius-pill);
  background: var(--bg); color: #fff; font-weight: 600; font-size: var(--fs-md); text-decoration: none; cursor: pointer; box-shadow: 0 8px 22px rgba(176, 32, 74, .24);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t), background var(--t); -webkit-tap-highlight-color: transparent; }
.btn:hover { --bg: #971a3e; box-shadow: 0 10px 28px rgba(176, 32, 74, .32); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn[aria-busy=true] { opacity: .75; pointer-events: none; }
.btn[aria-busy=true] svg { animation: beat .7s ease-in-out infinite; }
.join .btn { width: 100%; margin-top: var(--s4); }
.btn.ghost { --bg: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { --bg: var(--ink); color: #fff; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: var(--fs-sm); }
.form-msg { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--danger); text-align: center; }
.form-msg:empty { display: none; }
.privacy { margin: 12px 0 0; font-size: var(--fs-xs); color: var(--ink-3); text-align: center; line-height: 1.5; }
.done { text-align: center; padding: 28px 22px; }
.done:focus { outline: none; }
.done-icon { font-size: 2.4rem; margin: 0; animation: pop .7s var(--ease-out) both; }
.done h2 { font-size: var(--fs-2xl); margin: 8px 0 12px; }
.done p { margin: 0 0 10px; color: var(--ink-2); }
.done b { color: var(--ink); overflow-wrap: anywhere; }
.small { font-size: var(--fs-sm); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- steps ---------- */
.steps { padding: var(--s5) 16px var(--s7); }
.steps ol { list-style: none; counter-reset: s; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 1100px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--accent); font: italic 500 1.3rem var(--font-display); box-shadow: 0 0 0 1px var(--paper-3); }
.steps b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.steps span { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- lookbook ---------- */
.look { padding: var(--s7) 0 var(--s8); background: linear-gradient(var(--paper-2), var(--paper) 340px); border-radius: 36px 36px 0 0; }
.look-head { padding: 0 16px; max-width: 1240px; margin: 0 auto; }
.look-head h2 { font-size: var(--fs-3xl); }
.look-head p.muted { margin: var(--s3) 0 0; max-width: 46ch; }
.inline-heart { color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: var(--s5) 16px var(--s4); scrollbar-width: none; max-width: 1240px; margin: 0 auto; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; scroll-snap-align: start; min-height: 42px; padding: 0 16px; border-radius: var(--radius-pill); border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background var(--t), color var(--t), box-shadow var(--t); }
.chips button[aria-pressed=true] { background: var(--ink); color: #fff; box-shadow: none; }
.grid { list-style: none; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; max-width: 1240px; }
.grid li.skel { aspect-ratio: 4 / 5.9; border-radius: var(--radius); background: linear-gradient(100deg, var(--paper-2) 30%, #fff 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.pcard { position: relative; animation: rise .6s var(--ease-out) both; }
.pcard .ph { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.pcard .ph:hover img { transform: scale(1.04); }
.pcard .soon { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.heart { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(42, 22, 32, .12); transition: transform var(--t-fast) var(--ease-out), background var(--t), color var(--t); -webkit-tap-highlight-color: transparent; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill var(--t-fast); }
.heart[aria-pressed=true] { background: var(--accent); color: #fff; }
.heart[aria-pressed=true] svg { fill: currentColor; }
.heart.bump, .heart-btn.bump { animation: beat .45s var(--ease-out); }
.heart:active { transform: scale(.9); }
.pcard h3 { margin: 10px 2px 0; font: 500 1.05rem/1.25 var(--font-display); }
.pcard p { margin: 3px 2px 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-note { grid-column: 1 / -1; text-align: center; color: var(--ink-3); padding: 24px 0; }

/* ---------- product sheet ---------- */
.sheet { padding: 0; border: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 28px 28px 0 0; background: #fff; color: var(--ink); overflow: hidden; }
.sheet[open] { animation: up .38s var(--ease-out); }
.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-inner { position: relative; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(42, 22, 32, .14); }
.close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper-2); }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 4.2; object-fit: cover; scroll-snap-align: center; }
.sheet-body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.tag { display: inline-block; margin: 0 0 10px; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--butter); color: var(--warning); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sheet-body h2 { font-size: var(--fs-2xl); }
.sheet-body .sub { margin: 6px 0 12px; color: var(--ink-3); }
.sheet-body > p { color: var(--ink-2); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: var(--fs-sm); }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sheet-cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
.heart-btn[aria-pressed=false] { --bg: var(--accent-soft); color: var(--accent); box-shadow: none; }
.heart-btn[aria-pressed=false] svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.heart-btn[aria-pressed=false]:hover { --bg: var(--paper-3); }

/* ---------- footer + sticky bar ---------- */
.foot { padding: var(--s7) 16px calc(var(--s9) + env(safe-area-inset-bottom)); background: var(--ink); color: #f3e6ea; }
.privacy-box { max-width: 720px; margin: 0 auto; }
.privacy-box h2 { font: 500 1.4rem var(--font-display); margin: 0 0 10px; color: #fff; }
.privacy-box p { font-size: var(--fs-sm); line-height: 1.6; color: #e3d2d8; }
.foot a { color: #ffd4de; }
.fine { max-width: 720px; margin: var(--s5) auto 0; font-size: var(--fs-xs); color: #c9b3bb; }
.stickybar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: var(--radius-pill); background: rgba(42, 22, 32, .94); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(42, 22, 32, .3); font-size: var(--fs-sm); font-weight: 500; transform: translateY(0); transition: transform var(--t) var(--ease-out), opacity var(--t); }
.stickybar.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
.stickybar .btn { flex: none; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
  .dog-grid { grid-template-columns: 1fr 1.3fr; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; row-gap: 6px; align-items: start; padding: 20px; }
  .steps li::before { grid-row: auto; margin-bottom: 6px; }
  .sheet-cta { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  html { scroll-padding-top: 90px; }
  .top { padding: 14px 40px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); max-width: 1240px; margin: 0 auto; padding: 28px 40px var(--s8); }
  .lede { font-size: var(--fs-lg); margin-top: var(--s4); }
  .join, .done { margin-top: var(--s5); }
  .hero-art { order: 2; aspect-ratio: 4 / 5; max-height: none; overflow: visible; border-radius: 240px 240px 36px 36px; box-shadow: 0 30px 80px rgba(42, 22, 32, .16); }
  .hero-art::after { display: none; }
  .sticker { width: 104px; height: 104px; left: -26px; right: auto; top: 46%; }
  .sticker b { font-size: 1.9rem; }
  .hero-copy { margin: 0; padding: 0; }
  .join, .done { padding: 28px; max-width: 520px; }
  .look-head, .chips, .grid { padding-left: 40px; padding-right: 40px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
  .stickybar { display: none; }
  .sheet { margin: auto; width: min(960px, 92vw); max-height: 88vh; border-radius: 28px; }
  .sheet-inner { display: grid; grid-template-columns: 1.05fr 1fr; max-height: 88vh; overflow: hidden; }
  .gallery { max-height: 88vh; }
  .gallery img { aspect-ratio: auto; height: 100%; min-height: 560px; }
  .sheet-body { overflow-y: auto; padding: 44px 36px 32px; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: rotate(-10deg) scale(.6); } 70% { transform: rotate(-10deg) scale(1.08); } 100% { opacity: 1; transform: rotate(-10deg) scale(1); } }
.done-icon { --r: 0deg; }
@keyframes beat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.18); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- status page (confirm / unsubscribe) ---------- */
.status { min-height: calc(100dvh - 64px); display: grid; place-items: center; padding: 24px 16px 48px; }
.status .card { width: min(520px, 100%); padding: 32px 24px; text-align: center; }
.status .av { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--paper-3); }
.status h1 { font-size: var(--fs-2xl); margin: 0 0 12px; }
.status p { color: var(--ink-2); margin: 0 0 12px; }
.status .pos { display: inline-block; margin: 6px 0 14px; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font: italic 500 1.6rem var(--font-display); }
.status .btn { margin-top: 10px; }
.status .spin { width: 34px; height: 34px; margin: 12px auto; border-radius: 50%; border: 3px solid var(--paper-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
