/* Homepage. One bold idea: features are hang tags on a clothing rail. Everything else is
   quiet and borrowed from the reseller's packing table (care label, receipts, mailer). */

/* ---------- Hero ---------- */
.h-hero { padding: 64px 0 88px; }
.h-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 940px) { .h-hero .wrap { grid-template-columns: 1fr; gap: 44px; } }
.h-hero h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); line-height: .98; letter-spacing: -.022em; font-stretch: 84%; margin-bottom: 22px; text-wrap: balance; }
.h-hero .lead { font-size: 1.2rem; max-width: 34em; color: var(--muted); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.h-cta .btn { padding: 15px 26px; font-size: 1.05rem; }
.h-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 22px 0 0; list-style: none; font-weight: 600; font-size: .95rem; }
.h-facts li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.h-facts li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--pink); transform: rotate(45deg); }

/* Browser window with the extension popup open under its toolbar icon */
.browser { position: relative; background: var(--surface); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(34, 28, 43, .35), 0 0 0 1px rgba(34, 28, 43, .06); }
.b-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-alt); border-radius: 12px 12px 0 0; }
.b-omni { flex: 1; min-width: 0; background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-icons { display: flex; align-items: center; gap: 8px; }
.b-icons svg { width: 18px; height: 18px; color: var(--muted); }
.b-icons .on { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 2px var(--pink); }
.b-icons .on img { width: 20px; height: 20px; }
.b-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.b-page div { aspect-ratio: 3 / 4; border-radius: 6px; position: relative; display: grid; place-items: center; }
.b-page div svg { width: 52%; height: auto; opacity: .9; }
.b-page div::after { content: attr(data-price); position: absolute; left: 6px; bottom: 6px; background: var(--sticker); color: #2a2433; font-weight: 800; font-size: .72rem; padding: 1px 6px; border-radius: 3px; }
.b-page div:nth-child(1) { background: #ffe3ef; }
.b-page div:nth-child(2) { background: #f1e6d6; }
.b-page div:nth-child(3) { background: #e7e2f6; }
.b-page div:nth-child(4) { background: #dcefe8; }
.b-page div:nth-child(5) { background: #fff3c4; }
.b-page div:nth-child(6) { background: #e9edf5; }
@media (prefers-color-scheme: dark) { .b-page div { filter: saturate(.8) brightness(.78); } }

.pop { position: absolute; top: 46px; right: 10px; width: min(300px, 82%); background: var(--surface); border-radius: 10px; padding: 14px; box-shadow: 0 18px 40px rgba(34, 28, 43, .28), 0 0 0 1px rgba(34, 28, 43, .08); z-index: 2; }
.pop::before { content: ""; position: absolute; top: -7px; right: 14px; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(34, 28, 43, .08); }
.pop-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .92rem; margin-bottom: 10px; }
.pop-head span { display: inline-flex; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.pop-now { font: 800 1.15rem/1.15 var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.pop-bar { height: 8px; border-radius: 2px; background: var(--bg-alt); overflow: hidden; margin: 10px 0 6px; }
.pop-bar i { display: block; height: 100%; width: 33%; background: var(--pink); transition: width .5s ease; }
.pop small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pop-log { list-style: none; margin: 10px 0 0; padding: 0; font-size: .84rem; min-height: 120px; }
.pop-log li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; margin: 0; border-top: 1px solid var(--line); }
.pop-log li.new { animation: rowin .4s ease; }
.pop-log li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-log b { color: var(--ok); font-weight: 700; white-space: nowrap; }
.pop-log .warn { color: var(--warn); font-weight: 700; white-space: nowrap; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 520px) { .pop { right: 6px; top: 44px; width: 86%; } }

/* ---------- The rail: features as hang tags ---------- */
.rack { padding: 40px 0 96px; }
.rack h2 { max-width: 16em; }
.rack .lead { color: var(--muted); }
.rail { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; position: relative; }
/* The chrome bar the tags hang from */
.rail::before { content: ""; position: absolute; left: -24px; right: -24px; top: -10px; height: 10px; border-radius: 5px; background: linear-gradient(#e9e6ee, #9c96a6 55%, #d8d4de); box-shadow: 0 3px 6px rgba(34, 28, 43, .2); }
.tag { position: relative; margin: 0; padding-top: var(--drop, 36px); transform-origin: 50% -10px; animation: hangon 1.6s cubic-bezier(.3, .7, .3, 1) both; animation-delay: var(--d, 0s); outline: none; }
/* String from the rail to the grommet */
.tag::before { content: ""; position: absolute; left: 50%; top: -6px; width: 2px; height: calc(var(--drop, 36px) + 22px); background: #8d7d6c; transform: translateX(-50%); }
.tag-wrap { filter: drop-shadow(0 12px 14px rgba(34, 28, 43, .22)); rotate: var(--tilt, 0deg); transform-origin: 50% 0; }
.tag-body { position: relative; padding: 46px 16px 16px; min-height: 280px; background: var(--stock, #fffdf8); color: var(--ink, #2a2433);
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%); }
/* Grommet */
.tag-body::before { content: ""; position: absolute; left: 50%; top: 14px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px rgba(255, 255, 255, .75), inset 0 2px 3px rgba(0, 0, 0, .3); }
/* SKU barcode at the foot of each tag */
.tag-body::after { content: ""; display: block; height: 22px; margin-top: 18px; opacity: .5;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px); }
.tag h3 { font-size: 1.32rem; line-height: 1.02; font-stretch: 75%; margin-bottom: 10px; color: inherit; }
.tag p { font-size: .93rem; line-height: 1.45; margin: 0; }
.tag:hover .tag-wrap, .tag:focus-visible .tag-wrap { animation: swing 1.1s ease; }
.tag:focus-visible .tag-body { outline: 3px solid var(--focus); outline-offset: -6px; }
.tag.kraft { --stock: var(--kraft); --ink: #2b2016; }
.tag.paper { --stock: #fffdf8; --ink: #2a2433; }
.tag.pink { --stock: var(--pink); --ink: #ffffff; }
.tag.green { --stock: #0f5c4d; --ink: #ffffff; }
.tag.yellow { --stock: var(--sticker); --ink: #2a2433; }
.tag:nth-child(1) { --drop: 30px; --tilt: -2deg; --d: .05s; }
.tag:nth-child(2) { --drop: 58px; --tilt: 1.5deg; --d: .15s; }
.tag:nth-child(3) { --drop: 40px; --tilt: -1deg; --d: .25s; }
.tag:nth-child(4) { --drop: 70px; --tilt: 2deg; --d: .35s; }
.tag:nth-child(5) { --drop: 34px; --tilt: -2.5deg; --d: .45s; }
.tag:nth-child(6) { --drop: 52px; --tilt: 1deg; --d: .55s; }
@keyframes hangon {
  0% { opacity: 0; transform: translateY(-46px) rotate(0); }
  35% { opacity: 1; transform: translateY(0) rotate(6deg); }
  55% { transform: rotate(-4deg); }
  72% { transform: rotate(2.4deg); }
  86% { transform: rotate(-1deg); }
  100% { transform: none; }
}
@keyframes swing { 25% { rotate: 7deg; } 50% { rotate: -5deg; } 75% { rotate: 2deg; } 100% { rotate: var(--tilt, 0deg); } }
.rack-hint { display: none; font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 1080px) {
  /* Swipe along the rack */
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 14px 16px 28px; margin: 44px -16px 0; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail::before { left: 0; right: auto; width: calc(6 * 236px + 32px); top: 4px; }
  .tag { flex: 0 0 220px; scroll-snap-align: center; }
  .rack-hint { display: block; margin-top: 4px; }
}

/* ---------- Wifi blip demo (dark band) ---------- */
.bounce { background: var(--text); color: var(--bg); }
.bounce .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .bounce .wrap { grid-template-columns: 1fr; gap: 32px; } }
.bounce h2 { color: inherit; }
.bounce .lead { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.bounce .steps li::before { color: var(--sticker); }
.blip { background: color-mix(in srgb, var(--bg) 8%, transparent); border-radius: 10px; padding: 26px; }
.blip-head { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.blip-head::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #7fe0c4; }
.blip-track { position: relative; height: 14px; background: color-mix(in srgb, var(--bg) 14%, transparent); border-radius: 3px; overflow: hidden; margin: 14px 0 8px; }
.blip-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pink); animation: progress 8s linear infinite; }
.blip-track b { position: absolute; top: 0; bottom: 0; left: 42%; width: 14%; background: repeating-linear-gradient(45deg, var(--sticker) 0 6px, transparent 6px 12px); opacity: 0; animation: gap 8s linear infinite; }
@keyframes progress { 0% { width: 0; } 42% { width: 42%; } 56% { width: 42%; } 100% { width: 100%; } }
@keyframes gap { 0%, 41% { opacity: 0; } 42%, 56% { opacity: 1; } 57%, 100% { opacity: 0; } }
.blip-labels { display: flex; justify-content: space-between; font-size: .8rem; opacity: .7; }
.blip-status { position: relative; margin-top: 16px; height: 1.6em; font-weight: 700; }
.blip-status span { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; }
.blip-status .a { animation: s-a 8s linear infinite; }
.blip-status .b { color: var(--sticker); animation: s-b 8s linear infinite; }
.blip-status .c { color: #7fe0c4; animation: s-c 8s linear infinite; }
@keyframes s-a { 0%, 40% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes s-b { 0%, 41% { opacity: 0; } 43%, 55% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes s-c { 0%, 56% { opacity: 0; } 58%, 98% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Safety: a garment care label ---------- */
.safety .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .safety .wrap { grid-template-columns: 1fr; gap: 36px; } }
.care { background: #fbfaf7; color: #2a2433; border-radius: 6px; padding: 30px 26px 26px; position: relative; box-shadow: var(--shadow); outline: 1.5px dashed #b9b1c4; outline-offset: -9px; max-width: 420px; justify-self: center; width: 100%; }
.care::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #ece8e1; border-radius: 6px 6px 0 0; }
.care-brand { text-align: center; font: 800 1.5rem/1 var(--display); font-stretch: 75%; letter-spacing: -.01em; margin: 6px 0 2px; }
.care-sub { text-align: center; font-size: .82rem; color: #6a6275; margin: 0 0 16px; }
.care-symbols { display: flex; justify-content: center; gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.care-symbols li { margin: 0; }
.care-symbols svg { width: 34px; height: 34px; color: #2a2433; }
.care dl { margin: 0; }
.care dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #e6e1d8; font-size: .93rem; }
.care dt { font-weight: 700; }
.care dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.care-foot { text-align: center; font-size: .82rem; color: #6a6275; margin: 16px 0 0; }

/* ---------- Receipts ---------- */
.rcpt-store { font: 800 1rem/1 var(--display); font-stretch: 75%; color: #8b8296; margin: 0 0 14px; }

/* ---------- Waitlist mailer confetti (answers the signup, so it may move) ---------- */
.confetti { position: absolute; width: 9px; height: 13px; top: 45%; left: 50%; border-radius: 2px; pointer-events: none; z-index: 3; animation: burst 1.1s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blip-track i { width: 100%; }
  .blip-status .c { opacity: 1; }
}
