:root {
  --cream: #FAF8F5;
  --card: #FFFFFF;
  --terra: #C86D51;
  --terra-dark: #A9553B;
  --terra-soft: #F6E7E1;
  --ink: #1A1A1A;
  --muted: #6F6A64;
  --faint: #A39C94;
  --line: #ECE6DE;
  --sand: #F2EDE6;
  --ok: #3E7B5A;
  --ok-soft: #E4F0E8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 24px rgba(26, 26, 26, .06);
  --shadow-lift: 0 2px 4px rgba(26, 26, 26, .05), 0 16px 40px rgba(26, 26, 26, .10);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --didone: 'Bodoni Moda', Didot, 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

/* ---------- Shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 248, 245, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-type { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-word { font-family: var(--didone); font-weight: 500; font-size: 20px; letter-spacing: .28em; text-transform: uppercase; }
.logo-tag { display: none; font-family: var(--sans); font-size: 8.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--terra); margin-top: 5px; }
@media (min-width: 760px) {
  .logo-mark { width: 36px; height: 36px; }
  .logo-word { font-size: 24px; letter-spacing: .3em; }
  .logo-tag { display: block; }
}
.steps { margin-left: auto; display: flex; gap: 4px; }
.step {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.step .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1px solid var(--line); background: var(--card); }
.step.on { background: var(--ink); color: var(--cream); }
.step.on .n { background: var(--terra); border-color: var(--terra); color: #fff; }
.step.done .n { background: var(--terra-soft); color: var(--terra-dark); border-color: transparent; }
.step:disabled { opacity: .45; cursor: not-allowed; }
.step .lbl { display: none; }
@media (min-width: 760px) { .step .lbl { display: inline; } }

main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 120px; }
.narrow { max-width: 600px; margin: 0 auto; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.page-title { font-size: 32px; line-height: 1.1; margin: 6px 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 18px; margin-bottom: 14px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.section-head .tag { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 15px; }
.section-head h3 { font-size: 19px; }
.section-head .hint { margin-left: auto; font-size: 12px; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 6px 18px rgba(200, 109, 81, .35); }
.btn-primary:hover { background: var(--terra-dark); }
.btn-primary:disabled { background: #D9CFC6; box-shadow: none; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(250, 248, 245, 0));
}
.sticky-cta .inner { max-width: 600px; margin: 0 auto; }
.sticky-cta .note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.chip:hover { border-color: #D8CEC4; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Welcome ---------- */
.hero { padding: 28px 0 8px; text-align: left; }
.hero h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.02; }
.hero h1 em { color: var(--terra); font-style: italic; }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 14px 0 24px; }
.demo-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 22px 0; }
@media (min-width: 700px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: repeat(3, 1fr); } }
.demo-card { text-align: left; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.demo-cover { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 14px; }
.demo-cover .pill { background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.demo-cover .art { position: absolute; right: 12px; bottom: 0; height: 130px; display: flex; gap: 2px; align-items: flex-end; }
.demo-cover .art svg { height: 120px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .15)); }
.demo-cover .art svg + svg { height: 90px; }
.demo-body { padding: 14px 16px 16px; }
.demo-body h3 { font-size: 20px; }
.demo-body p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.demo-body .go { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--terra); }
.how { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
@media (min-width: 700px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how div { padding: 14px; font-size: 13px; color: var(--muted); }
.how b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; color: var(--ink); margin-bottom: 2px; }

/* ---------- Style DNA ---------- */
.dropzone {
  border: 1.5px dashed #D8CEC4; border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center;
  background: var(--cream); cursor: pointer; transition: all .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--terra); background: var(--terra-soft); }
.dropzone .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--card); display: grid; place-items: center; font-size: 24px; flex: none; box-shadow: var(--shadow); }
.dropzone b { display: block; font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }
.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-row img { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; flex: none; }
.scan { position: relative; overflow: hidden; border-radius: 12px; flex: none; }
.scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(200, 109, 81, 0), rgba(200, 109, 81, .55), rgba(200, 109, 81, 0));
  animation: scan 1.2s ease-in-out infinite;
}
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.ai-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.link-btn { font-size: 13px; color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.slider { margin: 6px 0 14px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.slider-top b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--terra) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--terra); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--terra); margin-top: -9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--terra); }
.size-est { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: 13px; color: var(--muted); }
.size-est b { color: var(--ink); }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 520px) { .swatches { grid-template-columns: repeat(6, 1fr); } }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1.5px solid transparent; transition: all .15s ease; }
.swatch .dot { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .1); position: relative; }
.swatch b { font-size: 13px; font-weight: 600; }
.swatch small { font-size: 11px; color: var(--faint); text-align: center; line-height: 1.2; }
.swatch.on { border-color: var(--terra); background: var(--terra-soft); }
.swatch.on .dot::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

.wears { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wear { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); transition: all .15s ease; }
.wear-art { display: flex; justify-content: center; height: 64px; margin-bottom: 6px; }
.wear-art svg { height: 64px; width: auto; }
.wear-art svg + svg { margin-left: -14px; }
.wear b { font-size: 14px; }
.wear small { font-size: 11px; color: var(--faint); line-height: 1.25; }
.wear.on { border-color: var(--terra); background: var(--terra-soft); }

.shapes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.shapes.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .shapes.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.shape { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 12px; border: 1.5px solid var(--line); color: #CDBFB3; transition: all .15s ease; }
.shape svg { height: 74px; width: auto; }
.shape span { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.shape.on { border-color: var(--terra); background: var(--terra-soft); color: var(--terra); }
.shape.on span { color: var(--terra-dark); }

/* ---------- Trip builder ---------- */
.field { position: relative; }
.field input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream);
  font-size: 16px; outline: none; transition: border .15s ease, background .15s ease;
}
.field input:focus { border-color: var(--terra); background: #fff; }
.field .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 17px; }
.detect { font-size: 12px; color: var(--muted); margin: 8px 0 10px; min-height: 18px; }
.detect b { color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.month { padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; background: var(--card); }
.month.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.days { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.days .lbl { font-size: 14px; color: var(--muted); }
.stepper { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; font-size: 18px; }
.stepper b { min-width: 64px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 17px; }
.budgets { display: grid; gap: 8px; }
@media (min-width: 560px) { .budgets { grid-template-columns: repeat(3, 1fr); } }
.budget { text-align: left; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); display: flex; gap: 12px; align-items: center; transition: all .15s ease; }
@media (min-width: 560px) { .budget { flex-direction: column; align-items: flex-start; gap: 4px; } }
.budget .sym { font-family: var(--serif); font-size: 20px; color: var(--terra); width: 44px; }
.budget b { display: block; font-size: 15px; }
.budget small { color: var(--muted); font-size: 13px; }
.budget.on { border-color: var(--terra); background: var(--terra-soft); }
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment-chip { position: relative; text-align: left; padding: 14px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); transition: all .15s ease; }
.moment-chip .em { font-size: 24px; display: block; margin-bottom: 6px; }
.moment-chip b { font-size: 14px; font-weight: 600; line-height: 1.25; display: block; }
.moment-chip.on { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.moment-chip .check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.moment-chip.on .check { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ---------- Generating overlay ---------- */
.gen { position: fixed; inset: 0; z-index: 60; background: var(--cream); display: grid; place-items: center; padding: 24px; animation: fade .25s ease; }
.gen-inner { text-align: center; max-width: 340px; }
.gen-orb { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: conic-gradient(from 0deg, var(--terra), #E9B85C, #5E8FA8, var(--terra)); animation: spin 1.6s linear infinite; position: relative; }
.gen-orb::after { content: '✨'; position: absolute; inset: 8px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 28px; }
.gen h2 { font-size: 24px; }
.gen ul { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; font-size: 14px; color: var(--muted); }
.gen li { padding: 5px 0; opacity: .35; transition: opacity .3s ease; }
.gen li.on { opacity: 1; color: var(--ink); }
.gen li.on::before { content: '✓ '; color: var(--ok); font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Lookbook ---------- */
.banner { padding: 20px; overflow: hidden; position: relative; background: var(--ink); color: var(--cream); }
.banner .eyebrow { color: #E9A58F; }
.banner h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.08; margin: 6px 0 4px; }
.banner .meta { color: #BDB6AE; font-size: 14px; }
.banner-stats { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: 1fr 1fr; }
.banner-stats .capsule { grid-column: 1 / -1; }
.banner-stats .capsule p b { font-weight: 700; color: #fff; }
@media (min-width: 720px) { .banner-stats { grid-template-columns: 1fr 1fr 1.4fr; } .banner-stats .capsule { grid-column: auto; } }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.stat small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9E978F; margin-bottom: 2px; }
.stat > b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.stat p { margin: 2px 0 0; font-size: 13px; color: #CFC8C0; }
.stat.capsule { background: rgba(200, 109, 81, .18); border-color: rgba(200, 109, 81, .35); }
.edit-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.edit-row button { font-size: 13px; color: var(--cream); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 12px; }
.edit-row button:hover { background: rgba(255, 255, 255, .08); }

.edit-row .share-btn { background: var(--terra); border-color: var(--terra); color: #fff; font-weight: 600; }
.edit-row .share-btn:hover { background: var(--terra-dark); }
.shared-note { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 14px; border: 1px solid #EFD3C9; background: var(--terra-soft); }
.shared-note b { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; }
.shared-note span { font-size: 13px; color: var(--muted); }
.shared-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.shared-actions .btn { padding: 10px 16px; font-size: 13px; }
.group-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

.pills { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills .chip { white-space: nowrap; flex: none; }

.track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 24px;
  margin: 0 -16px; scroll-padding: 0 16px; scrollbar-width: thin;
}
.look { flex: none; width: min(88vw, 440px); scroll-snap-align: start; padding: 0; overflow: hidden; }
.look-head { padding: 16px 16px 12px; }
.look-head .row { display: flex; align-items: center; gap: 8px; }
.look-head .em { font-size: 22px; }
.look-head h2 { font-size: 22px; line-height: 1.15; }
.look-head .count { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.look-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.meta-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: #4A4540; font-weight: 500; }
.palette { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.palette .dots { display: flex; }
.palette .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); margin-left: -6px; }
.palette .dots i:first-child { margin-left: 0; }
.palette .vs { font-size: 11px; color: var(--faint); font-weight: 600; }
.palette .you { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--terra); }
.palette .txt { font-size: 12px; color: var(--muted); line-height: 1.3; }
.palette .txt b { color: var(--ink); font-weight: 600; display: block; }

.collage { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; padding: 0 16px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile svg { width: 72%; height: 72%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .12)); }
.tile.main { grid-row: span 3; min-height: 270px; flex-direction: column; }
.tile.main svg { width: 76%; height: auto; max-height: 200px; }
.tile.side { aspect-ratio: 1.25; }
.tile.side { padding-top: 18px; }
.tile.side svg { width: 54%; height: 66%; }
.tile .lbl { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .88); padding: 3px 7px; border-radius: 999px; color: #4A4540; }
.tile .owned-badge { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; display: grid; place-items: center; }
.tile .price { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 999px; }
.tile .main-name { position: absolute; left: 10px; right: 10px; bottom: 10px; font-family: var(--serif); font-size: 15px; line-height: 1.2; background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 8px 10px; text-align: left; }
.tile .main-name small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 2px; }
.tile.swapped { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.94); opacity: .4; } 100% { transform: none; opacity: 1; } }

.why { margin: 14px 16px 0; padding: 14px; border-radius: 12px; background: var(--terra-soft); border: 1px solid #EFD3C9; }
.why h4 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.why li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 13.5px; line-height: 1.45; color: #3B3631; }
.why li b { color: var(--ink); }
.why .ic { font-size: 14px; line-height: 1.45; }

.pieces { padding: 12px 16px 6px; }
.pieces h4 { margin: 4px 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.piece { display: grid; grid-template-columns: 52px 1fr; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.piece:first-of-type { border-top: 0; }
.thumb { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; }
.thumb svg { width: 70%; height: 70%; }
.piece-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.piece-sub { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.store { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: #fff; letter-spacing: .02em; }
.capsule-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); }
.designer-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #F1E8D3; color: #8A6A1F; }
.actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.actions .shop { margin-left: auto; }
.act {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: all .15s ease; white-space: nowrap;
}
.act:hover { border-color: #D3C8BD; }
.act .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #BFB4A9; display: grid; place-items: center; font-size: 9px; }
.act.owned { background: var(--ok-soft); border-color: #C4DDCC; color: var(--ok); }
.act.owned .box { background: var(--ok); border-color: var(--ok); color: #fff; }
.act.shop { background: var(--ink); border-color: var(--ink); color: #fff; }
.act.shop:hover { background: #333; }
.act.shop.muted { background: var(--card); color: var(--faint); border-color: var(--line); text-decoration: line-through; }

.look-foot { margin: 6px 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--cream); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.look-foot .tot { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.look-foot .fit { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.fit.ok { background: var(--ok-soft); color: var(--ok); }
.fit.over { background: #FBEAD8; color: #A05A16; }

.disclosure { margin: -6px 16px 16px; font-size: 11px; color: var(--faint); line-height: 1.4; }
.drawer-body .disclosure { margin: 12px 0 0; }

.empty { padding: 40px 20px; text-align: center; }
.empty p { color: var(--muted); }

/* Floating bag button */
.fab {
  position: fixed; z-index: 25; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream); box-shadow: var(--shadow-lift); font-weight: 600; font-size: 14px;
}
.fab .count { background: var(--terra); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.fab .sum { color: #BDB6AE; font-weight: 500; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(26, 26, 26, .4); animation: fade .2s ease; }
.drawer {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88vh; background: var(--cream);
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); display: flex; flex-direction: column;
  animation: up .3s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 900px) {
  .drawer { left: auto; top: 0; width: 460px; max-height: none; border-radius: 22px 0 0 22px; animation: left .3s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes left { from { transform: translateX(100%); } }
.drawer-head { padding: 10px 18px 0; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: #D8CEC4; margin: 0 auto 10px; }
@media (min-width: 900px) { .grab { display: none; } .drawer-head { padding-top: 20px; } }
.drawer-title { display: flex; align-items: center; }
.drawer-title h2 { font-size: 24px; }
.close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 16px; }
.drawer-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.drawer-sum div { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.drawer-sum small { display: block; font-size: 11px; color: var(--muted); }
.drawer-sum b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.tabs { display: flex; background: var(--sand); padding: 4px; border-radius: 999px; }
.tabs button { flex: 1; padding: 9px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.drawer-body { overflow-y: auto; padding: 14px 18px 24px; flex: 1; }
.list-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--card); padding: 10px; border-radius: 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.list-item .thumb { width: 48px; height: 48px; }
.list-item .uses { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.list-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.list-item .right b { font-size: 14px; }
.list-item .mini { font-size: 11.5px; font-weight: 600; color: var(--terra); }
.pack-check { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid #BFB4A9; display: grid; place-items: center; font-size: 12px; background: #fff; }
.pack-check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.group-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 14px 0 8px; }
.group-label:first-child { margin-top: 0; }
.total-bar { position: sticky; bottom: -24px; margin: 12px -18px -24px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); display: flex; align-items: center; gap: 10px; }
.total-bar b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.total-bar small { color: #BDB6AE; display: block; font-size: 12px; }
.total-bar .btn { margin-left: auto; padding: 10px 16px; font-size: 13px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lift); animation: toast 2.2s ease forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Accounts, home & shop (web app) ---------- */
.spacer { margin-left: auto; }
.account { position: relative; margin-left: 4px; }
.account-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line); }
.avatar.initials { display: grid; place-items: center; background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; font-size: 14px; }
.menu { position: absolute; right: 0; top: 44px; min-width: 220px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; z-index: 40; animation: fade .15s ease; }
.menu-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-who b { display: block; font-size: 14px; }
.menu-who span { font-size: 12px; color: var(--muted); word-break: break-all; }
.menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.menu button:hover { background: var(--sand); }
.menu-help { display: block; padding: 10px 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-decoration: none; }
.menu-help:hover { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center-screen { min-height: 60vh; display: grid; place-items: center; }
.gen-orb.small { width: 48px; height: 48px; margin: 0 auto 12px; }
.gen-orb.small::after { content: ''; inset: 5px; }
.section-title { font-size: 22px; margin: 28px 0 12px; }

.signin { max-width: 980px; margin: 0 auto; }
.signin-card { max-width: 460px; margin: 24px auto 8px; padding: 34px 28px 26px; text-align: center; }
.signin-card .logo-mark { width: 56px; height: 56px; margin: 0 auto 16px; }
.signin-card .page-title em { color: var(--terra); }
.google-btn { background: #fff; border: 1px solid #DADCE0; color: #1F1F1F; font-weight: 600; margin: 8px 0 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.google-btn:hover { background: #F8F9FA; }
.google-btn svg { width: 20px; height: 20px; }
.signin-card .fine { font-size: 12px; color: var(--faint); margin: 16px 0 0; }
.signin-card .fine a { color: var(--muted); }

.home { max-width: 980px; margin: 0 auto; }
.guest-note { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 6px 0 16px; font-size: 14px; color: var(--muted); }
.guest-note .btn { padding: 10px 16px; font-size: 13px; }
.trips-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 14px 0 18px; }
.new-trip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 20px; min-height: 150px; border: 1.5px dashed #D8CEC4; box-shadow: none; background: transparent; text-align: left; transition: all .15s ease; }
.new-trip:hover { border-color: var(--terra); background: var(--terra-soft); }
.new-trip span { font-size: 26px; color: var(--terra); line-height: 1; margin-bottom: 8px; }
.new-trip small { color: var(--muted); }
.trip-card { position: relative; overflow: hidden; }
.trip-open { display: block; width: 100%; text-align: left; padding: 18px 18px 16px; min-height: 150px; }
.trip-open:hover { background: var(--cream); }
.trip-month { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.trip-open h3 { font-size: 24px; margin: 4px 0 4px; }
.trip-open p { margin: 0; font-size: 13px; color: var(--muted); }
.trip-icons { margin-top: 12px; font-size: 18px; letter-spacing: 2px; }
.trip-del { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; color: var(--faint); font-size: 12px; }
.trip-del:hover { background: #FBEAD8; color: #A05A16; }
.dna-summary .section-head { margin-bottom: 10px; }
.dna-summary .section-head .link-btn { margin-left: auto; }
.dna-summary .chip { cursor: default; }
.dot-sm { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

.banner.busy { opacity: .85; }
.act:disabled { opacity: .5; cursor: progress; }

.shop-strip { padding: 4px 0 12px; }
.shop-strip h4 { margin: 4px 16px 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.products { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.products::-webkit-scrollbar { display: none; }
.product { flex: none; width: 150px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--card); display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-img { height: 110px; display: grid; place-items: center; }
.product-img svg { width: 60%; height: 80%; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.product-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-family: var(--serif); font-size: 15px; }
.product-cta { margin: auto 10px 10px; font-size: 11.5px; font-weight: 600; color: var(--terra); }

/* ---------- Four-step flow (I. Trip · II. Frame · III. Palette · IV. Curating) ---------- */
.step .n { font-family: var(--didone); font-size: 10.5px; width: 22px; height: 22px; }
.wiz-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 8px 0 4px; }
.wiz-num { font-family: var(--didone); font-style: italic; font-size: 54px; line-height: .95; color: var(--terra); }
.wiz-head .page-title { font-family: var(--didone); font-weight: 400; font-size: clamp(32px, 7vw, 44px); line-height: 1.05; }
.swatches.tones .dot { width: 60px; height: 60px; }
.tone-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.tone-note b { color: var(--ink); }

.gen-inner { max-width: 460px; }
.gen .wiz-num { display: block; font-size: 72px; margin-bottom: 10px; }
.gen ul { text-align: center; margin-top: 22px; font-family: var(--didone); font-style: italic; font-size: clamp(19px, 4.4vw, 24px); line-height: 1.3; color: var(--ink); }
/* The overlay is re-rendered at each step, so only the first render fades in and only the newest line animates. */
.gen { animation: none; }
.gen.first { animation: fade .25s ease; }
.gen li { padding: 9px 0; opacity: 0; transition: none; }
.gen li.on { opacity: .45; }
.gen li.on.now { opacity: 1; animation: line-in .7s ease; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }
.gen li.on::before { content: none; }

.banner h1 { font-family: var(--didone); font-weight: 400; }
.banner h1 em { color: #E9A58F; }
.profile-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.profile-pills span, .profile-pills button { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: var(--cream); }
.profile-pills button { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 600; }
.look-head h2 small { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 3px; }
.feedback-line { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px 16px 96px; }
.feedback-line a { color: var(--terra-dark); font-weight: 600; }

/* Photo match (step III) */
.photo-busy { display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--muted); }
.photo-busy .gen-orb.small { margin: 0; flex: none; }
.photo-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: var(--sand); color: #3B3631; }
.photo-note.done { background: var(--ok-soft); color: #24523A; }
.photo-privacy { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.photo-privacy a { color: var(--terra-dark); }
.photo-note b { display: block; margin-bottom: 8px; }
.photo-note .chips { align-items: center; }
.photo-note .chip { background: var(--card); cursor: default; }
.photo-note p { margin: 8px 0 0; }

/* Hide the badge Netlify injects on free-plan sites. */
#nl-badge-frame { display: none !important; }
