/* =========================================================
   Paperloom — storefront styles
   Edit colors here: everything uses these tokens.
   ========================================================= */
:root {
  --bg: #F7F2EA;
  --bg-2: #EFE7DA;
  --paper: #FFFDF9;
  --ink: #17141F;
  --ink-2: #3A3644;
  --muted: #6B6675;
  --line: rgba(23, 20, 31, 0.1);
  --coral: #FF6B4A;
  --violet: #6C5CE7;
  --teal: #2EC4B6;
  --sun: #FFC94A;
  --pink: #FF8FB1;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 6px rgba(23, 20, 31, .06), 0 8px 24px rgba(23, 20, 31, .06);
  --shadow: 0 10px 30px rgba(23, 20, 31, .08), 0 30px 60px rgba(23, 20, 31, .08);
  --shadow-lg: 0 30px 80px rgba(23, 20, 31, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
em { font-style: italic; font-family: var(--display); font-weight: 500; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 em { color: var(--coral); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-book { display: flex; gap: 8px; }
.loader-book span {
  width: 14px; height: 44px; border-radius: 6px; background: var(--coral);
  animation: bounce 1s var(--ease) infinite;
}
.loader-book span:nth-child(2) { background: var(--violet); animation-delay: .12s; }
.loader-book span:nth-child(3) { background: var(--teal); animation-delay: .24s; }
@keyframes bounce { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

/* ---------- Progress + cursor glow ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--coral), var(--violet), var(--teal));
  transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 201, 74, .22), transparent 65%);
  transition: opacity .3s; opacity: 0;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  transform: translate(var(--bx), var(--by));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap; position: relative;
}
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 74, .35), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(255, 107, 74, .45), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2636; }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-light:hover { box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn.full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.nav.scrolled {
  padding: 10px 0; background: rgba(247, 242, 234, .78);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo-mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 26px; }
.logo-mark i { display: block; width: 7px; border-radius: 3px; }
.logo-mark i:nth-child(1) { height: 16px; background: var(--coral); }
.logo-mark i:nth-child(2) { height: 26px; background: var(--violet); }
.logo-mark i:nth-child(3) { height: 20px; background: var(--teal); }
.logo:hover .logo-mark i { animation: bounce .8s var(--ease); }
.logo:hover .logo-mark i:nth-child(2) { animation-delay: .08s; }
.logo:hover .logo-mark i:nth-child(3) { animation-delay: .16s; }
.nav-links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #FFD3C4; top: -120px; right: 8%; }
.b2 { width: 420px; height: 420px; background: #D9D3FF; bottom: -140px; right: 30%; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: #C6F1EC; top: 30%; left: -120px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.1); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 65%);
  opacity: .6;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease); }
#hero3d.ready { opacity: 1; }
.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 590px; pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); backdrop-filter: blur(8px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(46,196,182,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46,196,182,0); } 100% { box-shadow: 0 0 0 0 rgba(46,196,182,0); } }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .98; margin: 22px 0 22px; letter-spacing: -0.035em; }
.hero-title em { font-weight: 500; }
.shine {
  background: linear-gradient(100deg, var(--coral) 10%, var(--violet) 45%, var(--teal) 80%, var(--coral));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite; padding-right: .08em;
}
@keyframes shine { to { background-position: -250% 0; } }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 500px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; line-height: 1.25; }
.proof-item b { font-size: 15px; }
.proof-item span { font-size: 13px; color: var(--muted); }
.proof-sep { width: 1px; height: 30px; background: var(--line); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; border: 2px solid var(--ink-2); border-radius: 20px; transform: translateX(-50%); opacity: .6; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; margin: 10px 0 20px; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-style: italic; }
.marquee-track i { color: var(--sun); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; z-index: 2; }
.section-head { margin-bottom: 48px; max-width: 700px; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.eyebrow.light { color: var(--sun); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cats .cat:last-child:nth-child(4n+3) { grid-column: span 2; }
.cat {
  position: relative; padding: 24px 20px 22px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); overflow: hidden; cursor: pointer; text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d;
}
.cat::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .18; transition: transform .5s var(--ease); }
.cat:hover { box-shadow: var(--shadow); }
.cat:hover::before { transform: scale(1.6); }
.cat-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 24px; margin-bottom: 30px; box-shadow: 0 10px 20px -6px var(--c); transform: translateZ(30px); }
.cat h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; transform: translateZ(20px); }
.cat span { font-size: 13px; color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; perspective: 1400px; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  padding: 12px; display: flex; flex-direction: column;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), opacity .4s, translate .4s;
  box-shadow: var(--shadow-sm);
}
.card.hide { display: none; }
.card:hover { box-shadow: var(--shadow-lg); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card-media {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 16px; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #fff));
  display: grid; place-items: center; cursor: pointer; transform: translateZ(20px);
}
.badge { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge.new { background: var(--coral); }
.quick { position: absolute; bottom: 12px; left: 50%; z-index: 3; transform: translate(-50%, 14px); opacity: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 800; border: 0; transition: all .3s var(--ease); box-shadow: var(--shadow-sm); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: translate(-50%, 0); }
.card-body { padding: 16px 8px 8px; display: flex; flex-direction: column; flex: 1; transform: translateZ(10px); }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 18px; font-weight: 800; margin: 6px 0 6px; letter-spacing: -.02em; }
.card p { margin: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.card-price s { font-size: 14px; color: var(--muted); margin-left: 6px; }
.buy { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; transition: background .25s, transform .25s var(--ease); }
.buy:hover { background: var(--coral); transform: scale(1.05); }

/* --- Uploaded product photos --- */
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img { transform: scale(1.05); }
.modal-media.has-img { position: relative; overflow: hidden; }
.modal-media .card-img { position: absolute; inset: 0; }

/* --- CSS product mockups (no images needed) --- */
.mock { position: relative; width: 70%; transition: transform .6s var(--ease); filter: drop-shadow(0 18px 22px rgba(23,20,31,.22)); }
.card:hover .mock { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
.mock-sheet { background: #fff; border-radius: 10px; padding: 10px; aspect-ratio: 4/3; display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.mock-sheet .bar { display: flex; gap: 4px; }
.mock-sheet .bar i { height: 8px; flex: 1; border-radius: 3px; background: var(--c); opacity: .9; }
.mock-sheet .bar i:nth-child(2) { opacity: .5; } .mock-sheet .bar i:nth-child(3) { opacity: .3; }
.mock-sheet .body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; }
.mock-sheet .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-content: start; }
.mock-sheet .cells i { height: 7px; border-radius: 2px; background: #EEE9F3; }
.mock-sheet .cells i:nth-child(3n+1) { background: color-mix(in srgb, var(--c) 35%, #fff); }
.mock-sheet .chart { display: flex; align-items: flex-end; gap: 4px; border-left: 1.5px solid #eee; border-bottom: 1.5px solid #eee; padding: 0 0 2px 4px; }
.mock-sheet .chart i { flex: 1; background: var(--c); border-radius: 3px 3px 0 0; animation: grow 2.6s var(--ease) infinite alternate; transform-origin: bottom; }
.mock-sheet .chart i:nth-child(1) { height: 40%; } .mock-sheet .chart i:nth-child(2) { height: 70%; animation-delay: .2s; }
.mock-sheet .chart i:nth-child(3) { height: 55%; animation-delay: .4s; } .mock-sheet .chart i:nth-child(4) { height: 90%; animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(.6); } to { transform: scaleY(1); } }

.mock-planner { width: 56%; aspect-ratio: 3/4; background: var(--c); border-radius: 6px 14px 14px 6px; position: relative; padding: 16% 14%; color: #fff; }
.mock-planner::before { content: ""; position: absolute; left: 8%; top: 0; bottom: 0; width: 3px; background: rgba(0,0,0,.12); }
.mock-planner .yr { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 26px); line-height: 1; }
.mock-planner .lbl { font-size: 9px; font-weight: 800; letter-spacing: .2em; opacity: .85; margin-top: 4px; }
.mock-planner .tabs { position: absolute; right: -9px; top: 14%; display: grid; gap: 4px; }
.mock-planner .tabs i { width: 10px; height: 16px; border-radius: 0 4px 4px 0; background: #fff; opacity: .9; }
.mock-planner .tabs i:nth-child(2) { background: var(--sun); } .mock-planner .tabs i:nth-child(3) { background: var(--violet); } .mock-planner .tabs i:nth-child(4) { background: var(--teal); }
.mock-planner .band { position: absolute; right: 16%; top: 0; bottom: 0; width: 6px; background: rgba(23,20,31,.25); }
.mock-planner .lines { position: absolute; left: 22%; right: 26%; bottom: 14%; display: grid; gap: 5px; }
.mock-planner .lines i { height: 3px; background: rgba(255,255,255,.55); border-radius: 2px; }
.mock-planner .lines i:nth-child(2) { width: 70%; }

.mock-notion { background: #fff; border-radius: 10px; padding: 12px; aspect-ratio: 4/3; }
.mock-notion .ttl { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.mock-notion .ttl b { width: 16px; height: 16px; border-radius: 4px; background: var(--c); }
.mock-notion .ttl i { height: 7px; width: 50%; background: #222; border-radius: 3px; }
.mock-notion .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-notion .col { display: grid; gap: 4px; align-content: start; }
.mock-notion .col i { height: 16px; border-radius: 4px; background: #F1EFF5; border-left: 3px solid var(--c); }
.mock-notion .col:nth-child(2) i { border-color: var(--sun); } .mock-notion .col:nth-child(3) i { border-color: var(--teal); }

.mock-canva { width: 62%; aspect-ratio: 4/5; position: relative; }
.mock-canva i { position: absolute; inset: 0; border-radius: 10px; background: #fff; }
.mock-canva i:nth-child(1) { transform: rotate(-12deg) translateX(-18%); background: color-mix(in srgb, var(--c) 45%, #fff); }
.mock-canva i:nth-child(2) { transform: rotate(8deg) translateX(18%); background: var(--ink); }
.mock-canva i:nth-child(3) { background: var(--c); padding: 14%; display: flex; flex-direction: column; justify-content: space-between; }
.mock-canva i:nth-child(3)::before { content: "5 tips"; font-family: var(--display); font-style: italic; font-weight: 700; color: var(--ink); font-size: clamp(16px, 1.8vw, 22px); line-height: 1; }
.mock-canva i:nth-child(3)::after { content: ""; height: 6px; width: 60%; border-radius: 3px; background: rgba(23,20,31,.35); box-shadow: 0 -12px 0 rgba(23,20,31,.2); }
.card:hover .mock-canva i:nth-child(1) { transform: rotate(-18deg) translateX(-30%); }
.card:hover .mock-canva i:nth-child(2) { transform: rotate(14deg) translateX(30%); }
.mock-canva i { transition: transform .6s var(--ease); }

.mock-print { width: 58%; aspect-ratio: 3/4; background: #fff; border-radius: 6px; padding: 12%; }
.mock-print .h { height: 8px; width: 70%; border-radius: 3px; background: var(--ink); margin: 0 auto 10px; }
.mock-print .dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mock-print .dots i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--c); }
.mock-print .dots i.on { background: var(--c); }

/* ---------- Bundle (CSS 3D box) ---------- */
.bundle { background: var(--ink); color: #fff; border-radius: var(--radius-lg); width: min(1240px, 100% - 24px); margin: 40px auto; overflow: hidden; }
.bundle::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 20% 50%, rgba(108,92,231,.45), transparent 60%), radial-gradient(500px circle at 90% 10%, rgba(255,107,74,.35), transparent 60%); pointer-events: none; }
.bundle-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.bundle h2 em { color: var(--sun); }
.bundle p { color: rgba(255,255,255,.72); font-size: 1.08rem; max-width: 480px; }
.bundle-stage { position: relative; height: 440px; perspective: 1200px; display: grid; place-items: center; }
.box3d { --w: 230px; --h: 300px; --d: 80px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(-28deg); animation: boxspin 14s ease-in-out infinite; }
@keyframes boxspin { 0%, 100% { transform: rotateX(-12deg) rotateY(-28deg) translateY(0); } 50% { transform: rotateX(-6deg) rotateY(-50deg) translateY(-14px); } }
.face { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; }
.face.front, .face.back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.face.front { transform: translateZ(calc(var(--d) / 2)); background: linear-gradient(150deg, var(--coral), #FF9A6B 45%, var(--sun)); border-radius: 6px; padding: 26px; }
.face-in { height: 100%; border: 2px solid rgba(255,255,255,.55); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.face-kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.face-in b { font-family: var(--display); font-size: 34px; line-height: 1; }
.face-tag { align-self: flex-start; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.face.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #E0553A; border-radius: 6px; }
.face.right, .face.left { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); display: grid; place-items: center; }
.face.right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(#D9472E, #E88A2E); }
.face.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: #C94129; }
.face.right span, .face.left span { writing-mode: vertical-rl; font-weight: 800; letter-spacing: .3em; font-size: 13px; color: rgba(255,255,255,.85); }
.face.top, .face.bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.face.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: #FFB36B; }
.face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #A83520; }
.box-shadow { position: absolute; bottom: 40px; width: 260px; height: 40px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.55), transparent 70%); animation: shadow 14s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(.85); opacity: .7; } }
.float-tag { position: absolute; padding: 9px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--ink); animation: floaty 6s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.t1 { background: var(--sun); top: 12%; left: 6%; }
.t2 { background: var(--teal); top: 22%; right: 2%; animation-delay: -1.5s; }
.t3 { background: #fff; bottom: 22%; left: 2%; animation-delay: -3s; }
.t4 { background: var(--pink); bottom: 12%; right: 10%; animation-delay: -4.5s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(-3deg); } }
.checks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.checks.dark li { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.price-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 26px; flex-wrap: wrap; }
.price-now { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price-old { font-size: 20px; text-decoration: line-through; opacity: .5; }
.save-chip { background: var(--sun); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }

/* ---------- Free tool ---------- */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tool-copy p { color: var(--ink-2); font-size: 1.08rem; }
.field { margin-top: 28px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.input-wrap { display: flex; align-items: stretch; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(108,92,231,.15); }
.input-wrap select { border: 0; background: var(--bg-2); padding: 0 14px; font: inherit; font-weight: 800; font-size: 20px; color: var(--ink); cursor: pointer; outline: none; }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 16px 18px; font: inherit; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); outline: none; }
input[type="range"] { width: 100%; margin-top: 18px; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--violet) var(--p, 20%), var(--bg-2) var(--p, 20%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); box-shadow: var(--shadow-sm); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); cursor: grab; }
.tool-note { margin-top: 26px; font-size: 15px !important; }
.tool-note a { color: var(--coral); font-weight: 700; border-bottom: 2px solid currentColor; }
.tool-card { background: var(--paper); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.donut-wrap { position: relative; width: min(280px, 100%); margin: 0 auto 28px; }
.donut { width: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; }
.donut-track { stroke: var(--bg-2); }
.seg { stroke-linecap: butt; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease); }
.seg-needs { stroke: var(--violet); } .seg-wants { stroke: var(--coral); } .seg-save { stroke: var(--teal); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center span { font-size: 13px; color: var(--muted); font-weight: 600; }
.donut-center b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.legend { display: grid; gap: 10px; }
.leg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.leg i { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.leg div { display: flex; justify-content: space-between; align-items: center; flex: 1; gap: 10px; }
.leg span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.leg b { font-size: 18px; font-weight: 800; }
.c-needs { background: var(--violet); } .c-wants { background: var(--coral); } .c-save { background: var(--teal); }
.yearly { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.yearly b { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.step { --rx: 0deg; --ry: 0deg; position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s; }
.step:hover { box-shadow: var(--shadow); }
.step-n { position: absolute; right: 18px; top: 6px; font-family: var(--display); font-size: 84px; font-weight: 700; color: var(--bg-2); line-height: 1; }
.step-ic { position: relative; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--bg); margin-bottom: 28px; }
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; position: relative; }
.step p { margin: 0; color: var(--muted); position: relative; }

/* ---------- Why (bento) ---------- */
.why { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; perspective: 1200px; }
.why-card { --rx: 0deg; --ry: 0deg; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s; }
.why-card:hover { box-shadow: var(--shadow); }
.why-card.big { grid-row: span 2; background: linear-gradient(160deg, #EDE9FF, #FFE9E1); display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.why-card.big h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; margin-bottom: 14px; }
.why-card.big p { color: var(--ink-2); margin: 0; }
.why-ic { font-size: 28px; margin-bottom: 18px; }
.why-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
.why-card.c1 { background: #FFF6DB; } .why-card.c2 { background: #DDF6F3; } .why-card.c3 { background: #FFE4EC; } .why-card.c4 { background: #E9E6FF; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); flex: none; transition: transform .3s var(--ease), background .3s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.pm::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
details[open] .pm { background: var(--sun); transform: rotate(180deg); }
details[open] .pm::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(50px, 8vw, 100px) clamp(24px, 6vw, 80px); background: linear-gradient(135deg, var(--violet), #8F5CE7 40%, var(--coral)); color: #fff; text-align: center; }
.cta-card h2 { max-width: 760px; margin: 0 auto 16px; }
.cta-card h2 em { color: var(--sun); }
.cta-card p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0 auto 34px; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-orbs i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); animation: floaty 8s ease-in-out infinite; }
.cta-orbs i:nth-child(1) { width: 220px; height: 220px; top: -80px; left: -60px; }
.cta-orbs i:nth-child(2) { width: 140px; height: 140px; bottom: -40px; right: 12%; animation-delay: -3s; }
.cta-orbs i:nth-child(3) { width: 70px; height: 70px; top: 20%; right: 6%; background: var(--sun); opacity: .8; animation-delay: -5s; }
.cta-card > *:not(.cta-orbs) { position: relative; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { color: var(--muted); max-width: 300px; margin-top: 14px; }
.f-col h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted); }
.f-col a { display: block; padding: 5px 0; font-weight: 600; color: var(--ink-2); transition: color .2s, transform .2s; }
.f-col a:hover { color: var(--coral); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23,20,31,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(1060px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--paper); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(30px) scale(.96) rotateX(8deg); transition: all .45s var(--ease); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card > * { min-width: 0; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; line-height: 1; box-shadow: var(--shadow-sm); }
.modal-media { min-height: 320px; display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #fff)); }
.modal-media .mock { width: 62%; }
.modal-media .mock-planner { width: 48%; }
/* media carousel */
.modal-media.carousel { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0; place-items: stretch; }
.mc-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.55); box-shadow: 0 10px 30px rgba(23,20,31,.12); touch-action: pan-y; outline: none; }
.mc-stage:focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.mc-track { display: flex; height: 100%; transition: transform .5s var(--ease); will-change: transform; }
.mc-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: grid; place-items: center; }
.mc-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.mc-video { width: 100%; height: 100%; object-fit: contain; background: rgba(23,20,31,.85); }
.mc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; opacity: .9; transition: opacity .2s, transform .2s var(--ease); }
.mc-nav:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.mc-nav.prev { left: 10px; } .mc-nav.next { right: 10px; }
.mc-count { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(23,20,31,.7); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.mc-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.mc-thumb { position: relative; flex: 0 0 76px; height: 57px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: rgba(255,255,255,.7); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-thumb.on { border-color: var(--ink); opacity: 1; }
.mc-thumb:hover { opacity: 1; }
.mc-thumb.is-vid { background: var(--ink); }
.mc-thumb.is-vid i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 16px; background: rgba(23,20,31,.35); }
.mc-thumb.is-vid b { position: absolute; left: 4px; bottom: 3px; font-size: 9.5px; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.m-watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.m-watch span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 11px; }
.m-watch:hover { border-color: var(--ink); transform: translateY(-1px); }
.m-watch[hidden] { display: none; }
.modal-body { padding: 40px 34px 30px; }
.m-cat { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.modal-body h3 { font-family: var(--display); font-size: 32px; font-weight: 700; margin: 8px 0 10px; }
.modal-body > p { color: var(--ink-2); margin: 0; }
.modal-body .price-now { font-size: 36px; }
.m-secure { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: none; text-align: center; padding: 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg); transform: translateY(120%); transition: transform .4s var(--ease); }
.sticky-cta.show { transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal { transform: translateY(40px) rotateX(10deg); }
.card.reveal.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.step.reveal.in, .why-card.reveal.in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cats .cat:last-child:nth-child(3n+1) { grid-column: span 3; }
  .why { grid-template-columns: 1fr 1fr; }
  .why-card.big { grid-column: span 2; grid-row: auto; min-height: 240px; }
}
@media (max-width: 880px) {
  .nav-links { position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: 12px; border-radius: 24px; background: rgba(255,253,249,.97); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: all .3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 18px; font-size: 16px; }
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .hero { display: block; padding: 0 0 70px; min-height: 0; }
  #hero3d { position: relative; inset: auto; height: min(92vw, 440px); margin-top: 64px; }
  .scroll-hint { display: none; }
  .hero-copy { max-width: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bundle-inner, .tool { grid-template-columns: 1fr; gap: 30px; }
  .bundle-stage { height: 380px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: span 2; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 240px; }
  .modal-media.carousel { padding: 12px; min-height: 0; }
  .mc-nav { width: 36px; height: 36px; }
  .sticky-cta { display: block; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .cats { grid-template-columns: 1fr 1fr; }
  .cats .cat:last-child, .cats .cat:last-child:nth-child(3n+1), .cats .cat:last-child:nth-child(4n+3) { grid-column: span 2; }
  .products { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16 / 11; }
  .why { grid-template-columns: 1fr; }
  .why-card.big { grid-column: auto; }
  .hero-proof { gap: 12px; }
  .proof-sep { display: none; }
  .hero-actions .btn { flex: 1; }
  .tool-card { padding: 24px 18px; }
  .input-wrap input { font-size: 24px; }
  .box3d { --w: 190px; --h: 250px; --d: 64px; }
  .face-in b { font-size: 28px; }
  .modal-body { padding: 28px 22px 24px; }
  .bundle { width: calc(100% - 16px); }
}

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