/* ============================================================
   RecipeVault Studio — premium $100M product landing
   ============================================================ */

:root {
  --bg:           #0a0807;
  --bg-2:         #110d0b;
  --panel:        rgba(255, 247, 232, 0.04);
  --panel-2:      rgba(255, 247, 232, 0.07);
  --panel-3:      rgba(255, 247, 232, 0.10);
  --border:       rgba(255, 247, 232, 0.10);
  --border-2:     rgba(255, 247, 232, 0.18);

  --ink:          #fbf6ec;
  --ink-2:        #e8dfd0;
  --ink-dim:      #aea394;
  --ink-mute:     #6f6457;

  --coral:        #ff5c7a;
  --coral-2:      #ff89a3;
  --gold:         #f4c47a;
  --gold-2:       #ffd99c;
  --plum:         #7c4f8f;
  --green:        #66c992;

  --radius-lg:    20px;
  --radius:       14px;
  --radius-sm:    10px;

  --serif:        'Fraunces', 'Times New Roman', serif;
  --sans:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity 0.2s ease; }
.hidden { display: none !important; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

/* ============================================================
   Animated mesh gradient background
   ============================================================ */
.mesh {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}
.mesh-blob-1 {
  width: 760px; height: 760px;
  background: radial-gradient(circle, var(--coral), transparent 60%);
  top: -200px; left: -100px;
  animation: float-1 22s ease-in-out infinite;
}
.mesh-blob-2 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, var(--gold), transparent 60%);
  top: 200px; right: -120px;
  animation: float-2 26s ease-in-out infinite;
  opacity: 0.35;
}
.mesh-blob-3 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--plum), transparent 60%);
  top: 60vh; left: 30%;
  animation: float-3 30s ease-in-out infinite;
  opacity: 0.30;
}
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 100px) scale(1.15); }
  66% { transform: translate(-60px, 60px) scale(0.95); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-120px, 80px) scale(1.2); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(160px, -100px) scale(0.85); }
}
.mesh-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.18; mix-blend-mode: overlay;
}

/* ============================================================
   Top nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(20px) saturate(160%);
  background: linear-gradient(to bottom, rgba(10, 8, 7, 0.80), rgba(10, 8, 7, 0.55));
  border-bottom: 1px solid rgba(255, 247, 232, 0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  color: #1a0c0e; box-shadow: 0 4px 14px rgba(255, 92, 122, 0.28);
}
.brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 19px; letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; font-weight: 400; opacity: 0.85; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  background: var(--ink); color: #1a0c0e; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; font-size: 13px;
}
.nav-links .nav-cta:hover { background: var(--gold-2); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, #fff 0%, #fbe7d0 100%);
  color: #1a0c0e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 2px rgba(0,0,0,0.4),
    0 12px 28px -8px rgba(255, 92, 122, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 1px 2px rgba(0,0,0,0.4),
    0 18px 36px -8px rgba(255, 92, 122, 0.7);
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--panel-2); border-color: rgba(255, 247, 232, 0.30);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 60px 0 40px; position: relative; }
@media (max-width: 1100px) { .hero { padding: 56px 0 60px; } }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center;
}
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; gap: 60px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 92, 122, 0.10);
  color: var(--coral-2);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255, 92, 122, 0.25);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 10px rgba(255, 92, 122, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 0.98; letter-spacing: -0.035em;
  margin: 24px 0 22px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(180deg, var(--gold) 0%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-dim);
  max-width: 540px; margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 38px; line-height: 1; letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, #c9b89c 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix { font-size: 24px; opacity: 0.7; }
.stat-label {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600;
}

/* ----- Floating phone mock — real TikTok format ----- */
.hero-visual {
  position: relative;
  height: 640px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 1100px) { .hero-visual { height: 560px; } }

.phone {
  /* Modern iPhone aspect ~9:19.5; tall enough to feel real */
  width: 320px; height: 620px;
  background: linear-gradient(160deg, #2a201d 0%, #14100e 100%);
  border-radius: 44px;
  border: 1.5px solid rgba(255, 247, 232, 0.10);
  position: relative;
  box-shadow:
    0 1px 1px rgba(255,255,255,0.05) inset,
    0 -1px 1px rgba(0,0,0,0.5) inset,
    0 30px 60px -10px rgba(0, 0, 0, 0.6),
    0 60px 120px -20px rgba(255, 92, 122, 0.25);
  overflow: hidden;
  animation: phone-tilt 14s ease-in-out infinite;
}
@keyframes phone-tilt {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-12px); }
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #000; border-radius: 999px;
  z-index: 4;
}
.phone-screen {
  position: absolute; inset: 8px; border-radius: 36px;
  background: #000; overflow: hidden;
}
.phone-deck {
  position: absolute; inset: 0;
  background: #000;
}
.phone-deck img {
  /* Show the entire slide (4:5) inside the 9:16ish screen — black bars top/bottom,
     mimicking how TikTok renders photo carousels */
  position: absolute;
  width: 100%;
  height: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.7s ease;
}
.phone-deck img.active { opacity: 1; }

/* ===== TikTok UI overlay ===== */
.tk-ui {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}

/* Top progress bars (12 segments for compilation) */
.tk-progress {
  display: flex; gap: 3px;
  position: absolute; top: 44px; left: 16px; right: 16px;
  z-index: 5;
}
.tk-progress span {
  flex: 1; height: 2px; border-radius: 999px;
  background: rgba(255,255,255,0.35);
}
.tk-progress span.done { background: rgba(255,255,255,0.95); }
.tk-progress span.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.95) var(--p, 50%), rgba(255,255,255,0.35) var(--p, 50%));
}

/* Right action sidebar — sits over the lower-right of the screen */
.tk-actions {
  position: absolute;
  right: 10px; bottom: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 5;
}
.tk-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  border: 2px solid #fff;
  position: relative;
}
.tk-avatar::after {
  content: "+"; position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: #ff4d6d; color: #fff;
  font-size: 11px; font-weight: 800; line-height: 14px;
  text-align: center;
}
.tk-act {
  background: transparent; border: 0; padding: 0; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff;
}
.tk-act-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.tk-act-count {
  font-size: 11px; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* Bottom caption + username */
.tk-bottom {
  position: absolute;
  left: 14px; right: 60px;
  bottom: 16px;
  color: #fff; z-index: 5;
}
.tk-user {
  font-size: 13px; font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.tk-user span {
  font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 2px 7px; border-radius: 4px;
  font-size: 10px; margin-left: 4px;
  background: rgba(0,0,0,0.25);
}
.tk-caption {
  font-size: 12px; line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.tk-music {
  font-size: 11px; opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.float-card {
  position: absolute;
  background: rgba(20, 16, 14, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 247, 232, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
  animation: float-card 7s ease-in-out infinite;
}
.float-card-1 {
  top: 12%; left: -8%; max-width: 220px;
  animation-delay: -1s;
}
.float-card-2 {
  bottom: 14%; right: -6%; max-width: 240px;
  animation-delay: -3.5s;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.fc-pill, .fc-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #1a0c0e;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.fc-tag { background: rgba(102, 201, 146, 0.18); color: var(--green); border: 1px solid rgba(102, 201, 146, 0.4); }
.fc-text { font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--ink); }
.fc-text em { font-style: normal; color: var(--coral-2); }

/* ============================================================
   Section heads
   ============================================================ */
.section-head { margin-bottom: 44px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 100%; flex-wrap: wrap; }
.section-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--coral-2); letter-spacing: 0.10em;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 0;
}
.section-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(180deg, var(--gold) 0%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Demo video section
   ============================================================ */
.demo { padding: 40px 0 30px; }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 16px;
}
.demo-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(180deg, var(--gold) 0%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.demo-lede {
  font-size: 15px; line-height: 1.6; color: var(--ink-dim);
  margin-bottom: 20px; max-width: 480px;
}
.demo-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-step {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,247,232,0.06); border: 1px solid rgba(255,247,232,0.12);
  color: var(--ink); transition: border-color .15s;
}
.demo-step:hover { border-color: rgba(255,247,232,0.25); }
.demo-video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 340px;
  background: rgba(255,247,232,0.03);
  border: 2px dashed rgba(255,92,122,0.25);
  border-radius: 20px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.demo-video-placeholder:hover { border-color: rgba(255,92,122,0.45); background: rgba(255,92,122,0.04); }
.demo-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(255,92,122,0.25);
}
.demo-video-label { font-size: 16px; font-weight: 700; color: var(--ink); }
.demo-video-hint { font-size: 13px; color: var(--ink-dim); }

/* ============================================================
   How it works
   ============================================================ */
.how { padding: 50px 0 30px; }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.how-card:hover {
  background: var(--panel-2);
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.how-num {
  font-family: var(--serif); font-style: italic;
  font-size: 38px; font-weight: 400;
  background: linear-gradient(180deg, var(--gold) 0%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.how-card h3 {
  font-family: var(--sans); font-weight: 800;
  font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em;
}
.how-card p { color: var(--ink-dim); margin: 0; font-size: 15px; line-height: 1.55; }

/* ============================================================
   Generator — studio layout
   ============================================================ */
.generator { padding: 40px 0 30px; }
.studio-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-left .section-title { max-width: none; }
.studio-action-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Category card grid */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: border-color .2s, background .2s;
}
.cat-card:hover { border-color: rgba(255,247,232,.22); }
.cat-card-active { border-color: var(--coral); background: rgba(255,92,122,.06); }
.cat-img {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: 10px; margin-bottom: 8px;
  opacity: 0.85; transition: opacity .2s;
}
.cat-card:hover .cat-img { opacity: 1; }
.cat-card h4 {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: var(--ink); margin: 0;
}
.cat-card p {
  font-size: 12px; color: var(--ink-dim); margin: 0; line-height: 1.4;
}

.format-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 800px) { .format-cards { grid-template-columns: 1fr; } }

.fmt-card {
  position: relative;
  text-align: left; cursor: pointer;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  color: inherit; font-family: inherit;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.fmt-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 92, 122, 0.10), transparent 40%);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
.fmt-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  background: var(--panel-2);
}
.fmt-card:hover::before { opacity: 1; }
.fmt-card.selected {
  border-color: var(--coral);
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.10) 0%, var(--panel-2) 60%);
  box-shadow: 0 0 0 1px var(--coral),
              0 20px 60px -20px rgba(255, 92, 122, 0.4);
}
.fmt-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.fmt-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  background: var(--panel-2); color: var(--ink-dim);
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--border);
}
.fmt-tag-hot {
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #1a0c0e; border: 0;
}
.fmt-check {
  width: 24px; height: 24px; border-radius: 999px;
  border: 1.5px solid var(--border-2);
  display: grid; place-items: center;
  color: transparent;
  transition: all 0.18s ease;
}
.fmt-card.selected .fmt-check {
  background: var(--coral); color: #fff; border-color: var(--coral);
}

.fmt-card h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px; margin: 4px 0 6px;
  letter-spacing: -0.015em;
}
.fmt-card p { margin: 0 0 14px; color: var(--ink-dim); font-size: 14px; line-height: 1.5; }
.fmt-bullets { margin: 0 0 16px; padding-left: 0; list-style: none; }
.fmt-bullets li {
  position: relative; padding-left: 22px; margin: 6px 0;
  color: var(--ink-2); font-size: 14px;
}
.fmt-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 6px;
  border-left: 1.5px solid var(--coral);
  border-bottom: 1.5px solid var(--coral);
  transform: rotate(-45deg) translate(-1px, -2px);
}
.fmt-eg { font-size: 13px; color: var(--ink-mute); padding-top: 8px; border-top: 1px dashed var(--border); }
.fmt-eg em { color: var(--ink-dim); font-style: italic; font-family: var(--serif); font-size: 14px; }

/* ----- Prompt card ----- */
.prompt-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 8px 16px;
  backdrop-filter: blur(20px);
}
.prompt-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
  background: var(--bg-2); border-radius: 14px;
  padding: 6px 6px 6px 22px;
  border: 1px solid var(--border);
}
.prompt-row input {
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 14px 0;
}
.prompt-row input::placeholder { color: var(--ink-mute); }
.prompt-row .btn-primary { padding: 12px 22px; }

/* ──────────────────────────────────────────────────────────────────────
   Prompt dialog (redesigned "Make your next banger" input)
   Mirrors the screenshot-1 dialog layout but adapted to the dark theme
   ────────────────────────────────────────────────────────────────────── */
.prompt-dialog {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 16px;
  backdrop-filter: blur(20px);
}
.prompt-dialog-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
}
.prompt-dialog-icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 92, 122, 0.22), rgba(244, 196, 122, 0.22));
  color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 92, 122, 0.35);
}
.prompt-dialog-title {
  margin: 6px 0 0; flex: 1;
  font-family: var(--sans);
  font-size: 22px; font-weight: 800; line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prompt-textarea-wrap {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 36px;
  transition: border-color 0.15s ease;
}
.prompt-textarea-wrap:focus-within { border-color: var(--border-2); }
.prompt-textarea {
  width: 100%;
  background: transparent; border: 0; outline: 0; resize: vertical;
  color: var(--ink);
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 14px; font-weight: 400; line-height: 1.6;
  min-height: 90px;
}
.prompt-textarea::placeholder { color: var(--ink-mute); }
.prompt-char-count {
  position: absolute; right: 14px; bottom: 10px;
  font-size: 12px; color: var(--ink-mute); font-weight: 500;
  pointer-events: none;
}

.prompt-hint {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; padding: 10px 14px;
  background: rgba(244, 196, 122, 0.06);
  border: 1px solid rgba(244, 196, 122, 0.18);
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-size: 13px; line-height: 1.5;
}
.prompt-hint svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.prompt-hint em {
  color: var(--ink-2);
  font-style: italic;
  font-weight: 500;
}

.prompt-dialog-actions-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
}
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-pill:hover { background: var(--panel-3); color: var(--ink); }

.prompt-divider {
  height: 1px; background: var(--border);
  margin: 18px 0 16px;
}

.prompt-dialog-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.prompt-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.select-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.select-pill:hover { background: var(--panel-3); color: var(--ink); }
.select-pill select {
  background: transparent; border: 0; outline: 0;
  color: inherit; font: inherit;
  appearance: none; -webkit-appearance: none;
  padding-right: 4px;
  cursor: pointer;
}
.select-pill svg { opacity: 0.7; }

.btn-generate {
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
}

.prompt-dialog .examples {
  padding: 18px 0 0;
}

.examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 14px 4px; align-items: center; }
.examples-label { color: var(--ink-mute); font-size: 13px; margin-right: 4px; font-weight: 600; }
.chip {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 500;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--coral); background: var(--panel-3); transform: translateY(-1px); }

/* ----- Job panel ----- */
.job-panel {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  backdrop-filter: blur(20px);
}
.job-status { display: flex; align-items: center; gap: 16px; }
.job-info { flex: 1; }
.job-title { font-weight: 800; font-size: 16px; }
.job-msg { color: var(--ink-dim); font-size: 13px; margin-top: 2px; }
.job-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255, 92, 122, 0.18);
  border-top-color: var(--coral);
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.job-bar { height: 6px; background: var(--panel-2); border-radius: 999px; margin-top: 16px; overflow: hidden; }
.job-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--coral), var(--gold));
  width: 12%; transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 92, 122, 0.6);
}

/* ----- Result panel ----- */
.result-panel {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(20px);
}
.result-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.result-eyebrow { color: var(--coral-2); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.result-header h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px; margin: 0 0 6px; letter-spacing: -0.015em;
}
.result-header p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.result-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.folder-tag {
  font-size: 12px; color: var(--ink-mute);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; font-family: ui-monospace, monospace;
}

.slides-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.slides-grid .thumb {
  aspect-ratio: 1080 / 1350;
  background: var(--bg-2); border-radius: 12px;
  overflow: hidden; cursor: zoom-in; position: relative;
  border: 1px solid var(--border);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.slides-grid .thumb:hover {
  border-color: var(--coral);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(255, 92, 122, 0.4);
}
.slides-grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slides-grid .thumb-num {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.caption-block { margin-top: 24px; }
.caption-block h4 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  color: var(--ink-dim); letter-spacing: 0.10em; text-transform: uppercase;
}
.caption-block pre {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  white-space: pre-wrap; word-wrap: break-word;
  color: var(--ink); font-family: var(--sans);
  font-size: 14px; line-height: 1.6; margin: 0;
}

/* ============================================================
   Library — horizontal scroll rails, one per format
   ============================================================ */
.library { padding: 40px 0 40px; }

.section-sub {
  color: var(--ink-dim); font-size: 15px;
  margin: 14px 0 0; max-width: 640px; line-height: 1.55;
}

.rail-block { margin-top: 44px; }
.rail-block:first-of-type { margin-top: 56px; }

.rail-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.rail-eyebrow {
  display: block;
  font-size: 11px; font-weight: 700; color: var(--coral-2);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px;
}
.rail-head h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px; margin: 0; letter-spacing: -0.015em;
}
.rail-head h3 span {
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  color: var(--ink-mute); margin-left: 6px; letter-spacing: 0;
}
.rail-controls { display: flex; gap: 6px; }
.rail-arrow {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border-2);
  color: var(--ink); font-size: 20px; line-height: 1; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(20px);
  display: grid; place-items: center;
  transition: all 0.15s ease;
}
.rail-arrow:hover { background: var(--panel-2); border-color: var(--coral); color: var(--coral); transform: translateY(-1px); }
.rail-arrow:disabled { opacity: 0.4; cursor: not-allowed; }

.rail {
  display: flex; gap: 12px;
  overflow-x: scroll; overflow-y: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto; /* JS controls scrolling — no CSS smooth interference */
  padding-bottom: 6px;
  /* Fade edges to hint at infinite scroll */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
/* Hide scrollbar — the marquee handles navigation */
.rail::-webkit-scrollbar { display: none; }
.rail { -ms-overflow-style: none; scrollbar-width: none; }

.lib-card {
  flex: 0 0 calc((100% - 108px) / 10);   /* 10 visible at a time on desktop */
  min-width: 120px;
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px);
}
@media (max-width: 1400px) { .lib-card { flex: 0 0 calc((100% - 84px) / 8); } }   /* 8 */
@media (max-width: 1100px) { .lib-card { flex: 0 0 calc((100% - 60px) / 6); } }   /* 6 */
@media (max-width: 800px)  { .lib-card { flex: 0 0 calc((100% - 36px) / 4); } }   /* 4 */
@media (max-width: 560px)  { .lib-card { flex: 0 0 calc((100% - 24px) / 3); } }   /* 3 */

/* On very small cards, reduce meta padding */
.lib-card .lib-meta { padding: 8px 10px 10px; }
.lib-card .lib-title { font-size: 11px; line-height: 1.3; }
.lib-card .lib-sub { font-size: 10px; }
.lib-card .lib-fmt { font-size: 9px; padding: 3px 7px; top: 6px; right: 6px; }

.lib-card:hover {
  border-color: var(--coral);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(255, 92, 122, 0.35);
}
.lib-thumb {
  aspect-ratio: 1080 / 1350;
  background: var(--bg-2); position: relative;
}
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-fmt {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lib-meta { padding: 12px 14px 14px; }
.lib-title {
  font-size: 13px; font-weight: 700; line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--ink);
}
.lib-sub {
  font-size: 11px; color: var(--ink-mute);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   Templates — universal carousel builder
   ============================================================ */
.templates-section { padding: 80px 0 40px; }

.tpl-gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .tpl-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tpl-gallery { grid-template-columns: repeat(2, 1fr); } }

.tpl-card {
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px 18px;
  text-align: left; cursor: pointer; font-family: inherit;
  color: inherit;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.tpl-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 92, 122, 0.10), transparent 40%);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
.tpl-card:hover { border-color: var(--border-2); transform: translateY(-3px); background: var(--panel-2); }
.tpl-card:hover::before { opacity: 1; }
.tpl-card.selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px var(--coral),
              0 20px 60px -20px rgba(255, 92, 122, 0.4);
}
.tpl-card .tpl-card-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  background: var(--panel-2); color: var(--ink-dim);
  padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--border); margin-bottom: 12px;
}
.tpl-card h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 22px; margin: 0 0 6px; letter-spacing: -0.015em; line-height: 1.1;
}
.tpl-card p {
  margin: 0 0 12px; color: var(--ink-dim); font-size: 12px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Builder form */
.tpl-builder {
  margin-top: 28px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  backdrop-filter: blur(20px);
}
.tpl-builder-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px; gap: 14px; flex-wrap: wrap;
}
.tpl-builder-head h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; margin: 4px 0 0; letter-spacing: -0.015em;
}
.tpl-builder-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
@media (max-width: 900px) { .tpl-builder-cols { grid-template-columns: 1fr; } }
.tpl-pane {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.tpl-pane-h {
  margin: 0 0 16px; font-size: 12px; font-weight: 700;
  color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.tpl-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tpl-row label {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tpl-row .dim { color: var(--ink-mute); font-weight: 500; }
.tpl-row input[type=text],
.tpl-row input[type=number],
.tpl-row select,
.tpl-row textarea {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--ink); font-family: inherit; font-size: 14px;
  padding: 10px 14px; border-radius: 10px;
  outline: 0; transition: border-color 0.15s ease;
}
.tpl-row input:focus, .tpl-row select:focus, .tpl-row textarea:focus {
  border-color: var(--coral);
}
.tpl-color-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
}
.tpl-color-row input[type=color] {
  width: 56px; height: 42px; padding: 0; border: 1px solid var(--border);
  border-radius: 10px; background: transparent; cursor: pointer;
}
.tpl-logo-row { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; }
.tpl-logo-row input[type=file] {
  color: var(--ink-dim); font-size: 12px;
}
.tpl-logo-preview {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--panel); border: 1px dashed var(--border);
  background-size: contain; background-position: center; background-repeat: no-repeat;
}

.tpl-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.tpl-cost-est { color: var(--ink-mute); font-size: 12px; }

.tpl-job {
  margin-top: 22px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}

/* Batches */
.tpl-batches { margin-top: 56px; }
.tpl-batches-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 22px;
}
.tpl-batch {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.tpl-batch:hover { transform: translateY(-2px); border-color: var(--coral); }
.tpl-batch-thumb {
  aspect-ratio: 1080/1350; background: var(--bg-2);
  background-size: cover; background-position: center;
}
.tpl-batch-meta { padding: 10px 12px 12px; }
.tpl-batch-label {
  font-size: 12px; font-weight: 700; line-height: 1.3; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tpl-batch-sub { font-size: 10px; color: var(--ink-mute); margin-bottom: 8px; }
.tpl-batch-dl {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--ink); color: #1a0c0e;
  padding: 5px 10px; border-radius: 999px; text-decoration: none;
  transition: background 0.15s ease;
}
.tpl-batch-dl:hover { background: var(--gold-2); }

/* ============================================================
   Tracking — analytics dashboard for owned accounts
   ============================================================ */
.tracking { padding: 60px 0 80px; }
.tracking-actions { display: flex; gap: 8px; align-items: center; }

.tk-totals {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 32px;
}
@media (max-width: 900px) { .tk-totals { grid-template-columns: repeat(2, 1fr); } }
.tk-stat {
  background: var(--panel); border: 1px solid var(--border);
  padding: 22px 24px; border-radius: var(--radius);
  backdrop-filter: blur(20px);
}
.tk-stat-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 36px; line-height: 1; letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff, #c9b89c);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tk-stat-label {
  margin-top: 8px; font-size: 11px; font-weight: 700;
  color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase;
}
.tk-snap-info {
  margin-top: 16px; color: var(--ink-mute); font-size: 13px;
}

.tk-connect {
  margin-top: 28px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 24px 26px; border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.tk-connect h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; margin: 0 0 6px; letter-spacing: -0.015em;
}
.tk-connect p { margin: 0 0 16px; color: var(--ink-dim); font-size: 14px; }
.tk-connect-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 6px 6px 18px;
}
.tk-connect-row input {
  background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: inherit; font-size: 15px; padding: 12px 0;
}
.tk-connect-row input::placeholder { color: var(--ink-mute); }
.tk-connect-row .btn-primary { padding: 12px 20px; }
.tk-connect-warn {
  margin-top: 14px; padding: 12px 16px;
  border-radius: 10px;
  background: rgba(244, 196, 122, 0.10);
  border: 1px solid rgba(244, 196, 122, 0.25);
  color: var(--gold); font-size: 13px;
  display: none;
}
.tk-connect-warn.show { display: block; }

.tk-rows {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px;
  margin-top: 36px;
}
@media (max-width: 1000px) { .tk-rows { grid-template-columns: 1fr; } }

.tk-row-block { }
.tk-accounts {
  display: flex; flex-direction: column; gap: 8px;
}
.tk-acct {
  display: grid; grid-template-columns: 36px 1fr auto auto;
  gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 12px;
  transition: border-color 0.15s ease;
}
.tk-acct:hover { border-color: var(--border-2); }
.tk-acct-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  display: grid; place-items: center; color: #1a0c0e;
  font-weight: 800; font-size: 13px;
  background-size: cover; background-position: center;
}
.tk-acct-meta .name { font-weight: 700; font-size: 14px; }
.tk-acct-meta .sub  { color: var(--ink-mute); font-size: 11px; margin-top: 2px; }
.tk-acct-num { font-family: var(--serif); font-weight: 600; font-size: 20px; }
.tk-acct-num-label { color: var(--ink-mute); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tk-acct-del {
  background: transparent; border: 0; color: var(--ink-mute);
  font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px;
  transition: color 0.15s ease;
}
.tk-acct-del:hover { color: var(--coral); }

.tk-top-posts {
  display: flex; flex-direction: column; gap: 8px;
}
.tk-post {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 12px;
  cursor: pointer; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tk-post:hover { border-color: var(--coral); transform: translateY(-1px); }
.tk-post-thumb {
  width: 56px; aspect-ratio: 9/16; border-radius: 8px;
  background: var(--bg-2); background-size: cover; background-position: center;
  border: 1px solid var(--border);
}
.tk-post-meta .label { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.tk-post-meta .title {
  font-size: 13px; font-weight: 700; line-height: 1.3; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tk-post-num { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.tk-post-num-label { color: var(--ink-mute); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; }

/* ============================================================
   Modal
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 20px; max-width: 1100px; width: 100%;
  max-height: 90vh; overflow: auto;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--panel-2); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 8px;
  cursor: pointer; color: var(--ink-dim);
  transition: all 0.15s ease;
}
.modal-close:hover { color: var(--ink); background: var(--panel-3); }

.modal-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; padding-right: 50px; letter-spacing: -0.015em; }
.modal-body p { margin: 0 0 20px; color: var(--ink-dim); font-size: 14px; }

/* ============================================================
   Bottom CTA
   ============================================================ */
.bottom-cta { padding: 40px 0 30px; }
.bottom-cta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.bottom-cta-card::after {
  content: ''; position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,122,.25), transparent 70%);
  pointer-events: none;
}
.bottom-cta-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin: 0 auto 16px; max-width: 800px;
}
.bottom-cta-sub {
  font-size: 16px; line-height: 1.55; color: var(--ink-dim);
  max-width: 620px; margin: 0 auto 28px;
}
.bottom-cta-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* ============================================================
   Postiz integration showcase
   ============================================================ */
.postiz-showcase { padding: 40px 0 20px; }
.postiz-mockup {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px; margin-top: 8px;
}
.pm-row { margin-bottom: 18px; }
.pm-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--coral); margin-bottom: 8px;
}
.pm-key-row { display: flex; align-items: center; gap: 12px; }
.pm-key-input {
  flex: 1; background: rgba(255,247,232,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; color: var(--ink-dim);
  font-family: monospace; font-size: 14px; letter-spacing: 2px;
}
.pm-btn-sm {
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.pm-partition {
  background: rgba(255,247,232,.03); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.pm-partition-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pm-plat-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); }
.pm-plat-actions { font-size: 11px; color: var(--ink-mute); font-weight: 600; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.3);
  border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: var(--coral); line-height: 1.3;
}
.pm-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--coral); opacity: .7; }
.pm-orb {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  opacity: .8;
}
.pm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
@media (max-width: 700px) { .pm-stats { grid-template-columns: repeat(2, 1fr); } }
.pm-stat {
  background: rgba(255,247,232,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.pm-stat-num {
  font-family: var(--serif); font-weight: 600; font-size: 28px;
  color: var(--ink); line-height: 1.1; margin-bottom: 4px;
}
.pm-stat-label { font-size: 12px; color: var(--ink-dim); }

/* ============================================================
   Why slideshows
   ============================================================ */
.why-slideshows { padding: 40px 0 20px; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section { padding: 40px 0 20px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; position: relative;
}
.price-card-pop {
  border-color: var(--coral);
  box-shadow: 0 0 40px rgba(255,92,122,.12);
}
.price-pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-tier {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-dim); margin-bottom: 12px;
}
.price-amount { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 4px; }
.price-dollar { font-size: 16px; font-weight: 600; color: var(--ink-dim); margin-top: 8px; }
.price-num {
  font-family: var(--serif); font-weight: 600; font-size: 52px;
  line-height: 1; color: var(--ink);
}
.price-cents { font-size: 18px; font-weight: 600; color: var(--ink-dim); margin-top: 8px; }
.price-period { font-size: 13px; color: var(--ink-dim); margin-bottom: 20px; }
.price-features {
  list-style: none; padding: 0; margin: 0 0 24px; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.price-features li {
  font-size: 13px; color: var(--ink-dim); line-height: 1.4;
  padding-left: 22px; position: relative;
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--coral);
  font-weight: 700; font-size: 13px;
}
.price-features li b { color: var(--ink); font-weight: 600; }
.price-email {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
  color: var(--ink); outline: none; margin-bottom: 10px;
  font-family: var(--sans); transition: border-color .2s;
}
.price-email:focus { border-color: var(--coral); }
.price-btn {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--panel); color: var(--ink);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--sans); transition: background .15s, border-color .15s;
}
.price-btn:hover { background: rgba(255,247,232,.08); border-color: rgba(255,247,232,.22); }
.price-btn-pop {
  background: linear-gradient(180deg, var(--coral) 0%, #d94466 100%);
  border-color: transparent; color: #fff;
}
.price-btn-pop:hover { background: linear-gradient(180deg, #ff7a96 0%, var(--coral) 100%); border-color: transparent; }
.pricing-note {
  margin-top: 24px; text-align: center; font-size: 13px;
  color: var(--ink-dim); background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; max-width: 680px; margin-left: auto; margin-right: auto;
}
.pricing-note b { color: var(--ink); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-meta { font-size: 12px; color: var(--ink-mute); }
.foot-right { display: flex; gap: 18px; }
.foot-right a { color: var(--ink-dim); font-size: 13px; font-weight: 500; }
.foot-right a:hover { color: var(--ink); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.94);
  cursor: zoom-out;
  animation: fade-in 0.2s ease;
}
.lightbox img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 14, 12, 0.7);
  border: 1px solid rgba(255, 247, 232, 0.18);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255, 92, 122, 0.25);
  border-color: rgba(255, 92, 122, 0.5);
  transform: scale(1.05);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .phone, .float-card, .eyebrow-dot { animation: none; }
}
