/* Shared styles that Tailwind utilities don't cover */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { background: #060810; color: #CBD5E1; }
section[id], [id].anchor { scroll-margin-top: 100px; }
button, a, select, label[for] { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }

/* Focus: gold ring everywhere (every surface is dark) */
:focus-visible { outline: 3px solid #FFBE1A; outline-offset: 2px; border-radius: 4px; }

/* Brand gradient: gold to orange to pink. Used for the main button, key words and small accents. */
.btn-grad { background: linear-gradient(90deg, #FFBE1A 0%, #FF8A3D 55%, #F062D6 100%); color: #060810 !important; box-shadow: 0 8px 28px -12px rgba(255,138,61,.55); }
.btn-grad:hover { filter: brightness(1.08); box-shadow: 0 10px 32px -10px rgba(255,138,61,.7); }
.btn-ghost { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.text-grad { background: linear-gradient(90deg, #FFBE1A 0%, #FF8A3D 50%, #F062D6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFBE1A; }
.pill { display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 12px; border-radius: 9999px; border: 1px solid rgba(255,190,26,.35); background: rgba(255,190,26,.08); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFD066; }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,190,26,.18), rgba(240,98,214,.14)); border: 1px solid rgba(255,255,255,.08); color: #FFBE1A; }
.avatar-grad { background: linear-gradient(135deg, #FFBE1A, #FF8A3D 50%, #F062D6); color: #060810; }

/* Soft colored glows behind sections, like light on a dark garage floor */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 100% 0%, rgba(255,138,61,.13), transparent 70%),
              radial-gradient(50% 60% at 0% 100%, rgba(217,70,239,.12), transparent 70%); }
.glow-soft::before { background: radial-gradient(45% 50% at 0% 0%, rgba(255,138,61,.08), transparent 70%),
                                 radial-gradient(40% 50% at 100% 100%, rgba(217,70,239,.07), transparent 70%); }
.hairline { border-top: 1px solid rgba(255,255,255,.06); }

/* One grade for every photo, darkened to sit in the dark theme */
.photo { filter: saturate(.85) contrast(1.05) brightness(.85); }

/* Product pictures sit on a soft light stage so maker photos (white backgrounds) blend in */
.stage { background: radial-gradient(120% 90% at 50% 30%, #FFFFFF 0%, #E7EBF2 75%); }

/* Hero load sequence */
.rise { animation: rise .7s cubic-bezier(.22,.8,.24,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade { animation: fade .6s ease-out both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Container drawings fill once their row scrolls into view (JS adds .go) */
.pour { transform-box: fill-box; transform-origin: 50% 100%; animation: pour 1.3s cubic-bezier(.22,.8,.24,1) both; }
@keyframes pour { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pour-wait:not(.go) .pour { animation-play-state: paused; }

.card-in { animation: rise .45s cubic-bezier(.22,.8,.24,1) both; }
.swap { animation: fade .25s ease-out both; }
.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Subtle interaction polish: color changes ease in, cards lift a little on hover (mouse only) */
a, button, summary, select, input, textarea, .pk-chip { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, filter .15s ease; }
article[data-product], [data-lift], nav[aria-label="Quick access"] > * { transition: transform .2s ease, box-shadow .2s ease, border-color .15s ease, background-color .15s ease; }
@media (hover: hover) {
  article[data-product]:hover, [data-lift]:hover { transform: translateY(-3px); border-color: rgba(255,190,26,.3); box-shadow: 0 18px 40px -24px rgba(255,138,61,.45); }
  nav[aria-label="Quick access"] > *:hover { transform: translateY(-2px); }
  a.underline:hover { text-decoration-thickness: 2px; }
}

/* Store pin pulse on the locations map (three pulses, then still) */
.pin-ring { animation: ring 1.6s ease-out 3; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* Packaging chips: radio buttons styled as pills */
.pk { display: inline-flex; }
.pk-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.03); font-size: 14px; font-weight: 600; color: #CBD5E1; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.pk-chip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.pk input:checked + .pk-chip { background: #FFBE1A; border-color: #FFBE1A; color: #060810; }
.pk input:focus-visible + .pk-chip { outline: 3px solid #FFBE1A; outline-offset: 2px; }

/* Form fields */
.field { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: #F1F5F9; border-radius: .5rem; }
.field::placeholder { color: #64748B; }
.field:focus { outline: none; border-color: #FFBE1A; box-shadow: 0 0 0 3px rgba(255,190,26,.2); }
.field[aria-invalid="true"] { border-color: #F87171; }
select.field option { background: #0B0F1C; color: #F1F5F9; }

/* Cart drawer */
#cart { transition: transform .32s cubic-bezier(.22,.8,.24,1); }
#cart[data-open="false"] { transform: translateX(100%); transition-duration: .22s; }
#cart-overlay { transition: opacity .25s ease; }
#site-header { transition: box-shadow .2s ease, background-color .2s ease; }
#site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.9); }

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Logo: speed lines and the drop move a little on hover ---------- */
.logo-mark { overflow: visible; }
.logo-speed, .logo-drop { transition: transform .35s cubic-bezier(.22,.8,.24,1); transform-box: fill-box; }
.logo-drop { transform-origin: 50% 100%; }
.logo:hover .logo-speed { transform: translateX(-2px); }
.logo:hover .logo-drop { transform: rotate(10deg) translateX(1px); }

/* ---------- Motion ---------- */
/* Scroll reveal: site.js adds .reveal to blocks below the hero and .in once they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.8,.24,1), transform .8s cubic-bezier(.22,.8,.24,1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
/* Gradient words shimmer slowly */
.shine { background-size: 200% auto; animation: shine 6s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* Drifting light blobs behind the hero */
.blob { position: absolute; z-index: -1; border-radius: 9999px; filter: blur(70px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.12); } }
/* Slow push-in on large photos */
.kenburns { animation: kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
/* Photos zoom a touch when their card is hovered */
.zoom { overflow: hidden; }
.zoom img { transition: transform .9s cubic-bezier(.22,.8,.24,1); }
@media (hover: hover) { [data-lift]:hover .zoom img { transform: scale(1.06); } }
/* Brands strip: an endless scroll, paused on hover */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* A live dot */
.live { position: relative; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ring 1.8s ease-out infinite; }

/* Long-form text: privacy policy and terms of sale */
.legal { color: #CBD5E1; font-size: 16.5px; line-height: 1.75; }
.legal .lead { font-size: 19px; color: #E2E8F0; }
.legal h2 { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 1.4rem; font-weight: 700; color: #fff; }
.legal h2 + * { margin-top: .9rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 1rem; }
.legal ul { display: grid; gap: .55rem; }
.legal li { position: relative; padding-left: 1.4rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 9999px; background: linear-gradient(135deg, #FFBE1A, #F062D6); }
.legal strong { color: #fff; font-weight: 600; }
.legal a { color: #FFD066; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #fff; }

/* Icon tile on top of a photo: an opaque base under the usual tint, a bit larger */
.icon-tile.solid { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,190,26,.22), rgba(240,98,214,.18)), #0B0F1C; border-color: rgba(255,190,26,.35); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.icon-tile.solid svg { width: 26px; height: 26px; }

/* Checkout */
.co-step { border-radius: 1rem; background: #0B0F1C; border: 1px solid rgba(255,255,255,.1); padding: 1.5rem; }
@media (min-width: 640px) { .co-step { padding: 2rem; } }
.co-legend { float: left; width: 100%; margin-bottom: .5rem; display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; font-weight: 700; color: #fff; }
.co-legend + * { clear: both; }
.co-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; font-size: 14px; font-weight: 800; color: #060810; background: linear-gradient(135deg, #FFBE1A, #FF8A3D 55%, #F062D6); }
.co-label { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.co-err { margin-top: .4rem; font-size: 14px; color: #FCA5A5; }
.co-choice { display: block; cursor: pointer; }
.co-choice-box { display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: 1rem 1.1rem; border-radius: .9rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.02); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.co-choice:hover .co-choice-box { border-color: rgba(255,255,255,.35); }
.co-choice input:checked + .co-choice-box { border-color: #FFBE1A; background: rgba(255,190,26,.07); box-shadow: 0 0 0 1px #FFBE1A inset; }
.co-choice input:focus-visible + .co-choice-box { outline: 3px solid #FFBE1A; outline-offset: 2px; }
.co-choice input:disabled + .co-choice-box { cursor: not-allowed; }
