/* ─────────────────────────────────────────────────────────────────────────
   Menu Factory — component-level styles
   Primitives (tokens, reset, buttons, cards, chips, layout, animations)
   live in tokens.css. Only component-specific styles live here.
   ───────────────────────────────────────────────────────────────────────── */

#root { min-height: 100vh; min-height: 100dvh; }

/* ── Hero typography ──────────────────────────────────────────────────── */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--mu);
}
.lead {
  font-size: 17px;
  color: var(--mu);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ── Gradient text ────────────────────────────────────────────────────── */
.grad-text {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Dropzone ─────────────────────────────────────────────────────────── */
.dz {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--paper);
  padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.dz:hover, .dz.over { border-color: var(--ink); background: #fff; }
.dz .dz-glyph {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--mu); font-size: 18px;
}

/* ── Swatch grid ──────────────────────────────────────────────────────── */
.swatch {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ── Phone mockup shell ───────────────────────────────────────────────── */
.phone {
  width: 320px; height: 660px;
  background: #0a0908;
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.06),
    inset 0 0 0 3px rgba(0,0,0,0.5),
    0 50px 100px -40px rgba(10,9,8,0.45),
    0 20px 40px -20px rgba(10,9,8,0.20);
  position: relative;
}
.phone::before {
  content: ''; position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 30px; border-radius: 18px;
  background: #000; z-index: 5;
}
.phone-inner {
  width: 100%; height: 100%;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
}

/* ── Glass ────────────────────────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
}
.glass-dark {
  background: rgba(10,9,8,0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Nav link ─────────────────────────────────────────────────────────── */
.nav-link { transition: color 140ms; }
.nav-link:hover { color: var(--ink); }

/* ── Animations (distinct from tokens.css — kept for existing components) */
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.floaty { animation: floaty 4.5s ease-in-out infinite; }

@keyframes sparkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
.sparkle { animation: sparkle 2.2s ease-in-out infinite; }

/* ── Shimmer bar (wizard/loading progress bar) ────────────────────────── */
.shimmer-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; position: relative; }
.shimmer-bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  width: 30%; animation: shimmer-bar-travel 1.4s linear infinite;
}
@keyframes shimmer-bar-travel {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(450%); }
}

/* ── Mobile responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { line-height: 1.05; }
  .lead { font-size: 15px; }
  .btn.lg { height: 48px; padding: 0 20px; font-size: 14px; }
  .phone { transform: scale(0.68); transform-origin: top center; }
  .card { border-radius: var(--r-md); }
}
