/* ========================================
   Cozy - cozyapp.app
   v2: Gallery-first, grain textures, glass pricing
   ======================================== */

:root {
  --bg: #FAFAFA;
  --bg-card: rgba(255, 255, 255, 0.65);

  --brand-pink: #E8A1B8;
  --brand-pink-light: #F8DCE8;
  --brand-pink-glow: rgba(232, 161, 184, 0.25);

  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;

  --radius-card: 20px;
  --radius-button: 12px;
  --radius-thumb: 10px;

  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
  --max-width: 1120px;
  --nav-height: 60px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* ======== Image Protection ======== */
.gallery-wallpaper, .gallery-thumb img, .spawned-icon-img, .folder-island img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ======== SVG Grain (hidden) ======== */
.grain-svg { position: absolute; width: 0; height: 0; pointer-events: none; }

.grain-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ======== Dot Grid ======== */
.dot-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ======== Aurora ======== */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: auroraFloat 8s ease-in-out infinite alternate;
}
.aurora-bg::before {
  width: 600px; height: 600px;
  background: var(--brand-pink);
  top: -200px; right: -100px;
}
.aurora-bg::after {
  width: 500px; height: 500px;
  background: #b7c6ff;
  bottom: -200px; left: -100px;
  animation-delay: -4s;
}
@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* ======== Animated Blobs ======== */
@keyframes blobMorph1 {
  0%   { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(0deg); }
  33%  { border-radius: 50% 50% 40% 60% / 40% 60% 40% 60%; transform: translate(30px, -20px) rotate(120deg); }
  66%  { border-radius: 60% 40% 50% 50% / 50% 50% 60% 40%; transform: translate(-20px, 15px) rotate(240deg); }
  100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(360deg); }
}
@keyframes blobMorph2 {
  0%   { border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%; transform: translate(0, 0) rotate(0deg); }
  33%  { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; transform: translate(-25px, 20px) rotate(-120deg); }
  66%  { border-radius: 50% 50% 40% 60% / 40% 50% 50% 60%; transform: translate(20px, -10px) rotate(-240deg); }
  100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%; transform: translate(0, 0) rotate(-360deg); }
}

/* Blob container for Value section */
.screen-value .blob-container,
.screen-final .blob-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform, border-radius;
}
.blob-1 {
  width: 400px; height: 400px;
  background: var(--brand-pink);
  top: 10%; left: -5%;
  animation: blobMorph1 25s ease-in-out infinite;
}
.blob-2 {
  width: 350px; height: 350px;
  background: #FFC896;
  bottom: 5%; right: -5%;
  animation: blobMorph2 22s ease-in-out infinite;
}
.blob-3 {
  width: 300px; height: 300px;
  background: #b7c6ff;
  top: 40%; right: 10%;
  animation: blobMorph1 28s ease-in-out infinite reverse;
  opacity: 0.08;
}

/* ======== Nav ======== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-height);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-link {
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

/* Language switcher */
.nav-lang { position: relative; }
.nav-lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.nav-lang-btn:hover { border-color: rgba(0,0,0,0.2); color: var(--text-primary); }
.nav-lang-btn svg { flex-shrink: 0; }
.nav-lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 140px; padding: 6px 0;
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.nav-lang-dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-lang-option {
  display: block; padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-lang-option:hover { background: rgba(0,0,0,0.04); color: var(--text-primary); }
.nav-lang-option.active { color: var(--brand-pink); font-weight: 700; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(250,250,250,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.mobile-menu-inner { text-align: center; }
.mobile-menu-link {
  display: block; padding: 14px 0;
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--brand-pink); }
.mobile-menu-link-small { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.mobile-menu-divider {
  border: none; border-top: 1px solid rgba(0,0,0,0.06);
  margin: 12px 40px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: var(--text-primary); color: #fff;
  font-size: 14px; font-weight: 700;
  border-radius: var(--radius-button);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--brand-pink);
  transform: translateY(-1px);
}

/* ======== SCREEN 1: Gallery ======== */
.screen-gallery {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* Gallery title */
.gallery-title-area {
  text-align: center;
  padding: 12px 0 16px;
  max-width: 900px;
}
.gallery-title {
  font-size: 100px; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
}
.gallery-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

/* App icon in nav */
.nav-app-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-logo-group {
  display: flex; align-items: center; gap: 10px;
}

/* App icon above download badge (screen 2) */
.value-app-icon {
  width: 96px; height: 96px;
  border-radius: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Stage wrapper: contains stage + arrows, no clipping */
.gallery-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 633px;
  margin: 0 auto;
}
/* Stage: clips device overflow */
.gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* Device mockup wrapper — absolute, screen-top aligned */
.gallery-device {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: default;
  transition: opacity 0.3s ease;
}
.gallery-device.device-macbook {
  width: 100%;
  top: 0;
}
/* iMac: width-based sizing, stand clipped by stage overflow.
   At 840px wide → height ≈ 713px. Screen top at 3.2% = 23px.
   MacBook screen top at 10.5% of 633 = 66px. Push iMac down ~43px.
   Total: 43 + 713 = 756px > 633, stand gets clipped ✓ */
.gallery-device.device-imac {
  width: 840px;
  top: 43px;
}
.gallery-device.device-imac .gallery-mockup {
  width: 100%;
  height: auto;
}
.gallery-mockup {
  display: block;
  width: 100%; height: auto;
  position: relative; z-index: 2;
  pointer-events: none;
  user-select: none; -webkit-user-drag: none;
  transition: opacity 0.3s ease;
}
.gallery-mockup.fading { opacity: 0; }

/* Screen area inside device */
.gallery-canvas {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  cursor: default;
}
/* MacBook screen — extend canvas slightly under bezel (outer edge at 9%, screen at 13.2%) */
.gallery-device.device-macbook .gallery-canvas {
  top: 10.5%; left: 9.5%; right: 9.5%; bottom: 9%;
  border-radius: 10px;
}
/* iMac screen — 4480x2520 in 4760x4040 image. Slightly under bezel. */
.gallery-device.device-imac .gallery-canvas {
  top: 3.2%; left: 2.2%; right: 2.2%; bottom: 33%;
  border-radius: 4px;
}

.gallery-wallpaper {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
  user-select: none; pointer-events: none;
  -webkit-user-drag: none;
}
.gallery-wallpaper.fading { opacity: 0; }

/* Theme slide transitions */
.gallery-device.slide-left .gallery-wallpaper { transform: translateX(-8px); }
.gallery-device.slide-right .gallery-wallpaper { transform: translateX(8px); }

/* Info fade on theme switch */
.gallery-info { transition: opacity 0.2s ease, transform 0.2s ease; }
.gallery-info.info-fade { opacity: 0; transform: translateY(4px); }

/* Theme switch arrows — fixed on stage */
.gallery-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0; transition: opacity 0.3s, transform 0.2s;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-stage-wrapper:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.gallery-arrow:active { transform: translateY(-50%) scale(0.95); }
.gallery-arrow-left { left: -60px; }
.gallery-arrow-right { right: -60px; }
.gallery-icons-layer {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}

/* Spawned icon wrapper — icon + folder label */
.spawned-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, -50%) scale(0);
  animation: iconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}
.spawned-icon-img {
  width: 72px; height: 72px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}
.spawned-icon-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  line-height: 1;
}
.spawned-icon.fading-out {
  animation: iconFadeOut 0.3s ease forwards;
}
@keyframes iconPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes iconFadeOut {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* Hint */
.gallery-hint {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px); border-radius: 20px;
  font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  pointer-events: none; transition: opacity 0.4s;
  white-space: nowrap;
}
.gallery-hint.hidden { opacity: 0; }
.hint-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-pink);
  animation: hintPulse 1.8s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* Bottom bar */
.gallery-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  padding: 12px 0 0;
  max-width: 960px; margin: 0 auto;
  width: 100%;
}
.gallery-info { flex: 1; min-width: 0; }
.gallery-theme-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.gallery-theme-tagline {
  font-size: 14px; color: var(--text-secondary);
  margin-top: 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.gallery-theme-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.meta-badge {
  padding: 3px 10px;
  background: var(--text-primary); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 16px;
}
.meta-tag {
  padding: 3px 10px;
  background: rgba(0,0,0,0.06); color: var(--text-secondary);
  font-size: 12px; font-weight: 600; border-radius: 16px;
}

/* Thumbs */
.gallery-thumbs {
  display: flex; gap: 10px; flex-shrink: 0;
}
.gallery-thumb {
  width: 80px; height: 52px;
  border-radius: var(--radius-thumb);
  overflow: hidden; cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--text-primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ======== SCREEN 2: Value ======== */
.screen-value {
  position: relative; padding: 260px 24px 120px;
  text-align: center; overflow: visible;
  z-index: 2;
  border-radius: clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px) 0 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(232, 161, 184, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(255, 200, 150, 0.07) 0%, transparent 70%),
    #FFF8F5;
}
.screen-value-content { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
#folderIsland {
  position: absolute;
  top: -150px;
  right: -250px;
  transform: rotate(6deg);
  z-index: 2;
  pointer-events: auto;
}
.value-title {
  font-size: clamp(40px, 5.5vw, 60px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 20px;
}
.value-desc {
  font-size: 20px; color: var(--text-secondary); font-weight: 400;
  line-height: 1.6; margin-bottom: 48px;
}

/* ======== CTA Button ======== */
.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--text-primary); color: #fff;
  font-size: 16px; font-weight: 700;
  border-radius: var(--radius-button); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  background: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-pink-glow);
}
.cta-button:active { transform: translateY(0); }
.apple-icon { flex-shrink: 0; }

/* Apple Official Badge */
.cta-badge { display: inline-block; transition: transform 0.2s, opacity 0.2s; }
.cta-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.cta-badge:active { transform: translateY(0); }
.app-store-badge { height: 52px; width: auto; }
.app-store-badge-lg { height: 56px; }
.app-store-badge-nav { height: 40px; }

/* ======== SCREEN 3: Features ======== */
.screen-features {
  position: relative; padding: 140px 24px 180px;
  z-index: 3;
  border-radius: clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px) 0 0;
  background: #FFFFFF;
}
.features-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
  align-items: stretch;
}
.feature-card-wrap {
  display: flex; flex-direction: column; align-items: flex-start;
}
.feature-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 18px;
  margin-bottom: -24px;
  margin-left: 28px;
  position: relative; z-index: 2;
  box-shadow: 0 4px 16px rgba(232, 161, 184, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-card {
  padding: 52px 36px 44px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 20px rgba(232, 161, 184, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  flex: 1;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card-wrap:nth-child(1) .feature-card:hover {
  box-shadow: 0 12px 36px rgba(232, 161, 184, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.feature-card-wrap:nth-child(2) .feature-card:hover {
  box-shadow: 0 12px 36px rgba(255, 200, 150, 0.25), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.feature-card-wrap:nth-child(3) .feature-card:hover {
  box-shadow: 0 12px 36px rgba(183, 198, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.feature-title { font-size: 24px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.feature-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.75; }

/* ======== SCREEN 4: Pricing ======== */
.screen-pricing {
  position: relative; padding: 100px 24px;
  overflow: hidden;
  z-index: 4;
  border-radius: clamp(14px, 1.8vw, 24px) clamp(14px, 1.8vw, 24px) 0 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(232, 161, 184, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 30% 80%, rgba(183, 198, 255, 0.08) 0%, transparent 70%),
    #FFF8F5;
}
.pricing-content { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; }
.pricing-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  text-align: center; letter-spacing: -0.02em; margin-bottom: 48px;
}
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
}
.pricing-card { position: relative; border-radius: var(--radius-card); overflow: visible; display: flex; flex-direction: column; }

.pricing-card-inner {
  padding: 36px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.pricing-plan {
  font-size: 16px; font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
  padding: 6px 0; font-size: 14px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features .check { color: var(--brand-pink); font-weight: 800; font-size: 16px; }
.pricing-features li { white-space: nowrap; }

.pricing-features { flex: 1; }
.pricing-cta {
  display: block; width: 100%; padding: 12px 0;
  font-size: 15px; font-weight: 700;
  border-radius: var(--radius-button);
  text-align: center; transition: all 0.2s; cursor: pointer;
  margin-top: auto;
}
.pricing-cta-outline {
  background: transparent; color: var(--text-primary);
  border: 2px solid rgba(0,0,0,0.12);
}
.pricing-cta-outline:hover {
  border-color: var(--text-primary);
  background: var(--text-primary); color: #fff;
}

/* ======== Shop Promo Banner ======== */
.screen-shop-promo {
  position: relative; padding: 120px 24px 72px;
  text-align: center;
  z-index: 3;
  background: #FFF8F5;
}
.shop-promo-content {
  position: relative; z-index: 1;
  max-width: 960px; margin: 0 auto;
}
.shop-promo-title {
  font-size: clamp(40px, 5.5vw, 60px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 20px;
  color: var(--text-primary);
}
.shop-promo-desc {
  font-size: 20px; color: var(--text-secondary);
  font-weight: 400; line-height: 1.6; margin-bottom: 48px;
}
.shop-promo-icon {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  pointer-events: none;
  display: block;
}
.shop-promo-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-button);
  background: var(--text-primary); color: #fff;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ======== Two Ways to Redecorate ======== */
.two-ways-cards { grid-template-columns: repeat(2, 1fr) !important; max-width: 680px; margin: 0 auto; }
.two-ways-card { align-items: center; }
.two-ways-icon {
  width: 56px; height: 56px;
  margin-bottom: 12px;
  border-radius: 12px;
  pointer-events: none;
}
.two-ways-tagline {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.5;
}
.two-ways-platform {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
}

/* ======== SCREEN 5: Final CTA ======== */
.screen-final {
  position: relative; padding: 100px 24px;
  text-align: center;
  z-index: 5;
  background: #FFF8F5;
}
.screen-final-content { position: relative; z-index: 1; }
.final-trust { font-size: 15px; color: var(--text-tertiary); margin-bottom: 8px; }
.final-title {
  font-size: clamp(32px, 5vw, 48px); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 32px;
}

/* ======== Footer ======== */
.footer {
  position: relative;
  padding: 60px 24px 100px;
  z-index: 6;
  background: #FFF8F5;
  margin-bottom: 0;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-nav {
  display: flex; justify-content: center; gap: 80px;
  margin-bottom: 40px;
}
.footer-nav-col {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-nav-title {
  font-size: 12px; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 14px; color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
}
.footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* ======== Scroll Animations ======== */

/* Base: hidden state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Visible state */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for cards */
.reveal-stagger-1 { transition-delay: 0s; }
.reveal-stagger-2 { transition-delay: 0.12s; }
.reveal-stagger-3 { transition-delay: 0.24s; }
.reveal-stagger-4 { transition-delay: 0.36s; }

/* Scale-up variant — for CTA / badge */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Fade only — for subtle items */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.reveal-fade.visible { opacity: 1; }

/* Gallery title: special drop-in */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-hero.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ======== Folder Tab Dividers ======== */
.folder-tab-divider {
  position: relative;
  width: 100%;
  height: clamp(32px, 4vw, 56px);
  z-index: 10;
  line-height: 0;
  font-size: 0;
  margin-bottom: -2px; /* overlap slightly with section below to prevent gaps */
}
/* Full-width background bar (upper section color) */
.folder-tab-divider svg.folder-tab-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Tab shape */
.folder-tab-divider svg.folder-tab-shape {
  position: absolute;
  bottom: 0;
  width: clamp(140px, 18vw, 260px);
  height: 100%;
  display: block;
}
/* Tab positions */
.folder-tab-left .folder-tab-shape { left: 8%; }
.folder-tab-center .folder-tab-shape { left: 50%; transform: translateX(-50%); }
.folder-tab-right .folder-tab-shape { right: 8%; }

/* Parallax items need will-change for smoothness */
[data-parallax] {
  will-change: transform;
}

/* ======== Split-Text Reveal ======== */
.split-text-ready .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.split-text-visible .split-word {
  opacity: 1;
  transform: translateY(0);
}

/* ======== Glassmorphism Hover Glow ======== */
[data-glass-glow] .pricing-card-inner {
  position: relative;
  overflow: hidden;
}
[data-glass-glow] .pricing-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(232, 161, 184, 0.2),
    transparent 60%
  );
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
[data-glass-glow] .pricing-card-inner:hover::after {
  opacity: 1;
}
[data-glass-glow] .pricing-card-inner > * {
  position: relative;
  z-index: 1;
}

/* ======== 3D Tilt Cards ======== */
[data-tilt] {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
  will-change: transform;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-fade, .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .split-text-ready .split-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-tilt] {
    transition: none !important;
  }
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  /* Nav: hide links, show hamburger */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .screen-gallery { padding: 32px 12px 12px; }
  .gallery-title { font-size: 42px; }
  .gallery-title-area { padding: 0 0 12px; }
  .gallery-stage-wrapper { height: auto; }
  .gallery-stage { max-width: 100%; height: auto; overflow: visible; }
  .gallery-device { position: relative; left: auto; transform: none; width: 100% !important; top: auto !important; height: auto !important; }
  .gallery-device.device-imac .gallery-mockup { width: 100%; height: auto; }
  .gallery-device.device-imac { max-width: 88%; margin: 0 auto; }
  .gallery-arrow { width: 36px; height: 36px; opacity: 0.8; }
  .gallery-arrow svg { width: 14px; height: 14px; }
  .gallery-arrow-left { left: 6px; }
  .gallery-arrow-right { right: 6px; }
  .gallery-subtitle { font-size: 14px; }
  .value-desc { font-size: 15px; }
  .gallery-bottom {
    flex-direction: column; align-items: flex-start;
    gap: 12px; padding: 12px 0 0;
  }
  .gallery-theme-tagline { white-space: normal; }
  .gallery-thumbs {
    width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { width: 64px; height: 42px; }
  .spawned-icon-img { width: 36px; height: 36px; }
  .spawned-icon-label { font-size: 8px; }
  .features-content { grid-template-columns: 1fr; gap: 28px; }
  .feature-card { min-height: auto; padding: 44px 28px 36px; }
  .footer-nav { gap: 40px; flex-wrap: wrap; justify-content: flex-start; padding: 0 12px; }
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr); gap: 12px;
  }
  .two-ways-cards { grid-template-columns: 1fr !important; max-width: 400px; }
  .screen-shop-promo { padding: 80px 20px 56px; }
  .shop-promo-desc br { display: none; }
  .pricing-features li { white-space: normal; }
  .pricing-card-inner { padding: 24px 16px; }
  .screen-value { padding: 100px 24px 80px; }
  .screen-pricing, .screen-final { padding: 80px 24px; }
  .screen-features { padding: 100px 24px; }
  #folderIsland { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  .value-title { font-size: 32px; }
  .value-desc { font-size: 14px; }
  .gallery-thumb { width: 56px; height: 36px; }
}
