/* CatEyeGel.com: sparkling rainbow theme */

@property --mx {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --bg: #0d0820;
  --bg-2: #130b2b;
  --surface: #1a1138;
  --surface-2: #231849;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f8f4ff;
  --muted: #bfb5de;
  --ink: #160b2b;
  --r1: #ff5f8f;
  --r2: #ffa24d;
  --r3: #ffe46b;
  --r4: #5ef2a0;
  --r5: #4fd1ff;
  --r6: #8f7bff;
  --r7: #ff6ad5;
  --rainbow: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r1));
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shift: 0px;      /* scroll-linked rainbow flow, set by sparkle.js */
  --progress: 0;     /* page scroll progress 0..1, set by sparkle.js */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 8% -8%, rgba(143, 123, 255, .26), transparent 60%),
    radial-gradient(48rem 38rem at 100% 12%, rgba(255, 106, 213, .16), transparent 60%),
    radial-gradient(60rem 48rem at 50% 115%, rgba(79, 209, 255, .14), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--r5); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Rainbow helpers ---------- */

.rainbow-text {
  background: var(--rainbow);
  background-size: 200% 100%;
  background-position: var(--shift) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .35s ease;
}
.is-scrolling .rainbow-text { filter: saturate(1.35) brightness(1.15) drop-shadow(0 0 14px rgba(255, 255, 255, .28)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 3px; border-radius: 3px;
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border: 0; border-radius: 999px;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: not-allowed; opacity: .6; }

.btn-rainbow {
  color: var(--ink);
  background: var(--rainbow);
  background-size: 200% 100%;
  background-position: var(--shift) 0;
  box-shadow: 0 10px 30px -10px rgba(255, 106, 213, .65), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn-rainbow::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s ease;
}
.btn-rainbow:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(143, 123, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-rainbow:hover::after, .is-scrolling .btn-rainbow::after { transform: translateX(130%); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-small { padding: 11px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn.added { animation: pop .5s ease; }

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .07); cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.link-btn {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text); }

/* ---------- Announcement + header ---------- */

.announce {
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0;
  color: var(--ink); text-align: center; font-size: .85rem; font-weight: 700; padding: 8px 16px;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 8, 32, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0;
  transform: scaleX(var(--progress)); transform-origin: left;
  box-shadow: 0 0 12px rgba(255, 255, 255, .35);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; fill: var(--r3); filter: drop-shadow(0 0 8px rgba(255, 228, 107, .7)); animation: twinkle 3.2s ease-in-out infinite; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.78) rotate(45deg); opacity: .75; }
}

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--text); }

.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 700;
}
.bag-btn:hover { background: rgba(255, 255, 255, .12); }
.bag-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bag-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: .8rem;
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0; color: var(--ink);
}
.bag-count.bump { animation: pop .45s ease; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero .sparkles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .rainbow-text { font-style: italic; padding-right: .08em; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: '✦'; color: var(--r3); }

.hero-art { position: relative; }
.hero-art::before {
  content: ''; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7), var(--r1));
  filter: blur(70px); opacity: .34;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nail-fan { position: relative; aspect-ratio: 1 / .92; max-width: 560px; margin-inline: auto; }
.fan-nail {
  position: absolute; left: 41.5%; bottom: 4%; width: 17%;
  transform-origin: 50% 175%;
  transform: rotate(calc((var(--i) - 2.5) * 13deg)) translateY(calc(var(--lift, 0) * -1px));
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.fan-nail:nth-child(1), .fan-nail:nth-child(6) { --lift: 0; }
.fan-nail:nth-child(2), .fan-nail:nth-child(5) { --lift: 16; }
.fan-nail:nth-child(3), .fan-nail:nth-child(4) { --lift: 26; }
.nail-fan:hover .fan-nail { transition-duration: .25s; }

.hint { text-align: center; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* Magnet: --mx (-1..1) slides the cat-eye light band */
@keyframes magnet {
  0%, 100% { --mx: -.85; }
  50% { --mx: .85; }
}
.magnet-zone[data-auto] { animation: magnet 5.5s ease-in-out infinite; }
.magnet-zone[data-auto].is-live { animation: none; }

.band { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.band-nail { transform: translateX(calc(var(--mx) * 20px)) rotate(-12deg); }
.band-bottle { transform: translateX(calc(var(--mx) * 30px)) rotate(-16deg); }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); padding-block: 16px;
}
.marquee-track { display: flex; width: max-content; gap: 28px; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; white-space: nowrap; }
.marquee-track .star { color: var(--r3); font-style: normal; font-size: 1rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Shop ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 500; transition: background-color .2s;
}
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip[aria-pressed="true"] {
  color: var(--ink); font-weight: 700; box-shadow: none;
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.grid-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.card[hidden] { display: none; }
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--rainbow) border-box;
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--g2, #8f7bff) 70%, transparent);
}

.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 6%;
  border: 0; cursor: zoom-in;
  background:
    radial-gradient(circle at 55% 48%, color-mix(in srgb, var(--g2, #8f7bff) 34%, transparent), transparent 64%),
    #120a28;
}
.card-media .shade-art { width: 100%; height: 100%; }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(13, 8, 32, .72); box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 10px currentColor; flex: none; }
.card-title { font-size: 1.3rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--r7); }
.card-tagline { color: var(--muted); font-size: .94rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-weight: 700; font-size: 1.12rem; }

/* ---------- Explainer ---------- */

.explainer-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.explainer-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.explainer-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.demo {
  border-radius: 28px; padding: 32px 28px 28px;
  background: radial-gradient(circle at 50% 35%, rgba(143, 123, 255, .28), transparent 65%), var(--surface);
  border: 1px solid var(--line);
}
.demo-nail { display: flex; justify-content: center; gap: 4%; }
.demo-nail .nail-art { width: 26%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }
.demo-nail .nail-art:nth-child(2) { transform: translateY(-14px); }
.demo-control { display: grid; gap: 12px; margin-top: 28px; text-align: center; font-weight: 700; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; cursor: pointer;
  background: var(--rainbow); background-size: 200% 100%; background-position: var(--shift) 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 5px solid var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .7);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 5px solid var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .7);
}

.effect-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.effect-list li {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.effect-list strong { font-family: var(--font-display); font-size: 1.1rem; }
.effect-list span { color: var(--muted); font-size: .93rem; }

/* ---------- How-to ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 26px 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink);
  background: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 60%, transparent);
}
.steps li:nth-child(1) { --c: var(--r1); }
.steps li:nth-child(2) { --c: var(--r2); }
.steps li:nth-child(3) { --c: var(--r3); }
.steps li:nth-child(4) { --c: var(--r4); }
.steps li:nth-child(5) { --c: var(--r5); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .94rem; }

/* ---------- Promise band ---------- */

.promise { padding-block: 8px; }
.promise-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--rainbow) border-box;
  background-size: auto, 200% 100%;
  background-position: 0 0, var(--shift) 0;
}
.promise-grid div { display: grid; gap: 4px; padding: 24px 22px; text-align: center; }
.promise-grid div + div { border-left: 1px solid var(--line); }
.promise-grid strong { font-family: var(--font-display); font-size: 1.1rem; }
.promise-grid span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq .section-head { text-align: left; margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); font-size: 1.3rem; font-weight: 500; transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq-list details a { color: var(--r5); }

/* ---------- Newsletter ---------- */

.newsletter-inner {
  text-align: center; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border-radius: 32px; border: 1px solid transparent;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 213, .2), transparent 55%) padding-box,
    radial-gradient(circle at 85% 100%, rgba(79, 209, 255, .18), transparent 55%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--rainbow) border-box;
}
.newsletter-inner h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.newsletter-inner > p { margin-top: 12px; color: var(--muted); }
.news-form { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.news-form input[type="email"] {
  flex: 1; min-width: 0; padding: 15px 20px; border-radius: 999px;
  background: rgba(13, 8, 32, .7); border: 1px solid var(--line-strong);
}
.news-form input[type="email"]::placeholder { color: #8f86ad; }
.news-status { margin-top: 14px; min-height: 1.6em; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 64px); background: rgba(8, 4, 20, .5); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 36px; }
.footer-inner h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-inner nav a, .footer-inner > div > a:not(.logo) { display: block; text-decoration: none; padding: 4px 0; color: var(--text); opacity: .9; }
.footer-inner nav a:hover, .footer-inner > div > a:not(.logo):hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-tag { margin-top: 14px; color: var(--muted); max-width: 26em; }
.secure-note { display: flex; align-items: center; justify-content: inherit; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .86rem; }
.secure-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.footer-base { border-top: 1px solid var(--line); padding-block: 20px 28px; color: var(--muted); font-size: .88rem; }

/* ---------- Dialogs ---------- */

dialog { padding: 0; border: 0; color: var(--text); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6, 3, 16, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.modal {
  width: min(900px, 100% - 32px); max-height: calc(100dvh - 32px);
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  overflow: auto;
}
.modal[open] { animation: modal-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.qv-art {
  display: grid; place-items: center; padding: 6%;
  background: radial-gradient(circle at 55% 48%, color-mix(in srgb, var(--g2, #8f7bff) 36%, transparent), transparent 64%), #120a28;
}
.qv-art .shade-art { width: 100%; height: auto; max-height: 100%; }
.qv-info { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.qv-meta { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-right: 48px; }
.qv-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.qv-price { font-size: 1.35rem; font-weight: 700; }
.qv-desc { color: var(--muted); }
.qv-details { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; font-size: .93rem; }
.qv-details li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.qv-details span { color: var(--muted); }
.qv-buy { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.qv-buy .btn { flex: 1; white-space: nowrap; }
.qv-ship { color: var(--muted); font-size: .88rem; }

.stepper { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.stepper button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.25rem; border-radius: 999px; }
.stepper button:hover:not([disabled]) { background: rgba(255, 255, 255, .08); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.stepper-sm button { width: 34px; height: 34px; font-size: 1.05rem; }

/* Bag drawer */
.drawer {
  margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: 100dvh;
  background: var(--bg-2); border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .8);
}
.drawer[open] { animation: drawer-in .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; }
.drawer-head h2:focus { outline: none; }

.ship-meter { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ship-msg { font-size: .92rem; font-weight: 500; margin-bottom: 10px; }
.meter { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter span {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit;
  background: var(--rainbow); background-size: 200% 100%;
  animation: flow 3s linear infinite;
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes flow { to { background-position: -200% 0; } }

.bag-items { list-style: none; margin: 0; padding: 6px 22px; overflow-y: auto; flex: 1; }
.bag-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-thumb {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; padding: 6px 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--g2, #8f7bff) 40%, transparent), transparent 70%), #120a28;
}
.bag-thumb .nail-art { height: 100%; width: auto; }
.bag-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.bag-each { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.bag-controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.bag-line-total { font-weight: 700; }

.bag-empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 22px; text-align: center; color: var(--muted); }
.drawer.is-empty .bag-empty { display: flex; }
.drawer.is-empty .bag-items { display: none; }

.bag-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: rgba(8, 4, 20, .4); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.subtotal strong { font-size: 1.3rem; }
.bag-note { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.bag-error { color: #ffb4c8; font-size: .9rem; margin-top: 10px; }
.bag-error:empty { display: none; }
.bag-foot .secure-note { justify-content: center; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); padding: 12px 14px 12px 20px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  font-weight: 500;
  opacity: 0; transform: translate(-50%, 24px); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast:empty { display: none; }
.toast-btn {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; color: var(--ink);
  background: var(--rainbow); background-size: 200% 100%;
}

/* Scroll sparkle overlay (created by sparkle.js) */
.scroll-sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Simple pages (success, policies, 404) ---------- */

.page-header .header-inner { justify-content: space-between; }
body:has(.page-main) { display: flex; flex-direction: column; }
.page-main { flex: 1; padding-block: clamp(48px, 8vw, 96px); }
.center-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px); border-radius: 32px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--rainbow) border-box;
}
.center-card h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.center-card p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.center-card .btn { margin-top: 28px; }
.big-star { width: 64px; height: 64px; margin: 0 auto 20px; fill: var(--r3); filter: drop-shadow(0 0 18px rgba(255, 228, 107, .8)); animation: twinkle 3.2s ease-in-out infinite; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 12px; scroll-margin-top: 96px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--r5); }
.prose .note { margin: 20px 0; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 228, 107, .08); border: 1px solid rgba(255, 228, 107, .3); color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.toc a, .prose .toc a { text-decoration: none; color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero .eyebrow { justify-content: center; }
  .nail-fan { max-width: 440px; }
  .explainer-inner { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .faq .section-head { text-align: center; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid div + div { border-left: 0; }
  .promise-grid div:nth-child(even) { border-left: 1px solid var(--line); }
  .promise-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .bag-btn { margin-left: auto; }
  .modal-inner { grid-template-columns: 1fr; }
  .qv-art { padding: 2% 18%; }
  .qv-art .shade-art { max-width: 340px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 62px; }
  .logo-word { font-size: 1.3rem; }
  .bag-label { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px 12px 14px; gap: 4px; }
  .card-meta { font-size: .64rem; letter-spacing: .06em; }
  .card-meta .dot { display: none; }
  .card-title { font-size: 1.05rem; }
  .card-tagline { font-size: .82rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .card-foot .btn { width: 100%; padding: 10px 12px; }
  .badge { top: 8px; left: 8px; font-size: .6rem; padding: 4px 8px; }
  .effect-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .promise-grid div { padding: 18px 12px; }
  .hero-ctas .btn { width: 100%; }
  .announce-extra { display: none; }
  .qv-buy { gap: 10px; }
  .qv-buy .stepper button { width: 36px; }
  .qv-add { padding: 15px 14px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .magnet-zone[data-auto] { animation: none; }
}
