/* Stompaws store: one product page. Phone first: most visitors arrive from an Instagram link. */

:root {
  --cream: #fff6e9;
  --ink: #2b2b2b;
  --pink: #ff8fa3;
  --pink-deep: #f76f88;
  --pink-soft: #ffe9ed;
  --ginger: #f28c28;
  --white: #ffffff;
  --line: rgba(43, 43, 43, 0.14);
  --radius: 22px;
  --wide: 1180px;
  --head: "Fredoka", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the tilted strip and pictures poke past the edge */
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .btn, .eyebrow, summary, .nav, .divider, .marquee, .sticker, .ribbon, .save-tag, .bundle-title, .bundle-price, .pick-label, .tile strong, .ladder strong, .ladder em, .step-num, .versus thead th, .contact-form label { font-family: var(--head); }
h1 { font-size: clamp(2.1rem, 7vw, 2.7rem); line-height: 1.04; margin: 0.15em 0 0.3em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.1; margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0.4em 0 0.3em; line-height: 1.2; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
button, select { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.todo { border: 1.5px dashed var(--ginger); border-radius: 6px; padding: 0 5px; background: rgba(242, 140, 40, 0.10); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { color: var(--pink-deep); font-weight: 600; letter-spacing: 0.02em; margin: 0; }
.lede { font-size: 1.1rem; }
.fine { font-size: 0.8rem; opacity: 0.7; margin: 0; }
.stars { color: #f5b301; letter-spacing: 2px; }
.rating { font-size: 0.92rem; font-weight: 600; margin: 0; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 1.08rem; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { cursor: not-allowed; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 0.95rem; background: var(--ink); color: var(--cream); }
.btn-small:hover { background: var(--pink); color: var(--ink); }
[hidden] { display: none !important; } /* the cart and its backdrop set their own display */

/* Cart: the button in the header and the drawer it opens */
.cart-button { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); color: var(--cream); border: 0; border-radius: 999px; padding: 9px 16px; font-family: var(--head); font-weight: 600; }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; background: var(--pink); color: var(--ink); border-radius: 999px; font-size: 0.85rem; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(43, 43, 43, 0.45); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--cream); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2); animation: drawer 0.25s ease; }
.cart > header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart > header h2 { margin: 0; font-size: 1.5rem; }
.cart > header button { background: none; border: 0; padding: 4px 8px; font-size: 1.3rem; }
.cart-nudge { margin: 0; padding: 10px 18px; background: var(--pink); font-family: var(--head); font-weight: 600; font-size: 0.95rem; }
.cart-nudge:empty { display: none; }
.cart-nudge .bar { display: block; height: 8px; margin-top: 6px; background: rgba(255, 255, 255, 0.6); border-radius: 99px; overflow: hidden; }
.cart-nudge .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width 0.3s ease; }
.cart-lines { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; padding: 14px 18px; }
.cart-empty { opacity: 0.75; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 10px; box-shadow: 4px 4px 0 var(--pink); }
.line img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; }
.line-name { display: block; font-family: var(--head); font-weight: 600; }
.line-each { display: block; font-size: 0.82rem; opacity: 0.75; }
.line .remove { background: none; border: 0; padding: 0; margin-top: 4px; font-size: 0.8rem; text-decoration: underline; opacity: 0.7; }
.line-side { display: grid; justify-items: end; gap: 6px; }
.line-side strong { font-family: var(--head); }
.line-side s { font-size: 0.78rem; opacity: 0.6; margin-right: 6px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-family: var(--head); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.qty output { min-width: 20px; text-align: center; font-family: var(--head); font-weight: 600; }
.cart > footer { display: grid; gap: 8px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart > footer p { margin: 0; }
.cart-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--pink-deep); font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--head); font-weight: 600; font-size: 1.3rem; }
.cart .btn-buy { margin-top: 6px; }
.cart .btn-buy:disabled { opacity: 0.5; box-shadow: none; }
.cart .btn-buy:disabled::after { animation: none; }
.cart-note:empty { display: none; }
@keyframes drawer { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cart { animation: none; } }

/* Scrolling strips: the pink bar at the top and the tilted dark one */
.marquee { overflow: hidden; font-weight: 600; }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee-track span { white-space: nowrap; padding-right: 22px; }
.marquee-track span::after { content: "🐾"; margin-left: 22px; }
.marquee-top { background: var(--pink); padding: 9px 0; }
/* Black Friday and any later sale: everything marked data-sale shows only while the sale runs. */
.sale-bar { margin: 0; background: var(--ink); color: var(--cream); text-align: center; font-family: var(--head); font-weight: 600; padding: 9px 14px; }
.sale-run { background: var(--ink); color: var(--cream); border-radius: 999px; padding: 2px 12px; }
.sale-sticker { position: absolute; left: -8px; bottom: 16px; background: var(--ink); color: var(--cream); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 15px; font-family: var(--head); font-weight: 600; font-size: 0.98rem; white-space: nowrap; transform: translateZ(70px) rotate(-4deg); box-shadow: 3px 3px 0 var(--pink); }
.sale-line { margin: 0 0 12px; background: var(--ink); color: var(--cream); border-radius: 12px; padding: 9px 12px; text-align: center; font-family: var(--head); font-weight: 600; }
.sale-note { margin: 14px 0 0; text-align: center; font-weight: 600; font-size: 0.9rem; }
.sale-chip { display: inline-block; margin: 0 0 10px; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 4px 14px; font-family: var(--head); font-weight: 600; font-size: 0.9rem; }
.bundle-price .sale-tag { font-style: normal; font-size: 0.66rem; letter-spacing: 0.03em; text-transform: uppercase; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 2px 8px; margin-bottom: 3px; }
.marquee-band { background: var(--ink); color: var(--cream); font-size: 1.1rem; padding: 13px 0; transform: rotate(-1deg) scale(1.02); margin: 8px 0 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 233, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo img { width: 132px; }
.nav { display: none; gap: 24px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: 6px; }

/* Shared section frame */
.section { max-width: var(--wide); margin: 0 auto; padding: 40px 18px; }
.section.tight { padding-top: 8px; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0.2em; }
.section-head p:last-child { margin: 0; opacity: 0.85; }
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease, translate 0.6s ease; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Product: gallery, buy box, details */
.product { display: grid; gap: 26px; max-width: var(--wide); margin: 0 auto; padding: 22px 18px 34px; }
.gallery-main { position: relative; margin-right: 7px; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--pink); aspect-ratio: 1; transform-style: preserve-3d; animation: deal 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 3px); }
.sticker, .coat-pill { position: absolute; top: -12px; border: 2.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.sticker { left: -8px; background: var(--ginger); color: var(--white); transform: translateZ(50px) rotate(-5deg); box-shadow: 3px 3px 0 var(--ink); animation: float 6s ease-in-out infinite; }
.coat-pill { right: -6px; background: var(--ink); color: var(--cream); text-decoration: none; transform: translateZ(85px) rotate(4deg); box-shadow: 3px 3px 0 var(--pink); animation: float 7s ease-in-out -2s infinite; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 7px 0 0; }
.thumb { padding: 0; aspect-ratio: 1; border: 2.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); transition: transform 0.12s; }
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--pink); }

.buy .lede { margin-bottom: 1.1em; }
.divider { display: flex; align-items: center; gap: 14px; font-weight: 600; margin: 0 0 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line); }

.bundles { display: grid; gap: 12px; }
.bundle { position: relative; border: 2.5px solid var(--line); border-radius: 18px; background: var(--white); transition: border-color 0.15s, box-shadow 0.15s; }
.bundle:hover { border-color: var(--ink); }
.bundle.is-on { border-color: var(--ink); background: var(--pink-soft); box-shadow: 5px 5px 0 var(--pink); }
.bundle-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; }
.bundle-head input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.bundle-text { flex: 1; display: grid; gap: 1px; }
.bundle-title { font-size: 1.22rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bundle-line { font-size: 0.9rem; opacity: 0.85; }
.save-tag { background: var(--ink); color: var(--cream); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.bundle-price { display: grid; justify-items: end; font-size: 1.22rem; line-height: 1.2; }
.bundle-price s { font-family: var(--body); font-size: 0.82rem; opacity: 0.6; }
.ribbon { position: absolute; top: -13px; right: 14px; background: var(--ginger); color: var(--white); border: 2px solid var(--ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 11px; border-radius: 999px; transform: rotate(2deg); }
.bundle-picks:empty { display: none; }
.bundle-picks { display: grid; gap: 8px; padding: 0 16px; }
.pick-label { margin: 0; font-size: 0.85rem; font-weight: 600; opacity: 0.75; }
.pick { display: flex; align-items: center; gap: 10px; }
.pick img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink); object-fit: cover; }
.pick select { flex: 1; max-width: 260px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); font-weight: 500; }
.protect { display: flex; align-items: center; gap: 10px; margin: 8px -16px 0; padding: 11px 16px; background: var(--ink); color: var(--cream); font-size: 0.88rem; border-radius: 0 0 14px 14px; }
.protect span:nth-child(2) { flex: 1; }
.protect small { display: block; opacity: 0.75; font-size: 0.78rem; }
.protect strong { font-family: var(--head); font-size: 1rem; }

.btn-buy { position: relative; isolation: isolate; overflow: hidden; width: 100%; margin-top: 24px; padding: 18px 26px; border: 3px solid var(--ink); font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase; box-shadow: 0 6px 0 var(--ink); }
.btn-buy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%); translate: -120% 0; animation: shine 3.4s ease-in-out infinite; }
[data-total] { display: inline-block; }
.buy-ship { text-align: center; font-size: 0.92rem; margin: 16px 0 2px; }
.buy-note { text-align: center; margin-top: 20px; }
.pay { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.pay li { line-height: 0; }
.pay img { height: 30px; width: auto; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--line); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font-size: 0.85rem; font-weight: 600; }
.badges li { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 12px 6px; }
.badges span { display: block; font-size: 1.3rem; }

.reviews { display: grid; gap: 10px; align-content: start; margin-right: 5px; }
.reviews-summary { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
.reviews-count { font-size: 0.9rem; }
.review-carousel { position: relative; overflow: hidden; border-radius: 20px; }
.review-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.review { flex: 0 0 100%; display: flex; gap: 14px; margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 5px 5px 0 var(--pink); }
.review > div { flex: 1; min-width: 0; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--ink); display: block; object-fit: cover; object-position: top; }
.review blockquote { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 0.9rem; line-height: 1.55; }
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 8px; }
.reviewer-name { font-style: italic; font-size: 0.85rem; font-weight: 500; }
.review-stars { font-size: 0.78rem; letter-spacing: 1px; }
.review-dots { display: flex; justify-content: center; gap: 7px; padding: 10px 0 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 1.5px solid var(--ink); transition: background 0.2s; cursor: pointer; }
.dot.is-on { background: var(--ink); }

.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.faq details[open] { border-color: var(--ink); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }

/* The fly-through: a dark space the page scrolls through, coats passing on both sides.
   Off until the script switches it on, so it never shows as an empty block. */
.marquee-band { position: relative; z-index: 2; }
.tunnel { display: none; height: 300vh; margin-top: -36px; background: var(--ink); color: var(--cream); }
.tunnel.is-on { display: block; }
.tunnel-view { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; background: radial-gradient(circle at 50% 50%, rgba(255, 143, 163, 0.3), transparent 62%); }
.tunnel-world { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--travel, 0px)); transition: transform 0.15s linear; will-change: transform; }
.fly { position: absolute; left: 50%; top: 50%; margin: 0; opacity: 0; transform: translate(-50%, -50%) translate3d(var(--x, 0px), var(--y, 0px), var(--z)) rotate(var(--r, 0deg)); }
.fly-sock { height: min(46vh, 72vw); width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
.fly-paw { width: 44px; height: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='%23ff8fa3' fill-opacity='.6'%3E%3Cellipse cx='13' cy='27' rx='7' ry='9'/%3E%3Cellipse cx='26' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='40' cy='14' rx='7' ry='9'/%3E%3Cellipse cx='52' cy='27' rx='7' ry='9'/%3E%3Cpath d='M32 30c-10 0-18 9-18 17 0 6 5 9 10 8 3-1 5-2 8-2s5 1 8 2c5 1 10-2 10-8 0-8-8-17-18-17z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fly-line { width: 92vw; text-align: center; font-family: var(--head); font-weight: 700; font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; text-wrap: balance; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
.fly-line:last-child { color: var(--pink); }
.tunnel-hint { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-family: var(--head); font-weight: 600; opacity: var(--hint, 1); }
.tunnel-hint::after { content: ""; display: block; width: 2px; height: 26px; margin: 8px auto 0; background: var(--pink); animation: float 1.6s ease-in-out infinite; }

/* Pick your cat: a plain grid of coats, which the script stands up as a ring that spins */
.stage { background: var(--ink); color: var(--cream); text-align: center; margin-top: -36px; padding: 80px 18px 60px; overflow: hidden; }
.tunnel.is-on + .stage { margin-top: 0; padding-top: 30px; }
.stage .eyebrow { color: var(--pink); }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 auto 28px; max-width: var(--wide); }
.stage .tile { color: var(--ink); }
.ring.is-ready { --card: 158px; position: relative; height: 410px; margin: 0 0 26px; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.ring.is-ready:active { cursor: grabbing; }
.ring.is-ready::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: min(820px, 100%); height: 90px; translate: -50% 0; background: radial-gradient(closest-side, rgba(255, 143, 163, 0.45), transparent); pointer-events: none; }
.ring.is-ready .ring-spin { position: absolute; inset: 0; display: block; margin: 0; max-width: none; transform-style: preserve-3d; transform: translateZ(calc(var(--R) * -1)) rotateX(-9deg) rotateY(var(--angle, 0deg)); }
.ring.is-ready .tile { position: absolute; left: 50%; top: 76px; width: var(--card); margin-left: calc(var(--card) / -2); border-color: transparent; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--R)) rotateY(calc(var(--i) * -360deg / var(--n) - var(--angle, 0deg))); filter: brightness(calc(1 - var(--far, 0) * 0.6)); transition: border-color 0.2s, box-shadow 0.2s; }
.ring.is-ready .tile.is-on strong::after { display: block; width: max-content; margin: 4px 0 0; }
.ring.is-ready .tile.is-front { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink), 0 24px 60px rgba(255, 143, 163, 0.45); }
.ring-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; margin: 0 auto 26px; }
.ring-names[hidden] { display: none; }
.ring-names button { background: transparent; color: var(--cream); border: 2px solid rgba(255, 246, 233, 0.35); border-radius: 999px; padding: 6px 16px; font-family: var(--head); font-weight: 600; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.ring-names button:hover { border-color: var(--cream); }
.ring-names button.is-on { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.tile { flex: 0 1 calc(50% - 7px); padding: 0; text-align: left; background: var(--white); border: 2.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transform: translateY(var(--lift, 0px)); transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.tile:hover { --lift: -4px; border-color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.tile.is-on { border-color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.tile strong { font-size: 1.25rem; font-weight: 600; }
.tile-body span { font-size: 0.86rem; opacity: 0.78; }
.tile.is-on strong::after { content: "In your bundle"; margin-left: 8px; vertical-align: middle; background: var(--ink); color: var(--cream); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }

/* 3D and motion. The script adds data-tilt, so nothing leans or hides without it. */
[data-tilt] { position: relative; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(var(--lift, 0px)); transition: transform 0.18s ease-out, border-color 0.15s, box-shadow 0.15s, opacity 0.5s ease var(--wait, 0s), translate 0.5s ease var(--wait, 0s); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.5), transparent 45%); }
[data-tilt].is-tilting::after { opacity: 1; }
.reveal [data-tilt] { opacity: 0; translate: 0 24px; }
.reveal.is-in [data-tilt] { opacity: 1; translate: 0 0; }
.bundle { animation: rise 0.5s ease both; }
.bundle:nth-child(2) { animation-delay: 0.08s; }
.bundle:nth-child(3) { animation-delay: 0.16s; }
.bundle:nth-child(4) { animation-delay: 0.24s; }
.floor-media > *, .split-media img { translate: 0 var(--drift, 0px); }
.paw-pop { position: fixed; z-index: 80; pointer-events: none; font-size: 1.1rem; }
@keyframes deal { from { opacity: 0; scale: 0.8; rotate: 6deg; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes shine { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }
@keyframes sway { 0%, 100% { transform: perspective(900px) rotateX(3deg) rotateY(-7deg); } 50% { transform: perspective(900px) rotateX(1deg) rotateY(7deg); } }
@media (hover: none) {
  .gallery-main { animation: deal 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both, sway 9s ease-in-out 0.7s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main, .sticker, .coat-pill, .bundle, .btn-buy::after { animation: none; }
}

/* Price ladder */
.save { background: var(--pink); padding: 36px 18px; display: grid; gap: 18px; justify-items: start; }
.save h2 { margin-bottom: 0.2em; }
.save p { margin: 0; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 560px; }
.ladder li { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 9px 4px; text-align: center; display: grid; gap: 1px; line-height: 1.25; transition: box-shadow 0.15s, transform 0.15s; }
.ladder strong { font-size: 0.95rem; }
.ladder span { font-size: 0.8rem; }
.ladder em { font-style: normal; font-weight: 600; font-size: 0.76rem; color: var(--pink-deep); }
.ladder li.is-now { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }

/* How it works */
.steps { display: grid; gap: 14px; }
.steps li { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 5px 5px 0 var(--pink); }
.steps p { margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 1.2rem; }

/* Pink band with the video */
.floor { background: var(--pink); display: grid; gap: 20px; padding: 36px 18px 54px; }
.floor-text { max-width: 440px; }
.floor .eyebrow { color: var(--ink); }
.floor-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.floor-media video, .floor-media img { border-radius: var(--radius); border: 3px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: 100%; }
.floor-media img { transform: translateY(18px) rotate(2deg); }

/* Picture beside text */
.split { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 44px 18px 34px; align-items: center; }
.split-media img { border-radius: var(--radius); border: 3px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; width: calc(100% - 8px); transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--pink); }
.versus { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 0.95rem; }
.versus th, .versus td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.versus thead th { font-size: 0.9rem; }
.versus tbody th { font-weight: 500; }
.versus td:nth-child(2), .versus thead th:nth-child(2) { background: rgba(255, 143, 163, 0.22); font-weight: 600; }
.versus td:nth-child(3) { opacity: 0.65; }

/* The cat wall: photo frames, some filled and some waiting */
.wall { max-width: var(--wide); margin: 0 auto; padding: 44px 18px 34px; text-align: center; }
.wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; max-width: 900px; margin: 0 auto 28px; }
.snap { background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px 8px 0; box-shadow: 5px 5px 0 var(--pink); rotate: -2deg; }
.snap:nth-child(even) { rotate: 2deg; }
.snap img, .snap-hole { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.snap span { display: block; padding: 7px 0 8px; font-family: var(--head); font-weight: 600; font-size: 0.92rem; }
.snap.is-empty { background: transparent; border-style: dashed; box-shadow: none; }
.snap-hole { display: grid; place-items: center; font-size: 2rem; background: rgba(43, 43, 43, 0.05); }
.wall-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 14px; }

/* FAQs */
.faq { max-width: 780px; }
.faq h2 { text-align: center; }
.faq details { margin-bottom: 9px; }
.faq p { margin: 10px 0 0; }

/* Contact and policy pages */
.page-head { max-width: 820px; margin: 0 auto; padding: 34px 18px 18px; text-align: center; }
.page-head .lede { opacity: 0.85; }
.page-head.lost { padding: 80px 18px 120px; }
.contact { display: grid; gap: 26px; max-width: 980px; }
.contact-form { display: grid; gap: 14px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 6px 6px 0 var(--pink); }
.contact-form label { display: grid; gap: 5px; font-weight: 600; }
.contact-form input, .contact-form textarea { border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--cream); font-family: var(--body); font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; }
.contact-side h2 { font-size: 1.2rem; margin: 0 0 4px; }
.contact-side p { margin-bottom: 20px; }
.policy { max-width: 720px; margin: 0 auto; padding: 34px 18px 60px; }
.policy h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.policy h2 { margin-top: 1.6em; font-size: 1.4rem; }
.policy li { margin-bottom: 0.4em; list-style: disc; margin-left: 1.2em; }
.draft { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 40px 18px 24px; margin-top: 30px; }
.footer-grid { max-width: var(--wide); margin: 0 auto 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer-brand p { max-width: 340px; opacity: 0.85; }
.footer-insta { font-family: var(--head); font-weight: 600; color: var(--pink); }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--pink); }
.site-footer nav { display: grid; gap: 7px; align-content: start; }
.site-footer nav a { text-decoration: none; opacity: 0.9; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { text-align: center; }

@media (min-width: 560px) {
  .tile { flex-basis: calc(33.333% - 10px); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .logo img { width: 160px; }
  .site-header { padding: 14px 32px; }
  .section { padding: 60px 32px; }
  .section.tight { padding-top: 12px; }
  .page-head { padding: 56px 32px 22px; }
  .lede { font-size: 1.2rem; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 30px 56px; padding: 40px 32px 56px; align-items: start; }
  .buy { grid-column: 2; grid-row: 1 / span 2; }
  .reviews { grid-column: 1; }
  .tiles { gap: 22px; }
  .tile { flex-basis: calc(25% - 17px); }
  .ring.is-ready { --card: 215px; height: 440px; }
  .save { grid-template-columns: 1fr auto auto; align-items: center; justify-items: stretch; gap: 36px; padding: 44px max(32px, calc((100vw - 1116px) / 2)); }
  .ladder { width: 480px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .floor { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 64px max(32px, calc((100vw - 1116px) / 2)) 80px; gap: 48px; }
  .split { grid-template-columns: 380px 1fr; gap: 64px; padding: 70px 32px 40px; }
  .wall { padding: 64px 32px 44px; }
  .wall-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 28px; }
  .contact { grid-template-columns: 1.4fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
}
