/*
  Theme tokens + reusable component classes.

  Colors are "R G B" triplets so Tailwind can add opacity (bg-accent/20).
  Change the values here to re-theme the whole app; .dark overrides them.
*/
:root {
  --bg: 250 247 243;        /* page background (warm off-white) */
  --surface: 255 255 255;   /* cards */
  --surface-2: 243 239 234; /* inputs, subtle fills */
  --ink: 28 24 22;          /* main text */
  --muted: 118 108 102;     /* secondary text */
  --line: 230 223 215;      /* borders */
  --accent: 124 58 237;     /* violet */
  --accent-2: 219 39 119;   /* pink (gradient end) */
  color-scheme: light;
}
.dark {
  --bg: 15 13 18;
  --surface: 25 22 30;
  --surface-2: 36 32 42;
  --ink: 243 239 234;
  --muted: 160 152 168;
  --line: 52 47 60;
  --accent: 167 139 250;
  --accent-2: 244 114 182;
  color-scheme: dark;
}

body { font-family: Inter, system-ui, sans-serif; }

/* ---- Background blobs ---- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; width: 42rem; height: 42rem; border-radius: 9999px; filter: blur(90px); opacity: .18; }
.bg-blobs span:first-child { top: -18rem; right: -12rem; background: rgb(var(--accent)); }
.bg-blobs span:last-child { bottom: -22rem; left: -14rem; background: rgb(var(--accent-2)); opacity: .12; }

/* ---- Navigation ---- */
.logo-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .7rem; color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); box-shadow: 0 6px 16px -6px rgb(var(--accent) / .6); }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 9999px;
  color: rgb(var(--muted)); transition: all .15s; }
.nav-link:hover { color: rgb(var(--ink)); background: rgb(var(--surface-2)); }
.nav-active { color: rgb(var(--ink)); background: rgb(var(--surface)); box-shadow: 0 1px 2px rgb(0 0 0 / .06), inset 0 0 0 1px rgb(var(--line)); font-weight: 500; }
.tabbar-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; }
.fab { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 9999px; color: #fff; margin-top: -1.4rem;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); box-shadow: 0 10px 24px -8px rgb(var(--accent) / .7); }

/* ---- Buttons ---- */
.btn-primary, .btn, .btn-danger, .btn-ai {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 9999px; font-size: .875rem; font-weight: 500;
  transition: transform .12s, background-color .15s, box-shadow .15s, opacity .15s; cursor: pointer; white-space: nowrap;
}
.btn-primary:active, .btn:active, .btn-ai:active { transform: scale(.97); }
.btn-primary { background: rgb(var(--ink)); color: rgb(var(--bg)); }
.btn-primary:hover { box-shadow: 0 8px 20px -10px rgb(var(--ink) / .6); opacity: .92; }
.btn-primary:disabled, .btn-ai:disabled { opacity: .55; cursor: wait; }
.btn { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); }
.btn:hover { background: rgb(var(--surface-2)); }
.btn-danger { background: transparent; border: 1px solid rgb(239 68 68 / .35); color: rgb(220 38 38); }
.dark .btn-danger { color: rgb(248 113 113); }
.btn-danger:hover { background: rgb(239 68 68 / .08); }
.btn-ai { color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
  box-shadow: 0 8px 22px -10px rgb(var(--accent) / .8); }
.btn-ai:hover { filter: brightness(1.07); }
.icon-btn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 9999px;
  color: rgb(var(--muted)); border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: all .15s; }
.icon-btn:hover { color: rgb(var(--ink)); background: rgb(var(--surface-2)); }

/* ---- Surfaces ---- */
.card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 1.25rem; }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60rem 18rem at 100% 0%, rgb(var(--accent) / .12), transparent 60%),
              radial-gradient(40rem 16rem at 0% 100%, rgb(var(--accent-2) / .10), transparent 60%); }
.eyebrow { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--muted)); font-weight: 600; }
.gradient-text { background: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Forms ---- */
.label { display: block; font-size: .8rem; font-weight: 500; color: rgb(var(--muted)); margin-bottom: .35rem; }
.input {
  width: 100%; border: 1px solid rgb(var(--line)); border-radius: .8rem; padding: .6rem .85rem;
  font-size: .9375rem; background: rgb(var(--surface-2) / .6); color: rgb(var(--ink)); transition: all .15s;
}
.input::placeholder { color: rgb(var(--muted) / .7); }
.input:focus { outline: none; background: rgb(var(--surface)); border-color: rgb(var(--accent));
  box-shadow: 0 0 0 4px rgb(var(--accent) / .15); }
.input.ai-filled { animation: aiFill 1.2s ease; }
@keyframes aiFill { 0% { box-shadow: 0 0 0 4px rgb(var(--accent) / .45); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0); } }

/* ---- Chips / pills ---- */
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; padding: .2rem .65rem; border-radius: 9999px;
  background: rgb(var(--surface-2)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 9999px; font-size: .85rem;
  border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--muted)); white-space: nowrap; transition: all .15s; }
.pill:hover { color: rgb(var(--ink)); }
.pill-active { background: rgb(var(--ink)); color: rgb(var(--bg)); border-color: rgb(var(--ink)); }
.pill-active:hover { color: rgb(var(--bg)); }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

.tab { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 9999px; font-size: .875rem; color: rgb(var(--muted)); }
.tab[aria-selected="true"] { background: rgb(var(--surface)); color: rgb(var(--ink)); font-weight: 500; box-shadow: 0 1px 3px rgb(0 0 0 / .1); }

/* ---- Flash messages ---- */
.flash { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
  border-radius: 1rem; padding: .8rem 1rem; font-size: .875rem; border: 1px solid; }
.flash-ok { background: rgb(16 185 129 / .1); border-color: rgb(16 185 129 / .3); color: rgb(4 120 87); }
.flash-error { background: rgb(239 68 68 / .1); border-color: rgb(239 68 68 / .3); color: rgb(185 28 28); }
.dark .flash-ok { color: rgb(110 231 183); }
.dark .flash-error { color: rgb(252 165 165); }

/* ---- Item cards ---- */
.item-card { display: block; break-inside: avoid; border-radius: 1.25rem; overflow: hidden; background: rgb(var(--surface));
  border: 1px solid rgb(var(--line)); transition: transform .25s, box-shadow .25s; }
.item-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .45); }
.item-card img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.item-card:hover img { transform: scale(1.05); }
.item-overlay { position: absolute; inset: auto 0 0 0; padding: .75rem; display: flex; gap: .35rem; flex-wrap: wrap;
  background: linear-gradient(to top, rgb(0 0 0 / .55), transparent); opacity: 0; transform: translateY(6px); transition: all .25s; }
.item-card:hover .item-overlay { opacity: 1; transform: none; }
.item-overlay .chip { background: rgb(255 255 255 / .9); color: #1c1917; border: 0; }
.masonry { column-gap: 1rem; columns: 2; }
@media (min-width: 640px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: 4; } }
.masonry > * { margin-bottom: 1rem; }

/* Checkerboard behind images so transparent PNGs are visible */
.img-bg { background-color: rgb(var(--surface-2));
  background-image: linear-gradient(45deg, rgb(var(--line) / .5) 25%, transparent 25%), linear-gradient(-45deg, rgb(var(--line) / .5) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgb(var(--line) / .5) 75%), linear-gradient(-45deg, transparent 75%, rgb(var(--line) / .5) 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }

/* ---- Horizontal scroller (recent items, filter pills) ---- */
.scroller { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex: none; }

/* ---- Animations ---- */
.anim-in { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(1) { animation-delay: .02s } .stagger > *:nth-child(2) { animation-delay: .06s }
.stagger > *:nth-child(3) { animation-delay: .10s } .stagger > *:nth-child(4) { animation-delay: .14s }
.stagger > *:nth-child(5) { animation-delay: .18s } .stagger > *:nth-child(6) { animation-delay: .22s }
.stagger > *:nth-child(7) { animation-delay: .26s } .stagger > *:nth-child(n+8) { animation-delay: .30s }
.skeleton { background: linear-gradient(90deg, rgb(var(--surface-2)), rgb(var(--line) / .6), rgb(var(--surface-2)));
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 1rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
.typing span { display: inline-block; width: .45rem; height: .45rem; margin: 0 .1rem; border-radius: 9999px;
  background: rgb(var(--muted)); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s } .typing span:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }


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

/* ---- Category bars grow in on load ---- */
.bar { width: var(--w); animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { width: 0; } }

/* ---- Virtual try-on ---- */
.step-num { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; flex: none;
  font-weight: 600; font-size: .9rem; color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.drop-frame { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; width: 100%;
  border-radius: 1rem; overflow: hidden; border: 2px dashed rgb(var(--line)); background: rgb(var(--surface-2) / .6);
  cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop-frame:hover, .drop-frame.dragging { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .05); }
.drop-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.drop-frame img:not(.hidden) ~ .drop-hint { display: none; }
.drop-frame:has(img:not(.hidden)) { border-style: solid; }
.drop-hint { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem; text-align: center;
  color: rgb(var(--muted)); font-size: .9rem; }
.drop-hint b { color: rgb(var(--ink)); font-weight: 500; }
.drop-hint small { font-size: .75rem; }
.pick-item { position: relative; display: block; border-radius: .9rem; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: rgb(var(--surface-2)); transition: border-color .15s, transform .15s; }
.pick-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pick-item span { display: block; font-size: .7rem; padding: .3rem .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-item:hover { transform: translateY(-2px); }
.pick-item:has(input:checked) { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .25); }

/* Before/after compare slider */
.compare { position: relative; aspect-ratio: 2 / 3; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 12px rgb(0 0 0 / .35); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center;
  padding: .4rem; border-radius: 9999px; background: #fff; color: #1c1917; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.cmp-label { position: absolute; top: .75rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgb(0 0 0 / .45); padding: .2rem .55rem; border-radius: 9999px; pointer-events: none; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* =====================================================================
   Anywear layout v3 — landing page, fitting room, page headers
   ===================================================================== */
.btn-lg { padding: .75rem 1.35rem; font-size: .95rem; }
.btn-xl { padding: 1rem 2.4rem; font-size: 1.05rem; box-shadow: 0 16px 40px -16px rgb(var(--accent) / .9); }
.btn-xl:hover { transform: translateY(-1px); }

.hero-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 9999px; font-size: .8rem;
  font-weight: 500; color: rgb(var(--accent)); background: rgb(var(--accent) / .1); border: 1px solid rgb(var(--accent) / .25); }
.mini-num { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 9999px; font-size: .7rem; font-weight: 600;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }

/* Landing showcase: two overlapping tilted photos */
@keyframes floaty { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }

/* Fitting room: 2 image holders (you + clothing) joined by a "+"; result card below */
.fitting-room { display: grid; gap: .75rem; align-items: stretch; max-width: 56rem; margin-inline: auto; }
@media (min-width: 768px) { .fitting-room { grid-template-columns: 1fr 2.5rem 1fr; gap: .5rem; } }
.fr-result-wrap { max-width: 28rem; margin: 2rem auto 0; }
.fr-try-now { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: .5rem auto 1.5rem; text-align: center; }
.fr-try-now p { font-size: .875rem; color: rgb(var(--muted)); }
.fr-panel { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem; border-radius: 1.5rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); box-shadow: 0 20px 50px -35px rgb(0 0 0 / .35); }
.fr-panel > [data-panel], .fr-panel > .drop-frame, .fr-panel > #tryon-done { flex: 1; }
.fr-result { background: linear-gradient(180deg, rgb(var(--surface)), rgb(var(--accent) / .05)); }
.fr-head { display: flex; align-items: center; gap: .7rem; }
.fr-head h3 { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; line-height: 1.1; }
.fr-head p { font-size: .75rem; color: rgb(var(--muted)); }
.fr-join { display: grid; place-items: center; align-self: center; justify-self: center; width: 2rem; height: 2rem; border-radius: 9999px;
  color: rgb(var(--accent)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
@media (max-width: 767px) { .fr-join { margin: -.25rem auto; } }
.fr-stack { display: flex; flex-direction: column; gap: .75rem; }
.fr-short { aspect-ratio: auto !important; flex: 1; min-height: 14rem; }
.fr-glow { background: radial-gradient(circle at 50% 40%, rgb(var(--accent) / .12), transparent 65%), rgb(var(--surface-2) / .5) !important; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .25rem; border-radius: 9999px; background: rgb(var(--surface-2)); align-self: flex-start; }
.seg .tab { padding: .4rem .8rem; font-size: .8rem; }
.drop-frame.is-filled { border-style: solid; cursor: default; }
.compare { border-radius: 1rem; overflow: hidden; aspect-ratio: 3 / 4 !important; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-height: 24rem; overflow-y: auto; padding-right: .25rem; }

/* Saved looks gallery */
.look-card { border-radius: 1.25rem; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--line));
  transition: transform .25s, box-shadow .25s; }
.look-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .45); }
.look-card [data-show] { display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; background: rgb(var(--surface-2)); }
.look-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.look-card:hover img { transform: scale(1.04); }
.look-meta { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; font-size: .75rem; color: rgb(var(--muted)); }
.look-meta button:hover { color: rgb(239 68 68); }

/* Feature cards (landing) */
.feature-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 1.5rem; background: rgb(var(--surface));
  border: 1px solid rgb(var(--line)); transition: transform .25s, border-color .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-3px); border-color: rgb(var(--accent) / .5); box-shadow: 0 20px 50px -30px rgb(var(--accent) / .6); }
.feature-card h3 { font-family: Fraunces, Georgia, serif; font-size: 1.4rem; margin-top: .4rem; }
.feature-card p { font-size: .9rem; color: rgb(var(--muted)); line-height: 1.55; flex: 1; }
.feature-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .9rem;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
.feature-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 500; color: rgb(var(--accent)); margin-top: .5rem; }
.feature-card:hover .feature-link svg { transform: translateX(3px); }
.feature-link svg { transition: transform .2s; }
.try-badge { position: absolute; left: .5rem; bottom: .5rem; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem;
  border-radius: 9999px; font-size: .7rem; font-weight: 600; color: #fff; opacity: 0; transform: translateY(4px); transition: all .2s;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.item-card:hover .try-badge { opacity: 1; transform: none; }
@media (hover: none) { .try-badge { opacity: 1; transform: none; } }

/* Shared page header (eyebrow + big title + subtitle + actions) */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.page-head h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; margin-top: .35rem; }
.page-head .sub { color: rgb(var(--muted)); margin-top: .5rem; max-width: 36rem; }

/* Stat tile */
.stat { padding: 1.1rem 1.2rem; border-radius: 1.25rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.stat .num { font-family: Fraunces, Georgia, serif; font-size: 2.1rem; line-height: 1.1; margin-top: .35rem; }
.stat .lbl { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: rgb(var(--muted)); font-weight: 500; }


/* =====================================================================
   "How it works" guide + animated demo (home page)
   Each scene is visible only while JS gives it the .is-on class, and its
   little animations (cursor, typing, menu) only run while it is visible.
   ===================================================================== */
:root { --step-ms: 3800ms; }
.howto { position: relative; padding: 1.5rem; margin-bottom: 1.75rem; border-radius: 1.75rem; background: rgb(var(--surface));
  border: 1px solid rgb(var(--line)); box-shadow: 0 30px 70px -45px rgb(var(--accent) / .55); overflow: hidden; }
@media (min-width: 768px) { .howto { padding: 2rem; } }
.howto::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 20rem at 0% 0%, rgb(var(--accent) / .08), transparent 60%); }
.howto > * { position: relative; }
kbd { font: 600 .72rem/1 Inter, sans-serif; padding: .15rem .35rem; border-radius: .3rem; border: 1px solid rgb(var(--line));
  border-bottom-width: 2px; background: rgb(var(--surface-2)); }

/* Steps list */
.howto-steps { display: flex; flex-direction: column; gap: .4rem; }
.howto-step { position: relative; width: 100%; display: flex; gap: .85rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 1rem;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s; overflow: hidden; }
.howto-step:hover { background: rgb(var(--surface-2) / .6); }
.howto-num { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 9999px; font-size: .8rem; font-weight: 600;
  color: rgb(var(--muted)); background: rgb(var(--surface-2)); transition: all .2s; }
.howto-text { display: block; font-size: .85rem; line-height: 1.5; color: rgb(var(--ink) / .8); margin-top: .2rem; }
.howto-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.howto-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.howto-step.is-active { background: rgb(var(--accent) / .07); border-color: rgb(var(--accent) / .25); }
.howto-step.is-active .howto-num { color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.howto-step.is-active .howto-bar span { animation: fillbar var(--step-ms) linear forwards; }
.howto.paused .howto-step.is-active .howto-bar span { animation: none; width: 100%; }
.howto-step.is-done .howto-num { color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
@keyframes fillbar { to { width: 100%; } }

/* Demo window */
.demo { border-radius: 1.25rem; overflow: hidden; border: 1px solid rgb(var(--line)); background: rgb(var(--bg));
  box-shadow: 0 24px 50px -30px rgb(0 0 0 / .45); }
.demo-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem; background: rgb(var(--surface-2)); border-bottom: 1px solid rgb(var(--line)); }
.demo-bar .dot { width: .55rem; height: .55rem; border-radius: 9999px; background: rgb(var(--line)); }
.demo-url { display: none; margin-left: .5rem; flex: 1; font-size: .7rem; padding: .25rem .7rem; border-radius: 9999px; color: rgb(var(--muted));
  background: rgb(var(--surface)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-url[data-url-for="1"].is-on, .demo-url[data-url-for="2"].is-on, .demo-url[data-url-for="3"].is-on,
.demo-url[data-url-for="4"].is-on, .demo-url[data-url-for="5"].is-on { display: block; }
.demo-body { position: relative; aspect-ratio: 16 / 11; }
.scene { position: absolute; inset: 0; padding: 1rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.98); transition: opacity .35s, transform .35s; pointer-events: none; }
[data-scene="1"].is-on, [data-scene="2"].is-on, [data-scene="3"].is-on,
[data-scene="4"].is-on, [data-scene="5"].is-on { opacity: 1; transform: none; }

/* Mock pieces */
.mock-panel { width: 62%; max-width: 17rem; display: flex; flex-direction: column; gap: .5rem; padding: .8rem; border-radius: 1rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.mock-title { display: flex; align-items: center; gap: .4rem; font: 500 .95rem Fraunces, Georgia, serif; }
.mock-num { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 9999px; font: 600 .65rem Inter, sans-serif; color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.mock-frame { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 9.5rem; border-radius: .75rem;
  background: rgb(var(--surface-2)); overflow: hidden; }
.mock-frame-sm { height: 6rem; align-items: center; }
/* Scenes 1 & 4: "You" and "The clothing" side by side, like the real form below */
.mock-pair { display: flex; align-items: stretch; gap: .35rem; width: 100%; max-width: 30rem; }
.mock-pair .mock-panel { width: auto; max-width: none; flex: 1; min-width: 0; padding: .6rem; gap: .4rem; }
.mock-pair .mock-title { font-size: .8rem; white-space: nowrap; }
.mock-pair .mock-frame { flex: 1; height: auto; min-height: 5.5rem; }
.mock-pair .mock-person { transform: scale(.72); transform-origin: bottom center; }
.mock-pair .mock-panel.is-waiting { opacity: .5; }
.mock-plus { align-self: center; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 9999px; font-size: .75rem;
  color: rgb(var(--accent)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.mock-tabs { display: flex; gap: .2rem; font-size: .58rem; }
.mock-tabs span { padding: .1rem .45rem; border-radius: 9999px; color: rgb(var(--muted)); background: rgb(var(--surface-2)); }
.mock-tabs span.on { color: rgb(var(--ink)); background: rgb(var(--surface)); box-shadow: inset 0 0 0 1px rgb(var(--line)); }
.mock-file { align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; font-size: .65rem; padding: .15rem .5rem;
  border-radius: 9999px; background: rgb(var(--accent) / .12); color: rgb(var(--accent)); }
.mock-person { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: -.2rem; }
.mock-person .head { width: 1.6rem; height: 1.6rem; border-radius: 9999px; background: #c9a48a; }
.mock-person .body { width: 3.4rem; height: 3.6rem; margin-top: .2rem; border-radius: 1rem 1rem .3rem .3rem; background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.mock-person .legs { width: 2.6rem; height: 3rem; background: linear-gradient(90deg, #3d5a80 47%, transparent 47% 53%, #3d5a80 53%); }
.mock-compare .mock-person.after { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); clip-path: inset(0 0 0 50%); }
.mock-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 8px rgb(0 0 0 / .3); }
.mock-go { align-self: center; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .9rem; border-radius: 9999px; font-size: .75rem;
  font-weight: 600; color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.mock-search { position: absolute; top: .9rem; left: 1rem; right: 1rem; display: flex; align-items: center; gap: .4rem; padding: .4rem .8rem;
  border-radius: 9999px; font-size: .75rem; color: rgb(var(--muted)); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.typing-text { display: inline-block; overflow: hidden; white-space: nowrap; color: rgb(var(--ink)); border-right: 1.5px solid rgb(var(--accent)); }
.mock-grid { position: absolute; top: 3.4rem; left: 1rem; right: 1rem; bottom: .9rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mock-product { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; border-radius: .7rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); transition: box-shadow .3s, border-color .3s; }
.mock-product i, .mock-lines i { display: block; width: 60%; height: .3rem; border-radius: 9999px; background: rgb(var(--line)); }
.mock-product i.short, .mock-lines i.short { width: 35%; }
.mock-pdp { position: absolute; inset: .9rem 1rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: .8rem; }
.mock-hero { display: grid; place-items: center; border-radius: .8rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.mock-lines { display: flex; flex-direction: column; gap: .45rem; padding-top: .5rem; }
.mock-lines i { width: 90%; height: .45rem; }
.mock-lines i.btnlike { width: 70%; height: 1.4rem; margin-top: .6rem; background: rgb(var(--ink) / .85); }
.mock-menu { position: absolute; left: 36%; top: 38%; min-width: 10.5rem; padding: .3rem; border-radius: .6rem; font-size: .68rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .4); opacity: 0; }
.mock-menu p { display: flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border-radius: .35rem; color: rgb(var(--ink) / .85); }
.mock-input { display: flex; align-items: center; gap: .3rem; padding: .25rem .25rem .25rem .6rem; border-radius: 9999px; font-size: .62rem;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); }
.paste-text { flex: 1; display: block; overflow: hidden; white-space: nowrap; width: 0; color: rgb(var(--ink)); }
.mock-paste { padding: .2rem .55rem; border-radius: 9999px; font-weight: 600; color: rgb(var(--bg)); background: rgb(var(--ink)); }
.mock-frame-sm span { opacity: 0; }

/* Cursor (arrow drawn with an inline SVG) */
.mock-cursor { position: absolute; width: 18px; height: 22px; z-index: 5; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1 1l15 10.5-6.6 1.3 3.9 7.4-2.8 1.4-3.9-7.5L1 18.5z' fill='%23111' stroke='%23fff' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat; }

/* Scene timelines (run only while the scene is active) */
[data-scene="1"].is-on .mock-person { animation: dropIn .7s .3s both cubic-bezier(.2,.8,.2,1.2); }
[data-scene="1"].is-on .mock-file { animation: pop .4s 1s both; }
[data-scene="2"].is-on .typing-text { animation: typing 1.1s .2s steps(12) both; }
[data-scene="2"].is-on .is-pick { animation: pick .4s 2.3s both; }
[data-scene="2"].is-on .c-2 { animation: cur2 2.4s .2s both ease-in-out; }
[data-scene="3"].is-on .mock-menu { animation: pop .3s 1.1s both; }
[data-scene="3"].is-on .mock-menu .hl { animation: hl .3s 2s both; }
[data-scene="3"].is-on .c-3 { animation: cur3 2.4s .1s both ease-in-out; }
[data-scene="4"].is-on .c-4 { animation: cur4 1.2s .1s both ease-in-out; }
[data-scene="4"].is-on .mock-paste { animation: press .25s 1.2s both; }
[data-scene="4"].is-on .paste-text { animation: reveal .5s 1.4s both ease-out; }
[data-scene="4"].is-on .mock-frame-sm span { animation: pop .4s 2s both; }
[data-scene="5"].is-on .mock-go { animation: press .3s .4s both, glow 1.5s .7s infinite; }
[data-scene="5"].is-on .mock-person.after { animation: wipe 1.6s 1s both ease-in-out; }
[data-scene="5"].is-on .mock-divider { animation: slide 1.6s 1s both ease-in-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes typing { from { width: 0; } to { width: 12ch; } }
@keyframes pick { to { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .3); } }
@keyframes hl { to { background: rgb(var(--accent)); color: #fff; } }
@keyframes press { 50% { transform: scale(.9); } 100% { transform: none; } }
@keyframes reveal { from { width: 0; } to { width: 100%; } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgb(var(--accent) / .2); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 50%); } }
@keyframes slide { from { left: 100%; } to { left: 50%; } }
@keyframes cur2 { 0% { opacity: 0; left: 85%; top: 85%; } 15% { opacity: 1; } 85% { left: 20%; top: 45%; transform: none; } 92% { transform: scale(.85); } 100% { opacity: 1; left: 20%; top: 45%; transform: none; } }
@keyframes cur3 { 0% { opacity: 0; left: 70%; top: 85%; } 15% { opacity: 1; left: 32%; top: 45%; } 40% { left: 32%; top: 45%; } 75% { left: 47%; top: 68%; } 100% { opacity: 1; left: 47%; top: 68%; } }
@keyframes cur4 { 0% { opacity: 0; left: 55%; top: 90%; } 20% { opacity: 1; } 100% { opacity: 1; left: 88%; top: 41%; } }

/* Link box with a Paste button inside */
.paste-btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .3rem;
  padding: .35rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; color: rgb(var(--bg)); background: rgb(var(--ink)); }
.paste-btn:hover { opacity: .9; }
.flash-target { animation: aiFill 1.2s ease; }

/* Phones: a squarer demo window so the mock panels fit */
@media (max-width: 639px) {
  .demo-body { aspect-ratio: 1 / 1; }
  .mock-panel { width: 80%; }
  .mock-frame { height: 7.5rem; }
  .mock-frame-sm { height: 5rem; }
  .mock-menu { left: 22%; top: 42%; }
}
@media (max-width: 639px) {
  [data-scene="3"].is-on .c-3 { animation-name: cur3m; }
}
@keyframes cur3m { 0% { opacity: 0; left: 70%; top: 85%; } 15% { opacity: 1; left: 32%; top: 45%; } 40% { left: 32%; top: 45%; } 75% { left: 45%; top: 75%; } 100% { opacity: 1; left: 45%; top: 75%; } }

/* Small uppercase pill (Account page plan name) */
.trend-cat { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 9999px;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .1); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 1.25rem; max-width: 64rem; margin-inline: auto; }
@media (min-width: 640px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1.75rem; }
.price-card.is-featured { border-color: rgb(var(--accent) / .55); box-shadow: 0 18px 40px -22px rgb(var(--accent) / .7); }
.price-badge { position: absolute; top: -.75rem; left: 1.75rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.price-amount { font-family: inherit; font-size: 2.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 1rem 0 .25rem; }
.price-cur { font-size: 1.4rem; vertical-align: top; margin-right: .1rem; }
.price-per { font-size: .9rem; font-weight: 400; color: rgb(var(--muted)); margin-left: .35rem; letter-spacing: 0; }
.price-usage { margin: .75rem 0; padding: .75rem .9rem; border-radius: .9rem; background: rgb(var(--accent) / .08); }
.price-list { display: flex; flex-direction: column; gap: .55rem; margin: .5rem 0 1.5rem; font-size: .9rem; }
.price-list li { display: flex; gap: .5rem; }

/* ---------- Pricing FAQ ---------- */
.faq { max-width: 46rem; margin: 4rem auto 0; }
.faq-list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 1rem; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; color: rgb(var(--muted)); transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: rgb(var(--accent)); }
.faq-item p { padding: 0 1.25rem 1.1rem; font-size: .9rem; color: rgb(var(--muted)); line-height: 1.6; }

/* ---------- Accounts: sign-in, account card, limits ---------- */
.account-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 1.25rem; }
.account-card > :first-child { flex: 1 1 16rem; }
.account-plan { flex: 1 1 15rem; padding: .9rem 1rem; border-radius: 1rem; background: rgb(var(--accent) / .07); }
.usage-bar { height: .4rem; border-radius: 999px; background: rgb(var(--line)); margin-top: .5rem; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; max-width: 100%;
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.danger-zone { margin-top: 3rem; padding: 1rem 1.25rem; border: 1px solid rgb(239 68 68 / .3); border-radius: 1rem; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: rgb(220 38 38); }
.usage-note { margin-top: .9rem; font-size: .85rem; color: rgb(var(--muted)); }
.usage-note b { color: rgb(var(--ink)); }
.guest-save-note { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .8rem; color: rgb(var(--muted)); }
.login-perks { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgb(var(--line));
  display: flex; flex-direction: column; gap: .55rem; font-size: .875rem; }
.login-perks li { display: flex; align-items: center; gap: .6rem; }
.limit-dialog { width: min(26rem, calc(100vw - 2rem)); padding: 2rem 1.75rem 1.75rem; border: 1px solid rgb(var(--line));
  border-radius: 1.5rem; background: rgb(var(--surface)); color: rgb(var(--ink)); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .45); }
.limit-dialog[open] { display: block; }
.limit-dialog::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(3px); }
.limit-dialog .logo-mark { display: flex; }

/* ---------- Home banner: character gets dressed by a magic scan ---------- */
.hero-magic { position: relative; max-width: 25rem; margin-inline: auto; padding: 1.5rem 0 2.5rem; }
.hm-stage { position: relative; aspect-ratio: 2 / 3; border-radius: 1.75rem; overflow: hidden;
  border: 6px solid rgb(var(--surface)); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
  background: radial-gradient(120% 80% at 50% 100%, rgb(var(--accent-2) / .22), transparent 60%),
              linear-gradient(170deg, rgb(var(--surface-2)), rgb(var(--accent) / .2)); }
.hm-layer { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.hm-after { clip-path: inset(0 100% 0 0); animation: hm-reveal 7s cubic-bezier(.65,0,.35,1) infinite; }
.hm-after { animation: hm-reveal 7s cubic-bezier(.65,0,.35,1) infinite, hm-pop 7s ease-in-out infinite; }
.hm-scan { position: absolute; top: -5%; bottom: -5%; left: 0; width: 3px; z-index: 2; opacity: 0;
  background: #fff; box-shadow: 0 0 12px 4px rgb(255 255 255 / .9), 0 0 40px 14px rgb(var(--accent) / .55);
  animation: hm-scan 7s cubic-bezier(.65,0,.35,1) infinite; }
.hm-spark { position: absolute; z-index: 3; width: 1.1rem; height: 1.1rem; color: #fff; opacity: 0;
  filter: drop-shadow(0 0 6px rgb(var(--accent-2))); animation: hm-spark 7s calc(1.2s + var(--d)) infinite; }
.hm-spark svg { width: 100%; height: 100%; }
.hm-label { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem;
  border-radius: 9999px; font-size: .75rem; font-weight: 600; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .4); }
.hm-label-before { left: -.5rem; top: 3.25rem; background: rgb(var(--surface)); color: rgb(var(--ink));
  border: 1px solid rgb(var(--line)); animation: hm-before-tag 7s infinite; }
.hm-label-after { right: -.5rem; top: 3.25rem; color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); animation: hm-after-tag 7s infinite; }
.hm-piece { position: absolute; z-index: 4; right: -1rem; bottom: .75rem; display: flex; align-items: center; gap: .6rem;
  padding: .45rem .8rem .45rem .45rem; border-radius: 1rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line));
  box-shadow: 0 16px 30px -16px rgb(0 0 0 / .45); font-size: .75rem; line-height: 1.2; animation: hm-piece 7s infinite; }
.hm-piece small { display: block; color: rgb(var(--muted)); }
.hm-piece-img { width: 2.6rem; height: 2.6rem; border-radius: .7rem; object-fit: cover; background: rgb(var(--surface-2)); }

/* One 7 s loop: before (0–15%) → scan dresses her (15–45%) → after (45–85%) → fade back (85–100%) */
@keyframes hm-reveal { 0%, 15% { clip-path: inset(0 100% 0 0); opacity: 1; } 45%, 85% { clip-path: inset(0 0 0 0); opacity: 1; }
  97% { clip-path: inset(0 0 0 0); opacity: 0; } 100% { clip-path: inset(0 100% 0 0); opacity: 0; } }
@keyframes hm-scan { 0%, 14% { left: 0; opacity: 0; } 16% { opacity: 1; } 44% { left: calc(100% - 3px); opacity: 1; } 47%, 100% { left: calc(100% - 3px); opacity: 0; } }
@keyframes hm-pop { 0%, 44% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.02); filter: brightness(1.12); } 58%, 100% { transform: scale(1); filter: brightness(1); } }
@keyframes hm-spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 4% { opacity: 1; transform: scale(1) rotate(45deg); }
  9% { opacity: 0; transform: scale(.2) rotate(90deg); } 100% { opacity: 0; } }
@keyframes hm-before-tag { 0%, 30% { opacity: 1; transform: none; } 40%, 90% { opacity: .35; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes hm-after-tag { 0%, 40% { opacity: 0; transform: translateY(6px) scale(.9); } 48%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(6px) scale(.9); } }
@keyframes hm-piece { 0%, 8% { transform: translateY(0); opacity: 1; } 18% { transform: translate(-30%, -40%) scale(.85); opacity: 0; }
  86% { transform: translateY(10px); opacity: 0; } 96%, 100% { transform: translateY(0); opacity: 1; } }
@media (max-width: 767px) { .hero-magic { max-width: 17rem; padding-bottom: 2rem; } .hm-piece { right: -1.5rem; } .hm-label-before { left: -1rem; } .hm-label-after { right: -1rem; } }
@media (prefers-reduced-motion: reduce) {
  .hm-after { animation: none; clip-path: inset(0 0 0 50%); }
  .hm-scan { animation: none; opacity: 1; left: 50%; }
  .hm-spark, .hm-piece, .hm-label { animation: none; }
  .hm-label-after { opacity: 1; }
}

/* ---------- Quick try-on pop-up (any page) ---------- */
.qt-dialog { width: min(30rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; overflow: auto;
  border: 1px solid rgb(var(--line)); border-radius: 1.5rem; background: rgb(var(--surface)); color: rgb(var(--ink));
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .5); }
.qt-dialog[open] { display: block; animation: qtIn .28s cubic-bezier(.2,.7,.2,1); }
.qt-dialog::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(3px); }
@keyframes qtIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 639px) {
  /* Phones: a bottom sheet */
  .qt-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 1.5rem 1.5rem 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
}
.qt-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1rem .75rem 1.25rem; background: rgb(var(--surface)); border-bottom: 1px solid rgb(var(--line) / .7); }
.qt-head .logo-mark { display: flex; }
.qt-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.qt-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.qt-slot { margin: 0; min-width: 0; }
.qt-slot figcaption { margin-top: .4rem; font-size: .75rem; color: rgb(var(--muted)); text-align: center; }
.qt-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 1rem; overflow: hidden; background: rgb(var(--surface-2));
  border: 1px solid rgb(var(--line)); }
.qt-frame img { width: 100%; height: 100%; object-fit: cover; }
.qt-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  padding: .75rem; text-align: center; cursor: pointer; color: rgb(var(--muted)); border: 2px dashed rgb(var(--line)); border-radius: 1rem; }
.qt-empty:hover { color: rgb(var(--accent)); border-color: rgb(var(--accent) / .6); }
.qt-empty b { font-size: .85rem; color: rgb(var(--ink)); }
.qt-empty small { font-size: .7rem; }
.qt-plus { font-family: Fraunces, Georgia, serif; font-size: 1.6rem; color: rgb(var(--accent)); }
.qt-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.qt-choice { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .3rem; border-radius: 9999px; cursor: pointer;
  font-size: .8rem; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: border-color .2s, box-shadow .2s; }
.qt-choice img, .qt-choice-icon { width: 1.9rem; height: 1.9rem; border-radius: 9999px; object-fit: cover; flex: none; }
.qt-choice-icon { display: grid; place-items: center; color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
.qt-choice:hover { border-color: rgb(var(--accent) / .5); }
.qt-choice[aria-checked="true"] { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .18); font-weight: 500; }
.qt-error { font-size: .85rem; color: rgb(220 38 38); }
.qt-result { position: relative; aspect-ratio: 3 / 4; border-radius: 1rem; overflow: hidden; display: grid; place-items: center; }

/* ---------- Try-on: members mix several wardrobe pieces ---------- */
.mix-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem .55rem; border-radius: 1rem;
  font-size: .78rem; color: rgb(var(--muted)); background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); }
.mix-bar p { flex: 1; min-width: 0; line-height: 1.35; }
.mix-bar b { color: rgb(var(--ink)); font-weight: 600; }
.mix-bar-icon { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: .65rem;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
.mix-bar.is-on { background: rgb(var(--accent) / .07); border-color: rgb(var(--accent) / .35); }
.mix-bar.is-on .mix-bar-icon { color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.mix-count { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: rgb(var(--accent)); }
.mix-lock { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 9999px;
  font-size: .72rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.mix-lock:hover { filter: brightness(1.07); }
.pick-num { position: absolute; top: .35rem; right: .35rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem;
  border-radius: 9999px; font-size: .7rem; font-style: normal; font-weight: 700; color: #fff;
  background: rgb(0 0 0 / .35); border: 1.5px solid #fff; }
.pick-num:empty { background: rgb(0 0 0 / .2); }
.pick-item:has(input:checked) .pick-num { background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }

/* ---------- Top bar: signed-in account menu ---------- */
.acct-menu { position: relative; }
.acct-btn { display: flex; align-items: center; gap: .5rem; max-width: 15rem; padding: .25rem .6rem .25rem .25rem; border-radius: 9999px;
  cursor: pointer; list-style: none; font-size: .85rem; border: 1px solid rgb(var(--line)); background: rgb(var(--surface) / .8);
  transition: border-color .2s, box-shadow .2s; }
.acct-btn::-webkit-details-marker { display: none; }
.acct-btn:hover, .acct-menu[open] .acct-btn, .acct-btn.is-active { border-color: rgb(var(--accent) / .55); }
.acct-menu[open] .acct-btn { box-shadow: 0 0 0 3px rgb(var(--accent) / .15); }
.acct-avatar { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 9999px;
  font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.acct-email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.acct-caret { flex: none; color: rgb(var(--muted)); transition: transform .2s; }
.acct-menu[open] .acct-caret { transform: rotate(180deg); }
.acct-pop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; width: 16rem; padding: .4rem;
  border-radius: 1.1rem; border: 1px solid rgb(var(--line)); background: rgb(var(--surface));
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .45); animation: acctIn .16s ease-out; }
@keyframes acctIn { from { opacity: 0; transform: translateY(-4px); } }
.acct-who { padding: .6rem .7rem .7rem; margin-bottom: .3rem; border-bottom: 1px solid rgb(var(--line)); }
.acct-plan { display: inline-block; margin-top: .4rem; padding: .1rem .55rem; border-radius: 9999px; font-size: .7rem; font-weight: 600;
  color: rgb(var(--muted)); background: rgb(var(--surface-2)); }
.acct-plan.is-paid { color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.acct-item { display: flex; width: 100%; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .75rem;
  font-size: .875rem; text-align: left; color: rgb(var(--ink)); }
.acct-item:hover { background: rgb(var(--surface-2)); }
.acct-item svg { color: rgb(var(--muted)); }
.acct-logout { color: rgb(220 38 38); }
.acct-logout svg { color: currentColor; }

/* ---------- Photos of you (Account page library + try-on picker) ---------- */
.photo-count { font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 9999px;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .1); }
.photo-count.is-full { color: rgb(220 38 38); background: rgb(220 38 38 / .1); }
.photo-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .75rem; }
.photo-tile { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 1rem; overflow: hidden;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: .4rem; right: .4rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 9999px; color: #fff; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); transition: background .2s; }
.photo-del:hover { background: rgb(220 38 38); }
.photo-add-tile { border: 2px dashed rgb(var(--line)); background: transparent; }
.photo-add { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; padding: .5rem; text-align: center; cursor: pointer; color: rgb(var(--muted)); }
.photo-add b { font-size: .85rem; color: rgb(var(--ink)); }
.photo-add small { font-size: .7rem; }
.photo-add-tile:hover { border-color: rgb(var(--accent) / .6); }
.photo-add-tile:hover .photo-add { color: rgb(var(--accent)); }
.photo-pick { display: flex; gap: .4rem; overflow-x: auto; padding: .15rem; }
.photo-pick label { flex: none; width: 3rem; aspect-ratio: 3 / 4; border-radius: .6rem; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick label:has(input:checked) { border-color: rgb(var(--accent)); box-shadow: 0 0 0 2px rgb(var(--accent) / .25); }
.qt-choice.is-disabled { opacity: .55; cursor: not-allowed; }
.wardrobe-room { font-size: .8rem; color: rgb(var(--muted)); }
.wardrobe-room.is-full { color: rgb(220 38 38); }

/* ---------- Sign in / create account ---------- */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; margin-top: 1.25rem;
  border-radius: 9999px; background: rgb(var(--surface-2)); }
.auth-tabs a { text-align: center; padding: .5rem; border-radius: 9999px; font-size: .875rem; color: rgb(var(--muted)); }
.auth-tabs a[aria-selected="true"] { background: rgb(var(--surface)); color: rgb(var(--ink)); font-weight: 500;
  box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4rem; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); padding: .25rem .6rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 500; color: rgb(var(--muted)); }
.pw-toggle:hover { color: rgb(var(--ink)); background: rgb(var(--surface-2)); }

/* ---------- About page ---------- */
.about-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.about-section { scroll-margin-top: 5.5rem; margin-top: 3.5rem; }
.about-values { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 768px) { .about-values { grid-template-columns: repeat(3, 1fr); } }
.policy { max-width: 46rem; margin: 0 auto; }
.policy h3 { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; margin-top: 2rem; }
.policy p, .policy li { font-size: .95rem; line-height: 1.65; color: rgb(var(--ink) / .85); }
.policy p { margin-top: .6rem; }
.policy ul { margin-top: .6rem; padding-left: 1.2rem; list-style: disc; display: flex; flex-direction: column; gap: .35rem; }
.policy b { color: rgb(var(--ink)); }
.policy table { width: 100%; margin-top: .8rem; border-collapse: collapse; font-size: .875rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid rgb(var(--line)); }
.policy th { font-weight: 600; color: rgb(var(--muted)); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.policy-table { overflow-x: auto; }
.contact-card { max-width: 40rem; margin: 1.5rem auto 0; text-align: center; }

/* ---------- Try-on: members' outfit tray (links + uploads + wardrobe picks) ---------- */
.outfit-tray { display: flex; flex-direction: column; gap: .6rem; padding: .85rem; border-radius: 1rem;
  border: 1px dashed rgb(var(--accent) / .45); background: rgb(var(--accent) / .04); }
.tray-list { display: flex; flex-direction: column; gap: .5rem; }
.tray-list:empty { display: none; }
.tray-item { display: flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: .85rem;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); opacity: .6; transition: opacity .2s, border-color .2s; }
.tray-item.is-on { opacity: 1; border-color: rgb(var(--accent) / .55); }
.tray-item img { width: 2.9rem; height: 3.6rem; border-radius: .55rem; object-fit: cover; background: rgb(var(--surface-2)); flex: none; }
.tray-check { position: relative; display: block; flex: none; cursor: pointer; }
.tray-check input { position: absolute; top: .2rem; left: .2rem; width: 1rem; height: 1rem; accent-color: rgb(var(--accent)); }
.tray-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.tray-meta b { font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-meta small { font-size: .7rem; color: rgb(var(--muted)); }
.tray-cat { font-size: .78rem; padding: .2rem .4rem; border-radius: .5rem; border: 1px solid rgb(var(--line));
  background: rgb(var(--surface)); color: rgb(var(--ink)); max-width: 10rem; }
.tray-x { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 9999px; font-size: 1.1rem;
  color: rgb(var(--muted)); }
.tray-x:hover { color: rgb(220 38 38); background: rgb(220 38 38 / .08); }

/* ---------- Wardrobe: Combine mode (pick several pieces, try them on together) ---------- */
#combine-btn.is-active { border-color: rgb(var(--accent)); color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .15); }
.card-pick { display: none; }
.is-selecting .card-pick { position: absolute; top: .5rem; right: .5rem; z-index: 2; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 9999px; font-size: .8rem; font-weight: 700; color: #fff;
  background: rgb(0 0 0 / .3); border: 2px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.is-selecting .item-card.is-picked .card-pick { background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
.is-selecting .item-card { cursor: pointer; }
.is-selecting .item-card.is-picked { outline: 3px solid rgb(var(--accent)); outline-offset: 2px; }
.is-selecting .try-badge { display: none; }
.combine-bar { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(4.75rem + env(safe-area-inset-bottom));
  width: min(40rem, calc(100vw - 1.5rem)); display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem .75rem;
  border-radius: 1.25rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--accent) / .4);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .45); animation: qtIn .25s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 768px) { .combine-bar { bottom: 1.5rem; } }
.combine-bar p { flex: 1; }
.combine-thumbs { display: flex; flex: none; }
.combine-thumbs:empty { display: none; }
.combine-thumbs img { width: 2.2rem; height: 2.8rem; object-fit: cover; border-radius: .5rem; border: 2px solid rgb(var(--surface));
  margin-left: -.6rem; background: rgb(var(--surface-2)); }
.combine-thumbs img:first-child { margin-left: 0; }
@media (max-width: 479px) { .combine-thumbs { display: none; } .combine-bar .btn { padding-inline: .8rem; } }
.qt-frame.qt-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgb(var(--line)); }
.qt-frame.qt-stack img { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: rgb(var(--surface)); }

/* Combine: stand-out header button + floating shortcut */
.combine-cta { box-shadow: 0 12px 30px -12px rgb(var(--accent) / .8); }
.combine-cta.is-active { filter: saturate(.85); box-shadow: 0 0 0 3px rgb(var(--accent) / .25); }
.combine-lock { display: inline-flex; align-items: center; gap: .25rem; margin-left: .2rem; padding: .1rem .5rem; border-radius: 9999px;
  font-size: .7rem; font-weight: 600; background: rgb(255 255 255 / .22); }
.combine-fab { position: fixed; z-index: 34; right: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.2rem; border-radius: 9999px;
  font-weight: 600; font-size: .9rem; color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
  box-shadow: 0 16px 40px -12px rgb(var(--accent) / .9); transition: transform .2s, filter .2s; animation: qtIn .35s ease-out; }
.combine-fab:hover { transform: translateY(-2px); filter: brightness(1.07); }
.combine-fab.hidden { display: none; }
@media (min-width: 768px) { .combine-fab { right: 1.5rem; bottom: 1.5rem; } }

/* ---------- Sample wardrobe (signed-out visitors) ---------- */
.demo-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 9999px;
  color: #fff; background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); letter-spacing: .04em; }
.demo-banner { margin-bottom: 1.25rem; padding: 1.1rem 1.25rem; border-radius: 1.5rem; border: 1px solid rgb(var(--line));
  background: linear-gradient(135deg, rgb(var(--surface)), rgb(var(--accent) / .07)); }
.demo-banner-steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .demo-banner-steps { grid-template-columns: repeat(3, 1fr); } }
.demo-banner-steps > div { display: flex; align-items: center; gap: .75rem; }
.demo-banner-steps p { display: flex; flex-direction: column; font-size: .9rem; }
.demo-banner-steps small { font-size: .78rem; color: rgb(var(--muted)); line-height: 1.4; }
.demo-tag { position: absolute; top: .5rem; left: .5rem; padding: .15rem .5rem; border-radius: 9999px; font-size: .65rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--ink)); background: rgb(255 255 255 / .85);
  backdrop-filter: blur(4px); }

/* ---------- Wardrobe: Pieces | My looks ---------- */
.wardrobe-tabs { display: inline-flex; gap: .25rem; padding: .3rem; margin-bottom: 1.5rem; border-radius: 9999px;
  background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); }
.wardrobe-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 9999px;
  font-size: .9rem; color: rgb(var(--muted)); }
.wardrobe-tabs a:hover { color: rgb(var(--ink)); }
.wardrobe-tabs a[aria-current="page"] { background: rgb(var(--surface)); color: rgb(var(--ink)); font-weight: 600;
  box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.tab-count { font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 9999px;
  color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
.look-tile { margin: 0; border-radius: 1.25rem; overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--line));
  transition: transform .25s, box-shadow .25s; }
.look-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .45); }
.look-open { display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; background: rgb(var(--surface-2)); }
.look-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.look-tile:hover .look-open img { transform: scale(1.04); }
.look-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .5rem .55rem .85rem; }
.look-tile figcaption > span:first-child { display: flex; flex-direction: column; }
.look-tile b { font-size: .8rem; font-weight: 600; display: block; }
.look-tile small { font-size: .7rem; color: rgb(var(--muted)); }
.look-del:hover { color: rgb(220 38 38); }
.look-dialog .qt-result { aspect-ratio: 2 / 3; }
.looks-perks { display: inline-flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; text-align: left; font-size: .9rem; }
.looks-perks li { display: flex; align-items: center; gap: .5rem; }

/* ---------- Account: reorder photos of you ---------- */
.photo-tile[draggable="true"] { cursor: grab; }
.photo-tile.is-dragging { opacity: .4; outline: 2px dashed rgb(var(--accent)); }
.photo-tile.just-moved { animation: photoMoved .45s ease; }
@keyframes photoMoved { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.photo-main { display: none; position: absolute; top: .4rem; left: .4rem; align-items: center; gap: .2rem; padding: .15rem .5rem;
  border-radius: 9999px; font-size: .65rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2))); }
#photo-lib .photo-tile[data-photo-id]:first-child .photo-main { display: inline-flex; }
.photo-move { position: absolute; left: .35rem; right: .35rem; bottom: .35rem; display: flex; align-items: center; justify-content: space-between;
  gap: .25rem; padding: .2rem; border-radius: 9999px; background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); color: #fff; }
.photo-move button { display: grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 9999px; font-size: .68rem; font-weight: 600; }
.photo-move button:hover { background: rgb(255 255 255 / .2); }
.photo-make-main { padding: 0 .45rem; }
#photo-lib .photo-tile[data-photo-id]:first-child .photo-make-main { visibility: hidden; }
#photo-lib .photo-tile[data-photo-id]:first-child [data-move="-1"] { opacity: .3; pointer-events: none; }
#photo-lib .photo-tile[data-photo-id]:nth-last-child(1 of [data-photo-id]) [data-move="1"] { opacity: .3; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; border-top: 1px solid rgb(var(--line) / .7);
  background: linear-gradient(180deg, transparent, rgb(var(--surface) / .6)); }
.footer-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: .75rem; max-width: 18rem; font-size: .875rem; color: rgb(var(--muted)); line-height: 1.55; }
.footer-brand .logo-mark { display: flex; }
.site-footer nav { display: flex; flex-direction: column; gap: .55rem; font-size: .875rem; }
.site-footer nav h3 { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(var(--ink)); margin-bottom: .2rem; }
.site-footer nav a { color: rgb(var(--muted)); width: fit-content; }
.site-footer nav a:hover { color: rgb(var(--accent)); }
.footer-bottom { display: flex; flex-direction: column; gap: .6rem; margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgb(var(--line) / .7); font-size: .78rem; color: rgb(var(--muted)); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
