/* ==========================================================================
   Cookie — Premium Indie macOS Product Showcase
   Design Direction: Editorial, Warm, Minimal, Delightful.
   Palette: Warm White, Cream, Ivory, Soft Beige, Muted Sage Green,
            Soft Warm Orange, Muted Brown, Charcoal, Soft Neutral Gray.
   Strict Rule: ABSOLUTELY NO PURPLE. ABSOLUTELY NO BLUE.
   ========================================================================== */

:root {
  /* Warm Foundations */
  --canvas: #fbf9f5;
  --canvas-subtle: #f8f5ef;
  --surface: #ffffff;
  --surface-warm: #fffdf9;
  --cream: #f6f0e4;
  --ivory: #fffff8;
  --sand: #eee6d8;
  --beige: #e5dacb;

  /* Typography & Structure */
  --charcoal: #262421;
  --charcoal-deep: #1c1b19;
  --muted-brown: #5d4d40;
  --soft-brown: #75695d;
  --neutral-gray: #8b7d70;
  --light-gray: #b8aea3;
  --border-subtle: rgba(140, 120, 100, 0.16);
  --border-strong: rgba(120, 100, 80, 0.28);

  /* Warm Accents (Amber, Sage, Terracotta) */
  --amber: #e87920;
  --amber-hover: #d66d17;
  --amber-soft: #fef5ec;
  --amber-border: #f0caa3;
  
  --sage: #75856f;
  --sage-light: #eff4ee;
  --sage-border: #c4d4c2;

  --terracotta: #c45b44;

  /* Typography */
  --font-serif: "New York", "Charter", "Georgia", "Cambria", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Monaco", monospace;

  /* Layout */
  --max-w-content: 1040px;
  --max-w-narrow: 680px;
  --max-w-reading: 580px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Elevations */
  --shadow-subtle: 0 2px 10px rgba(50, 38, 26, 0.04);
  --shadow-warm: 0 8px 24px rgba(55, 42, 28, 0.06);
  --shadow-lift: 0 16px 36px rgba(50, 36, 22, 0.09);
  --shadow-window: 0 24px 64px rgba(45, 32, 18, 0.12), 0 2px 8px rgba(45, 32, 18, 0.04);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--canvas);
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessibility: Warm Focus Visible Ring */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  background-color: var(--charcoal-deep);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 1000;
  box-shadow: var(--shadow-lift);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--amber);
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   Site Masthead (Refined & Cohesive)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 245, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(139, 125, 112, 0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #1c1b19;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(45, 32, 20, 0.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: #75695d;
}

.nav-menu a {
  transition: color 0.15s ease;
}

.nav-menu a:hover {
  color: #1c1b19;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1c1b19;
  color: #fbf9f5 !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.12);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background-color: #383430;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(139, 125, 112, 0.28);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  color: #1c1b19;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease;
}

.mobile-nav-toggle:hover {
  background-color: rgba(232, 214, 181, 0.25);
  border-color: #8b7d70;
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: rgba(251, 249, 245, 0.98);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(139, 125, 112, 0.22);
  padding: 20px 24px 28px;
  box-shadow: 0 16px 36px rgba(28, 27, 25, 0.12);
  z-index: 99;
}

.mobile-nav-drawer.active {
  display: block;
  animation: drawerSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: #262421;
  display: block;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--amber);
  padding-left: 6px;
}

.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--amber);
  color: #ffffff !important;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.96rem;
  margin-top: 8px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 14px rgba(232, 121, 32, 0.25);
}

/* ==========================================================================
   Hero Section (Editorial Art Direction & Desk Scene)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #f8f5ef;
  background-image: linear-gradient(180deg, rgba(251, 249, 245, 0.45) 0%, rgba(251, 249, 245, 0.08) 20%, rgba(248, 245, 239, 0) 42%),
                    url('assets/hero-desk-bg.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  max-height: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(32px, 5vh, 66px) clamp(16px, 3vw, 24px) 0;
  text-align: center;
  overflow: clip;
}

.hero-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Small Product Metadata Badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(139, 125, 112, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: #75695d;
  letter-spacing: 0.01em;
  margin-bottom: clamp(18px, 2.8vh, 28px);
  box-shadow: 0 1px 4px rgba(40, 30, 20, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-eyebrow .eyebrow-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #75856f;
  box-shadow: 0 0 0 2px rgba(117, 133, 111, 0.22);
}

/* Dominant Editorial Headline */
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 6.2vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1c1b19;
  margin-bottom: clamp(12px, 1.8vh, 18px);
}

.hero-dot {
  color: #e87920;
  display: inline-block;
}

/* Refined Supporting Subtitle */
.hero-supporting {
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  font-weight: 400;
  color: #75695d;
  max-width: 520px;
  margin: 0 auto clamp(22px, 3.4vh, 32px);
  line-height: 1.42;
  letter-spacing: -0.01em;
}

/* CTA Button Group */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2.4vh, 22px);
}

/* Primary Download CTA: Warm Orange */
.hero-btn-primary {
  background-color: #e87920;
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(232, 121, 32, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}

.hero-btn-primary:hover {
  background-color: #d66d17;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 121, 32, 0.38);
}

.hero-btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 8px rgba(232, 121, 32, 0.2);
}

.hero-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Secondary CTA: Warm Off-White / Ivory */
.hero-btn-secondary {
  background-color: rgba(255, 253, 249, 0.88);
  color: #262421;
  border: 1px solid rgba(139, 125, 112, 0.32);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(40, 30, 20, 0.04);
  transition: all 0.18s ease;
}

.hero-btn-secondary:hover {
  background-color: #faf4eb;
  border-color: rgba(139, 125, 112, 0.5);
  transform: translateY(-1px);
}

.hero-btn-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.hero-btn-secondary:hover .hero-btn-arrow {
  transform: translateX(2px);
}

/* Quiet Version Metadata */
.hero-release-tag {
  font-size: clamp(0.74rem, 2.4vw, 0.82rem);
  color: #8b7d70;
  letter-spacing: 0.01em;
  margin-bottom: clamp(16px, 2.8vh, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  flex-wrap: wrap;
  padding-inline: 12px;
  line-height: 1.4;
}

.hero-release-tag .meta-dot {
  color: #b8aea3;
  font-size: 0.75rem;
}

/* ==========================================================================
   Hero Stage: Cookie Grounded on the Wooden Desk
   ========================================================================== */
.hero-stage {
  position: relative;
  width: min(290px, 80vw);
  height: min(270px, 75vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cookie-actor-wrap {
  position: relative;
  width: min(270px, 75vw);
  height: min(270px, 75vw);
  cursor: pointer;
  user-select: none;
  transform-origin: 50% 90%;
  animation: cookieGentleIdle 6.5s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-actor-wrap:active {
  transform: scale(0.96) translateY(3px);
}

/* Subtle Playful Sparkles */
.cookie-sparkle {
  position: absolute;
  top: 18%;
  left: -4px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  animation: sparkleFloat 3.8s ease-in-out infinite;
}

.cookie-sprite-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.cookie-blink-layer {
  opacity: 0;
  animation: cookieBlink 5.6s infinite;
}

/* Soft Natural Contact Shadow on the Wooden Desk Tabletop */
.stage-ground-shadow {
  width: 240px;
  height: 20px;
  margin: -12px auto 0;
  background: radial-gradient(ellipse at center, rgba(60, 42, 24, 0.42) 0%, rgba(60, 42, 24, 0.18) 45%, rgba(60, 42, 24, 0.04) 65%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes cookieGentleIdle {
  0%, 100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  35% {
    transform: translateY(-4px) scale(1.006, 0.994) rotate(0.3deg);
  }
  70% {
    transform: translateY(-1px) scale(0.996, 1.004) rotate(-0.3deg);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-4px) scale(1.1);
    opacity: 1;
  }
}

@keyframes cookieBlink {
  0%, 94%, 97.5%, 100% {
    opacity: 0;
  }
  94.5%, 97% {
    opacity: 1;
  }
}

.pet-toast {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--charcoal-deep);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-warm);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 20;
}

.pet-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}


/* ==========================================================================
   Story Vignettes: Visual Storytelling System
   ========================================================================== */
.story-chapter {
  padding: 120px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.story-grid.reverse {
  direction: rtl;
}

.story-grid.reverse > * {
  direction: ltr;
}

.story-text-column {
  max-width: var(--max-w-reading);
}

.story-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 14px;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--charcoal-deep);
  margin-bottom: 20px;
}

.story-lead {
  font-size: 1.15rem;
  color: var(--soft-brown);
  line-height: 1.65;
  margin-bottom: 24px;
}

.story-detail-note {
  font-size: 0.94rem;
  color: var(--neutral-gray);
  border-left: 2px solid var(--sand);
  padding-left: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Vignette 1: "Cookie is always there." (Desktop Window Mockup)
   ========================================================================== */
.desktop-scene-wrap {
  position: relative;
  background: linear-gradient(145deg, #f7f1e6 0%, #eee4d4 100%);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 36px 32px 48px;
  box-shadow: var(--shadow-warm);
  min-height: 380px;
  overflow: hidden;
}

.mock-window {
  width: 78%;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--canvas-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.traffic-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.close { background-color: #d17562; }
.dot.min { background-color: #df9e52; }
.dot.zoom { background-color: #8fa088; }

.mock-doc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-brown);
}

.mock-editor-content {
  padding: 24px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--soft-brown);
  line-height: 1.7;
}

.mock-editor-content .code-comment {
  color: var(--neutral-gray);
  font-style: italic;
}

.mock-editor-content .code-warm {
  color: var(--amber);
  font-weight: 600;
}

/* Cookie perching right beside the desktop window */
.scene-cookie-companion {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 170px;
  height: 170px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.scene-cookie-companion:hover {
  transform: scale(1.05);
}

.scene-cookie-companion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Vignette 2: "Sometimes curious." (Cursor Following Stage)
   ========================================================================== */
.curious-stage {
  position: relative;
  background-color: var(--cream);
  background: linear-gradient(160deg, #fbf7f0 0%, #f4ece0 100%);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 50px 32px;
  text-align: center;
  box-shadow: var(--shadow-warm);
  cursor: crosshair;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.curious-cat-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 12px;
  transform-origin: 50% 90%;
  transition: transform 0.12s ease-out;
}

.curious-cat-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.curious-target-indicator {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px dashed var(--amber);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
}

.curious-stage:hover .curious-target-indicator {
  opacity: 0.75;
}

.curious-hint {
  font-size: 0.88rem;
  color: var(--neutral-gray);
  margin-top: 14px;
}

/* ==========================================================================
   Vignette 3: "Sometimes sleepy." (Curled up by Cardboard Box)
   ========================================================================== */
.sleepy-scene-wrap {
  position: relative;
  background: linear-gradient(180deg, #fbf7f0 0%, #f4ece0 100%);
  border: 1px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  box-shadow: var(--shadow-subtle);
}

.sleepy-box-wrap {
  position: relative;
  width: 160px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sleepy-box-wrap:hover {
  transform: translateY(-3px);
}

.sleepy-box-wrap img, .sleepy-box-wrap svg {
  width: 100%;
  height: auto;
}

.box-peek-tag {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--cream);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-subtle);
  z-index: 20;
}

.sleepy-cat-wrap {
  position: relative;
  width: 200px;
  cursor: pointer;
}

.sleepy-cat-wrap img {
  width: 100%;
  height: auto;
  animation: sleepingBreath 4.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes sleepingBreath {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.025, 0.985); }
}

/* Floating Zzz Animation */
.zzz-cloud {
  position: absolute;
  top: -24px;
  right: 18px;
  pointer-events: none;
}

.zzz-char {
  position: absolute;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--light-gray);
  opacity: 0;
  animation: zzzFloat 3.6s infinite ease-out;
}

.zzz-char:nth-child(1) { font-size: 0.9rem; animation-delay: 0s; }
.zzz-char:nth-child(2) { font-size: 1.2rem; animation-delay: 1.2s; left: 14px; top: -14px; }
.zzz-char:nth-child(3) { font-size: 1.5rem; animation-delay: 2.4s; left: 30px; top: -30px; }

@keyframes zzzFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.8); }
  30% { opacity: 0.7; }
  80% { opacity: 0.4; }
  100% { opacity: 0; transform: translate(18px, -36px) scale(1.2); }
}

/* ==========================================================================
   Vignette 4: Interactive Playground (Pick Up & Drag)
   ========================================================================== */
.playground-sandbox {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  height: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  user-select: none;
  cursor: default;
}

.sandbox-desk-mat {
  position: absolute;
  inset: 20px;
  background: radial-gradient(circle at 50% 50%, #faf5ec 0%, #f4ecdf 100%);
  border: 1px dashed var(--beige);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.draggable-cookie-actor {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 120px;
  left: 140px;
  cursor: grab;
  touch-action: none;
  z-index: 20;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.draggable-cookie-actor:active, .draggable-cookie-actor.is-dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(-2deg);
}

.draggable-cookie-actor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sandbox-hint {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-gray);
  pointer-events: none;
}

.sandbox-toast {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--charcoal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-warm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  white-space: nowrap;
}

.sandbox-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Vignette 5: Care & Treats Showcase
   ========================================================================== */
.treats-showcase-box {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-subtle);
}

.treat-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.treat-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.treat-button .emoji {
  font-size: 1.6rem;
}

.treat-button:hover {
  background-color: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-hover);
  transform: translateY(-2px);
}

.treat-button.active {
  background-color: var(--amber);
  border-color: var(--amber);
  color: #ffffff;
}

.treat-response-card {
  background-color: var(--canvas-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}

.treat-response-card .cat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  flex-shrink: 0;
}

.treat-response-card .cat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.treat-speech {
  font-size: 0.96rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ==========================================================================
   Dedicated Customization Section: "Make Cookie yours."
   A Polished Native Mac Application Experience
   ========================================================================== */
.customization-section {
  padding: 120px 0 130px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--canvas) 0%, #f7f0e4 100%);
}

.customization-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.customization-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.customization-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--charcoal-deep);
  margin-bottom: 18px;
}

.customization-lead {
  font-size: 1.18rem;
  color: var(--soft-brown);
  line-height: 1.6;
}

/* Variations Gallery */
.variations-gallery {
  margin-bottom: 64px;
}

.variations-gallery-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft-brown);
  margin-bottom: 20px;
  text-align: center;
}

.variations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.variation-card {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.variation-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-border);
  box-shadow: var(--shadow-warm);
}

.variation-card.active {
  border-color: var(--amber);
  background-color: var(--amber-soft);
  box-shadow: 0 0 0 1px var(--amber);
}

.variation-avatar {
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.variation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.variation-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal-deep);
  margin-bottom: 2px;
}

.variation-coat-tag {
  font-size: 0.78rem;
  color: var(--neutral-gray);
  margin-bottom: 8px;
}

.variation-mood-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--canvas-subtle);
  color: var(--muted-brown);
  border: 1px solid var(--border-subtle);
}

/* Polished macOS Customizer Window Mockup */
.mac-app-window {
  max-width: 920px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.mac-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background-color: #f7f2ea;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.mac-window-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal-deep);
  letter-spacing: -0.01em;
}

.mac-window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage);
}

/* Window Body */
.mac-window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
  background-color: var(--surface);
}

/* Left Sidebar */
.mac-window-sidebar {
  background-color: #faf5ed;
  border-right: 1px solid var(--border-subtle);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-gray);
  padding: 4px 10px 8px;
}

.mac-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.mac-sidebar-item:hover {
  background-color: rgba(220, 205, 185, 0.35);
}

.mac-sidebar-item.active {
  background-color: var(--charcoal-deep);
  color: var(--ivory);
  font-weight: 600;
}

.sidebar-icon {
  font-size: 1.05rem;
}

/* Window Main Workspace */
.mac-window-content {
  display: grid;
  grid-template-columns: 270px 1fr;
  padding: 24px 28px;
  gap: 28px;
  align-items: start;
}

/* Live Preview Hero Card */
.mac-preview-card {
  background: linear-gradient(180deg, #faf5ec 0%, #f0e6d5 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-stage-frame {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
}

.preview-cat-actor {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-cat-actor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fur-tint-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  mask-image: url('assets/cookie.png');
  -webkit-mask-image: url('assets/cookie.png');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  opacity: 0.65;
  transition: background-color 0.25s ease;
}

.pattern-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: multiply;
  mask-image: url('assets/cookie.png');
  -webkit-mask-image: url('assets/cookie.png');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.pattern-overlay-layer.tabby {
  opacity: 0.35;
  background: repeating-linear-gradient(
    45deg,
    #5c4328,
    #5c4328 10px,
    transparent 10px,
    transparent 24px
  );
}

.pattern-overlay-layer.tuxedo {
  opacity: 0.45;
  background: radial-gradient(ellipse at 50% 68%, transparent 0%, transparent 35%, #302a24 45%);
}

.pattern-overlay-layer.points {
  opacity: 0.45;
  background: radial-gradient(circle at 35% 20%, #423223 0%, transparent 25%),
              radial-gradient(circle at 65% 20%, #423223 0%, transparent 25%),
              radial-gradient(circle at 80% 75%, #423223 0%, transparent 25%);
}

.preview-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.preview-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal-deep);
}

.preview-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--charcoal-deep);
  color: var(--ivory);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.preview-summary {
  font-size: 0.82rem;
  color: var(--soft-brown);
  line-height: 1.45;
  min-height: 38px;
}

/* Settings Panes */
.mac-panes-wrap {
  min-height: 360px;
}

.mac-pane {
  display: none;
  flex-direction: column;
  gap: 22px;
}

.mac-pane.active {
  display: flex;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-gray);
}

/* Swatches Grid */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border-strong);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-btn:hover {
  transform: scale(1.15);
}

.swatch-btn.active {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--charcoal-deep);
}

.swatch-check {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--charcoal-deep);
  display: none;
}

.swatch-btn.active .swatch-check {
  display: block;
}

.swatch-name-display {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-brown);
}

/* Native Segmented Control */
.mac-segmented-control {
  display: inline-flex;
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.segment-btn {
  padding: 5px 14px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.segment-btn:hover {
  color: var(--charcoal-deep);
}

.segment-btn.active {
  background-color: var(--surface);
  color: var(--charcoal-deep);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(45, 32, 18, 0.12);
}

/* Eye Color Pills */
.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--canvas-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-pill:hover {
  background-color: var(--cream);
  border-color: var(--border-strong);
}

.mini-pill.active {
  background-color: var(--charcoal-deep);
  color: var(--ivory);
  border-color: var(--charcoal-deep);
}

/* Accessory Cards Grid */
.accessory-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.accessory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.accessory-card:hover {
  background-color: var(--cream);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.accessory-card.active {
  background-color: var(--amber-soft);
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.accessory-card .acc-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.accessory-card .acc-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal-deep);
}

.accessory-card .acc-sub {
  font-size: 0.72rem;
  color: var(--neutral-gray);
}

/* Personality List */
.personality-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personality-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.personality-row:hover {
  background-color: var(--cream);
  border-color: var(--border-strong);
}

.personality-row.active {
  background-color: var(--surface);
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}

.personality-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--light-gray);
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.personality-row.active .personality-indicator {
  background-color: var(--amber);
}

.personality-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal-deep);
  margin-bottom: 1px;
}

.personality-desc {
  font-size: 0.78rem;
  color: var(--soft-brown);
  line-height: 1.35;
}

/* Name Input */
.mac-input-wrap {
  position: relative;
  max-width: 320px;
}

.mac-text-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal-deep);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mac-text-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 36, 0.2);
}

.setting-hint {
  font-size: 0.8rem;
  color: var(--neutral-gray);
  margin-top: 4px;
}

.name-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.name-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background-color: var(--canvas-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.name-chip:hover {
  background-color: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-hover);
}


/* ==========================================================================
/* ==========================================================================
   Site Footer (Editorial Apple-Indie Design)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 48px;
  background-color: var(--canvas);
  color: var(--soft-brown);
  font-size: 0.92rem;
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 1.3fr;
  gap: 48px;
  align-items: flex-start;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}

.footer-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(45, 32, 20, 0.12);
  border: 1px solid rgba(120, 100, 80, 0.15);
  display: block;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal-deep);
  letter-spacing: -0.01em;
}

.footer-version-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--neutral-gray);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.3;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--soft-brown);
  line-height: 1.55;
  margin: 0;
}

.footer-indie-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted-brown);
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.footer-indie-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage-light);
  flex-shrink: 0;
}

/* Nav Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-link-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft-brown);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--charcoal-deep);
}

.footer-ext-link svg {
  color: var(--neutral-gray);
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-ext-link:hover svg {
  color: var(--charcoal-deep);
  transform: translate(1px, -1px);
}

.footer-specs-note {
  font-size: 0.84rem;
  color: var(--soft-brown);
  line-height: 1.5;
  margin: 0 0 14px;
}

.footer-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal-deep);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.footer-download-btn:hover {
  background-color: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 32, 20, 0.08);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--neutral-gray);
  line-height: 1.5;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-crafted-tag {
  font-size: 0.8rem;
  color: var(--neutral-gray);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft-brown);
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
}

.footer-back-to-top:hover {
  color: var(--charcoal-deep);
  border-color: var(--border-strong);
  background-color: var(--surface);
  transform: translateY(-1px);
}

/* Box Peeker Easter Egg */
.box-cat-peeker {
  position: absolute;
  bottom: 84px;
  left: 54px;
  width: 110px;
  height: 110px;
  z-index: 15;
  transform: translateY(80px) scale(0.6);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.box-cat-peeker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sleepy-scene-wrap.peeking .box-cat-peeker {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sleepy-scene-wrap.peeking .sleepy-cat-wrap {
  opacity: 0.2;
  filter: blur(1px);
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.customizer-personality-desc {
  font-size: 0.92rem;
  color: var(--soft-brown);
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  line-height: 1.5;
  margin-top: 14px;
}


/* ==========================================================================
   Dedicated Download Section
   ========================================================================== */
.download-section {
  padding: 100px 0 120px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--canvas-subtle);
}

.download-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--soft-brown);
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

.download-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage-soft);
}

.download-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--charcoal-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.download-subhead {
  font-size: 1.1rem;
  color: var(--soft-brown);
  line-height: 1.6;
}

/* Download Hero Action Card */
.download-hero-card {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.download-hero-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.download-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--muted-brown) 60%, transparent 100%);
}

.download-app-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 4px 16px rgba(45, 32, 20, 0.14);
  display: block;
  flex-shrink: 0;
}

.download-app-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-app-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal-deep);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.download-app-version {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--soft-brown);
}

.download-app-specs-inline {
  font-size: 0.8rem;
  color: var(--neutral-gray);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.meta-separator,
.meta-dot {
  color: var(--border-strong);
  font-weight: 300;
}

.download-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--charcoal);
  color: var(--canvas);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--charcoal-deep);
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.18), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-download-hero:hover {
  background-color: var(--charcoal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28, 27, 25, 0.26);
}

.btn-download-hero:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 1px 4px rgba(28, 27, 25, 0.18);
}

.btn-github-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface);
  color: var(--charcoal-deep);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 3px rgba(45, 32, 20, 0.05);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-github-hero svg {
  color: var(--charcoal);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.btn-github-hero:hover {
  background-color: var(--canvas-subtle);
  border-color: rgba(120, 100, 80, 0.4);
  color: var(--charcoal-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 32, 20, 0.08);
}

.btn-github-hero:hover svg {
  transform: scale(1.08);
}

.btn-github-hero:active {
  transform: scale(0.98) translateY(0);
}

/* System Requirements & Hardware Compatibility Grid */
.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 0;
}

.compat-card {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(45, 32, 20, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.compat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-warm);
}

.compat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--canvas-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
  color: var(--charcoal);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.compat-card:hover .compat-icon-wrap {
  background-color: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
  transform: scale(1.04);
}

.compat-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.compat-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.compat-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--charcoal-deep);
  margin-bottom: 6px;
}

.compat-desc {
  font-size: 0.86rem;
  color: var(--soft-brown);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.compat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--canvas-subtle);
  color: var(--charcoal);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.compat-card:hover .compat-pill {
  border-color: var(--border-strong);
  background-color: var(--surface);
}

.compat-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage-light);
  flex-shrink: 0;
}

/* ==========================================================================
   Privacy Modal Sheet (Native <dialog>)
   ========================================================================== */
.privacy-modal {
  border: none;
  background: transparent;
  padding: 16px;
  margin: auto;
  max-width: 540px;
  width: calc(100% - 32px);
  border-radius: var(--radius-lg);
}

.privacy-modal::backdrop {
  background: rgba(30, 26, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.privacy-modal-card {
  background-color: var(--canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(45, 32, 20, 0.22);
  padding: clamp(22px, 5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--sage-soft);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
}

.privacy-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--neutral-gray);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.privacy-modal-close:hover {
  color: var(--charcoal-deep);
  background-color: var(--canvas-subtle);
}

.privacy-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal-deep);
  margin: 0;
}

.privacy-modal-body {
  font-size: clamp(0.88rem, 2.5vw, 0.94rem);
  line-height: 1.6;
  color: var(--soft-brown);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-list li strong {
  color: var(--charcoal);
}

.privacy-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-privacy-dismiss {
  background-color: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-privacy-dismiss:hover {
  background-color: var(--charcoal-deep);
  transform: translateY(-1px);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Architecture
   ========================================================================== */

/* Tablet & Smaller Screens (<= 960px) */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* Tablet Portrait & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero CTA Buttons - Sleek & Compact */
  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: auto;
    max-width: fit-content;
    padding: 10px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Story Vignettes */
  .story-chapter {
    padding: clamp(64px, 8vh, 90px) 0;
  }

  .story-grid,
  .story-grid.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    direction: ltr;
  }

  .story-text-column {
    max-width: 100%;
  }

  .mock-window {
    width: 100%;
  }

  /* Customizer Window */
  .mac-window-body {
    grid-template-columns: 1fr;
  }

  .mac-window-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: none;
  }

  .mac-window-sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-header {
    display: none;
  }

  .mac-sidebar-item {
    width: auto;
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .mac-window-content {
    grid-template-columns: 1fr;
    padding: clamp(16px, 3vw, 24px) clamp(14px, 2.5vw, 20px);
    gap: 20px;
  }

  /* Variations Gallery */
  .variations-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 4px 14px;
    scrollbar-width: none;
  }

  .variations-grid::-webkit-scrollbar {
    display: none;
  }

  .variation-card {
    flex: 0 0 clamp(135px, 36vw, 160px);
    scroll-snap-align: start;
    padding: 14px 10px 12px;
  }

  /* Download Section */
  .download-section {
    padding: clamp(64px, 8vh, 90px) 0 clamp(72px, 9vh, 100px);
  }

  .download-hero-card {
    padding: clamp(24px, 4vw, 32px) clamp(18px, 3.5vw, 28px);
    gap: 22px;
  }

  .download-hero-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .download-cta-wrap {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-download-hero,
  .btn-github-hero {
    width: 100%;
    justify-content: center;
  }

  .compatibility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 0;
  }
}

/* Standard Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  /* Site Header & Mobile Drawer */
  .nav-wrapper {
    height: 56px;
  }

  .mobile-nav-drawer {
    top: 56px;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px 28px;
  }

  /* Hero Adjustments */
  .hero-section {
    padding: 28px 16px 0;
    min-height: calc(100dvh - 56px);
  }

  .hero-eyebrow {
    margin-bottom: 16px;
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .hero-headline {
    margin-bottom: 12px;
  }

  .hero-supporting {
    margin-bottom: 22px;
    line-height: 1.45;
  }

  /* Hero CTA Buttons - Reduced Width & Compact Mobile Sizing */
  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: auto;
    max-width: fit-content;
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .hero-btn-icon {
    width: 15px;
    height: 15px;
  }

  .hero-btn-arrow {
    width: 13px;
    height: 13px;
  }

  .hero-stage {
    width: min(260px, 75vw);
    height: min(240px, 70vw);
  }

  .cookie-actor-wrap {
    width: 100%;
    height: 100%;
  }

  /* Story Chapter Vignettes */
  .story-chapter {
    padding: 56px 0;
  }

  /* Vignette 1: Desktop Scene */
  .desktop-scene-wrap {
    padding: 20px 14px 26px;
  }

  .mock-editor-content {
    padding: 14px 12px;
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .scene-cookie-companion {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: clamp(90px, 26vw, 120px);
    height: clamp(90px, 26vw, 120px);
  }

  /* Vignette 2: Curious Cat */
  .curious-stage {
    padding: 30px 14px;
    min-height: 270px;
  }

  .curious-cat-container {
    width: clamp(140px, 42vw, 190px);
    height: clamp(140px, 42vw, 190px);
  }

  /* Vignette 3: Sleepy Scene */
  .sleepy-scene-wrap {
    padding: 28px 12px 24px;
    min-height: 260px;
    gap: clamp(8px, 2.5vw, 16px);
  }

  .sleepy-box-wrap {
    width: clamp(96px, 32vw, 135px);
  }

  .sleepy-cat-wrap {
    width: clamp(115px, 42vw, 165px);
  }

  .box-cat-peeker {
    width: clamp(70px, 22vw, 95px);
    height: clamp(70px, 22vw, 95px);
    bottom: 56px;
    left: 20px;
  }

  /* Vignette 4: Playground Sandbox */
  .playground-sandbox {
    height: clamp(260px, 55vw, 320px);
  }

  .draggable-cookie-actor {
    width: clamp(95px, 26vw, 125px);
    height: clamp(95px, 26vw, 125px);
  }

  /* Vignette 5: Treats & Care */
  .treats-showcase-box {
    padding: 20px 14px;
  }

  .treat-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .treat-button {
    padding: 12px 6px;
    font-size: 0.8rem;
    min-height: 48px;
  }

  .treat-button .emoji {
    font-size: 1.35rem;
  }

  .treat-response-card {
    padding: 14px;
    gap: 12px;
  }

  .treat-response-card .cat-avatar {
    width: 44px;
    height: 44px;
  }

  .treat-speech {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* Customization Section */
  .customization-section {
    padding: 56px 0 64px;
  }

  .customization-header {
    margin-bottom: 36px;
  }

  .variations-gallery {
    margin-bottom: 40px;
  }

  /* Mac App Window Mockup */
  .mac-app-window {
    border-radius: var(--radius-md);
  }

  .mac-window-titlebar {
    padding: 10px 12px;
  }

  .mac-window-status {
    display: none;
  }

  .mac-window-title {
    font-size: 0.78rem;
  }

  .mac-preview-card {
    padding: 16px 12px 14px;
  }

  .preview-stage-frame {
    width: clamp(120px, 34vw, 150px);
    height: clamp(120px, 34vw, 150px);
    margin-bottom: 8px;
  }

  .preview-name {
    font-size: 1.05rem;
  }

  .preview-summary {
    font-size: 0.8rem;
    min-height: auto;
  }

  /* Customizer Panes */
  .mac-panes-wrap {
    min-height: auto;
  }

  .mac-pane {
    gap: 18px;
  }

  .swatch-grid {
    gap: 10px;
  }

  .swatch-btn {
    width: 32px;
    height: 32px;
  }

  .mac-segmented-control {
    display: flex;
    width: 100%;
  }

  .segment-btn {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  }

  .pill-options {
    gap: 7px;
  }

  .mini-pill {
    padding: 6px 11px;
    font-size: 0.78rem;
  }

  .accessory-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .accessory-card {
    padding: 10px 4px;
  }

  .accessory-card .acc-title {
    font-size: 0.76rem;
  }

  .accessory-card .acc-sub {
    font-size: 0.68rem;
  }

  .personality-row {
    padding: 9px 12px;
    gap: 10px;
  }

  .personality-name {
    font-size: 0.84rem;
  }

  .personality-desc {
    font-size: 0.74rem;
  }

  .mac-input-wrap {
    max-width: 100%;
  }

  .name-chip {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  /* Download Section */
  .download-app-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .download-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .download-app-title {
    font-size: 1.35rem;
  }

  .download-app-specs-inline {
    font-size: 0.76rem;
    gap: 4px;
  }

  .compatibility-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .compat-card {
    padding: 18px 16px;
  }

  .compat-icon-wrap {
    margin-bottom: 12px;
  }

  .compat-desc {
    margin-bottom: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 52px 0 32px;
  }

  .footer-inner {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-bottom-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Compact Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  .hero-eyebrow {
    font-size: 0.74rem;
  }

  .hero-actions {
    max-width: 100%;
    gap: 6px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 8px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.88rem;
    padding: 10px 14px;
  }

  .accessory-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treat-items-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .treat-button {
    padding: 10px 4px;
    font-size: 0.76rem;
  }

  .footer-bottom-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================================
   Multi-Platform Support: Windows & macOS
   Platform Selector, Comparison Matrix & Installation Guides
   ========================================================================== */

/* Platform Segmented Selector */
.platform-selector-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.platform-selector {
  display: inline-flex;
  align-items: center;
  background: var(--sand);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  position: relative;
}

.platform-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--soft-brown);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.platform-pill-btn:hover {
  color: var(--charcoal);
}

.platform-pill-btn.active {
  background: var(--surface);
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(50, 38, 26, 0.08);
}

.platform-pill-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Secondary & Alternative Download Actions */
.download-alt-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.btn-secondary-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary-download:hover {
  background: #fde8d4;
  color: var(--amber-hover);
}

.download-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-brown);
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.download-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* Comparison Section */
.comparison-section {
  padding: 100px 0 80px 0;
  background: var(--canvas-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.comparison-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 12px;
}

.comparison-headline {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.25;
}

.comparison-subhead {
  font-size: 1.05rem;
  color: var(--soft-brown);
  line-height: 1.6;
}

.comparison-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  overflow-x: auto;
  margin-bottom: 32px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 2px solid var(--sand);
  background: var(--surface-warm);
}

.comparison-table th.col-feature {
  width: 38%;
}

.comparison-table th.col-platform {
  width: 31%;
}

.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--muted-brown);
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: var(--canvas-subtle);
}

.feature-title-cell {
  font-weight: 600;
  color: var(--charcoal);
}

.feature-desc-cell {
  font-size: 0.82rem;
  color: var(--neutral-gray);
  margin-top: 2px;
}

.parity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.parity-badge.badge-full {
  background: var(--sage-light);
  color: #3b5c36;
  border: 1px solid var(--sage-border);
}

.parity-badge.badge-native {
  background: var(--amber-soft);
  color: #b05712;
  border: 1px solid var(--amber-border);
}

.parity-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Installation Guide Section */
.install-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.install-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.install-headline {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.install-subhead {
  font-size: 1rem;
  color: var(--soft-brown);
}

.install-steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.install-step-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.install-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--cream);
  color: var(--amber);
  border: 1px solid var(--sand);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.install-step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.install-step-desc {
  font-size: 0.88rem;
  color: var(--soft-brown);
  line-height: 1.55;
}

.security-notice-card {
  display: flex;
  gap: 16px;
  background: var(--surface-warm);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 860px;
  margin: 0 auto;
}

.security-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--amber);
  margin-top: 2px;
}

.security-notice-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.security-notice-content p {
  font-size: 0.86rem;
  color: var(--muted-brown);
  line-height: 1.6;
}

/* Footer Downloads Multi-button */
.footer-downloads-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.footer-btn-mac,
.footer-btn-win {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-btn-mac {
  background: var(--sand);
  color: var(--charcoal);
}

.footer-btn-mac:hover {
  background: var(--cream);
}

.footer-btn-win {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--charcoal);
}

.footer-btn-win:hover {
  background: var(--canvas-subtle);
}

@media (max-width: 768px) {
  .comparison-headline,
  .install-headline {
    font-size: 1.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .install-steps-container {
    grid-template-columns: 1fr;
  }

  .security-notice-card {
    flex-direction: column;
    gap: 10px;
  }
}

/* Screen reader utility */
.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;
}

/* Demo clip */
.demo-section {
  padding: 96px 0 24px;
}

.demo-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--charcoal);
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.demo-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px -28px rgba(93, 77, 64, 0.35);
  aspect-ratio: 1024 / 582;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 253, 249, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.demo-toggle:hover {
  background: var(--surface);
  transform: scale(1.05);
}

.demo-toggle:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.demo-icon-play { display: none; }
.demo-toggle[aria-pressed="true"] .demo-icon-pause { display: none; }
.demo-toggle[aria-pressed="true"] .demo-icon-play { display: block; }

.demo-caption {
  max-width: var(--max-w-narrow);
  margin: 20px auto 0;
  text-align: center;
  color: var(--soft-brown);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .demo-section { padding-top: 64px; }
  .demo-frame { border-radius: 16px; }
}

/* Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
