/* ============================================================
   margheritaAI — glossy bright redesign
   ============================================================ */

:root {
  /* Glossy bright palette (default) */
  --bg: #FFFFFF;
  --bg-2: #F6F4FF;
  --bg-3: #EFEBFF;
  --paper: #FFFFFF;
  --paper-2: #F6F4FF;
  --cream: #FFFFFF;

  --violet: #7C3AED;
  --violet-deep: #6D28D9;
  --pink: #EC4899;
  --pink-deep: #DB2777;
  --mint: #10D9A3;
  --mint-deep: #0BB78A;
  --sky: #38BDF8;
  --sun: #FACC15;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --muted: #64748B;

  /* Token aliases (kept for component compatibility) */
  --tomato: var(--pink);
  --tomato-deep: var(--pink-deep);
  --basil: var(--violet);
  --basil-deep: var(--violet-deep);
  --saffron: var(--sun);
  --terracotta: var(--mint);
  --espresso: var(--ink);
  --espresso-soft: var(--ink-soft);

  --line: transparent;
  --line-strong: rgba(15, 23, 42, 0.85);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.05);
  --shadow: 0 4px 16px rgba(15,23,42,0.06), 0 24px 48px -16px rgba(15,23,42,0.10);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.08), 0 40px 80px -24px rgba(15,23,42,0.18);

  --gradient-hero: linear-gradient(135deg, #7C3AED 0%, #EC4899 60%, #FACC15 100%);
  --gradient-violet: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  --gradient-pink: linear-gradient(135deg, #F472B6 0%, #EC4899 100%);
  --gradient-mint: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  --gradient-sky: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-palette="sunset"] {
  --violet: #6366F1;
  --pink: #F43F5E;
  --mint: #06D6A0;
  --sun: #FFD23F;
  --bg-2: #F0F4FF;
  --bg-3: #E6EAFF;
}
[data-palette="popart"] {
  --violet: #8338EC;
  --pink: #FF006E;
  --mint: #06FFA5;
  --sky: #3A86FF;
  --sun: #FFBE0B;
  --bg-2: #FFF1F8;
  --bg-3: #FFE0EE;
}
[data-palette="osteria"] {
  --violet: #4F46E5;
  --pink: #DC2626;
  --mint: #059669;
  --sun: #F59E0B;
  --ink: #1E293B;
  --bg-2: #F1F5F9;
  --bg-3: #E2E8F0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Page chrome
   ============================================================ */
.page { min-height: 100vh; background: var(--bg); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--gradient-hero);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
}
.logo-mark::after {
  content: "m";
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  font-size: 18px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--violet); }
@media (max-width: 880px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Buttons — glossy pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient-hero);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-2); box-shadow: none; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-lg:hover { transform: translateY(-2px); }

/* ============================================================
   Type
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0;
}
.display em {
  font-style: normal;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display-xxl { font-size: clamp(48px, 9vw, 132px); }
.display-xl  { font-size: clamp(48px, 8vw, 120px); }
.display-l   { font-size: clamp(40px, 6vw, 88px); }
.display-m   { font-size: clamp(32px, 4.5vw, 60px); }

.script { color: var(--violet); font-weight: 700; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 80px 0; } }

.section--cream { background: var(--bg); }
.section--paper { background: var(--bg-2); }
.section--basil { background: var(--violet); color: white; }
.section--basil .eyebrow { color: var(--sun); }
.section--tomato {
  background:
    radial-gradient(at 18% 22%, #FF6B9D 0%, transparent 45%),
    radial-gradient(at 82% 18%, #FFD23F 0%, transparent 50%),
    radial-gradient(at 12% 88%, #7C3AED 0%, transparent 50%),
    radial-gradient(at 88% 82%, #06D6A0 0%, transparent 45%),
    radial-gradient(at 50% 50%, #EC4899 0%, transparent 60%),
    linear-gradient(135deg, #6D28D9 0%, #DB2777 100%);
  color: white;
  position: relative;
  isolation: isolate;
}
.section--tomato::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(80% 60% at 80% 100%, rgba(0,0,0,0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: soft-light;
}
.section--tomato .eyebrow { color: var(--sun); }
.section--saffron { background: var(--bg-3); color: var(--ink); }
.section--saffron .eyebrow { color: var(--violet); }
.section--espresso { background: var(--ink); color: white; }
.section--espresso .eyebrow { color: var(--mint); }
.section--dotted {
  background-image: radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow-sm);
}
.pill--tomato { background: var(--gradient-pink); color: white; border-color: transparent; }
.pill--basil { background: var(--gradient-violet); color: white; border-color: transparent; }
.pill--saffron { background: var(--gradient-hero); color: white; border-color: transparent; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 64px 0 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.18) 0%, rgba(236,72,153,0.10) 30%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-headline { position: relative; text-align: center; line-height: 1.1; }
.hero-words {
  display: flex; align-items: center; justify-content: center;
  gap: 0.18em; flex-wrap: wrap; padding: 0.06em 0;
}
.hero-word { white-space: nowrap; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 0.32em;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: white;
  vertical-align: middle;
  font-size: 0.92em;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.hero-chip--tomato { background: var(--gradient-pink); }
.hero-chip--basil { background: var(--gradient-violet); }

.hero-sub {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta span::before { content: "✦ "; color: var(--violet); margin-right: 4px; }

/* Stickers — soft glossy pills */
.sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  user-select: none;
  white-space: nowrap;
  padding: 10px 16px;
  z-index: 2;
}
.sticker--tomato { background: var(--gradient-pink); color: white; border-color: transparent; box-shadow: 0 8px 24px rgba(236,72,153,0.3); }
.sticker--basil { background: var(--gradient-violet); color: white; border-color: transparent; box-shadow: 0 8px 24px rgba(124,58,237,0.3); }
.sticker--saffron { background: var(--gradient-mint); color: var(--ink); border-color: transparent; box-shadow: 0 8px 24px rgba(16,217,163,0.3); }
.sticker--circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0;
  line-height: 1.4;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.sticker.animated { animation: float-slow 6s ease-in-out infinite; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--gradient-hero);
  color: white;
  overflow: hidden;
  padding: 28px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-x 50s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 56px;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track > span::after {
  content: "✦";
  color: rgba(255,255,255,0.8);
  font-size: 28px;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   Editor Demo — true to real margheritaAI UI
   ============================================================ */
.ed {
  background: #F4F5F7;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  position: relative;
}

/* TOP BAR — full violet→pink→yellow gradient */
.ed-top {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  background: var(--gradient-hero);
  color: white;
  gap: 16px;
}
.ed-top-left, .ed-top-center, .ed-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-top-center { flex: 1; justify-content: center; gap: 16px; }
.ed-top-right { gap: 8px; }
.ed-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
.ed-brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: white;
  color: var(--violet);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 6px rgba(0,0,0,0.15);
}
.ed-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.3);
}
.ed-project { font-weight: 500; font-size: 14px; opacity: 0.95; }
.ed-saved {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(4px);
}
.ed-saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); display: inline-block; }
.ed-saved { gap: 8px; }
.ed-saved::before { margin-right: -2px; }
.ed-format {
  font-size: 12px; opacity: 0.9; font-weight: 500;
}
.ed-undo {
  width: 28px; height: 28px; border-radius: 6px;
  background: transparent; border: none; color: white;
  display: grid; place-items: center;
  opacity: 0.8;
}
.ed-undo:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.ed-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.ed-btn:hover { background: white; }
.ed-btn-primary {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(168,85,247,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.ed-btn-primary:hover { background: linear-gradient(135deg, #9333EA 0%, #DB2777 100%); }
.ed-avatar {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px; font-weight: 700;
}
.ed-avatar::before {
  content: "AD";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-violet);
  color: white;
  display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.ed-avatar { gap: 6px; }
.ed-avatar { font-size: 0; }
.ed-avatar::after {
  content: "▾";
  font-size: 10px;
  color: var(--muted);
}

/* MAIN ROW */
.ed-main {
  display: grid;
  grid-template-columns: 72px 280px 1fr 120px;
  height: 640px;
  background: #F4F5F7;
}
@media (max-width: 1100px) {
  .ed-main { grid-template-columns: 56px 240px 1fr 100px; height: 580px; }
}
@media (max-width: 860px) {
  .ed-main { grid-template-columns: 56px 1fr; height: 520px; }
  .ed-panel, .ed-pages { display: none; }
}

/* Slim rail */
.ed-rail {
  background: white;
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
  gap: 2px;
  box-shadow: 1px 0 0 rgba(15,23,42,0.05);
}
.ed-rail-btn {
  background: transparent; border: none;
  padding: 10px 4px 8px;
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted);
  font-size: 10px; font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
  line-height: 1.15;
}
.ed-rail-btn:hover { background: var(--bg-2); color: var(--ink); }
.ed-rail-btn.active {
  background: var(--bg-3);
  color: var(--violet);
}
.ed-rail-btn.active svg { stroke-width: 2; }

/* Panel that opens from the rail */
.ed-panel {
  background: white;
  box-shadow: 1px 0 0 rgba(15,23,42,0.05);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.ed-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.02em;
  position: sticky; top: 0;
  background: white;
  z-index: 2;
}
.ed-panel-close {
  background: transparent; border: none;
  color: var(--muted); font-size: 18px; line-height: 1;
  width: 24px; height: 24px; border-radius: 6px;
}
.ed-panel-close:hover { background: var(--bg-2); }

/* Template cards inside panel */
.ed-tpls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 12px 16px;
}
.ed-tpl {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.ed-tpl:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ed-tpl.active {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}
.ed-tpl-preview {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ed-tpl-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 20% 0%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.ed-tpl-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
  line-height: 1;
}
.ed-tpl-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}
.ed-tpl-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--gradient-pink);
  color: white;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: -0.01em;
  z-index: 1;
}
.ed-tpl-label {
  padding: 8px 4px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

/* Text panel */
.ed-text-list { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.ed-text-item {
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.ed-text-item:hover { background: var(--bg-3); }

/* Shapes panel */
.ed-shape-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 4px 16px 16px; }
.ed-shape-cell {
  aspect-ratio: 1;
  background: var(--bg-2);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
}
.ed-shape-cell:hover { background: var(--bg-3); }

/* Upload */
.ed-upload-zone {
  margin: 8px 16px 16px;
  padding: 32px 20px;
  border-radius: 12px;
  border: 2px dashed rgba(15,23,42,0.15);
  background: var(--bg-2);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.ed-upload-zone svg { color: var(--violet); margin: 0 auto; }

/* Layers */
.ed-layers { padding: 4px 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.ed-layer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ed-layer:hover { background: var(--bg-2); }
.ed-layer.active { background: var(--bg-3); font-weight: 600; }
.ed-layer-eye { color: var(--mint); font-size: 10px; }

/* Canvas column */
.ed-canvas {
  background: #E8EAEE;
  display: flex; flex-direction: column;
  position: relative;
}
.ed-canvas-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: white;
  box-shadow: 0 1px 0 rgba(15,23,42,0.05);
}
.ed-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink);
}
.ed-pill svg { color: var(--violet); }
.ed-canvas-hint {
  font-size: 12px;
  color: var(--muted);
}
.ed-canvas-area {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
}
.ed-paper {
  width: 360px;
  aspect-ratio: 210 / 297;
  background: white;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.18);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition: transform .25s ease;
}
.ed-paper.ai-sparkle {
  animation: ai-pulse 0.8s ease-out;
}
@keyframes ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50%  { box-shadow: 0 0 0 12px rgba(124,58,237,0.0), 0 12px 40px rgba(236,72,153,0.4); }
  100% { box-shadow: 0 10px 40px rgba(15,23,42,0.18); }
}

/* Canvas footer (zoom controls) */
.ed-canvas-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: white;
  box-shadow: 0 -1px 0 rgba(15,23,42,0.05);
  justify-content: center;
}
.ed-zoom-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-2);
  border: none;
  font-size: 16px; line-height: 1;
  color: var(--ink);
}
.ed-zoom-btn:hover { background: var(--bg-3); }
.ed-zoom-range {
  width: 140px;
  accent-color: var(--violet);
}
.ed-zoom-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 36px;
}
.ed-zoom-fit {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-2);
  border: none;
  font-size: 13px;
  color: var(--ink);
  margin-left: 8px;
}

/* Right pages panel */
.ed-pages {
  background: white;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  box-shadow: -1px 0 0 rgba(15,23,42,0.05);
}
.ed-pages-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 4px 4px;
}
.ed-pages-count { color: var(--ink); }
.ed-page-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08);
  transition: outline-color .15s;
  outline: 2px solid transparent;
}
.ed-page-thumb.active { outline-color: var(--violet); }
.ed-page-thumb-img {
  aspect-ratio: 210 / 297;
}
.ed-page-num {
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--violet);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.ed-page-add {
  margin-top: 4px;
  padding: 10px;
  border: 1px dashed rgba(15,23,42,0.2);
  background: transparent;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}
.ed-page-add:hover { border-color: var(--violet); color: var(--violet); }

/* ============================================================
   Menu canvases — themed paper designs
   ============================================================ */

/* MYKONOS — dark blue Greek menu */
.paper-mykonos {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 40%),
    linear-gradient(180deg, #0F2942 0%, #1B3A5C 50%, #0F2942 100%);
  color: white;
  padding: 22px 22px;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
  font-size: 7px;
}
.my-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.my-eyebrow {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 2px;
}
.my-title {
  font-family: 'Brush Script MT', cursive;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}
.my-hours {
  font-size: 6px;
  text-align: right;
  line-height: 1.5;
  opacity: 0.95;
}
.my-hours-h {
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.my-section { margin-bottom: 12px; position: relative; z-index: 2; }
.my-section-h {
  font-family: 'Brush Script MT', cursive;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 2px;
}
.my-section-line {
  height: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,0.5) 2px 4px);
  margin-bottom: 6px;
}
.my-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  margin-bottom: 4px;
  font-size: 6.5px;
}
.my-item-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.my-item-desc {
  grid-column: 1 / -1;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.3;
  font-size: 5.5px;
}
.my-item-price {
  font-weight: 700;
  font-feature-settings: "tnum";
  text-align: right;
}
/* Decorative dark food photo blobs */
.my-photo {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    #1a1a1a;
  z-index: 1;
}
.my-photo-1 { width: 60px; height: 60px; left: 10px; top: 130px; }
.my-photo-2 { width: 80px; height: 80px; right: 8px; top: 200px; background:
    radial-gradient(circle at 40% 30%, #FACC15 0%, #D97706 30%, #78350F 70%, transparent 80%); }
.my-photo-3 { width: 100px; height: 100px; left: 60px; bottom: 14px; background:
    radial-gradient(circle at 40% 40%, #FACC15 0%, #DC2626 60%, #1a1a1a 90%); }

/* Pizza Moment — dark wood + pizza spotlight */
.paper-themed {
  width: 100%; height: 100%;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
}
.paper-pizza-moment {
  background:
    radial-gradient(circle at 50% 35%, rgba(255,210,150,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #1A0F08 0%, #3D1F12 100%);
  color: white;
  text-align: center;
  padding: 24px 16px;
}
.pm-badge {
  display: inline-block;
  background: var(--gradient-pink);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}
.pm-badge span { font-size: 9px; display: block; margin-top: -2px; }
.pm-pizza {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 4px auto 12px;
  background:
    radial-gradient(circle at 50% 50%, #FACC15 0%, #DC2626 50%, #7C2D12 90%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.pm-title-row { line-height: 0.9; }
.pm-title {
  font-size: 42px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FACC15, #DC2626);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pm-title-stroke {
  font-size: 38px; font-weight: 800; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px white;
}
.pm-sub { margin-top: 8px; color: var(--sun); font-weight: 800; font-size: 18px; }
.pm-cta {
  margin-top: 14px;
  display: inline-block;
  background: var(--sun);
  color: #7C2D12;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

/* Tasty Pizza */
.paper-tasty {
  background: linear-gradient(180deg, #2E1A3F 0%, #4A1B5C 100%);
  color: white;
  padding: 28px 20px;
  text-align: center;
}
.tasty-script {
  font-family: 'Brush Script MT', cursive;
  color: var(--sun);
  font-size: 36px;
  line-height: 1;
}
.tasty-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-top: -8px;
}
.tasty-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 14px auto;
  background:
    radial-gradient(circle at 50% 50%, #FACC15 0%, #DC2626 60%, #1a1a1a 90%);
  box-shadow: 0 0 0 4px #FACC15, 0 10px 24px rgba(0,0,0,0.4);
}
.tasty-list {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 10px;
  margin-top: 12px;
  font-weight: 500;
}
.tasty-list b { color: var(--sun); }

/* Hot Pizza */
.paper-hot {
  background:
    radial-gradient(circle at 50% 80%, rgba(250,204,21,0.4) 0%, transparent 60%),
    linear-gradient(180deg, #7F1D1D 0%, #DC2626 60%, #F59E0B 100%);
  color: white;
  padding: 28px 16px;
  text-align: center;
}
.hot-burst {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
}
.hot-title {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-style: italic;
  text-shadow: 0 4px 0 #7F1D1D, 0 8px 20px rgba(0,0,0,0.5);
  position: relative;
}
.hot-title-2 { color: var(--sun); }
.hot-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-top: 16px;
  font-weight: 600;
}
.hot-price {
  margin-top: 20px;
  display: inline-block;
  background: var(--sun);
  color: #7F1D1D;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 18px;
}

/* Döner */
.paper-doener {
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  color: white;
  padding: 28px 22px;
}
.dn-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-style: italic;
}
.dn-title-2 { color: var(--sun); }
.dn-sub {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.9;
  font-weight: 500;
}
.dn-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
}
.dn-row:first-of-type { margin-top: 24px; }
.dn-row b { color: var(--sun); }

/* === HIDE OLD .editor-* styles by simply not using them — replaced by .ed-* === */
.editor-frame, .editor-bar, .editor-side, .editor-canvas, .editor-inspector { display: none !important; }
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  height: 640px;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .editor-frame { grid-template-columns: 1fr; height: auto; }
  .editor-side, .editor-inspector { display: none; }
}
.editor-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.editor-dot { width: 12px; height: 12px; border-radius: 50%; background: #E2E8F0; }
.editor-dot.r { background: #F87171; }
.editor-dot.y { background: #FBBF24; }
.editor-dot.g { background: #34D399; }
.editor-bar-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.editor-bar-actions { display: flex; gap: 8px; }
.editor-bar-actions .mini-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.editor-bar-actions .mini-btn.primary {
  background: var(--gradient-hero); color: white; border-color: transparent;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}

.editor-side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow-y: auto;
}
.editor-side h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 6px 8px;
  color: var(--muted);
}
.editor-side h4:first-child { margin-top: 0; }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s;
}
.side-item:hover { background: white; }
.side-item.active {
  background: var(--gradient-violet);
  color: white;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.side-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
}
.side-item.active .side-icon { background: rgba(255,255,255,0.2); border-color: transparent; color: white; }

.editor-canvas {
  background:
    radial-gradient(rgba(15,23,42,0.06) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--bg-3);
  display: grid;
  place-items: center;
  padding: 32px;
  overflow: auto;
  position: relative;
}
.canvas-paper {
  width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 36px;
  position: relative;
  font-family: var(--font-display);
  transition: box-shadow .3s ease;
}
.canvas-paper.ai-sparkle {
  box-shadow:
    0 0 0 4px rgba(124,58,237,0.25),
    0 8px 32px rgba(124,58,237,0.35),
    0 40px 80px -24px rgba(236,72,153,0.45);
  animation: ai-pulse 0.8s ease-out;
}
@keyframes ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,0.5), var(--shadow-lg); }
  50%  { box-shadow: 0 0 0 12px rgba(124,58,237,0.0), 0 12px 40px rgba(236,72,153,0.4); }
  100% { box-shadow: 0 0 0 4px rgba(124,58,237,0.25), 0 8px 32px rgba(124,58,237,0.35); }
}
.ai-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--violet);
}
.ai-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--pink), var(--mint), var(--violet));
  mask: radial-gradient(circle, transparent 50%, black 52%);
  -webkit-mask: radial-gradient(circle, transparent 50%, black 52%);
  animation: spin 0.9s linear infinite;
  margin-bottom: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.collab-cursor {
  position: absolute; top: 60px; right: 60px;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--gradient-violet); color: white;
  padding: 4px 10px; border-radius: 0 10px 10px 10px;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
  animation: cursor-float 4s ease-in-out infinite;
}
@keyframes cursor-float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-8px, -6px); }
}

.editor-inspector {
  background: white;
  border-left: 1px solid var(--line);
  padding: 18px 16px;
  overflow-y: auto;
}
.editor-inspector h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 16px 0 8px;
  color: var(--muted);
}
.editor-inspector h4:first-child { margin-top: 0; }
.inspector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.swatch-row { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.swatch.active { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--violet); }

/* Menu canvas */
.menu-card { display: flex; flex-direction: column; gap: 12px; }
.menu-card .menu-header {
  text-align: center;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 14px;
}
.menu-card .menu-header h3 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
}
.menu-card .menu-header p {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 6px 0 0;
}
.menu-section-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--violet);
  margin: 6px 0 4px;
  font-weight: 600;
}
.menu-row { display: flex; align-items: baseline; font-family: var(--font-display); font-size: 16px; gap: 8px; }
.menu-row .name { font-weight: 500; }
.menu-row .desc { font-family: var(--font-sans); font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; font-weight: 400; }
.menu-row .leader { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-3px); }
.menu-row .price { font-feature-settings: "tnum"; font-weight: 600; }
.menu-row .item { flex: 1; }

.selected { outline: 2px dashed var(--violet); outline-offset: 6px; position: relative; }
.selected::before {
  content: "Title · Selected";
  position: absolute;
  left: -2px; top: -22px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--violet); color: white;
  padding: 2px 6px;
  border-radius: 4px 4px 4px 0;
}

/* ============================================================
   eCaupo
   ============================================================ */
.ecaupo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 900px) {
  .ecaupo { grid-template-columns: 1fr; }
  .ecaupo-arrow { transform: rotate(90deg); justify-self: center; }
}
.ecaupo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ecaupo-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ecaupo-arrow {
  display: grid;
  place-items: center;
  width: 80px;
  align-self: center;
  color: var(--violet);
}

.sheet { font-family: var(--font-mono); font-size: 11px; display: flex; flex-direction: column; }
.sheet-row {
  display: grid;
  grid-template-columns: 36px 1fr 60px 70px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.sheet-row > * {
  padding: 7px 8px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-row.head {
  background: var(--bg-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9.5px;
  color: var(--muted);
}

/* ============================================================
   Templates
   ============================================================ */
.templates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .templates { grid-template-columns: repeat(6, 1fr); } }
.tpl {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl-img { aspect-ratio: 3 / 4; position: relative; overflow: hidden; }
.tpl-meta {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  font-size: 13px;
  font-weight: 600;
}
.tpl-meta .kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.tpl--col-4 { grid-column: span 4; }
.tpl--col-3 { grid-column: span 3; }
.tpl--col-6 { grid-column: span 6; }
.tpl--col-5 { grid-column: span 5; }
.tpl--col-7 { grid-column: span 7; }
@media (max-width: 900px) {
  .tpl--col-4, .tpl--col-3, .tpl--col-5, .tpl--col-7 { grid-column: span 6; }
}

/* ============================================================
   Workflow
   ============================================================ */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .workflow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .workflow { grid-template-columns: 1fr; } }
.step {
  padding: 32px 24px;
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step:nth-child(1) .step-num { background: var(--gradient-violet); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:nth-child(2) .step-num { background: var(--gradient-pink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:nth-child(3) .step-num { background: var(--gradient-mint); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:nth-child(4) .step-num { background: var(--gradient-sky); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  line-height: 1.1;
}
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ============================================================
   Use cases
   ============================================================ */
.usecases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .usecases { grid-template-columns: 1fr; } }
.usecase {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: white;
  transition: transform .25s ease, box-shadow .25s ease;
}
.usecase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-violet);
  z-index: -2;
}
/* glossy highlight sweep */
.usecase::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% -10%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 50%),
    radial-gradient(80% 60% at 110% 110%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 60%);
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.usecase:nth-child(1)::before { background: var(--gradient-violet); }
.usecase:nth-child(2)::before { background: var(--gradient-pink); }
.usecase:nth-child(3)::before { background: var(--gradient-mint); }
.usecase:nth-child(4)::before { background: var(--gradient-sky); }
.usecase:nth-child(1) { box-shadow: 0 12px 32px -8px rgba(124,58,237,0.45), 0 2px 0 rgba(255,255,255,0.4) inset; }
.usecase:nth-child(2) { box-shadow: 0 12px 32px -8px rgba(236,72,153,0.45), 0 2px 0 rgba(255,255,255,0.4) inset; }
.usecase:nth-child(3) { box-shadow: 0 12px 32px -8px rgba(16,217,163,0.45), 0 2px 0 rgba(255,255,255,0.4) inset; }
.usecase:nth-child(4) { box-shadow: 0 12px 32px -8px rgba(59,130,246,0.45), 0 2px 0 rgba(255,255,255,0.4) inset; }
.usecase:hover { transform: translateY(-4px); }
.usecase:nth-child(1):hover { box-shadow: 0 20px 48px -8px rgba(124,58,237,0.55), 0 2px 0 rgba(255,255,255,0.5) inset; }
.usecase:nth-child(2):hover { box-shadow: 0 20px 48px -8px rgba(236,72,153,0.55), 0 2px 0 rgba(255,255,255,0.5) inset; }
.usecase:nth-child(3):hover { box-shadow: 0 20px 48px -8px rgba(16,217,163,0.55), 0 2px 0 rgba(255,255,255,0.5) inset; }
.usecase:nth-child(4):hover { box-shadow: 0 20px 48px -8px rgba(59,130,246,0.55), 0 2px 0 rgba(255,255,255,0.5) inset; }
.usecase .uc-glyph {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -8px 20px rgba(0,0,0,0.08),
    0 4px 12px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
  color: white;
}
.usecase h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 24px;
  margin: 0 0 6px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.usecase p { font-size: 14px; color: rgba(255,255,255,0.92); margin: 0; line-height: 1.5; }
.usecase .uc-tag {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ============================================================
   Stats / FAQ
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-color: rgba(255,255,255,0.2);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 36px 20px;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}
.stat:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.2); }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(56px, 8vw, 88px);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.faq-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .25s ease, background .25s, color .25s;
}
.faq-item.open .faq-toggle {
  background: var(--gradient-hero);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 4px 22px; }

/* ============================================================
   Pricing
   ============================================================ */
.bill-toggle {
  display: inline-flex;
  margin: 0 auto 48px;
  padding: 4px;
  background: white;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.bill-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bill-toggle button.active {
  background: var(--ink);
  color: white;
}
.bill-save {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--gradient-mint);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
}
.bill-toggle button.active .bill-save {
  background: rgba(255,255,255,0.2);
  color: white;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border-radius: 28px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.plan-pro {
  background: linear-gradient(180deg, #1A1530 0%, #0F0825 100%);
  color: white;
  box-shadow: 0 12px 40px rgba(124,58,237,0.25), 0 2px 0 rgba(255,255,255,0.06) inset;
  isolation: isolate;
}
.plan-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(236,72,153,0.4) 0%, transparent 50%),
    radial-gradient(circle at -10% 120%, rgba(124,58,237,0.4) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.plan-ribbon {
  position: absolute;
  top: 20px;
  right: -42px;
  transform: rotate(35deg);
  background: var(--gradient-hero);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 48px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.plan-pro .plan-tag { color: rgba(255,255,255,0.7); }
.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 24px 0 6px;
  line-height: 1;
}
.plan-currency {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-top: 12px;
}
.plan-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan-pro .plan-num {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 18px;
}
.plan-pro .plan-period { color: rgba(255,255,255,0.7); }
.plan-billing {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.plan-pro .plan-billing { color: rgba(255,255,255,0.7); }
.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, transform .15s, box-shadow .15s;
  margin-bottom: 28px;
}
.plan-cta:hover { background: var(--bg-3); transform: translateY(-1px); }
.plan-cta-pro {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.plan-cta-pro:hover { box-shadow: 0 12px 32px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.3); background: var(--gradient-hero); }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.plan-features li svg {
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--mint);
}
.plan-pro .plan-features li svg { color: var(--sun); }
.plan-features li.muted { color: var(--muted); }
.plan-features li.muted svg { color: var(--muted); opacity: 0.7; }
.plan-features li.hl b { font-weight: 700; }

.plans-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.plans-foot svg { color: var(--mint); }

/* ============================================================
   Registration form (BigCTA)
   ============================================================ */
.register-form {
  max-width: 460px;
  margin: 36px auto 0;
  background: white;
  color: var(--ink);
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.18);
  text-align: left;
}
.rf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.rf-field input {
  appearance: none;
  border: 1px solid rgba(15,23,42,0.15);
  background: white;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.rf-field input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.rf-field input::placeholder { color: rgba(15,23,42,0.4); }
.rf-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.rf-legal {
  border: none;
  border-top: 1px solid rgba(15,23,42,0.10);
  padding: 16px 0 4px;
  margin: 4px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-legal legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px 0 0;
  margin-bottom: 4px;
}
.rf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.rf-check input[type="checkbox"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid rgba(15,23,42,0.3);
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
}
.rf-check input[type="checkbox"]:checked {
  background: var(--violet);
  border-color: var(--violet);
}
.rf-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.rf-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
}
.rf-check a {
  color: var(--violet);
  text-decoration: underline;
  font-weight: 500;
}
.rf-submit {
  width: 100%;
  border: none;
  background: var(--gradient-hero);
  color: white;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .15s, box-shadow .15s;
}
.rf-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.rf-submit:active { transform: translateY(0); }
.bigcta { text-align: center; position: relative; }
.bigcta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 28px auto 0;
  background: white;
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
}
.bigcta-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.bigcta-form input::placeholder { color: var(--muted); }
.bigcta-form button {
  border: none;
  background: var(--gradient-hero);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: white; padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: rgba(255,255,255,0.85); }
.footer ul a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Utility
   ============================================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }
.section-head .lede {
  max-width: 460px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

.ph {
  background:
    repeating-linear-gradient(45deg, rgba(15,23,42,0.05) 0 6px, transparent 6px 12px),
    var(--bg-3);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* less-playful mode (playful slider 0-3) */
[data-playful="0"] .sticker,
[data-playful="1"] .sticker { display: none !important; }
[data-playful="0"] .marquee,
[data-playful="1"] .marquee { display: none; }

[data-playful="9"] .sticker,
[data-playful="10"] .sticker { animation-duration: 3s; }
