﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

/* ── Design tokens (Node globals.css :root) ── */
:root {
  --background: oklch(0.99 0.01 95);
  --foreground: oklch(0.22 0.02 45);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.02 45);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.22 0.02 45);
  --primary: oklch(0.62 0.16 35);
  --primary-foreground: oklch(0.99 0.01 95);
  --secondary: oklch(0.96 0.02 95);
  --secondary-foreground: oklch(0.28 0.03 45);
  --muted: oklch(0.96 0.015 95);
  --muted-foreground: oklch(0.52 0.03 45);
  --accent: oklch(0.95 0.03 85);
  --accent-foreground: oklch(0.28 0.03 45);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.9 0.02 95);
  --input: oklch(0.9 0.02 95);
  --ring: oklch(0.62 0.16 35);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;
}

/* ── Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-h, 4.25rem) + 0.75rem);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading), var(--font-sans), sans-serif;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

.font-heading {
  font-family: var(--font-heading), var(--font-sans), sans-serif;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Storefront utilities (Node globals.css 140–504) ── */
.storefront-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, oklch(0.94 0.06 35 / 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 20%, oklch(0.95 0.04 310 / 0.13), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 60%, oklch(0.95 0.04 155 / 0.12), transparent 50%),
    var(--background);
}

.storefront-doodle-bg {
  background-image:
    radial-gradient(circle at 20% 20%, oklch(0.92 0.05 35 / 0.22) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 30%, oklch(0.92 0.04 310 / 0.18) 0 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, oklch(0.92 0.04 155 / 0.17) 0 2px, transparent 2px),
    radial-gradient(circle at 30% 80%, oklch(0.92 0.05 85 / 0.15) 0 2px, transparent 2px);
  background-size: 120px 120px;
  animation: storefront-drift 90s linear infinite;
}

.hero-showcase-glow {
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, oklch(0.75 0.12 35 / 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 60%, oklch(0.82 0.08 155 / 0.18), transparent 65%),
    radial-gradient(ellipse 45% 35% at 80% 30%, oklch(0.82 0.1 310 / 0.15), transparent 60%);
}

.hero-carousel-progress {
  animation: hero-carousel-progress 4.5s linear forwards;
}

.hero-carousel-progress.paused {
  animation-play-state: paused;
}

@keyframes hero-carousel-progress {
  from { width: 0%; }
  to { width: 100%; }
}

.storefront-gradient-text {
  background: linear-gradient(
    115deg,
    oklch(0.45 0.14 35) 0%,
    oklch(0.55 0.16 25) 25%,
    oklch(0.5 0.12 310) 55%,
    oklch(0.48 0.1 155) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: storefront-shimmer-text 8s ease-in-out infinite;
}

.storefront-orb {
  filter: blur(48px);
  opacity: 0.38;
}

.storefront-orb-coral {
  background: oklch(0.84 0.09 35);
  animation: storefront-float 14s ease-in-out infinite;
}

.storefront-orb-lavender {
  background: oklch(0.84 0.07 310);
  animation: storefront-float 18s ease-in-out infinite reverse;
}

.storefront-orb-mint {
  background: oklch(0.86 0.07 155);
  animation: storefront-float 16s ease-in-out infinite;
  animation-delay: -4s;
}

.storefront-orb-butter {
  background: oklch(0.9 0.07 85);
  animation: storefront-float 12s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.storefront-float-slow {
  animation: storefront-float 10s ease-in-out infinite;
}

.storefront-float-delay {
  animation: storefront-float 12s ease-in-out infinite;
  animation-delay: -3s;
}

.storefront-float-reverse {
  animation: storefront-float 9s ease-in-out infinite reverse;
}

.storefront-float-icon {
  animation: storefront-icon-float 16s ease-in-out infinite;
}

.storefront-float-icon-delay {
  animation: storefront-icon-float 18s ease-in-out infinite;
  animation-delay: -4s;
}

.storefront-float-icon-reverse {
  animation: storefront-icon-float 14s ease-in-out infinite reverse;
  animation-delay: -2s;
}

.storefront-wave-path {
  animation: storefront-wave 12s ease-in-out infinite;
  transform-origin: center;
}

.storefront-enter {
  opacity: 0;
  animation: storefront-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.storefront-enter-delay-1 { animation-delay: 0.12s; }
.storefront-enter-delay-2 { animation-delay: 0.24s; }
.storefront-enter-delay-3 { animation-delay: 0.36s; }
.storefront-enter-delay-4 { animation-delay: 0.48s; }

.reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up { transform: translateY(36px); }
.reveal-down { transform: translateY(-24px); }
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-scale { transform: scale(0.94); }

.reveal-visible.reveal-up,
.reveal-visible.reveal-down,
.reveal-visible.reveal-left,
.reveal-visible.reveal-right,
.reveal.visible.reveal-up,
.reveal.visible.reveal-down,
.reveal.visible.reveal-left,
.reveal.visible.reveal-right {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-visible.reveal-scale,
.reveal.visible.reveal-scale {
  opacity: 1;
  transform: scale(1);
}

.reveal:not(.reveal-up):not(.reveal-down):not(.reveal-left):not(.reveal-right):not(.reveal-scale) {
  transform: translateY(36px);
}

.reveal-visible:not(.reveal-up):not(.reveal-down):not(.reveal-left):not(.reveal-right):not(.reveal-scale),
.reveal.visible:not(.reveal-up):not(.reveal-down):not(.reveal-left):not(.reveal-right):not(.reveal-scale) {
  opacity: 1;
  transform: translateY(0);
}

.storefront-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.storefront-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    oklch(1 0 0 / 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
  z-index: 2;
}

.storefront-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 24px 50px oklch(0.62 0.16 35 / 0.12),
    0 8px 20px oklch(0.62 0.16 35 / 0.06);
}

.storefront-card:hover::before {
  transform: translateX(120%);
}

.storefront-pack-image,
.pack-cover {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-card:hover .storefront-pack-image,
.storefront-card:hover .pack-cover {
  transform: scale(1.08);
}

.storefront-btn-shimmer {
  position: relative;
  overflow: hidden;
}

.storefront-btn-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    oklch(1 0 0 / 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: storefront-btn-shine 4s ease-in-out infinite;
}

.storefront-section-glow {
  position: relative;
}

.storefront-section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 45% at 50% 0%,
    oklch(0.94 0.06 310 / 0.18),
    transparent 72%
  );
  pointer-events: none;
}

.storefront-video-card {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px oklch(0.5 0.1 310 / 0.15);
}

.storefront-star {
  animation: storefront-star-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.storefront-badge {
  animation: storefront-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes storefront-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes storefront-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -14px) rotate(3deg); }
  66% { transform: translate(-6px, 10px) rotate(-2deg); }
}

@keyframes storefront-icon-float {
  0%, 100% { transform: translate(0, 0) rotate(var(--icon-rotate, 0deg)); }
  33% { transform: translate(10px, -16px) rotate(calc(var(--icon-rotate, 0deg) + 10deg)); }
  66% { transform: translate(-8px, 12px) rotate(calc(var(--icon-rotate, 0deg) - 8deg)); }
}

@keyframes storefront-drift {
  from { background-position: 0 0; }
  to { background-position: 120px 120px; }
}

@keyframes storefront-shimmer-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes storefront-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04); }
}

@keyframes storefront-btn-shine {
  0%, 70%, 100% { transform: translateX(-120%); }
  35% { transform: translateX(120%); }
}

@keyframes storefront-star-pop {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes storefront-badge-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-progress {
    animation: none;
    width: 100%;
  }

  .storefront-doodle-bg,
  .storefront-gradient-text,
  .storefront-orb,
  .storefront-float-slow,
  .storefront-float-delay,
  .storefront-float-reverse,
  .storefront-float-icon,
  .storefront-float-icon-delay,
  .storefront-float-icon-reverse,
  .storefront-wave-path,
  .storefront-enter,
  .storefront-btn-shimmer::after,
  .storefront-star,
  .storefront-badge {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  .storefront-card:hover,
  .storefront-video-card:hover {
    transform: none;
  }

  .storefront-card:hover .storefront-pack-image,
  .storefront-card:hover .pack-cover {
    transform: none;
  }
}

/* ── Layout utilities ── */
#main-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.storefront-shell {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
  .section { padding: 4.5rem 0; }
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs .storefront-orb {
  position: absolute;
  border-radius: 50%;
}

.bg-orbs .storefront-orb-coral {
  width: 20rem;
  height: 20rem;
  top: 5rem;
  left: -5rem;
}

.bg-orbs .storefront-orb-lavender {
  width: 18rem;
  height: 18rem;
  top: 10rem;
  right: -4rem;
}

.bg-orbs .storefront-orb-mint {
  width: 14rem;
  height: 14rem;
  bottom: 8rem;
  left: 8%;
}

.bg-orbs .storefront-orb-butter {
  width: 11rem;
  height: 11rem;
  bottom: 35%;
  right: 15%;
}

@media (min-width: 640px) {
  .bg-orbs .storefront-orb-coral { width: 18rem; height: 18rem; }
  .bg-orbs .storefront-orb-lavender { width: 20rem; height: 20rem; }
  .bg-orbs .storefront-orb-mint { width: 16rem; height: 16rem; }
  .bg-orbs .storefront-orb-butter { width: 14rem; height: 14rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  user-select: none;
}

.btn:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.62 0.16 35 / 0.5);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: oklch(0.62 0.16 35 / 0.8);
  text-decoration: none;
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--muted);
  text-decoration: none;
}

.btn-lg {
  height: 2.25rem;
  gap: 0.375rem;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}

.btn-sm {
  height: 1.75rem;
  gap: 0.25rem;
  padding: 0 0.625rem;
  font-size: 0.8rem;
  border-radius: min(var(--radius-md), 12px);
}

.btn-block { width: 100%; }

/* ── Site header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid oklch(0.9 0.02 95 / 0.55);
  background: oklch(0.99 0.01 95 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled,
.site-header.is-open {
  border-bottom-color: oklch(0.9 0.02 95 / 0.85);
  background: oklch(0.99 0.01 95 / 0.96);
  box-shadow: 0 4px 16px oklch(0.22 0.02 45 / 0.06);
}

#main-content {
  padding-top: var(--site-header-h, 4.25rem);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

@media (min-width: 640px) {
  .header-inner { padding: 1rem 0; }
}

@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }
}

.logo-wrap,
.brand-logo {
  display: inline-flex;
  min-width: 0;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
  color: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (min-width: 768px) {
  .logo-wrap { justify-self: start; }
}

.logo-wrap:hover,
.brand-logo:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.brand-logo-img {
  display: block;
  width: auto;
  max-width: min(100%, 10rem);
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.brand-logo--nav .brand-logo-img {
  height: 3.5rem;
}

@media (min-width: 640px) {
  .brand-logo--nav .brand-logo-img {
    height: 4.25rem;
    max-width: 11rem;
  }
}

@media (min-width: 1024px) {
  .brand-logo--nav .brand-logo-img {
    height: 4.5rem;
    max-width: 12rem;
  }
}

.brand-logo--footer .brand-logo-img {
  height: 4.75rem;
  max-width: 12rem;
}

@media (min-width: 640px) {
  .brand-logo--footer .brand-logo-img {
    height: 5.25rem;
    max-width: 13rem;
  }
}

.site-nav {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(0.99 0.01 95 / 0.8);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    justify-self: center;
    padding: 0.375rem;
    gap: 0.375rem;
  }
}

.site-nav a {
  position: relative;
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .site-nav a { padding: 0.5rem 1rem; }
}

.site-nav a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.site-nav a.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px oklch(0.62 0.16 35 / 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.social-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .social-links { display: flex; }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.88 0.02 95 / 0.9);
  background: oklch(1 0 0 / 0.82);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--primary);
  border-color: oklch(0.62 0.16 35 / 0.28);
  background: oklch(0.62 0.16 35 / 0.08);
}

.social-link-icon {
  flex-shrink: 0;
}

.social-link-label {
  display: none;
}

.footer-brand .social-links {
  display: flex;
  margin-top: 0.75rem;
}

.footer-brand .social-link-label {
  display: inline;
}

.mobile-nav-socials {
  padding: 0.5rem 0.75rem 0.25rem;
}

.mobile-nav-socials .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-nav-socials .social-link {
  min-height: 2.5rem;
  padding: 0 0.85rem;
}

.mobile-nav-socials .social-link-label {
  display: inline;
}

@media (min-width: 768px) {
  .header-actions { justify-self: end; }
}

.nav-cta {
  display: none;
  border-radius: 9999px;
  padding: 0 1rem;
  box-shadow: 0 4px 12px oklch(0.62 0.16 35 / 0.2);
  transition: transform 0.2s ease;
}

.nav-cta:hover { transform: scale(1.03); }

@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.99 0.01 95 / 0.9);
  color: var(--foreground);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover { background: var(--accent); }

.nav-toggle.is-open,
.site-header.is-open .nav-toggle {
  border-color: oklch(0.62 0.16 35 / 0.3);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.mobile-nav.is-open { pointer-events: auto; }

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.22 0.02 45 / 0.2);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }

.mobile-nav-panel {
  position: absolute;
  inset-inline: 0.75rem;
  top: 4.5rem;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.99 0.01 95 / 0.95);
  box-shadow: 0 25px 50px oklch(0.62 0.16 35 / 0.1);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav.is-open .mobile-nav-panel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  list-style: none;
  margin: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-2xl);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--foreground);
  transition: background 0.2s ease;
}

.mobile-nav-links a:hover { background: var(--accent); }

.mobile-nav-links a.active {
  background: oklch(0.62 0.16 35 / 0.12);
  color: var(--primary);
}

.mobile-nav-links a.active::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

.mobile-nav-cta {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.6);
}

.mobile-nav-cta .btn {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.2);
}

@media (min-width: 768px) {
  .mobile-nav { display: none; }
}

/* Legacy mobile nav (site-nav.open) */
@media (max-width: 767px) {
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    border-top: none;
    padding: 0.75rem;
    box-shadow: 0 25px 50px oklch(0.62 0.16 35 / 0.1);
  }

  .site-nav.open a {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-2xl);
    font-size: 1rem;
  }

  .site-nav.open .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: var(--radius-2xl);
  }
}

/* ── Hero section ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero { padding: 3rem 1.5rem 3rem; }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }

  .hero-copy {
    flex: 1 1 52%;
    min-width: 0;
  }

  .hero-showcase-col {
    flex: 1 1 48%;
    min-width: 0;
    width: 100%;
  }

  .hero-badges,
  .hero-actions {
    justify-content: flex-start;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-quote {
    text-align: left;
  }
}

.hero-showcase-col .hero-carousel-wrap {
  margin-top: 0;
}

.hero-showcase-col .hero-showcase-glow {
  opacity: 0.45;
}

.hero-quote {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.8);
  background: oklch(0.99 0.01 95 / 0.72);
  text-align: left;
}

.hero-quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--foreground);
}

.hero-quote footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.hero-quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--foreground);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge-primary {
  border: 1px solid oklch(0.62 0.16 35 / 0.25);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  backdrop-filter: blur(4px);
}

.hero-badge-rating {
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: var(--card);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
}

.hero-badge-rating .stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--primary);
}

.hero-social-proof {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero-actions .btn-primary {
  border-radius: var(--radius-2xl);
  padding: 0 2rem;
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.25);
  transition: transform 0.2s ease;
}

.hero-actions .btn-primary:hover { transform: scale(1.03); }

.hero-actions .btn-outline {
  border-radius: var(--radius-2xl);
  padding: 0 2rem;
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  border-color: oklch(0.62 0.16 35 / 0.2);
  background: oklch(0.99 0.01 95 / 0.7);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-actions .btn-outline:hover {
  transform: scale(1.03);
  border-color: oklch(0.62 0.16 35 / 0.4);
  background: oklch(0.62 0.16 35 / 0.05);
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .scroll-hint { margin-top: 3.5rem; }
}

.scroll-hint:hover { color: var(--primary); text-decoration: none; }

.scroll-hint .arrow { animation: bounce 2s infinite; }

/* ── Homepage try strip ── */
.try-strip-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: oklch(0.97 0.04 155 / 0.32);
}

@media (min-width: 640px) {
  .try-strip-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
}

.try-strip-header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.try-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .try-strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.try-strip-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.625rem;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  background: oklch(0.99 0.01 95 / 0.82);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.try-strip-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.62 0.16 35 / 0.25);
  box-shadow: 0 16px 32px oklch(0.62 0.16 35 / 0.1);
  text-decoration: none;
}

.try-strip-card--featured {
  border-color: oklch(0.62 0.16 35 / 0.22);
}

.try-strip-thumb {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius-2xl) - 0.25rem);
  background: #fff;
  aspect-ratio: 3 / 4;
}

.try-strip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.try-strip-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.try-strip-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.try-strip-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.try-strip-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.try-strip-footnote a {
  font-weight: 600;
  color: var(--primary);
}

.try-strip-empty {
  margin-top: 1.5rem;
  text-align: center;
}

.try-strip-empty p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}

/* ── Hero carousel ── */
.hero-carousel-wrap {
  position: relative;
  width: 100%;
  margin-top: 3.5rem;
  padding: 0 0.5rem 0.5rem;
}

.hero-carousel-wrap .hero-showcase-glow {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 28rem;
  height: 16rem;
  border-radius: 2.5rem;
  pointer-events: none;
  opacity: 0.7;
}

@media (min-width: 640px) {
  .hero-carousel-wrap .hero-showcase-glow { top: 32%; }
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-carousel { max-width: 340px; }
}

@media (min-width: 768px) {
  .hero-carousel { max-width: 400px; }
}

.hero-carousel-frame {
  position: relative;
  overflow: hidden;
  padding: 0.625rem;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.5);
  background: oklch(0.97 0.005 95);
  box-shadow: 0 25px 50px oklch(0.62 0.16 35 / 0.1);
  outline: 1px solid oklch(0 0 0 / 0.05);
}

@media (min-width: 640px) {
  .hero-carousel-frame { padding: 0.75rem; }
}

.hero-carousel-slides {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: oklch(0.94 0 0);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel-slide.is-active {
  opacity: 1;
  z-index: 10;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-carousel-nav {
  position: absolute;
  top: 42%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.99 0.01 95 / 0.95);
  color: var(--foreground);
  box-shadow: 0 4px 12px oklch(0.22 0.02 45 / 0.08);
  transition: background 0.2s ease;
}

.hero-carousel-nav:hover { background: var(--accent); }

.hero-carousel-nav.prev { left: -0.25rem; }
.hero-carousel-nav.next { right: -0.25rem; }

@media (min-width: 640px) {
  .hero-carousel-nav { width: 2.75rem; height: 2.75rem; }
  .hero-carousel-nav.prev { left: -3rem; }
  .hero-carousel-nav.next { right: -3rem; }
}

.hero-carousel-meta {
  margin-top: 1.5rem;
  text-align: center;
}

.hero-carousel-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.375;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-carousel-meta strong { font-size: 1.25rem; }
}

.hero-carousel-meta span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-carousel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.hero-carousel-link:hover { gap: 0.625rem; text-decoration: none; }

.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.hero-carousel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 1.25rem auto 0;
}

.hero-carousel-dots button {
  height: 0.5rem;
  width: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dots button:hover { background: oklch(0.62 0.16 35 / 0.4); }

.hero-carousel-dots button.active {
  width: 2rem;
  background: var(--primary);
}

.hero-carousel-progress-wrap {
  height: 0.125rem;
  width: 100%;
  max-width: 12.5rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 9999px;
  background: oklch(0.9 0.02 95 / 0.6);
}

.hero-carousel-progress-wrap .hero-carousel-progress {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
}

/* ── Trust badges ── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .trust-badges { gap: 0.75rem; }
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(0.99 0.01 95 / 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .trust-badges li { font-size: 0.875rem; padding: 0.375rem 0.75rem; }
}

.trust-badges li .icon,
.trust-badges li svg {
  flex-shrink: 0;
  color: var(--primary);
}

.trust-badges--start { justify-content: flex-start; }

/* ── Section headings ── */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}

.section-subtitle {
  margin: 0.75rem auto 2.5rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.section-badge-primary {
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

.section-badge-lavender {
  background: oklch(0.94 0.05 310);
  color: oklch(0.42 0.1 310);
}

.section-badge-mint {
  background: oklch(0.95 0.05 155);
  color: oklch(0.4 0.08 155);
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header-left { text-align: left; }

.section-header-left .section-subtitle {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.section-title-left {
  text-align: left;
}

.section-subtitle-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* ── How it works ── */
#how-it-works {
  scroll-margin-top: 6rem;
  padding: 2.5rem 1rem 3.5rem;
  background: oklch(0.97 0.03 310 / 0.38);
}

@media (min-width: 640px) {
  #how-it-works { padding: 3rem 1.5rem 4rem; }
}

.steps-grid {
  display: grid;
  gap: 1.5rem;
}

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

.step-card {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(1 0 0 / 0.9);
  text-align: center;
  box-shadow: 0 4px 12px oklch(0.22 0.02 45 / 0.06);
}

.step-card .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-2xl);
  background: oklch(0.62 0.16 35 / 0.12);
  color: var(--primary);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: oklch(0.62 0.16 35 / 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.step-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.step-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.step-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ── Section divider ── */
.section-divider {
  pointer-events: none;
  margin-bottom: -1px;
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--section-divider-fill, oklch(0.99 0.01 95));
}

.section-divider--warm svg { --section-divider-fill: oklch(0.97 0.018 95); }
.section-divider--cool svg { --section-divider-fill: oklch(0.97 0.025 310 / 0.45); }
.section-divider--default svg { --section-divider-fill: oklch(0.99 0.01 95); }
.section-divider--mint svg { --section-divider-fill: oklch(0.97 0.04 155 / 0.32); }
.section-divider--lavender svg { --section-divider-fill: oklch(0.97 0.03 310 / 0.38); }

/* ── Featured pack ── */
.featured-pack {
  padding: 3rem 0 2.5rem;
  background: oklch(0.98 0.02 55 / 0.35);
}

@media (min-width: 640px) {
  .featured-pack { padding: 4rem 0 3rem; }
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.featured-badge .badge-star {
  color: var(--primary);
  fill: var(--primary);
}

.featured-pack-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .featured-pack-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.featured-pack-header .section-subtitle-left {
  max-width: 32rem;
  margin-bottom: 0;
}

.featured-pack-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: text-decoration 0.2s ease;
}

.featured-pack-link:hover { text-decoration: underline; }

.featured-pack-card {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.62 0.16 35 / 0.25);
  background: var(--card);
  box-shadow: 0 20px 40px oklch(0.62 0.16 35 / 0.1);
  outline: 1px solid oklch(0.62 0.16 35 / 0.1);
}

.featured-pack-grid {
  display: grid;
  align-items: start;
}

@media (min-width: 1024px) {
  .featured-pack-grid { grid-template-columns: 1.05fr 1fr; }
}

.featured-pack-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(70vh, 34rem);
  min-height: 0;
  overflow: hidden;
  background: oklch(0.96 0.03 95);
}

@media (min-width: 1024px) {
  .featured-pack-cover {
    position: sticky;
    top: calc(var(--site-header-h, 4.25rem) + 1rem);
  }
}

.featured-pack-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
  transition: transform 0.7s ease;
}

.featured-pack-cover .pack-cover-placeholder {
  position: absolute;
  inset: 0;
  height: auto;
}

.featured-pack-card:hover .featured-pack-cover img {
  transform: scale(1.03);
}

.featured-pack-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.35), transparent, transparent);
  pointer-events: none;
  z-index: 1;
}

.featured-pack-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, oklch(0.62 0.16 35 / 0.1), transparent, transparent);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.featured-pack-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-foreground);
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.25);
}

.featured-pack-price {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-2xl);
  background: oklch(0.99 0.01 95 / 0.95);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 10px 25px oklch(0.22 0.02 45 / 0.1);
  backdrop-filter: blur(4px);
}

.featured-pack-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .featured-pack-body { padding: 2rem; }
}

@media (min-width: 1024px) {
  .featured-pack-body { padding: 2.5rem; }
}

.featured-pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.featured-pack-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-pack-tag--category {
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

.featured-pack-tag--meta {
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.96 0.015 95 / 0.5);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted-foreground);
}

.featured-pack-body h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.featured-pack-body h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.featured-pack-body h3 a:hover { color: var(--primary); }

.featured-pack-desc {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .featured-pack-desc { -webkit-line-clamp: 5; }
}

.featured-pack-shop-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.7);
}

.featured-pack-shop-price {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.featured-pack-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-pack-samples {
  margin-top: 1.5rem;
  overflow: visible;
}

.featured-pack-samples .pack-samples-label {
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .featured-pack-actions {
    flex-direction: row;
    align-items: center;
  }

  .featured-pack-actions .btn { flex: 1; }
}

/* ── Pack grid ── */
#packs,
.pack-grid-section {
  scroll-margin-top: 6rem;
  padding: 4rem 1rem;
  background: oklch(0.985 0.012 95);
}

@media (min-width: 640px) {
  #packs,
  .pack-grid-section { padding: 5rem 1.5rem; }
}

.pack-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
  .pack-grid { grid-template-columns: repeat(3, 1fr); }
}

.pack-grid-empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-3xl);
  border: 1px dashed var(--border);
  background: oklch(1 0 0 / 0.6);
  text-align: center;
}

.pack-grid-empty p:first-child {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.pack-grid-empty p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
}

/* Pack card accents */
.hover-accent-0:hover { border-color: oklch(0.62 0.16 35 / 0.3); }
.hover-accent-1:hover { border-color: oklch(0.75 0.1 85 / 0.5); }
.hover-accent-2:hover { border-color: oklch(0.75 0.1 155 / 0.5); }
.hover-accent-3:hover { border-color: oklch(0.75 0.1 310 / 0.5); }

.storefront-card.pack-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(1 0 0 / 0.9);
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.05);
  backdrop-filter: blur(4px);
}

.pack-cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: oklch(0.96 0.03 95);
  text-decoration: none;
}

.pack-cover-wrap img,
.pack-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-cover-carousel {
  position: absolute;
  inset: 0;
}

.pack-cover-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.pack-cover-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pack-cover-slide {
    transition: none;
  }

  .pack-cover-slide:not(.is-active) {
    visibility: hidden;
  }
}

.pack-cover-placeholder {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.pack-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.25), transparent, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.storefront-card:hover .pack-cover-wrap::after { opacity: 1; }

.pack-price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: oklch(0.99 0.01 95 / 0.95);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px oklch(0.22 0.02 45 / 0.08);
  backdrop-filter: blur(4px);
}

.pack-featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.pack-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
}

.pack-category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.pack-body h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.375;
}

.pack-body h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.pack-body h3 a:hover { color: var(--primary); }

.pack-page-count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.pack-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-meta {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  margin-top: auto;
  border-top: 1px solid oklch(0.96 0.015 95 / 0.5);
  background: oklch(0.96 0.015 95 / 0.5);
}

@media (min-width: 640px) {
  .pack-actions { flex-direction: row; }
}

.pack-actions .btn {
  border-radius: var(--radius-2xl);
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
}

@media (min-width: 640px) {
  .pack-actions .btn { flex: 1; }
}

.pack-actions .btn-primary {
  box-shadow: 0 4px 12px oklch(0.62 0.16 35 / 0.2);
  transition: transform 0.2s ease;
}

.pack-actions .btn-primary:hover { transform: scale(1.02); }

.pack-actions--single {
  padding-top: 0.25rem;
}

.pack-actions--single .btn {
  justify-content: center;
}

.pack-actions--dual .pack-buy-form {
  flex: 1;
  min-width: 0;
}

.pack-actions--dual .pack-buy-form .btn {
  width: 100%;
}

.pack-card-samples {
  margin-top: 0.875rem;
}

.pack-card-samples .pack-samples-label {
  margin-bottom: 0.5rem;
}

.pack-coming-soon {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-2xl);
  border: 1px dashed var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: var(--background);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: 0 1px 3px oklch(0.62 0.16 35 / 0.2);
}

/* ── Pack samples ── */
.pack-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.pack-sample-thumb {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(0.96 0.015 95 / 0.3);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pack-sample-thumb:hover {
  border-color: oklch(0.62 0.16 35 / 0.4);
  box-shadow: 0 4px 12px oklch(0.22 0.02 45 / 0.08);
}

.pack-sample-thumb--sm {
  width: 4rem;
  height: 4rem;
}

@media (min-width: 640px) {
  .pack-sample-thumb--sm { width: 5rem; height: 5rem; }
}

.pack-sample-thumb--lg {
  width: 5rem;
  height: 5rem;
}

@media (min-width: 640px) {
  .pack-sample-thumb--lg { width: 6rem; height: 6rem; }
}

.pack-sample-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-samples--hover-zoom {
  overflow: visible;
  gap: 0.75rem;
}

.pack-sample-thumb--hover-zoom {
  z-index: 1;
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    z-index 0s;
}

@media (hover: hover) and (pointer: fine) {
  .pack-sample-thumb--hover-zoom {
    cursor: zoom-in;
    overflow: visible;
  }

  .pack-sample-thumb--hover-zoom:hover {
    z-index: 25;
    transform: scale(2.6);
    border-color: oklch(0.62 0.16 35 / 0.35);
    box-shadow: 0 16px 36px oklch(0.22 0.02 45 / 0.2);
  }

  .pack-sample-thumb--lg.pack-sample-thumb--hover-zoom:hover {
    transform: scale(2.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-sample-thumb--hover-zoom {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .pack-sample-thumb--hover-zoom:hover {
      transform: none;
      border-color: oklch(0.62 0.16 35 / 0.25);
      box-shadow: 0 8px 20px oklch(0.62 0.16 35 / 0.1);
    }
  }
}

.pack-samples-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

/* ── Video section ── */
#videos,
.video-section {
  scroll-margin-top: 6rem;
  padding: 4rem 0;
  background: oklch(0.97 0.025 310 / 0.45);
}

@media (min-width: 640px) {
  #videos,
  .video-section { padding: 5rem 0; }
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(0.94 0.05 310);
  color: oklch(0.42 0.1 310);
}

.video-empty-state {
  display: flex;
  justify-content: center;
}

.video-soon-card {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 20rem);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .video-soon-card {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    align-items: center;
    width: min(100%, 36rem);
    gap: 1.5rem;
  }
}

.video-soon-card-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  background: linear-gradient(165deg, oklch(0.94 0.04 310 / 0.55), oklch(0.98 0.01 95));
  box-shadow: 0 10px 28px oklch(0.22 0.02 45 / 0.08);
}

.video-soon-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.video-soon-card-play svg {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.75rem;
  border-radius: 50%;
  background: oklch(0 0 0 / 0.42);
  backdrop-filter: blur(4px);
}

.video-soon-card-body {
  text-align: center;
}

@media (min-width: 640px) {
  .video-soon-card-body {
    text-align: left;
  }
}

.video-soon-card-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.42 0.1 310);
}

.video-soon-card-title {
  margin: 0.375rem 0 0;
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.video-soon-card-desc {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.video-soon-card-body .btn {
  margin-top: 1rem;
}

.video-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.storefront-video-card {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: var(--card);
  box-shadow: 0 10px 25px oklch(0.22 0.02 45 / 0.06);
}

.video-embed {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 325px;
  margin-inline: auto;
  overflow: hidden;
  background: oklch(0 0 0 / 0.05);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.storefront-video-card .video-body {
  padding: 1.25rem;
}

.storefront-video-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.storefront-video-card:hover h3 { color: oklch(0.45 0.12 310); }

.storefront-video-card .video-pack-name {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.video-empty {
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-3xl);
  border: 1px dashed oklch(0.9 0.02 95 / 0.9);
  background: oklch(1 0 0 / 0.72);
  text-align: center;
  color: var(--muted-foreground);
}

.video-empty-icon {
  display: block;
  margin: 0 auto 0.75rem;
  opacity: 0.45;
  color: oklch(0.45 0.12 310);
}

.video-empty p:first-of-type {
  margin: 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--foreground);
}

.video-empty p:nth-of-type(2) {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.625;
}

.video-empty .btn {
  margin-top: 1.25rem;
}

/* ── Reviews section ── */
#reviews {
  scroll-margin-top: 6rem;
}

.reviews-section {
  padding: 3.5rem 0 4rem;
  background: oklch(0.99 0.008 95 / 0.85);
}

@media (min-width: 768px) {
  .reviews-section {
    padding: 4.5rem 0 5rem;
  }
}

.reviews-inner {
  max-width: 72rem;
}

.reviews-header {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .reviews-header {
    margin-bottom: 2.5rem;
  }
}

.reviews-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.reviews-title {
  margin: 0;
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.reviews-lead {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.reviews-score {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.9);
  background: oklch(1 0 0 / 0.72);
}

.reviews-score-value {
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.reviews-score-stars {
  display: inline-flex;
  gap: 0.0625rem;
  color: var(--primary);
}

.reviews-score-count {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.reviews-list {
  display: grid;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .reviews-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 100%;
  padding: 1.125rem 1.125rem 1rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.75);
  background: oklch(1 0 0 / 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.review-item:hover {
  border-color: oklch(0.88 0.03 95);
  background: oklch(1 0 0 / 0.82);
}

.review-item--featured {
  border-color: oklch(0.62 0.16 35 / 0.22);
  background: oklch(0.62 0.16 35 / 0.04);
}

@media (min-width: 640px) {
  .review-item--featured {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .review-item--featured {
    grid-column: span 1;
  }
}

.review-item-stars {
  display: inline-flex;
  gap: 0.0625rem;
  color: var(--primary);
}

.review-item-quote {
  flex: 1;
  margin: 0;
  position: relative;
  padding-left: 0.875rem;
  border-left: 2px solid oklch(0.62 0.16 35 / 0.35);
}

.review-item-quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: oklch(0.28 0.02 45);
}

.review-item--featured .review-item-quote p {
  font-size: 1rem;
}

.review-item-footer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 0.125rem;
}

.review-item-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.review-item-meta {
  min-width: 0;
}

.review-item-author {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.review-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.review-item-details span + span::before {
  content: "·";
  margin-right: 0.5rem;
  color: oklch(0.75 0.02 95);
}

.reviews-empty {
  padding: 2.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed oklch(0.88 0.02 95);
  background: oklch(1 0 0 / 0.4);
  text-align: center;
}

.reviews-empty-icon {
  display: inline-flex;
  color: oklch(0.62 0.16 35 / 0.55);
}

.reviews-empty-title {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.reviews-empty-desc {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.reviews-embed {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  background: oklch(1 0 0 / 0.65);
}

/* Legacy review class aliases (admin previews / old markup) */
.review-grid { display: grid; gap: 0.875rem; }
.review-aggregate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.review-card blockquote,
.review-card p.quote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.review-card figcaption,
.review-card .review-author {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
}
.review-card .review-pack {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.review-embed {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  background: oklch(1 0 0 / 0.65);
}
.review-empty {
  padding: 2.5rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed oklch(0.88 0.02 95);
  text-align: center;
  color: var(--muted-foreground);
}

/* ── CTA band (soft gradient) ── */
.cta-band {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.62 0.16 35 / 0.25);
  background: linear-gradient(
    to bottom right,
    oklch(0.62 0.16 35 / 0.15),
    oklch(0.62 0.16 35 / 0.08),
    oklch(0.95 0.05 310 / 0.3)
  );
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 40px oklch(0.62 0.16 35 / 0.1);
}

@media (min-width: 640px) {
  .cta-band { padding: 3rem; }
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.cta-band p {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-band-actions {
    flex-direction: row;
  }
}

.cta-band-actions .btn {
  border-radius: var(--radius-2xl);
  padding: 0 2rem;
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  transition: transform 0.2s ease;
}

.cta-band-actions .btn-primary {
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.25);
}

.cta-band-actions .btn:hover { transform: scale(1.03); }

.cta-band .btn {
  margin-top: 2rem;
  border-radius: var(--radius-2xl);
  padding: 0 2rem;
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.25);
  transition: transform 0.2s ease;
}

.cta-band .btn:hover { transform: scale(1.03); }

/* ── Footer (3-col) ── */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(0.97 0.018 95);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, oklch(0.62 0.16 35 / 0.35), transparent);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -5rem;
  bottom: 0;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: oklch(0.62 0.16 35 / 0.1);
  filter: blur(48px);
  pointer-events: none;
}

.site-footer .footer-glow {
  position: absolute;
  right: -4rem;
  top: 2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: oklch(0.85 0.08 310 / 0.2);
  filter: blur(48px);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  padding: 3rem 1rem 7rem;
}

@media (min-width: 640px) {
  .site-footer .container { padding: 3.5rem 1.5rem 3.5rem; }
}

.footer-inner {
  position: relative;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  text-decoration: none;
  color: inherit;
}

.footer-desc {
  max-width: 22rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.footer-cta {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px oklch(0.62 0.16 35 / 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.25);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col-title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(0.22 0.02 45 / 0.8);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--primary); }

.footer-trust,
.footer-trust-list {
  max-width: 20rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.footer-trust li + li,
.footer-trust-list li + li { margin-top: 0.5rem; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.6);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-legal-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.footer-legal-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-credit a {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.99 0.01 95 / 0.95);
  box-shadow: 0 -4px 24px oklch(0.22 0.02 45 / 0.08);
  backdrop-filter: blur(24px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible,
.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  border-radius: var(--radius-2xl);
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  box-shadow: 0 4px 12px oklch(0.62 0.16 35 / 0.2);
}

.sticky-cta-link[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

@media (max-width: 767px) {
  body.has-sticky-cta { padding-bottom: 5rem; }
}

/* ── Cookie consent ── */
.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 1rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.99 0.01 95 / 0.95);
  box-shadow: 0 -4px 24px oklch(0.22 0.02 45 / 0.08);
  backdrop-filter: blur(24px);
}

@media (min-width: 640px) {
  .cookie-consent {
    inset-inline: 1rem;
    bottom: 1rem;
    max-width: 42rem;
    margin-inline: auto;
    border: 1px solid oklch(0.9 0.02 95 / 0.7);
    border-radius: var(--radius-2xl);
  }
}

.cookie-consent-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.cookie-consent-desc {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.cookie-consent-desc a {
  font-weight: 500;
  color: var(--primary);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-consent-actions .btn { border-radius: var(--radius-xl); }

/* ── Inner page hero ── */
.page-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.page-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: var(--radius-3xl);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  outline: 1px solid oklch(0.62 0.16 35 / 0.1);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-hero-desc {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ── Pack detail page ── */
.pack-detail {
  padding: 1.5rem 0 5rem;
}

@media (min-width: 640px) {
  .pack-detail { padding: 2rem 0 6rem; }
}

body:has(.pack-detail-mobile-bar.is-visible) .pack-detail {
  padding-bottom: calc(5rem + 4.5rem);
}

.pack-detail-wrap {
  max-width: min(72rem, 100%);
  margin: 0 auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .pack-detail-wrap { padding-inline: 1.5rem; }
}

.pack-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(1 0 0 / 0.82);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pack-detail-back:hover {
  border-color: oklch(0.62 0.16 35 / 0.3);
  color: var(--primary);
  text-decoration: none;
  transform: translateX(-2px);
}

.pack-detail-hero {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.75);
  background: oklch(1 0 0 / 0.94);
  box-shadow:
    0 1px 2px oklch(0.22 0.02 45 / 0.04),
    0 24px 48px oklch(0.62 0.16 35 / 0.08);
}

.pack-detail-grid {
  display: grid;
  align-items: start;
  gap: 0;
}

@media (min-width: 1024px) {
  .pack-detail-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 0;
  }
}

.pack-detail-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 36rem);
  min-height: 0;
  overflow: hidden;
  background: oklch(0.97 0.015 95);
}

@media (min-width: 1024px) {
  .pack-detail-cover {
    position: sticky;
    top: calc(var(--site-header-h, 4.25rem) + 1rem);
    border-right: 1px solid oklch(0.92 0.02 95 / 0.8);
  }
}

.pack-detail-cover .pack-cover-carousel {
  position: absolute;
  inset: 0;
}

.pack-detail-cover-img,
.pack-detail-cover .pack-cover-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}

.pack-detail-cover-img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: #fff;
}

.pack-detail-cover .pack-cover-placeholder {
  position: absolute;
  inset: 0;
  height: auto;
}

.pack-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.18), transparent 38%);
  pointer-events: none;
  z-index: 1;
}

.pack-detail-featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px oklch(0.62 0.16 35 / 0.25);
}

.pack-detail-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .pack-detail-main { padding: 2rem 2.5rem 2.25rem; }
}

@media (min-width: 1024px) {
  .pack-detail-main { padding: 2.25rem 2.75rem 2.5rem; }
}

.pack-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pack-detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pack-detail-tag--category {
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

.pack-detail-tag--meta {
  border: 1px solid oklch(0.9 0.02 95 / 0.8);
  background: oklch(0.99 0.01 95 / 0.8);
  color: var(--muted-foreground);
}

.pack-detail-title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.875rem, 4.5vw, 2.625rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pack-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pack-detail-stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.pack-detail-stat-icon {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.85;
}

.pack-detail-buy {
  margin-top: 1.5rem;
  padding: 1.25rem 1.375rem;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.62 0.16 35 / 0.14);
  background:
    linear-gradient(165deg, oklch(0.99 0.03 35 / 0.55), oklch(1 0 0 / 0.98));
  box-shadow: 0 8px 24px oklch(0.62 0.16 35 / 0.08);
}

@media (min-width: 640px) {
  .pack-detail-buy { padding: 1.375rem 1.5rem; }
}

.pack-detail-buy-price {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.pack-detail-buy-lead {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.pack-detail-desc {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.92 0.02 95 / 0.85);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}


.pack-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
}

.pack-buy-form {
  display: contents;
}

.pack-buy-form button {
  width: 100%;
}

@media (min-width: 640px) {
  .pack-detail-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .pack-detail-actions .btn-primary { flex: 1 1 auto; }
  .pack-detail-actions .btn-outline { flex: 1 1 auto; }
}

.pack-detail-actions .btn {
  border-radius: var(--radius-2xl);
  height: auto;
  min-height: 2.25rem;
  padding-block: 0.625rem;
  padding-inline: 1.25rem;
  justify-content: center;
}

.pack-detail-actions .btn-primary {
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.2);
}

.pack-detail-trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.65);
}

.pack-detail-trust .trust-badges {
  justify-content: flex-start;
  margin: 0;
  gap: 0.375rem;
}

.pack-detail-trust .trust-badges li {
  font-size: 0.6875rem;
  padding: 0.3125rem 0.625rem;
  background: oklch(1 0 0 / 0.72);
}

.pack-detail-section-head {
  margin-bottom: 1.25rem;
}

.pack-detail-section-badge {
  margin-bottom: 0.5rem;
}

.pack-detail-section-head h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pack-detail-section-lead {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.pack-detail-previews {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 1.75rem;
  overflow: visible;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.75);
  background: oklch(1 0 0 / 0.92);
  box-shadow: 0 12px 32px oklch(0.22 0.02 45 / 0.05);
}

@media (min-width: 640px) {
  .pack-detail-previews {
    margin-top: 2.5rem;
    padding: 2rem 2rem 2.25rem;
  }
}

.pack-detail-previews.storefront-card::before {
  display: none;
}

.pack-detail-previews.storefront-card:hover {
  transform: none;
}

.pack-detail-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  overflow: visible;
}

@media (min-width: 640px) {
  .pack-detail-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.pack-detail-preview-item {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.75);
  background: #fff;
  aspect-ratio: 3 / 4;
  box-shadow: 0 4px 14px oklch(0.22 0.02 45 / 0.06);
  transform-origin: center center;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    z-index 0s;
}

.pack-detail-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .pack-detail-preview-item {
    cursor: zoom-in;
    overflow: visible;
  }

  .pack-detail-preview-item:hover {
    z-index: 30;
    transform: scale(2.35);
    border-color: oklch(0.62 0.16 35 / 0.35);
    box-shadow: 0 18px 42px oklch(0.22 0.02 45 / 0.22);
  }

  @media (min-width: 640px) {
    .pack-detail-preview-item:hover {
      transform: scale(2.85);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-detail-preview-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .pack-detail-preview-item:hover {
      transform: none;
      border-color: oklch(0.62 0.16 35 / 0.25);
      box-shadow: 0 10px 24px oklch(0.62 0.16 35 / 0.1);
    }
  }
}

.pack-detail-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid oklch(0.9 0.02 95 / 0.85);
  background: oklch(0.99 0.01 95 / 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px oklch(0.22 0.02 45 / 0.08);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pack-detail-mobile-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.pack-detail-mobile-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: min(72rem, 100%);
  margin: 0 auto;
}

.pack-detail-mobile-bar-copy {
  min-width: 0;
  flex: 1;
}

.pack-detail-mobile-bar-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.pack-detail-mobile-bar-price {
  margin: 0.125rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.pack-detail-mobile-bar-form {
  flex-shrink: 0;
}

.pack-detail-mobile-bar-form .btn {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .pack-detail-mobile-bar {
    display: none;
  }

  body:has(.pack-detail-mobile-bar) .pack-detail {
    padding-bottom: 5rem;
  }
}

.pack-detail-videos {
  margin-top: 2rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.97 0.025 310 / 0.35);
  box-shadow: 0 12px 32px oklch(0.22 0.02 45 / 0.05);
}

@media (min-width: 640px) {
  .pack-detail-videos {
    margin-top: 3rem;
    padding: 2rem 2rem 2.25rem;
  }
}

.pack-detail-video-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pack-detail-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pack-detail-video-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: var(--card);
}

.pack-detail-video-card .video-card-title {
  margin: 0;
  padding: 0.875rem 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Download page ── */
.download-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 640px) {
  .download-page {
    padding: 3.5rem 1.5rem 5rem;
  }
}

.download-page .page-hero {
  margin-bottom: 1.75rem;
}

.download-card {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(1 0 0 / 0.95);
  box-shadow: 0 20px 40px oklch(0.62 0.16 35 / 0.1);
  backdrop-filter: blur(4px);
}

.download-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: oklch(0.96 0.03 95);
}

.download-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-success-page .purchase-success-card-body {
  gap: 0.75rem;
}

.purchase-success-page .purchase-success-btn {
  border-radius: var(--radius-2xl);
  min-height: 3rem;
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.2);
}

.purchase-success-page .download-card .btn-outline {
  border-radius: var(--radius-2xl);
  min-height: 3rem;
}

.download-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: oklch(1 0 0 / 0.8);
}

@media (min-width: 640px) {
  .download-card-header { padding: 1.25rem 2rem; }
}

.download-card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.download-card-header p {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.download-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.download-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .download-card-body { padding: 1.5rem 2rem; }
}

.download-card .trust-badges {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid oklch(0.9 0.02 95 / 0.6);
}

@media (min-width: 640px) {
  .download-card .trust-badges { padding: 1.25rem 2rem; }
}

/* ── Alerts (download page) ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: left;
}

.alert .alert-icon,
.alert > svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.alert--destructive .alert-icon,
.alert--destructive > svg {
  color: var(--destructive);
}

.alert > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.alert-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.alert-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.download-card-body .btn-primary.btn-block {
  border-radius: var(--radius-2xl);
  min-height: 3rem;
  box-shadow: 0 10px 25px oklch(0.62 0.16 35 / 0.2);
}

.alert--primary {
  border-color: oklch(0.62 0.16 35 / 0.2);
  background: oklch(0.62 0.16 35 / 0.05);
}

.alert--muted {
  border-color: oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.96 0.015 95 / 0.4);
}

.alert--destructive {
  border-color: oklch(0.577 0.245 27.325 / 0.3);
  background: var(--card);
  color: var(--destructive);
}

.alert--destructive .alert-desc {
  color: oklch(0.577 0.245 27.325 / 0.9);
}

/* ── Download instructions ── */
.download-instructions {
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(0.96 0.015 95 / 0.2);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
  backdrop-filter: blur(4px);
}

.download-instructions-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.download-instructions-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--background);
  color: var(--primary);
  box-shadow: 0 1px 2px oklch(0.22 0.02 45 / 0.05);
}

.download-instructions h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.download-instructions > p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.download-instructions ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

.download-instructions li {
  display: flex;
  gap: 0.75rem;
}

.download-instructions .step-marker {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: oklch(0.62 0.16 35 / 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Message card (404, errors) ── */
.message-main {
  display: flex;
  flex-direction: column;
  max-width: 32rem;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

@media (min-width: 640px) {
  .message-main {
    padding: 5rem 1.5rem;
  }
}

.message-card {
  overflow: hidden;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(1 0 0 / 0.95);
  padding: 1.5rem;
  box-shadow: 0 20px 40px oklch(0.62 0.16 35 / 0.1);
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .message-card {
    padding: 2rem;
  }
}

.message-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-2xl);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

.message-card-icon--destructive {
  background: oklch(0.577 0.245 27.325 / 0.1);
  color: var(--destructive);
}

.message-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.message-card p {
  margin: 0.75rem 0 0;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.message-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Custom 404 page ── */
.not-found-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.storefront-page.is-not-found-painting {
  transition: background-color 0.8s ease;
}

.storefront-page.is-not-found-painting::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    var(--nf-page-wash, transparent),
    transparent 70%
  );
  transition: background 0.9s ease;
}

.not-found-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 5rem;
}

@media (min-width: 640px) {
  .not-found-main { padding: 3.5rem 1.5rem 6rem; }
}

.not-found-page {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.not-found-scene {
  position: absolute;
  inset: -1rem -0.5rem auto;
  height: 12rem;
  pointer-events: none;
}

.not-found-doodle {
  position: absolute;
  color: oklch(0.62 0.16 35 / 0.22);
  animation: not-found-float 7s ease-in-out infinite;
}

.not-found-doodle--pencil {
  top: 2rem;
  left: 4%;
  transform: rotate(-18deg);
  animation-delay: 0s;
}

.not-found-doodle--brush {
  top: 0.5rem;
  right: 6%;
  transform: rotate(14deg);
  color: oklch(0.75 0.1 310 / 0.35);
  animation-delay: -2s;
}

.not-found-doodle--star {
  top: 5.5rem;
  right: 18%;
  color: oklch(0.75 0.1 155 / 0.35);
  animation-delay: -4s;
}

.not-found-doodle--heart {
  top: 6rem;
  left: 14%;
  color: oklch(0.62 0.16 35 / 0.18);
  animation-delay: -1s;
}

@keyframes not-found-float {
  0%, 100% { transform: translateY(0) rotate(var(--not-found-rotate, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--not-found-rotate, 0deg) + 6deg)); }
}

.not-found-doodle--pencil { --not-found-rotate: -18deg; }
.not-found-doodle--brush { --not-found-rotate: 14deg; }
.not-found-doodle--star { --not-found-rotate: 0deg; }
.not-found-doodle--heart { --not-found-rotate: -8deg; }

.not-found-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1.25rem);
  margin-bottom: 1.5rem;
  user-select: none;
}

.not-found-digit {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px oklch(0.62 0.16 35 / 0.55);
  text-stroke: 2px oklch(0.62 0.16 35 / 0.55);
  paint-order: stroke fill;
  animation: not-found-wiggle 4s ease-in-out infinite;
  transition:
    color 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-text-stroke-color 0.65s ease,
    text-stroke-color 0.65s ease,
    transform 0.65s ease;
}

.not-found-page.is-painted .not-found-digit {
  color: var(--nf-digit-fill, var(--primary));
  -webkit-text-stroke-color: var(--nf-digit-stroke, var(--primary));
  text-stroke-color: var(--nf-digit-stroke, var(--primary));
  animation: not-found-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.not-found-page.is-painted .not-found-palette {
  background: color-mix(in oklch, var(--nf-digit-fill, var(--primary)) 18%, transparent);
  color: var(--nf-digit-fill, var(--primary));
}

.not-found-page.is-painted .not-found-doodle {
  color: var(--nf-doodle, oklch(0.62 0.16 35 / 0.45));
  transition: color 0.6s ease;
}

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

.not-found-digit:nth-child(3) {
  animation-delay: -0.6s;
}

@keyframes not-found-wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.not-found-palette {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 14vw, 5rem);
  height: clamp(3.5rem, 14vw, 5rem);
  border-radius: 50%;
  background: oklch(0.62 0.16 35 / 0.08);
  color: var(--primary);
  animation: not-found-palette-spin 12s linear infinite;
}

.not-found-palette-icon {
  width: clamp(2.5rem, 10vw, 3.25rem);
  height: clamp(2.5rem, 10vw, 3.25rem);
}

@keyframes not-found-palette-spin {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  25% { transform: rotate(6deg) scale(1.05); }
  50% { transform: rotate(-4deg) scale(1); }
  75% { transform: rotate(8deg) scale(1.03); }
}

.not-found-palette-dot {
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid oklch(1 0 0 / 0.9);
  box-shadow: 0 2px 6px oklch(0.22 0.02 45 / 0.12);
}

.not-found-palette-dot--coral {
  top: 12%;
  right: 8%;
  background: oklch(0.72 0.16 35);
}

.not-found-palette-dot--mint {
  bottom: 18%;
  left: 6%;
  background: oklch(0.78 0.1 155);
}

.not-found-palette-dot--lavender {
  top: 22%;
  left: 4%;
  background: oklch(0.75 0.1 310);
}

.not-found-card {
  position: relative;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: var(--radius-3xl);
  border: 2px dashed oklch(0.62 0.16 35 / 0.22);
  background:
    radial-gradient(circle at top right, oklch(0.94 0.06 310 / 0.12), transparent 55%),
    radial-gradient(circle at bottom left, oklch(0.62 0.16 35 / 0.06), transparent 50%),
    oklch(1 0 0 / 0.92);
  box-shadow:
    0 24px 48px oklch(0.62 0.16 35 / 0.08),
    inset 0 1px 0 oklch(1 0 0 / 0.8);
  backdrop-filter: blur(6px);
  transition:
    border-color 0.6s ease,
    border-style 0.6s ease,
    box-shadow 0.6s ease;
}

.not-found-page.is-painted .not-found-card {
  border-style: solid;
  border-color: color-mix(in oklch, var(--nf-card-accent, var(--primary)) 35%, oklch(0.9 0.02 95));
  box-shadow:
    0 24px 48px color-mix(in oklch, var(--nf-card-accent, var(--primary)) 15%, transparent),
    inset 0 1px 0 oklch(1 0 0 / 0.8);
}

.not-found-page.is-masterpiece .not-found-card {
  animation: not-found-shimmer 3s ease-in-out infinite;
}

@keyframes not-found-shimmer {
  0%, 100% { box-shadow: 0 24px 48px color-mix(in oklch, var(--nf-card-accent, var(--primary)) 15%, transparent); }
  50% { box-shadow: 0 28px 56px color-mix(in oklch, var(--nf-card-accent, var(--primary)) 28%, transparent); }
}

@media (min-width: 640px) {
  .not-found-card { padding: 2.25rem 2rem 2.5rem; }
}

.not-found-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--primary);
}

.not-found-card h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.not-found-lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.not-found-lead em {
  font-style: normal;
  font-weight: 600;
  color: var(--foreground);
}

.not-found-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.not-found-swatch {
  display: block;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  border: 2px dashed oklch(0.9 0.02 95);
  background: oklch(0.98 0.01 95);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    border-style 0.25s ease,
    box-shadow 0.25s ease,
    background 0.35s ease;
}

.not-found-swatch:hover:not(:disabled),
.not-found-swatch:focus-visible:not(:disabled) {
  transform: scale(1.12);
  outline: none;
  box-shadow: 0 6px 16px oklch(0.22 0.02 45 / 0.12);
}

.not-found-swatch:disabled,
.not-found-swatch.is-active {
  cursor: default;
  border-style: solid;
  transform: scale(1.05);
}

.not-found-swatch--coral { background: oklch(0.72 0.16 35 / 0.35); }
.not-found-swatch--peach { background: oklch(0.85 0.08 55 / 0.45); }
.not-found-swatch--mint { background: oklch(0.78 0.1 155 / 0.4); }
.not-found-swatch--lavender { background: oklch(0.75 0.1 310 / 0.4); }
.not-found-swatch--ink { background: oklch(0.22 0.02 45 / 0.12); }

.not-found-swatch--coral.is-active,
.not-found-swatch--coral:hover:not(:disabled) {
  background: oklch(0.72 0.16 35);
  border-color: oklch(0.72 0.16 35);
}

.not-found-swatch--peach.is-active,
.not-found-swatch--peach:hover:not(:disabled) {
  background: oklch(0.78 0.12 55);
  border-color: oklch(0.78 0.12 55);
}

.not-found-swatch--mint.is-active,
.not-found-swatch--mint:hover:not(:disabled) {
  background: oklch(0.72 0.12 155);
  border-color: oklch(0.72 0.12 155);
}

.not-found-swatch--lavender.is-active,
.not-found-swatch--lavender:hover:not(:disabled) {
  background: oklch(0.68 0.12 310);
  border-color: oklch(0.68 0.12 310);
}

.not-found-swatch--ink.is-active,
.not-found-swatch--ink:hover:not(:disabled) {
  background: oklch(0.22 0.02 45);
  border-color: oklch(0.22 0.02 45);
}

.not-found-paint-blob {
  position: fixed;
  left: var(--blob-x, 50%);
  top: var(--blob-y, 50%);
  width: calc(18rem * var(--blob-scale, 1));
  height: calc(18rem * var(--blob-scale, 1));
  margin-left: calc(-9rem * var(--blob-scale, 1));
  margin-top: calc(-9rem * var(--blob-scale, 1));
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: var(--blob-color, oklch(0.72 0.16 35 / 0.35));
  filter: blur(28px);
  opacity: 0;
  animation: not-found-blob-spread 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes not-found-blob-spread {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(0deg);
  }
  25% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.42;
    transform: scale(2.2) rotate(25deg);
  }
}

.not-found-paint-blob.is-settled {
  animation: none;
  opacity: 0.38;
  transform: scale(2.2) rotate(25deg);
}

.not-found-hint {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: oklch(0.52 0.03 45 / 0.85);
}

.not-found-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 480px) {
  .not-found-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.not-found-actions .btn {
  min-width: 11rem;
}

@media (prefers-reduced-motion: reduce) {
  .not-found-digit,
  .not-found-palette,
  .not-found-doodle {
    animation: none;
  }

  .not-found-page.is-painted .not-found-digit {
    animation: none;
  }

  .not-found-page.is-masterpiece .not-found-card {
    animation: none;
  }

  .not-found-paint-blob {
    animation: none;
    opacity: 0.4;
    transform: scale(1.5);
  }
}

/* ── Flash messages ── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
}

.flash-success {
  border: 1px solid oklch(0.75 0.1 155 / 0.4);
  background: oklch(0.95 0.05 155 / 0.3);
  color: oklch(0.35 0.08 155);
}

.flash-error {
  border: 1px solid oklch(0.577 0.245 27.325 / 0.3);
  background: oklch(0.577 0.245 27.325 / 0.08);
  color: var(--destructive);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  clip: auto;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  outline: none;
}

/* ── Legal pages ── */
.legal-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .legal-content { padding: 3.5rem 1.5rem 5rem; }
}

.legal-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Layout layers ── */
.storefront-content {
  position: relative;
  z-index: 0;
}

.homepage-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.homepage-doodle {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.homepage-bg--subtle .homepage-doodle {
  opacity: 0.16;
}

.homepage-bg--subtle .floating-icons {
  opacity: 0.35;
}

.homepage-bg--subtle .bg-orbs .storefront-orb {
  opacity: 0.24;
}

.homepage-bg--subtle .bg-orbs .orb-extra {
  display: none;
}

.bg-orbs .orb-extra {
  width: 10rem;
  height: 10rem;
  bottom: 15%;
  right: 35%;
  opacity: 0.28;
}

.floating-icons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.72;
}

.floating-icons .float-icon-svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
  transform: rotate(var(--icon-rotate, 0deg));
}

.floating-icons > span {
  position: absolute;
  color: oklch(0.62 0.12 35 / 0.18);
}

.float-icon-1 { left: 6%; top: 8%; width: 2.25rem; height: 2.25rem; }
.float-icon-2 { left: 14%; top: 32%; width: 1.75rem; height: 1.75rem; color: oklch(0.55 0.09 35 / 0.2); }
.float-icon-3 { right: 8%; top: 14%; width: 2.5rem; height: 2.5rem; color: oklch(0.5 0.08 310 / 0.19); }
.float-icon-4 { left: 22%; top: 58%; width: 1.5rem; height: 1.5rem; }
.float-icon-5 { right: 12%; top: 38%; width: 2.25rem; height: 2.25rem; color: oklch(0.55 0.08 155 / 0.21); }
.float-icon-6 { left: 4%; top: 72%; width: 2rem; height: 2rem; color: oklch(0.5 0.06 85 / 0.22); }
.float-icon-7 { right: 18%; top: 62%; width: 1.75rem; height: 1.75rem; color: oklch(0.62 0.12 35 / 0.16); }
.float-icon-8 { left: 38%; top: 18%; width: 2rem; height: 2rem; color: oklch(0.55 0.09 310 / 0.17); }
.float-icon-9 { right: 28%; top: 8%; width: 1.25rem; height: 1.25rem; color: oklch(0.7 0.08 85 / 0.24); }
.float-icon-10 { left: 32%; top: 82%; width: 1.5rem; height: 1.5rem; }
.float-icon-11 { right: 6%; top: 78%; width: 2rem; height: 2rem; color: oklch(0.5 0.08 155 / 0.19); }
.float-icon-12 { right: 34%; top: 48%; width: 1.75rem; height: 1.75rem; color: oklch(0.55 0.1 35 / 0.16); }
.float-icon-13 { left: 48%; top: 42%; width: 1.25rem; height: 1.25rem; display: none; }
.float-icon-14 { left: 52%; top: 68%; width: 1.75rem; height: 1.75rem; display: none; color: oklch(0.5 0.08 310 / 0.16); }

@media (min-width: 640px) {
  .float-icon-1 { width: 2.75rem; height: 2.75rem; }
  .float-icon-2 { width: 2rem; height: 2rem; }
  .float-icon-3 { width: 3rem; height: 3rem; }
  .float-icon-4 { width: 1.75rem; height: 1.75rem; }
  .float-icon-5 { width: 2.5rem; height: 2.5rem; }
  .float-icon-6 { width: 2.25rem; height: 2.25rem; }
  .float-icon-7 { width: 2rem; height: 2rem; }
  .float-icon-8 { width: 2.25rem; height: 2.25rem; }
  .float-icon-9 { width: 1.5rem; height: 1.5rem; }
  .float-icon-10 { width: 1.75rem; height: 1.75rem; }
  .float-icon-11 { width: 2.25rem; height: 2.25rem; }
  .float-icon-12 { width: 2rem; height: 2rem; }
  .float-icon-13 { display: block; }
}

@media (min-width: 768px) {
  .float-icon-14 { display: block; }
}

.inner-main {
  flex: 1;
}

.trust-badges-start {
  margin-top: 2rem;
}

.trust-badges-start .trust-badges {
  justify-content: flex-start;
}

.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .legal-page { padding: 3.5rem 1.5rem 5rem; }
}

.legal-page .legal-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-3xl);
  border: 1px solid oklch(0.9 0.02 95 / 0.7);
  background: oklch(1 0 0 / 0.95);
}

.lazy-tiktok {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.lazy-tiktok iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lazy-tiktok-overlay {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  background: oklch(0.18 0.02 25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lazy-tiktok-overlay:hover {
  background: oklch(0.24 0.03 25);
}

.lazy-tiktok-play {
  display: flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(0.55 0.2 25);
  box-shadow: 0 10px 25px oklch(0 0 0 / 0.25);
  transition: transform 0.2s ease;
}

.lazy-tiktok-overlay:hover .lazy-tiktok-play {
  transform: scale(1.05);
}

.lazy-tiktok-label {
  max-width: 80%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(1 0 0 / 0.9);
}

.video-embed-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  overflow: hidden;
  background: oklch(0 0 0 / 0.05);
}

.star-filled {
  fill: var(--primary);
  color: var(--primary);
}

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

.pulse {
  animation: storefront-pulse 2s ease-in-out infinite;
}

@keyframes storefront-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Try coloring page (/try) ── */
.try-coloring-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

@media (min-width: 768px) {
  .try-coloring-page {
    max-width: 56rem;
    padding: 2.5rem 1.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .try-coloring-page {
    max-width: min(80rem, 96vw);
    padding: 1.75rem 1.5rem 2.5rem;
  }

  .try-coloring-page .page-hero {
    margin-bottom: 1.25rem;
  }

  .try-coloring-page .page-hero h1 {
    font-size: clamp(1.625rem, 2.5vw, 2rem);
  }

  .try-coloring-page .page-hero-desc {
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .try-coloring-cta {
    margin-top: 2rem;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .try-coloring-page {
    padding: 2.75rem 1.5rem 3.5rem;
  }
}

.try-coloring-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1.125rem 1.25rem;
}

.try-coloring-upload-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.try-coloring-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: oklch(0.62 0.16 35 / 0.1);
  color: oklch(0.55 0.14 35);
}

.try-coloring-upload-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.try-coloring-upload-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.try-coloring-upload-guidelines {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: oklch(0.98 0.01 95);
  border: 1px solid oklch(0.92 0.02 95);
}

.try-coloring-upload-guidelines-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.try-coloring-upload-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--foreground);
}

.try-coloring-upload-list li + li {
  margin-top: 0.25rem;
}

.try-coloring-upload-avoid {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.try-coloring-upload-privacy {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid oklch(0.92 0.02 95);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.try-coloring-upload-drop {
  position: relative;
  border: 1.5px dashed oklch(0.82 0.03 95);
  border-radius: 0.875rem;
  background: oklch(1 0 0 / 0.6);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.try-coloring-upload-drop.is-dragover {
  border-color: oklch(0.62 0.16 35 / 0.55);
  background: oklch(0.62 0.16 35 / 0.06);
}

.try-coloring-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.try-coloring-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  text-align: center;
}

.try-coloring-upload-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.12);
  color: oklch(0.55 0.14 35);
  transform: rotate(180deg);
}

.try-coloring-upload-label-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.try-coloring-upload-label-hint {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.try-coloring-upload-filename {
  margin: 0;
  padding: 0 1rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: oklch(0.45 0.1 155);
}

.try-coloring-upload-error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: oklch(0.5 0.18 25);
}

.try-coloring-picker-heading,
.try-coloring-picker-label {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.try-coloring-picker-label--solo {
  margin-bottom: 1rem;
}

.try-coloring-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.try-coloring-empty-title {
  margin: 0;
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.try-coloring-empty-text {
  margin: 0;
  max-width: 28rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.try-coloring-picker {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.try-coloring-picker-item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 0.375rem;
  width: 5.5rem;
  padding: 0.5rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.8);
  border-radius: 0.875rem;
  background: oklch(1 0 0 / 0.75);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.try-coloring-picker-item img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #fff;
}

.try-coloring-picker-item.is-active {
  border-color: oklch(0.62 0.16 35 / 0.45);
  box-shadow: 0 0 0 2px oklch(0.62 0.16 35 / 0.15);
  color: var(--foreground);
}

/* Mobile: compact hero */
@media (max-width: 767px) {
  .try-coloring-page.is-colouring-active {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .try-coloring-page.is-colouring-active .page-hero,
  .try-coloring-page.is-colouring-active .try-coloring-upload,
  .try-coloring-page.is-colouring-active .try-coloring-picker-heading,
  .try-coloring-page.is-colouring-active .try-coloring-picker,
  .try-coloring-page.is-colouring-active .try-coloring-cta {
    display: none !important;
  }

  body.try-colouring-active .storefront-content > footer {
    display: none;
  }

  .try-coloring-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.75rem;
    min-height: 3rem;
    padding: 0 1rem;
    border: 1px solid oklch(0.62 0.16 35 / 0.35);
    border-radius: 9999px;
    background: oklch(0.62 0.16 35 / 0.12);
    color: var(--foreground);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px oklch(0.62 0.16 35 / 0.15);
    -webkit-tap-highlight-color: transparent;
  }

  .try-coloring-jump[hidden] {
    display: none !important;
  }

  .try-coloring-upload-details {
    margin: 0;
  }

  .try-coloring-upload-details-summary {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted-foreground);
    cursor: pointer;
    list-style: none;
  }

  .try-coloring-upload-details-summary::-webkit-details-marker {
    display: none;
  }

  .try-coloring-upload-details[open] .try-coloring-upload-guidelines {
    margin-top: 0.75rem;
  }

  .try-coloring-page .page-hero {
    margin-bottom: 0.75rem;
  }

  .try-coloring-page .page-hero h1 {
    font-size: 1.375rem;
  }

  .try-coloring-page .page-hero-desc {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .try-coloring-page .page-hero-badge {
    font-size: 0.6875rem;
  }
}

.coloring-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .coloring-workspace {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .coloring-workspace {
    padding: 0.875rem 1rem 1rem;
  }
}

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

.coloring-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
}

.coloring-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coloring-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid oklch(0.9 0.02 95);
  border-radius: 0.625rem;
  background: #fff;
  color: var(--muted-foreground);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.coloring-icon-btn[aria-pressed="true"] {
  border-color: oklch(0.62 0.16 35 / 0.35);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--foreground);
}

.coloring-btn-upload-desktop {
  display: none;
}

.coloring-btn-upload-mobile {
  display: none;
}

.try-coloring-upload-picker-host {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.coloring-expand-control {
  display: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid oklch(0.62 0.16 35 / 0.45);
  border-radius: 9999px;
  background: oklch(0.62 0.16 35 / 0.14);
  color: var(--foreground);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px oklch(0.62 0.16 35 / 0.18);
}

.coloring-expand-control[aria-pressed="true"] {
  background: oklch(0.62 0.16 35 / 0.24);
  border-color: oklch(0.62 0.16 35 / 0.6);
}

.coloring-expand-fab {
  display: none;
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 6;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1rem 0 0.75rem;
  border: none;
  border-radius: 9999px;
  background: oklch(0.55 0.18 35);
  color: oklch(0.99 0.01 95);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px oklch(0.45 0.16 35 / 0.45);
  -webkit-tap-highlight-color: transparent;
}

.coloring-expand-fab[aria-pressed="true"] {
  background: oklch(0.42 0.14 35);
}

.coloring-expand-fab-label {
  white-space: nowrap;
}

.coloring-page-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.coloring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.coloring-share-wrap {
  position: relative;
}

.coloring-btn-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.0625rem;
  line-height: 1.1;
}

.coloring-btn-kbd {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.coloring-btn-kbd kbd,
.coloring-top-shortcut-item kbd {
  display: inline-flex;
  min-width: 1.125rem;
  justify-content: center;
  padding: 0.0625rem 0.25rem;
  border: 1px solid oklch(0.88 0.02 95);
  border-radius: 0.25rem;
  background: oklch(0.98 0.008 95);
  font: inherit;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted-foreground);
}

.coloring-top-shortcuts {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  padding: 0.3125rem 0.625rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  border-radius: 0.625rem;
  background: oklch(0.99 0.005 95);
}

.coloring-top-shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.coloring-top-shortcut-item > span:last-child {
  color: var(--foreground);
}

.coloring-share-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 40;
  width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.625rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.9);
  border-radius: 0.875rem;
  background: oklch(0.995 0.004 95);
  box-shadow:
    0 10px 28px oklch(0.2 0.02 45 / 0.12),
    0 2px 8px oklch(0.2 0.02 45 / 0.06);
}

.coloring-share-menu[hidden] {
  display: none !important;
}

.coloring-share-menu-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.coloring-share-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
}

.coloring-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3125rem;
  min-width: 0;
  padding: 0.375rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  background: transparent;
  font: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.coloring-share-btn:hover {
  background: oklch(0.96 0.015 95);
}

.coloring-share-btn:focus-visible {
  outline: 2px solid oklch(0.62 0.16 35 / 0.55);
  outline-offset: 2px;
}

.coloring-share-btn[hidden] {
  display: none !important;
}

.coloring-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9999px;
  color: #fff;
}

.coloring-share-icon--native {
  background: oklch(0.55 0.12 250);
}

.coloring-share-icon--facebook {
  background: #1877f2;
}

.coloring-share-icon--x {
  background: #0f1419;
}

.coloring-share-icon--whatsapp {
  background: #25d366;
}

.coloring-share-icon--pinterest {
  background: #e60023;
}

.coloring-share-icon--email {
  background: oklch(0.52 0.04 250);
}

.coloring-share-icon--link {
  background: oklch(0.62 0.16 35);
}

.coloring-share-icon--image {
  background: oklch(0.48 0.12 300);
}

.coloring-stage {
  flex: 1;
  min-height: 0;
}

.coloring-dock {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.625rem;
}

.coloring-dock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.coloring-recent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
  -webkit-overflow-scrolling: touch;
}

.coloring-recent[hidden] {
  display: none !important;
}

.coloring-recent::before {
  content: 'Recent';
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.coloring-palette-strip {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.125rem;
}

.coloring-palette {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

@media (min-width: 768px) {
  .coloring-palette {
    display: flex;
    flex-direction: column;
  }
}

.coloring-tool-group {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  border-radius: 0.75rem;
  background: oklch(0.99 0.005 95);
  gap: 0.125rem;
}

.coloring-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.4375rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.coloring-tool-btn:hover {
  background: oklch(0.96 0.015 95);
  color: var(--foreground);
}

.coloring-tool-btn.is-active {
  border-color: oklch(0.62 0.16 35 / 0.3);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--foreground);
}

.coloring-tool-btn.is-return-tool {
  border-color: oklch(0.62 0.16 35 / 0.22);
  box-shadow: inset 0 0 0 1px oklch(0.62 0.16 35 / 0.12);
  color: var(--foreground);
}

.coloring-tool-btn[data-tool="move"].is-active {
  border-color: oklch(0.55 0.12 250 / 0.35);
  background: oklch(0.55 0.12 250 / 0.12);
}

.coloring-tool-btn:focus-visible,
.coloring-zoom-btn:focus-visible,
.coloring-size-btn:focus-visible,
.coloring-swatch:focus-visible,
.coloring-rgb-channel input[type="range"]:focus-visible,
.coloring-rgb-num:focus-visible,
.coloring-rgb-hex-input:focus-visible,
.coloring-rgb-native:focus-visible,
.coloring-rgb-preview:focus-visible,
.coloring-icon-btn:focus-visible {
  outline: 2px solid oklch(0.62 0.16 35 / 0.55);
  outline-offset: 2px;
}

.coloring-tool-label {
  display: none;
}

@media (min-width: 768px) {
  .coloring-tool-label {
    display: inline;
  }

  .coloring-tool-btn {
    min-width: auto;
    padding: 0.4375rem 0.75rem;
  }
}

.coloring-brush-sizes {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.coloring-brush-sizes[hidden] {
  display: none !important;
}

.coloring-brush-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.coloring-size-btn {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 1px solid oklch(0.9 0.02 95);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
}

.coloring-size-btn.is-active {
  border-color: oklch(0.62 0.16 35 / 0.35);
  background: oklch(0.62 0.16 35 / 0.1);
  color: var(--foreground);
}

.coloring-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  border-radius: 0.75rem;
  background: oklch(0.99 0.005 95);
}

.coloring-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
}

.coloring-zoom-btn:hover {
  background: oklch(0.96 0.015 95);
  color: var(--foreground);
}

.coloring-zoom-label {
  min-width: 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.coloring-zoom-reset {
  padding: 0 0.625rem;
}

.coloring-viewport {
  position: relative;
  width: 100%;
  min-height: 12rem;
  max-height: min(78vh, 900px);
  overflow: hidden;
  border-radius: 0.625rem;
  background: oklch(0.96 0.01 95);
  touch-action: none;
  outline: none;
}

@media (min-width: 768px) {
  .coloring-canvas-wrap {
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .coloring-viewport {
    width: min(var(--coloring-frame-w, 100%), 100%);
    height: var(--coloring-frame-h, auto);
    min-height: 0;
    max-height: none;
    margin-inline: auto;
  }

  .coloring-viewport-inner {
    min-height: 0;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
  }

  .coloring-canvas {
    /* Keep inline width/height from coloring.js — !important was forcing bitmap size (2× on Retina) */
    max-width: 100%;
    max-height: 100%;
  }
}

.coloring-viewport.tool-fill,
.coloring-viewport.tool-eraser {
  cursor: crosshair;
}

.coloring-viewport.tool-brush,
.coloring-viewport.tool-blend {
  cursor: crosshair;
}

.coloring-viewport.tool-move {
  cursor: grab;
}

.coloring-viewport.tool-move:active {
  cursor: grabbing;
}

.coloring-viewport-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 0.5rem;
  transform-origin: center center;
  will-change: transform;
}

.coloring-canvas-stage {
  position: relative;
  flex-shrink: 0;
}

.coloring-swatch,
.coloring-swatch-recent {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid oklch(0.9 0.02 95);
  border-radius: 9999px;
  background: var(--swatch-color);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.coloring-swatch:hover {
  transform: scale(1.06);
}

.coloring-swatch.is-active,
.coloring-swatch-recent.is-active {
  box-shadow:
    inset 0 0 0 1px oklch(0.2 0.02 45 / 0.12),
    0 0 0 3px oklch(0.62 0.16 35 / 0.25);
  transform: scale(1.08);
}

.coloring-recent-palette-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.375rem;
}

.coloring-recent-palette,
.coloring-recent-palette--sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.coloring-recent-palette--sidebar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.coloring-recent-palette--sidebar .coloring-swatch-recent {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0.5rem;
}

.coloring-recent-palette .coloring-swatch-recent {
  width: 1.75rem;
  height: 1.75rem;
}

.coloring-replace-colour {
  margin-top: 0.5rem;
  padding: 0.625rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  border-radius: 0.75rem;
  background: oklch(0.995 0.004 95);
}

.coloring-replace-hint {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.coloring-replace-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.coloring-replace-end {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.coloring-replace-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.coloring-replace-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(0.88 0.02 95);
  box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
}

.coloring-replace-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.coloring-replace-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.coloring-replace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.coloring-replace-actions .btn {
  flex: 1 1 auto;
}

.coloring-workspace.is-picking-replace-source .coloring-viewport {
  cursor: crosshair;
}

.coloring-workspace.is-picking-replace-source .coloring-viewport * {
  cursor: crosshair;
}

.coloring-rgb-picker {
  padding: 0.5rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.85);
  border-radius: 0.75rem;
  background: oklch(0.995 0.004 95);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.coloring-rgb-picker.is-active {
  border-color: oklch(0.62 0.16 35 / 0.35);
  box-shadow: inset 0 0 0 1px oklch(0.62 0.16 35 / 0.12);
}

.coloring-rgb-preview-row,
.coloring-rgb-picker-top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.coloring-rgb-picker-top {
  flex-wrap: wrap;
}

.coloring-rgb-native-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex-shrink: 0;
}

.coloring-rgb-native-label,
.coloring-rgb-hex-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.coloring-rgb-native {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid oklch(0.9 0.02 95);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.coloring-rgb-native::-webkit-color-swatch-wrapper {
  padding: 0.125rem;
}

.coloring-rgb-native::-webkit-color-swatch {
  border: none;
  border-radius: 0.3125rem;
}

.coloring-rgb-native::-moz-color-swatch {
  border: none;
  border-radius: 0.3125rem;
}

.coloring-rgb-hex-field {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 6.5rem;
}

.coloring-rgb-hex-input {
  width: 100%;
  padding: 0.4375rem 0.5rem;
  border: 1px solid oklch(0.88 0.02 95);
  border-radius: 0.5rem;
  background: oklch(1 0 0);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

.coloring-rgb-hex-input:focus-visible {
  outline: 2px solid oklch(0.62 0.16 35 / 0.35);
  outline-offset: 1px;
}

.coloring-rgb-preview {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid oklch(0.9 0.02 95);
  border-radius: 9999px;
  background: #ff1744;
  box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
  cursor: pointer;
}

.coloring-rgb-hex {
  margin: 0.375rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.coloring-rgb-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.coloring-rgb-channel {
  display: grid;
  grid-template-columns: 1.125rem 1fr 3.25rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.coloring-rgb-label {
  text-align: center;
}

.coloring-rgb-num {
  width: 100%;
  padding: 0.25rem 0.3125rem;
  border: 1px solid oklch(0.88 0.02 95);
  border-radius: 0.375rem;
  background: oklch(1 0 0);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--foreground);
  -moz-appearance: textfield;
}

.coloring-rgb-num::-webkit-outer-spin-button,
.coloring-rgb-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.coloring-rgb-num:focus-visible {
  outline: 2px solid oklch(0.62 0.16 35 / 0.35);
  outline-offset: 1px;
}

.coloring-rgb-channel input[type="range"] {
  width: 100%;
  height: 0.375rem;
  margin: 0;
  border-radius: 9999px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: oklch(0.92 0.02 95);
}

.coloring-rgb-channel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid oklch(1 0 0);
  border-radius: 9999px;
  box-shadow: 0 1px 3px oklch(0.2 0.02 45 / 0.2);
  cursor: pointer;
}

.coloring-rgb-channel input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 2px solid oklch(1 0 0);
  border-radius: 9999px;
  box-shadow: 0 1px 3px oklch(0.2 0.02 45 / 0.2);
  cursor: pointer;
}

.coloring-rgb-channel[data-channel="r"] input[type="range"] {
  accent-color: #ff1744;
  background: linear-gradient(to right, #000, #f00);
}

.coloring-rgb-channel[data-channel="g"] input[type="range"] {
  accent-color: #00e676;
  background: linear-gradient(to right, #000, #0f0);
}

.coloring-rgb-channel[data-channel="b"] input[type="range"] {
  accent-color: #2962ff;
  background: linear-gradient(to right, #000, #00f);
}

.coloring-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: oklch(0.98 0.01 95);
  border: 1px solid oklch(0.9 0.02 95 / 0.8);
  position: relative;
}

@media (min-width: 1024px) {
  .coloring-canvas-wrap {
    padding: 0.375rem;
  }
}

.coloring-workspace.is-loading .coloring-canvas {
  opacity: 0.35;
}

.coloring-workspace.did-fill .coloring-canvas-stage {
  animation: coloring-fill-flash 0.18s ease;
}

@keyframes coloring-fill-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.008); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .coloring-workspace.did-fill .coloring-canvas-stage {
    animation: none;
  }

  .coloring-loading-spinner {
    animation: none;
  }
}

.coloring-loading,
.coloring-filling {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  background: oklch(1 0 0 / 0.72);
}

.coloring-loading[hidden],
.coloring-filling[hidden] {
  display: none !important;
}

.coloring-filling {
  background: oklch(1 0 0 / 0.45);
  pointer-events: none;
}

.coloring-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid oklch(0.9 0.02 95);
  border-top-color: var(--primary);
  border-radius: 9999px;
  animation: coloring-spin 0.75s linear infinite;
}

@keyframes coloring-spin {
  to { transform: rotate(360deg); }
}

.coloring-loading-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.coloring-pack-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px dashed oklch(0.62 0.16 35 / 0.25);
  background: oklch(0.99 0.02 85 / 0.65);
}

.coloring-pack-cta[hidden] {
  display: none !important;
}

.coloring-pack-cta p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.coloring-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 12px oklch(0.2 0.02 45 / 0.08);
  touch-action: none;
  cursor: crosshair;
}

@media (min-width: 1024px) {
  .coloring-canvas {
    box-shadow: 0 4px 24px oklch(0.2 0.02 45 / 0.08);
  }
}

.coloring-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  text-align: center;
}

.coloring-hint--mobile {
  display: none;
  margin: 0.375rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.try-coloring-cta {
  margin-top: 2.5rem;
}

.try-coloring-cta .cta-band {
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.6);
  background: linear-gradient(135deg, oklch(0.99 0.02 85), oklch(1 0 0 / 0.92));
  text-align: center;
}

.try-coloring-cta .cta-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading), var(--font-sans), sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
}

.try-coloring-cta .cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
}

/* Mobile dock — sticky bottom toolbar */
@media (max-width: 767px) {
  .try-coloring-page {
    padding-bottom: 0.5rem;
  }

  .coloring-workspace {
    padding: 0.625rem 0.625rem 0;
  }

  .coloring-viewport {
    width: min(var(--coloring-frame-w, 100%), 100%);
    height: var(--coloring-frame-h, auto);
    max-height: none;
    min-height: 10rem;
    margin-inline: auto;
  }

  .coloring-viewport-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .coloring-dock {
    display: none !important;
  }

  .coloring-quick-palette-wrap,
  .coloring-progress {
    display: none !important;
  }

  .coloring-mobile-trigger-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.625rem calc(0.4375rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: oklch(0.99 0.005 95 / 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px oklch(0.2 0.02 45 / 0.08);
  }

  .coloring-mobile-trigger-bar[hidden] {
    display: none !important;
  }

  .coloring-mobile-trigger-tools {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.375rem 1rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 9999px;
    background: oklch(1 0 0);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .coloring-mobile-trigger-tool-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
  }

  .coloring-mobile-trigger-tool-icon {
    display: none;
    align-items: center;
    justify-content: center;
  }

  .coloring-mobile-trigger-tool-icon.is-active {
    display: inline-flex;
  }

  .coloring-mobile-trigger-colour-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    border: 2px solid oklch(0.88 0.02 95);
    box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
    flex-shrink: 0;
  }

  .coloring-mobile-trigger-undo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 0.625rem;
    background: oklch(1 0 0);
    color: var(--foreground);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .coloring-mobile-trigger-undo:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }

  .coloring-mobile-studio {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    background: oklch(0.995 0.004 95);
  }

  .coloring-mobile-studio[hidden] {
    display: none !important;
  }

  .coloring-mobile-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem calc(0.5rem + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: oklch(0.99 0.005 95);
  }

  .coloring-mobile-studio-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
  }

  .coloring-mobile-studio-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
  }

  .coloring-mobile-studio-section + .coloring-mobile-studio-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid oklch(0.92 0.02 95 / 0.85);
  }

  .coloring-mobile-studio-heading {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .coloring-mobile-studio-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .coloring-mobile-studio-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    min-height: 4.25rem;
    padding: 0.5rem 0.375rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 0.75rem;
    background: oklch(1 0 0);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .coloring-mobile-studio-tool.is-active {
    border-color: oklch(0.62 0.16 35 / 0.55);
    background: oklch(0.62 0.16 35 / 0.1);
    box-shadow: 0 0 0 2px oklch(0.62 0.16 35 / 0.12);
  }

  .coloring-mobile-studio-current {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
  }

  .coloring-mobile-studio-current-swatch {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 2px solid oklch(0.88 0.02 95);
    box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
  }

  .coloring-mobile-studio-current-hex {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .coloring-rgb-picker--mobile-studio .coloring-rgb-channel input[type="range"] {
    flex: 1;
    min-width: 0;
  }

  .coloring-mobile-studio-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: oklch(0.99 0.005 95);
  }

  .coloring-mobile-studio-done-btn {
    width: 100%;
    min-height: 3rem;
    font-size: 0.9375rem;
    font-weight: 700;
  }

  body.coloring-studio-open {
    overflow: hidden;
  }

  .coloring-canvas-overlays .coloring-color-chip {
    display: none;
  }

  .coloring-workspace {
    padding-bottom: calc(var(--coloring-dock-offset, 3.25rem) + env(safe-area-inset-bottom, 0px));
  }

  .coloring-dock-row {
    flex-direction: column;
    align-items: stretch;
  }

  .coloring-tool-group {
    justify-content: space-between;
    width: 100%;
    gap: 0.375rem;
  }

  .coloring-tool-group .coloring-tool-btn--advanced {
    display: none;
  }

  .coloring-tool-btn {
    flex: 1;
    min-height: 2.75rem;
  }

  .coloring-tool-group:not(.coloring-tool-group--more) .coloring-tool-label {
    display: inline;
    font-size: 0.625rem;
    font-weight: 700;
  }

  .coloring-zoom {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .coloring-btn-label,
  .coloring-btn-text {
    display: none;
  }

  .coloring-btn-undo--mobile .coloring-btn-label {
    display: none;
  }

  .coloring-actions .btn {
    min-width: 2.75rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .coloring-top-bar {
    margin-bottom: 0.375rem;
  }

  .coloring-expand-control {
    display: inline-flex;
  }

  .coloring-btn-upload-mobile {
    display: inline-flex;
    flex-shrink: 0;
  }

  .try-coloring-upload-label-hint {
    display: none;
  }

  .coloring-top-actions {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .coloring-expand-control {
    margin-right: auto;
  }

  .coloring-quick-palette-label {
    display: none;
  }

  .coloring-quick-palette {
    display: none;
    flex: 1;
    gap: 0.375rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.125rem 0;
  }

  .coloring-quick-palette::-webkit-scrollbar {
    display: none;
  }

  .coloring-swatch--quick {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
  }

  .coloring-quick-palette-more {
    flex-shrink: 0;
    min-height: 2rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 9999px;
    background: oklch(0.99 0.005 95);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
    white-space: nowrap;
  }

  .coloring-mobile-fabs {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: flex;
    gap: 0.5rem;
    pointer-events: none;
  }

  .coloring-mobile-fab {
    flex: 1;
    min-height: 2.75rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 9999px;
    background: oklch(0.99 0.005 95 / 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px oklch(0.2 0.02 45 / 0.12);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
    pointer-events: auto;
  }

  .coloring-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: flex-end;
  }

  .coloring-mobile-sheet[hidden] {
    display: none !important;
  }

  .coloring-mobile-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: oklch(0.15 0.02 45 / 0.35);
  }

  .coloring-mobile-sheet-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(70dvh, 28rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 1rem 1rem 0 0;
    background: oklch(0.995 0.004 95);
    box-shadow: 0 -8px 32px oklch(0.2 0.02 45 / 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .coloring-mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid oklch(0.9 0.02 95 / 0.85);
  }

  .coloring-mobile-sheet-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
  }

  .coloring-mobile-sheet-close {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted-foreground);
    cursor: pointer;
  }

  .coloring-mobile-sheet-body {
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
  }

  .coloring-mobile-sheet-body .coloring-dock-panel {
    display: block !important;
  }

  .coloring-mobile-sheet-body .coloring-tool-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .coloring-mobile-sheet-body .coloring-tool-btn--advanced {
    display: inline-flex;
  }

  .coloring-mobile-sheet-body .coloring-tool-options,
  .coloring-mobile-sheet-body .coloring-dock-section:has(.coloring-zoom) {
    display: block !important;
  }

  .coloring-mobile-sheet-body .coloring-dock-section:first-child .coloring-dock-heading {
    display: block;
  }

  .coloring-mobile-sheet-body .coloring-tool-group--more {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .coloring-mobile-trigger-bar,
  .coloring-mobile-studio {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .coloring-quick-palette-wrap {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .coloring-expand-control {
    display: inline-flex;
  }

  .coloring-dock {
    position: fixed !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    margin-top: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: oklch(0.99 0.005 95 / 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px oklch(0.2 0.02 45 / 0.08);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .coloring-workspace {
    padding-bottom: calc(var(--coloring-dock-offset, 6rem) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1024px) {
  .coloring-expand-control,
  .coloring-expand-fab {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .coloring-btn-label {
    display: inline;
  }
}

/* Focus mode — immersive colouring */
body.coloring-focus-mode {
  overflow: hidden;
}

body.coloring-focus-mode .storefront-content > header,
body.coloring-focus-mode .storefront-content > footer,
body.coloring-focus-mode .try-coloring-page .page-hero,
body.coloring-focus-mode .try-coloring-cta,
body.coloring-focus-mode .try-coloring-picker,
body.coloring-focus-mode .coloring-pack-cta,
body.coloring-focus-mode .storefront-page .storefront-content::before {
  display: none !important;
}

body.coloring-focus-mode .try-coloring-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

body.coloring-focus-mode .try-coloring-main {
  padding: 0 !important;
}

body.coloring-focus-mode .coloring-workspace {
  min-height: 100dvh;
  padding-bottom: calc(var(--coloring-dock-offset, 3.25rem) + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.coloring-focus-mode .coloring-viewport {
  max-height: none;
  flex: 1;
  border-radius: 0.375rem;
}

body.coloring-focus-mode .coloring-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.coloring-focus-mode .coloring-canvas-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0.25rem;
}

body.coloring-focus-mode .coloring-hint {
  font-size: 0.6875rem;
  padding: 0 0.5rem;
}

body.coloring-immersive-mode .coloring-dock,
body.coloring-immersive-mode .coloring-quick-palette-wrap,
body.coloring-focus-mode .coloring-dock,
body.coloring-landscape-mobile .coloring-dock {
  display: none !important;
}

body.coloring-immersive-mode .coloring-mobile-trigger-bar,
body.coloring-focus-mode .coloring-mobile-trigger-bar,
body.coloring-landscape-mobile .coloring-mobile-trigger-bar {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.coloring-immersive-mode .coloring-page-title {
  display: none !important;
}

@media (max-width: 1023px) {
  body.coloring-immersive-mode .try-coloring-upload,
  body.coloring-focus-mode .try-coloring-upload {
    display: none !important;
  }
}

body.coloring-immersive-mode .coloring-workspace {
  padding: 0.375rem 0.5rem calc(var(--coloring-dock-offset, 5.5rem) + env(safe-area-inset-bottom, 0px));
}

body.coloring-immersive-mode .coloring-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.coloring-immersive-mode .coloring-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.coloring-immersive-mode .coloring-canvas-wrap {
  flex: 1;
  min-height: 0;
}

body.coloring-immersive-mode .coloring-viewport {
  flex: 1;
  max-height: none;
  min-height: 0;
}

body.coloring-immersive-mode .coloring-top-bar {
  margin-bottom: 0.25rem;
}

body.coloring-immersive-mode .coloring-hint--mobile {
  display: block;
}

/* ── Desktop studio layout (1024px+) ── */
@media (min-width: 1024px) {
  .try-coloring-main {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 4.25rem);
  }

  .try-coloring-page:has(.coloring-workspace) {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.625rem 1.25rem 0.75rem;
  }

  .try-coloring-page:has(.coloring-workspace) .page-hero,
  .try-coloring-page:has(.coloring-workspace) .try-coloring-cta,
  .try-coloring-page:has(.coloring-workspace:not([hidden])) .try-coloring-picker-heading,
  .try-coloring-page:has(.coloring-workspace:not([hidden])) .try-coloring-picker,
  .try-coloring-page:has(.coloring-workspace:not([hidden])) .try-coloring-jump {
    display: none;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload {
    flex-shrink: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem 1rem;
    margin-bottom: 0.5rem;
    padding: 0.625rem 1rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-header {
    flex: 1 1 14rem;
    min-width: 0;
    align-items: center;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-icon {
    width: 2.125rem;
    height: 2.125rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-title {
    margin: 0;
    font-size: 0.9375rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-lead {
    display: none;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-details {
    flex: 0 0 auto;
    order: 3;
    width: 100%;
    margin: 0;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-details-summary {
    font-size: 0.75rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-drop {
    flex: 0 1 16rem;
    min-width: 12rem;
    margin-left: auto;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-label {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-label-hint {
    font-size: 0.75rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-filename {
    width: 100%;
    order: 4;
    margin: 0;
    font-size: 0.75rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-upload-error {
    width: 100%;
    order: 5;
    margin: 0;
  }

  .try-coloring-page:has(.coloring-workspace) {
    min-height: calc(100dvh - var(--site-header-h, 4.25rem));
    display: flex;
    flex-direction: column;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-workspace-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-picker {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-picker-item {
    width: 4.75rem;
    padding: 0.375rem;
    font-size: 0.625rem;
  }

  .try-coloring-page:has(.coloring-workspace) .try-coloring-picker-item img {
    width: 3.75rem;
    height: 3.75rem;
  }

  body:has(.try-coloring-page .coloring-workspace) .storefront-content > footer {
    display: none;
  }

  .coloring-workspace {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 16.5rem minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "topbar topbar"
      "sidebar stage"
      "pack pack";
    gap: 0.625rem 1rem;
    padding: 0.75rem 1rem;
    overflow: hidden;
  }

  .coloring-btn-upload-desktop {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
  }

  .coloring-top-bar {
    grid-area: topbar;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid oklch(0.9 0.02 95 / 0.75);
  }

  .coloring-top-bar-main {
    flex: 1;
    min-width: 0;
  }

  .coloring-page-title {
    font-size: 1.0625rem;
  }

  .coloring-hint--inline {
    display: block;
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    text-align: left;
    color: var(--muted-foreground);
  }

  .coloring-hint--below {
    display: none;
  }

  .coloring-body {
    display: contents;
  }

  .coloring-dock {
    display: contents;
  }

  .coloring-dock-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  .coloring-dock-heading {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .coloring-toolbar-history {
    display: none;
  }

  .coloring-toolbar-layout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .coloring-toolbar-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.875rem;
  }

  .coloring-toolbar-row--secondary {
    padding-top: 0.5rem;
    border-top: 1px solid oklch(0.9 0.02 95 / 0.75);
  }

  .coloring-toolbar-row--secondary > .coloring-dock-section + .coloring-dock-section:not([hidden]) {
    padding-left: 0.625rem;
    border-left: 1px solid oklch(0.9 0.02 95 / 0.85);
  }

  .coloring-workspace.has-desktop-fixed-toolbar .coloring-dock-panel[data-dock-panel="tools"],
  .coloring-workspace .coloring-dock-panel[data-dock-panel="tools"] {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 100 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  .coloring-workspace.has-desktop-fixed-toolbar .coloring-dock-panel[data-dock-panel="tools"] {
    margin: 0;
    width: max-content;
    max-width: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0.75rem 0.625rem;
    border: 1px solid oklch(0.9 0.02 95 / 0.85);
    border-bottom: none;
    border-radius: 0.875rem 0.875rem 0 0;
    background: oklch(0.99 0.005 95 / 0.98);
    box-shadow: 0 -6px 24px oklch(0.2 0.02 45 / 0.1);
    overflow: visible;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .coloring-workspace.has-desktop-fixed-toolbar .coloring-dock-panel[data-dock-panel="tools"]::-webkit-scrollbar {
    display: none;
  }

  .coloring-shortcuts-hint {
    display: none !important;
  }

  .coloring-actions .coloring-btn-text {
    display: inline-flex;
  }

  .coloring-actions .coloring-btn-label {
    display: inline;
  }

  .coloring-btn-kbd {
    display: inline-flex;
  }

  .coloring-top-shortcuts {
    display: inline-flex;
  }

  .coloring-actions .btn {
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.75rem;
  }

  .coloring-top-actions .coloring-btn-undo,
  .coloring-top-actions .coloring-btn-redo {
    display: none !important;
  }

  .coloring-toolbar-history {
    display: flex;
    flex-shrink: 0;
    padding-left: 0.625rem;
    border-left: 1px solid oklch(0.9 0.02 95 / 0.85);
  }

  .coloring-tool-group--history {
    display: flex;
    flex-direction: row;
    gap: 0.375rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-btn--history {
    flex-direction: column;
    min-width: 3.75rem;
    min-height: 3rem;
    padding: 0.3125rem 0.4375rem;
    gap: 0.0625rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-btn--history:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-btn--history:disabled:hover {
    background: transparent;
    color: var(--muted-foreground);
  }

  .coloring-tool-kbd {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
  }

  .coloring-tool-kbd kbd {
    display: inline-flex;
    min-width: 1rem;
    justify-content: center;
    padding: 0.0625rem 0.25rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 0.25rem;
    background: oklch(0.98 0.008 95);
    font: inherit;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--muted-foreground);
  }

  .coloring-dock-panel[data-dock-panel="tools"] {
    display: flex !important;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-dock-section {
    flex: 0 0 auto;
    min-width: 0;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-dock-section:first-child .coloring-dock-heading {
    display: none;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.375rem;
    width: auto;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-btn {
    flex-direction: column;
    min-width: 3.75rem;
    min-height: 3rem;
    padding: 0.3125rem 0.4375rem;
    font-size: 0.6875rem;
    gap: 0.125rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-btn--advanced {
    display: inline-flex;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-label {
    display: inline;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-row--secondary .coloring-tool-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 8.5rem;
    padding-left: 0;
    border-left: none;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-options[hidden],
  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-options-extra[hidden] {
    display: none !important;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-options-extra {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-options-extra .coloring-dock-heading {
    margin-top: 0.125rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-size-row {
    display: flex;
    gap: 0.25rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-size-btn {
    width: 2rem;
    min-height: 1.75rem;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-colors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-left: 0.75rem;
    border-left: 1px solid oklch(0.9 0.02 95 / 0.85);
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.3125rem 0.5625rem 0.3125rem 0.3125rem;
    border: 1px solid oklch(0.9 0.02 95 / 0.9);
    border-radius: 9999px;
    background: oklch(0.995 0.004 95);
    box-shadow: 0 1px 4px oklch(0.2 0.02 45 / 0.06);
    pointer-events: none;
    user-select: none;
    cursor: default;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-swatch {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 9999px;
    border: 1px solid oklch(0.2 0.02 45 / 0.12);
    background: #ff1744;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-hex {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--foreground);
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-picker-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 3.75rem;
    min-height: 3rem;
    padding: 0.375rem 0.5rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 0.625rem;
    background: oklch(1 0 0);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--foreground);
    cursor: pointer;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-picker-btn:hover {
    border-color: oklch(0.62 0.16 35 / 0.35);
    background: oklch(0.62 0.16 35 / 0.06);
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-toolbar-color-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-zoom {
    width: auto;
    margin-left: 0;
    flex-shrink: 0;
    padding-left: 0;
    border-left: none;
  }

  .coloring-canvas-overlays .coloring-color-chip {
    display: none;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-view-controls {
    display: none !important;
  }

  .coloring-dock-panel[data-dock-panel="colours"],
  .coloring-dock-panel[data-dock-panel="colours"][hidden] {
    grid-area: sidebar;
    display: flex !important;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 0;
    margin: 0;
    padding: 0.75rem;
    border-radius: 0.875rem;
    border: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: oklch(0.99 0.005 95);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .coloring-dock-panel[data-dock-panel="more"] {
    display: none !important;
  }

  .coloring-sidebar-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid oklch(0.9 0.02 95 / 0.85);
    background: linear-gradient(135deg, oklch(0.995 0.004 95), oklch(0.98 0.01 95));
    box-shadow: 0 2px 8px oklch(0.2 0.02 45 / 0.05);
  }

  .coloring-sidebar-current-swatch {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    border: 2px solid oklch(0.88 0.02 95);
    box-shadow: inset 0 0 0 1px oklch(0.2 0.02 45 / 0.08);
  }

  .coloring-sidebar-current-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
  }

  .coloring-sidebar-current-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .coloring-sidebar-current-hex {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  .coloring-sidebar-quick {
    flex-shrink: 0;
  }

  .coloring-quick-palette--sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .coloring-quick-palette--sidebar .coloring-swatch--quick {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0.5rem;
  }

  .coloring-dock-colours {
    flex: 1;
    min-height: 0;
  }

  .coloring-palette-strip {
    overflow: visible;
  }

  .coloring-palette {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.5rem;
  }

  .coloring-palette-group-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .coloring-palette-group-grid .coloring-swatch {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    box-shadow:
      inset 0 0 0 1px oklch(0.2 0.02 45 / 0.1),
      0 1px 2px oklch(0.2 0.02 45 / 0.06);
  }

  .coloring-palette-group-label {
    font-size: 0.6875rem;
    margin-bottom: 0.375rem;
  }

  .coloring-stage {
    grid-area: stage;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }

  .coloring-canvas-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.375rem;
    border: none;
    background: transparent;
  }

  .coloring-viewport {
    flex: 1;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
  }

  .coloring-pack-cta {
    grid-area: pack;
    margin: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .coloring-pack-cta p {
    min-width: 0;
    font-size: 0.75rem;
  }
}

@media (max-width: 1023px) {
  .coloring-hint--inline {
    display: none;
  }

  .coloring-sidebar-current,
  .coloring-sidebar-quick {
    display: none !important;
  }
}

/* ── Coloring enhancements ── */
.coloring-share-tip {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}

.coloring-share-icon--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.coloring-overflow-wrap {
  position: relative;
  display: none;
}

.coloring-overflow-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 40;
  min-width: 10.5rem;
  padding: 0.375rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.9);
  border-radius: 0.75rem;
  background: oklch(0.995 0.004 95);
  box-shadow: 0 8px 24px oklch(0.2 0.02 45 / 0.12);
}

.coloring-overflow-menu[hidden] {
  display: none !important;
}

.coloring-overflow-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
}

.coloring-overflow-item:hover {
  background: oklch(0.96 0.015 95);
}

.coloring-overflow-item[hidden] {
  display: none !important;
}

.coloring-btn-clear--desktop {
  display: none;
}

.coloring-dock-tabs {
  display: none;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.625rem;
  background: oklch(0.96 0.012 95);
}

.coloring-dock-tab {
  flex: 1;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
}

.coloring-dock-tab.is-active {
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 1px 3px oklch(0.2 0.02 45 / 0.08);
}

.coloring-dock-panel[hidden] {
  display: none !important;
}

.coloring-palette-group {
  margin-bottom: 0.5rem;
}

.coloring-palette-group-label {
  margin: 0 0 0.3125rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.coloring-palette-group-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.375rem;
}

.coloring-palette-group-grid .coloring-swatch {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.coloring-rgb-details {
  margin-top: 0.5rem;
}

.coloring-rgb-details[open] .coloring-rgb-summary {
  margin-bottom: 0.375rem;
}

.coloring-rgb-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.coloring-rgb-summary::-webkit-details-marker {
  display: none;
}

.coloring-rgb-details .coloring-rgb-picker {
  margin-top: 0;
}

.coloring-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.coloring-slider-row input[type="range"] {
  width: 100%;
  accent-color: oklch(0.62 0.16 35);
}

.coloring-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

.coloring-view-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coloring-before-after-btn[aria-pressed="true"] {
  border-color: oklch(0.62 0.16 35 / 0.35);
  background: oklch(0.62 0.16 35 / 0.1);
}

.coloring-more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.coloring-shortcuts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.coloring-shortcuts-list li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.1875rem 0;
}

.coloring-shortcuts-list kbd {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0.125rem 0.3125rem;
  border: 1px solid oklch(0.88 0.02 95);
  border-radius: 0.3125rem;
  background: oklch(0.98 0.008 95);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--foreground);
}

.coloring-canvas-overlays {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.coloring-toolbar-colors {
  display: none;
}

.coloring-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.3125rem 0.5625rem 0.3125rem 0.3125rem;
  border: 1px solid oklch(0.9 0.02 95 / 0.9);
  border-radius: 9999px;
  background: oklch(0.995 0.004 95 / 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px oklch(0.2 0.02 45 / 0.08);
  pointer-events: auto;
  cursor: pointer;
}

.coloring-color-chip-swatch {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.2 0.02 45 / 0.12);
}

.coloring-color-chip-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.coloring-progress {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  pointer-events: none;
}

.coloring-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.coloring-progress-track {
  stroke: oklch(0.92 0.02 95);
}

.coloring-progress-fill {
  stroke: oklch(0.62 0.16 35);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s ease;
}

.coloring-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 800;
  color: var(--foreground);
}

.coloring-brush-cursor {
  position: absolute;
  margin: -9999px 0 0 -9999px;
  border: 2px solid oklch(0.2 0.02 45 / 0.55);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.65);
}

.coloring-viewport.tool-eyedropper {
  cursor: crosshair;
}

.coloring-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.coloring-modal[hidden] {
  display: none !important;
}

.coloring-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.15 0.02 45 / 0.45);
}

.coloring-modal-card {
  position: relative;
  width: min(100%, 22rem);
  padding: 1.125rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 40px oklch(0.2 0.02 45 / 0.18);
}

.coloring-modal-title {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.coloring-modal-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.coloring-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.coloring-coach {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

body.coloring-overlay-open {
  overflow: hidden;
}

.coloring-coach[hidden] {
  display: none !important;
}

.coloring-coach-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.15 0.02 45 / 0.35);
}

.coloring-coach-card {
  position: relative;
  width: min(100%, 24rem);
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px oklch(0.2 0.02 45 / 0.16);
}

.coloring-coach-step {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.coloring-coach-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.coloring-coach-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 9999px;
  background: oklch(0.88 0.02 95);
}

.coloring-coach-dot.is-active {
  background: oklch(0.62 0.16 35);
}

.coloring-coach-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .coloring-overflow-wrap {
    display: block;
  }

  .coloring-view-controls,
  .coloring-shortcuts-hint,
  .coloring-dock-tab[data-dock-tab="more"],
  .coloring-dock-panel[data-dock-panel="more"] {
    display: none !important;
  }

  .coloring-hint--mobile {
    display: block;
  }

  .coloring-btn-share,
  .coloring-expand-fab {
    display: none !important;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-tool-options,
  .coloring-dock-panel[data-dock-panel="tools"] .coloring-dock-section:has(.coloring-zoom) {
    display: none !important;
  }

  .coloring-dock-panel[data-dock-panel="tools"] .coloring-dock-section:first-child .coloring-dock-heading {
    display: none;
  }

  .coloring-dock {
    max-height: none;
    overflow-y: visible;
  }

  body.coloring-landscape-mobile .coloring-dock {
    display: none !important;
  }

  body.coloring-landscape-mobile .coloring-mobile-trigger-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
  }

  body.coloring-share-sheet-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99;
    background: oklch(0.15 0.02 45 / 0.35);
  }

  body.coloring-share-sheet-open .coloring-share-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-height: min(72vh, 28rem);
    overflow-y: auto;
    border-radius: 1rem 1rem 0 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    -webkit-overflow-scrolling: touch;
  }

  .coloring-btn-undo:not(.coloring-btn-undo--mobile),
  .coloring-btn-redo,
  .coloring-btn-clear--desktop {
    display: none;
  }

  .coloring-btn-undo--mobile {
    display: inline-flex;
  }

  .coloring-dock-tabs {
    display: flex;
  }

  .coloring-dock > .coloring-dock-section:not(.coloring-dock-panel *) {
    display: none;
  }

  .coloring-palette {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .coloring-palette-group-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .coloring-dock-tabs {
    display: flex;
  }

  .coloring-dock-panel:not(.is-active) {
    display: none;
  }

  .coloring-dock-panel.is-active {
    display: block;
  }

  .coloring-dock {
    max-height: min(48vh, 24rem);
    overflow-y: auto;
  }

  .coloring-tool-group .coloring-tool-btn--advanced {
    display: none;
  }

  .coloring-quick-palette-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .coloring-quick-palette {
    display: flex;
    flex: 1;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .coloring-quick-palette::-webkit-scrollbar {
    display: none;
  }

  .coloring-swatch--quick {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
  }

  .coloring-quick-palette-more {
    flex-shrink: 0;
    min-height: 2rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid oklch(0.88 0.02 95);
    border-radius: 9999px;
    background: oklch(0.99 0.005 95);
    font: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
  }

}

@media (min-width: 768px) {
  .coloring-btn-clear--desktop {
    display: inline-flex;
  }

  .coloring-shortcuts-hint {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .coloring-top-shortcuts,
  .coloring-btn-kbd {
    display: none;
  }
}

@media (min-width: 1024px) {
  .coloring-dock-tabs {
    display: none;
  }

  .coloring-dock-panel[hidden] {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coloring-progress-fill {
    transition: none;
  }

  .coloring-viewport-inner {
    transition: none !important;
  }
}

.coloring-viewport-inner {
  transition: transform 0.12s ease;
}

/* ── /try page: no card/surface hover — buttons and tool controls only ── */
.storefront-page:has(.try-coloring-main) .storefront-card::before {
  display: none;
}

.storefront-page:has(.try-coloring-main) .storefront-card,
.storefront-page:has(.try-coloring-main) .storefront-card:hover {
  transform: none;
  box-shadow: none;
}

.storefront-page:has(.try-coloring-main) .site-nav a:not(.btn):hover {
  background: transparent;
  color: inherit;
}

.storefront-page:has(.try-coloring-main) .logo-wrap:hover,
.storefront-page:has(.try-coloring-main) .brand-logo:hover {
  transform: none;
}

.storefront-page:has(.try-coloring-main) .coloring-swatch:hover,
.storefront-page:has(.try-coloring-main) .coloring-swatch-recent:hover {
  transform: none;
}

.storefront-page:has(.try-coloring-main) .footer-links a:hover,
.storefront-page:has(.try-coloring-main) .footer-legal-nav a:hover,
.storefront-page:has(.try-coloring-main) .footer-logo:hover,
.storefront-page:has(.try-coloring-main) .footer-cta:hover {
  color: inherit;
  text-decoration: none;
  transform: none;
}
