/* Anika Creations — design values adapted from elayadesign/ai-design-skills (MIT).
   Brand overrides: Nunito (brand font), brand purple palette. See DESIGN.md. */
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* colour */
  --base: #FFF7F9; --raised: #FFFFFF; --tint: #F8EEF6; --ink: #241530; --muted: #6B5A75; --line: #EADCEB;
  --primary: #4B006E; --primary-hover: #63108C; --accent: #FF6F61; --accent-soft: #FFE6E3;
  --violet: #7A1FA2; --pink: #FF4B91; --sun: #FFC542; --foot: #2A0840;
  --shadow: 0 16px 32px -16px rgba(75, 0, 110, .28);
  /* spacing scale */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px; --s-400: 32px;
  --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  /* radius (Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;
  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --move: 500ms; --fade: 300ms;
  /* z scale */
  --z-nav: 40; --z-menu: 45; --z-float: 50; --z-scrim: 60; --z-bag: 70; --z-toast: 80;
}

/* ── base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  margin: 0; font-family: "Nunito", system-ui, sans-serif; font-size: 16px; line-height: 24px; font-weight: 400;
  color: var(--ink); background: var(--base); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* subtle grain instead of gradients */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .heading-2 { text-wrap: balance; color: var(--primary); }
p, li, dd { text-wrap: pretty; }
.wrap { width: min(1200px, 100% - 2 * var(--s-200)); margin-inline: auto; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; left: var(--s-200); top: var(--s-200); z-index: 100; background: var(--raised); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-md); }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* ── text styles (Tailwind scale) ─────────────────────────────────────── */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.015em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 700; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 700; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 700; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.lede, .body-lede { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 34em; }
.caption-2 { font-size: 14px; line-height: 20px; color: var(--muted); }
.label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: var(--s-100); }
.hero-title { max-width: 680px; }
.hero-title .hl { display: block; }
.hero-title .hl > span { display: inline-block; color: #4B006E; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title .hl > span { background-image: linear-gradient(90deg, #4B006E 0%, #A040D8 100%); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}

/* ── buttons & links ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-100) var(--s-300); border: 0; border-radius: var(--r-full); cursor: pointer; text-decoration: none;
  font: 600 16px/24px "Nunito", sans-serif;
  transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease), box-shadow var(--fade) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-wa { background: #1FAF56; color: #fff; }
.btn-wa:hover { background: #199A4B; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; transition: transform var(--move) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.text-link { font-weight: 600; color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color var(--fade) var(--ease); }
.text-link:hover { color: var(--accent); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: var(--tint); color: var(--primary); cursor: pointer; transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease); }
.icon-btn:hover { background: var(--line); } .icon-btn:active { transform: scale(.94); }

/* ── floating nav ─────────────────────────────────────────────────────── */
.nav-shell { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: var(--z-nav); display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(234, 220, 235, .9); border-radius: var(--r-full); box-shadow: 0 8px 24px -16px rgba(75, 0, 110, .35);
  transition: box-shadow var(--fade) var(--ease);
}
.nav-shell.scrolled .nav-bar { box-shadow: 0 12px 32px -12px rgba(75, 0, 110, .35); }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: var(--s-50); }
.nav a { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: none; padding: var(--s-75) var(--s-100); border-radius: var(--r-full); transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease); }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="true"] { background: var(--primary); color: #fff; }
.bag-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: var(--tint); color: var(--primary); cursor: pointer; transition: background-color var(--fade) var(--ease); }
.bag-btn:hover { background: var(--line); }
.bag-btn .ic { width: 22px; height: 22px; }
.bag-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 var(--s-50); border-radius: var(--r-full); background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; font-weight: 700; text-align: center; transform: scale(0); transition: transform var(--move) var(--ease); }
.bag-count.on { transform: scale(1); }
.bag-btn.bump { animation: bump var(--move) var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: var(--r-full); background: var(--primary); cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform var(--move) var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; justify-content: space-between;
  padding: 112px var(--s-300) var(--s-400); background: rgba(255, 247, 249, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity var(--fade) var(--ease), visibility 0s var(--fade);
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity var(--fade) var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 30px; line-height: 36px; font-weight: 700; color: var(--primary); text-decoration: none; padding: var(--s-200) 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(var(--s-300)); transition: opacity var(--move) var(--ease), transform var(--move) var(--ease); }
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 60ms; } .mobile-menu.open nav a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 180ms; } .mobile-menu.open nav a:nth-child(5) { transition-delay: 240ms; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 144px 0 var(--s-800); position: relative; z-index: 2; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-600); align-items: center; }
.hero-copy .lede { margin-top: var(--s-300); max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200) var(--s-300); margin-top: var(--s-400); }
.cta-row.center { justify-content: center; }
.proof { list-style: none; padding: 0; margin: var(--s-500) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); }
.proof li { display: flex; align-items: center; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.proof .ic { color: var(--accent); width: 18px; height: 18px; }

/* printer animation */
.printer { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-left: auto; }
.frame { position: absolute; inset: 12% 6% 8%; border-radius: var(--r-3xl); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.print-stage { position: absolute; left: 16%; right: 16%; top: 4%; bottom: 14%; }
.print-mark, .layers { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.print-mark img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.layers { pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255, 255, 255, .28) 5px 6px); transition: opacity 1s var(--ease); }
.done .layers { opacity: 0; }
.bed { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 12px; border-radius: var(--r-full); background: #2E1A3B; }
.gantry { position: absolute; left: 2%; right: 2%; top: 0; height: 0; z-index: 3; will-change: transform; }
.rail { position: absolute; left: 0; right: 0; top: -5px; height: 10px; border-radius: var(--r-full); background: #2E1A3B; box-shadow: 0 6px 12px -4px rgba(42, 8, 64, .5); }
.nozzle { position: absolute; top: -26px; left: 0; width: 44px; height: 48px; border-radius: var(--r-xl) var(--r-xl) var(--r-md) var(--r-md); background: #3B2649; will-change: transform; }
.nozzle::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -8px; border: 8px solid transparent; border-top: 12px solid #D4A73A; border-bottom: 0; }
.nozzle span { position: absolute; left: 50%; bottom: -16px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px 4px rgba(255, 197, 66, .9); opacity: 0; transition: opacity var(--fade) var(--ease); }
.printing .nozzle span { opacity: 1; }
.print-status { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200); border-radius: var(--r-full); background: var(--raised); box-shadow: var(--shadow); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.print-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1s var(--ease) infinite; }
.done .print-status .dot { background: #1FAF56; animation: none; }
@keyframes blink { 50% { opacity: .25; } }

/* marquee */
.marquee { position: relative; z-index: 2; background: var(--primary); color: #fff; overflow: hidden; padding: var(--s-100) 0; transform: rotate(-1.2deg); margin: 0 calc(-1 * var(--s-100)); font-weight: 600; }
.marquee-track { display: flex; gap: var(--s-500); width: max-content; animation: scroll 36s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: var(--s-500); white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--sun); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { position: relative; z-index: 2; padding: var(--s-900) 0 calc(var(--s-900) + var(--s-200)); }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-300); margin-bottom: var(--s-500); }
.note { text-align: center; margin-top: var(--s-400); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chip { padding: var(--s-75) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--raised); color: var(--ink); cursor: pointer; font: 600 14px/20px "Nunito", sans-serif; transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.chip:hover { border-color: var(--primary); }
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* product grid: flat cards, no border + shadow combo */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); }
.card { display: flex; flex-direction: column; background: var(--raised); border-radius: var(--r-3xl); overflow: hidden; transition: transform var(--move) var(--ease), box-shadow var(--move) var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; background: var(--tint); }
.card:nth-child(4n+2) .card-art { background: #FFF3E6; }
.card:nth-child(4n+3) .card-art { background: #EEF1FB; }
.card:nth-child(4n+4) .card-art { background: #ECF7F1; }
.card-art svg { width: 84%; transition: transform var(--move) var(--ease); }
.card:hover .card-art svg { transform: scale(1.05) rotate(-2deg); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.flag { position: absolute; top: var(--s-200); left: 0; padding: var(--s-50) var(--s-100) var(--s-50) var(--s-200); background: var(--primary); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; border-radius: 0 var(--r-md) var(--r-md) 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-300); gap: var(--s-75); }
.card-body p { color: var(--muted); font-size: 14px; line-height: 20px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); margin-top: var(--s-200); }
.price { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); margin-right: var(--s-25); }
.add { padding: var(--s-75) var(--s-200); border: 1px solid var(--primary); border-radius: var(--r-full); background: transparent; color: var(--primary); cursor: pointer; font: 600 14px/20px "Nunito", sans-serif; transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease), transform var(--move) var(--ease); }
.add:hover { background: var(--primary); color: #fff; }
.add:active { transform: scale(.98); }

/* keychain maker */
.maker { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-800); align-items: center; }
.maker-copy .body-lede { margin-top: var(--s-200); }
.maker-form { margin-top: var(--s-400); }
.field { display: grid; gap: var(--s-75); margin-bottom: var(--s-300); }
.field-error { color: #B42318; font-size: 14px; line-height: 20px; font-weight: 600; }
.field-error:empty { display: none; }
input, select, textarea {
  width: 100%; padding: var(--s-100) var(--s-200); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--raised);
  font: 500 16px/24px "Nunito", sans-serif; color: var(--ink); transition: border-color var(--fade) var(--ease), box-shadow var(--fade) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #D5BFD8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 31, 162, .14); }
[aria-invalid="true"] { border-color: #D92D20; }
#kcName { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--primary); }
.swatches { border: 0; padding: 0; margin: 0 0 var(--s-300); }
.swatches legend { padding: 0; margin-bottom: var(--s-100); }
.swatches > div { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.sw { position: relative; width: 36px; height: 36px; border: 0; border-radius: var(--r-full); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(36, 21, 48, .14); transition: transform var(--move) var(--ease); }
.sw:hover { transform: scale(1.1); }
.sw[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--primary); border-radius: var(--r-full); }
.maker-buy { display: flex; align-items: center; gap: var(--s-300); }
.price-big { color: var(--primary); font-variant-numeric: tabular-nums; }
.turntable { padding: var(--s-600) var(--s-300); border-radius: var(--r-3xl); background: var(--raised); box-shadow: var(--shadow); perspective: 900px; }
#kcSvg { width: 100%; height: auto; animation: sway 6s var(--ease) infinite alternate; filter: drop-shadow(0 18px 16px rgba(75, 0, 110, .2)); }
@keyframes sway { from { transform: rotateY(-14deg) rotateX(6deg); } to { transform: rotateY(14deg) rotateX(-2deg); } }
.preview-cap { text-align: center; margin-top: var(--s-200); }

/* benefits: asymmetric two column */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-800); align-items: start; }
.why-intro { position: sticky; top: 128px; }
.why-intro .body-lede { margin-top: var(--s-300); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-200); }
.benefits li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-300); padding: var(--s-300); border-radius: var(--r-3xl); background: var(--raised); }
.benefits li:nth-child(even) { margin-left: var(--s-600); }
.benefits p { color: var(--muted); margin-top: var(--s-75); }
.b-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-2xl); background: var(--accent-soft); color: var(--accent); }
.b-ico .ic { width: 24px; height: 24px; }

figure { margin: 0; }
.studio img, .pack img { width: 100%; height: auto; }
.studio { margin-top: var(--s-500); border-radius: var(--r-3xl); overflow: hidden; box-shadow: var(--shadow); }
.pack { margin-top: var(--s-700); }
.pack img { border-radius: var(--r-3xl); box-shadow: var(--shadow); }
.pack figcaption { margin-top: var(--s-100); text-align: center; }

/* tagline reveal */
.tagline { position: relative; z-index: 2; padding: var(--s-900) 0; }
.tagline-text { max-width: 900px; font-size: 48px; line-height: 56px; }
.tagline-text .w { color: rgba(75, 0, 110, .25); transition: color 700ms var(--ease); }
.tagline-text .w.on { color: var(--primary); }

/* steps */
.steps { list-style: none; padding: 0; margin: var(--s-600) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-400); position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 33%; height: 2px; background: var(--line); }
.steps li { position: relative; }
.steps p { color: var(--muted); margin-top: var(--s-75); max-width: 30ch; }
.step-num { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-300); border-radius: var(--r-2xl); background: var(--primary); color: #fff; font-size: 20px; line-height: 28px; font-weight: 700; }

/* custom order */
.custom { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-800); align-items: start; }
.custom-copy .body-lede { margin-top: var(--s-300); }
.ticks { list-style: none; padding: 0; margin: var(--s-400) 0 0; display: grid; gap: var(--s-100); }
.ticks li { display: flex; gap: var(--s-100); align-items: flex-start; font-weight: 600; }
.ticks .ic { color: var(--accent); margin-top: var(--s-25); }
.custom-form { padding: var(--s-400); border-radius: var(--r-3xl); background: var(--raised); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); }
.hp { position: absolute; left: -9999px; }
.drop { display: flex; align-items: center; gap: var(--s-200); padding: var(--s-200); margin-bottom: var(--s-100); border: 1px dashed #D5BFD8; border-radius: var(--r-2xl); background: var(--base); cursor: pointer; transition: background-color var(--fade) var(--ease), border-color var(--fade) var(--ease); }
.drop:hover, .drop.over { background: var(--tint); border-color: var(--violet); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--r-xl); background: var(--primary); color: #fff; }
.file-list { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-bottom: var(--s-300); }
.file-list:empty { margin-bottom: var(--s-200); }
.file-list .f { display: flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50); border-radius: var(--r-lg); background: var(--tint); font-size: 12px; line-height: 16px; font-weight: 600; }
.file-list img { width: 32px; height: 32px; object-fit: cover; border-radius: var(--r-md); }
.form-msg { margin-top: var(--s-200); font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #067647; } .form-msg.err { color: #B42318; }

/* faq: open two column list, no accordion */
.faq-head { max-width: 680px; }
.faq-head .body-lede { margin-top: var(--s-200); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-500) var(--s-700); margin: var(--s-600) 0 0; }
.faq dt { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--primary); }
.faq dd { margin: var(--s-75) 0 0; color: var(--muted); }

/* final cta */
.final { position: relative; z-index: 2; padding: var(--s-900) 0; }
.final-in { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 680px; }
.final-mark { width: 120px; height: auto; margin-bottom: var(--s-300); }
.final-in .body-lede { margin-top: var(--s-200); }

/* footer */
.foot { position: relative; z-index: 2; background: var(--foot); color: #D8C6E2; padding: var(--s-700) 0 var(--s-400); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-300); padding-bottom: var(--s-400); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-top img { width: 220px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); }
.foot a { color: #D8C6E2; text-decoration: none; font-weight: 600; transition: color var(--fade) var(--ease); }
.foot a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); padding-top: var(--s-300); color: #B9A3C6; }
.foot-bottom nav { display: flex; gap: var(--s-300); }
.foot-bottom a { font-weight: 500; }

/* bag (slide over panel) */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(42, 8, 64, .4); }
.bag { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-bag); width: min(420px, 100%); display: flex; flex-direction: column; background: var(--raised); box-shadow: -24px 0 48px -24px rgba(42, 8, 64, .45); transform: translateX(105%); visibility: hidden; transition: transform var(--move) var(--ease), visibility 0s var(--move); }
.bag.open { transform: none; visibility: visible; transition: transform var(--move) var(--ease); }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-300); border-bottom: 1px solid var(--line); }
.bag-items { flex: 1; overflow: auto; padding: var(--s-200) var(--s-300); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-200); padding: var(--s-700) var(--s-200); }
.empty .empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-3xl); background: var(--tint); color: var(--primary); }
.empty .empty-ico .ic { width: 32px; height: 32px; }
.empty p { color: var(--muted); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-200); align-items: center; padding: var(--s-200) 0; border-bottom: 1px solid var(--line); }
.thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-2xl); background: var(--tint); overflow: hidden; }
.thumb svg { width: 88%; }
.line h3 { font-size: 16px; line-height: 24px; font-weight: 700; }
.opt { font-size: 12px; line-height: 16px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: var(--s-50); margin-top: var(--s-75); }
.qty button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--r-full); background: var(--tint); color: var(--primary); cursor: pointer; transition: background-color var(--fade) var(--ease); }
.qty button:hover { background: var(--line); }
.qty .ic { width: 14px; height: 14px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.bag-foot { padding: var(--s-300); border-top: 1px solid var(--line); background: var(--base); }
.bag-foot[hidden] { display: none; }
.sum { display: flex; justify-content: space-between; margin-bottom: var(--s-75); font-variant-numeric: tabular-nums; }
.sum.total { font-size: 20px; line-height: 28px; color: var(--primary); margin: var(--s-100) 0 var(--s-200); }
.checkout .field { margin-bottom: var(--s-100); }
.tiny { text-align: center; margin-top: var(--s-100); }

.wa-float { position: fixed; right: var(--s-300); bottom: var(--s-300); z-index: var(--z-float); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-full); background: #1FAF56; color: #fff; box-shadow: 0 12px 24px -8px rgba(31, 175, 86, .6); transition: transform var(--move) var(--ease); }
.wa-float:hover { transform: scale(1.06); } .wa-float:active { transform: scale(.98); }
.wa-float .ic { width: 28px; height: 28px; }
.toast { position: fixed; left: 50%; bottom: var(--s-300); z-index: var(--z-toast); max-width: calc(100% - 2 * var(--s-200)); padding: var(--s-100) var(--s-300); border-radius: var(--r-full); background: var(--primary); color: #fff; font-weight: 600; text-align: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, var(--s-300)); transition: opacity var(--fade) var(--ease), transform var(--move) var(--ease), visibility 0s var(--move); }
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--fade) var(--ease), transform var(--move) var(--ease); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: var(--s-75); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav-bar { width: 100%; justify-content: space-between; gap: var(--s-100); }
  .nav-bar .bag-btn { margin-left: auto; }
  .hero { padding-top: 120px; }
  .hero-in, .maker, .why, .custom { grid-template-columns: 1fr; gap: var(--s-600); }
  .printer { margin: 0 auto; max-width: 420px; }
  .why-intro { position: static; }
  .benefits li:nth-child(even) { margin-left: 0; }
  .steps { grid-template-columns: 1fr; gap: var(--s-300); }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps li { padding-left: 72px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .faq { grid-template-columns: 1fr; gap: var(--s-400); }
}
@media (max-width: 640px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .tagline-text { font-size: 30px; line-height: 36px; }
  .tagline-text br, .heading-1 br, .heading-2 br { display: none; }
  .lede, .body-lede { font-size: 16px; line-height: 24px; }
  .section { padding: var(--s-800) 0 var(--s-900); }
  .grid { gap: var(--s-200); }
  .card-body { padding: var(--s-200); }
  .card-body p { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: var(--s-100); }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .custom-form { padding: var(--s-300) var(--s-200); }
  .maker-buy { justify-content: space-between; }
  .wa-float { right: var(--s-200); bottom: var(--s-200); }
  .brand img { height: 42px; }
  }
@media (max-width: 380px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .tagline-text .w { color: var(--primary); }
  html { scroll-behavior: auto; }
}


/* ── reel upgrades: loader, live 3D, pinned steps (GSAP + Lenis) ───────── */
.loader { display: none; }
html.is-loading .loader {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-300);
  background: var(--base); transition: transform 800ms var(--ease); animation: loader-safety 0s 4.5s forwards;
}
.loader.out { transform: translateY(-100%); }
@keyframes loader-safety { to { visibility: hidden; opacity: 0; } }
.loader-mark { position: relative; width: 140px; }
.loader-mark img { width: 100%; height: auto; }
.loader-mark img:first-child { position: relative; z-index: 1; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
.loader-mark .ghost { position: absolute; inset: 0; opacity: .12; filter: grayscale(1); }
.loader-bar { width: 160px; height: 4px; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--primary); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader-pct { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

canvas.kc3d { display: none; width: 100%; aspect-ratio: 16 / 9; cursor: grab; }
canvas.grabbing { cursor: grabbing; }
.turntable.has-3d { padding: var(--s-200); }
.turntable.has-3d #kcSvg { display: none; }
.turntable.has-3d canvas.kc3d { display: block; }

.why-intro .pack { margin-top: var(--s-500); }
.pack img { width: 100%; height: auto; }

.steps::after { content: ""; position: absolute; top: 24px; left: 24px; right: 33%; height: 2px; background: var(--primary); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.steps-track { display: none; }
#how.pinned { min-height: 100vh; display: flex; align-items: center; }
.steps li { transition: opacity var(--move) var(--ease); }
#how.pinned .steps li { opacity: .3; }
#how.pinned .steps li.on { opacity: 1; }
#how.pinned .step-num { transition: background-color var(--fade) var(--ease), transform var(--move) var(--ease); background: var(--line); color: var(--primary); }
#how.pinned li.on .step-num { background: var(--primary); color: #fff; transform: scale(1.08); }

/* Taste skill hover: linked cards lift 2px, pictures zoom a touch inside their frame */
.card:hover { transform: translateY(-2px); }
.card:hover .card-art svg { transform: scale(1.03); }
@media (max-width: 900px) { .steps::after { display: none; } }
@media (prefers-reduced-motion: reduce) { html.is-loading .loader { display: none; } }

/* Lenis owns smooth scrolling when it runs; the browser's own smooth scroll would fight it */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }
