/* ============================================
   LANDING v2 — Split hero (mode-toggle) + reels + pricing teaser + FAQ
   Reuses tokens from variables.css and the .c2-* primitives from create-v2.css
   where it makes sense. New rules use the .l2-* prefix.
   ============================================ */

.l2 {
  position: relative;
  z-index: 1;
}

/* ---------- Hero (split) ---------- */
.l2-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .l2-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }
}

.l2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--tone-violet-50);
  color: var(--tone-violet-700);
  border: 1px solid color-mix(in srgb, var(--tone-violet) 18%, transparent);
  border-radius: var(--r-pill, 9999px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
}
.l2-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tone-violet);
  animation: l2Pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes l2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.l2-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--text);
  text-wrap: balance;
}
.l2-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--tone-violet) 0%, var(--tone-violet-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.l2-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Mode toggle — same as create v2 but slightly larger on hero */
.l2-mode-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill, 9999px);
  margin-bottom: 16px;
}
.l2-mode-btn {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: none; background: transparent;
  color: var(--text-muted);
  font-family: inherit; font-size: 13px; font-weight: 600;
  border-radius: var(--r-pill, 9999px);
  cursor: pointer;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.l2-mode-btn.active { color: var(--text); }
.l2-mode-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--card);
  border-radius: var(--r-pill, 9999px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
}
.l2-mode-toggle[data-active-mode="photo"] .l2-mode-thumb { transform: translateX(100%); }

/* Hero "demo" prompt card (showcases what the composer feels like) */
.l2-demo-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg, 20px);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  min-height: 130px;
}
.l2-demo-card::before {
  content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, var(--tone-violet), transparent);
  border-radius: 2px;
}
.l2-demo-state[hidden] { display: none !important; }
.l2-demo-state {
  animation: l2StateIn 0.35s ease;
}
@keyframes l2StateIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.l2-demo-photo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md, 14px);
  margin-bottom: 12px;
}
.l2-demo-photo-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm, 10px);
  background: linear-gradient(135deg, #f8b195 0%, #c06c84 50%, #355c7d 100%);
  position: relative; overflow: hidden;
}
.l2-demo-photo-thumb::after {
  content: ""; position: absolute; inset: 28%;
  background: radial-gradient(circle, rgba(40,25,15,0.65), transparent 70%);
  border-radius: 50%;
}
.l2-demo-photo-meta {
  display: flex; flex-direction: column;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
}
.l2-demo-photo-name { color: var(--text); font-weight: 600; }
.l2-demo-photo-dims { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

.l2-demo-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.l2-demo-text {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  min-height: 2.6em;
}
.l2-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--tone-violet);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: l2Blink 0.9s steps(2) infinite;
}
@keyframes l2Blink { 50% { opacity: 0; } }

/* Hero CTAs */
.l2-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.l2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-pill, 9999px);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.l2-btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}
.l2-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--r-pill, 9999px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.l2-btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.l2-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero trust strip */
.l2-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.l2-trust-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.l2-trust-item svg { color: var(--tone-emerald, #10B981); flex-shrink: 0; }

/* ---------- Hero "preview" frame (right column) ---------- */
.l2-frame {
  background: #0c0d14;
  border-radius: var(--r-xl, 28px);
  padding: 10px 10px 0;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.30),
    0 12px 24px -10px rgba(0,0,0,0.20);
  border: 1px solid rgba(0,0,0,0.20);
}
.l2-frame-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.l2-fdot { width: 10px; height: 10px; border-radius: 50%; }
.l2-fdot.red { background: #ff5f57; }
.l2-fdot.yellow { background: #febc2e; }
.l2-fdot.green { background: #28c840; }
.l2-frame-title { margin-left: 8px; }
.l2-frame-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  isolation: isolate;
}
.l2-stage-vis {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.l2-stage-vis.active { opacity: 1; }
.l2-vis-1 { background: radial-gradient(circle at 30% 40%, rgba(167,139,252,0.7), transparent 60%), linear-gradient(135deg, #1a1a2e 0%, #6b4fa0 60%, #ff9a8b 100%); }
.l2-vis-2 { background: radial-gradient(ellipse at 70% 80%, rgba(251,191,36,0.6), transparent 55%), linear-gradient(135deg, #0f2027 0%, #2c5364 50%, #d4a574 100%); }
.l2-vis-3 { background: radial-gradient(circle at 50% 30%, rgba(255,94,98,0.55), transparent 55%), linear-gradient(180deg, #ff9966 0%, #ff5e62 45%, #2c1810 100%); }
.l2-vis-4 { background: radial-gradient(circle at 40% 70%, rgba(79,172,254,0.6), transparent 55%), linear-gradient(135deg, #0f3460 0%, #16213e 50%, #0f2027 100%); }
.l2-vis-photo {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 220, 180, 0.35), transparent 50%),
    linear-gradient(180deg, #f8b195 0%, #c06c84 40%, #355c7d 100%);
}
.l2-vis-photo::before {
  content: ""; position: absolute; inset: 25% 30%;
  background: radial-gradient(ellipse at center, rgba(40,25,15,0.55), rgba(40,25,15,0.15) 55%, transparent 75%);
  border-radius: 50%;
}
.l2-scan {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: l2Scan 3.2s linear infinite;
  pointer-events: none; z-index: 2;
}
@keyframes l2Scan { 0% { top: -2px; } 100% { top: 102%; } }
.l2-frame-stage::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.30;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}
.l2-frame-chip {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}
.l2-frame-chip[hidden] { display: none; }
.l2-frame-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7C5CFC; box-shadow: 0 0 8px #7C5CFC;
}
.l2-frame-meta {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.l2-rec {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff5e62;
}
.l2-rec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5e62;
  animation: l2Pulse 1.2s ease-in-out infinite;
}

/* ---------- Section primitives ---------- */
.l2-section {
  padding: 64px 24px;
}
.l2-section.tonal { background: var(--bg-subtle); }
.l2-container { max-width: 1100px; margin: 0 auto; }
.l2-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.l2-section-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
}
.l2-section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Reels ---------- */
.l2-reels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.l2-reel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  background: var(--card-tonal, #F4F6FB);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  display: block;
}
.l2-reel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.l2-reel-vis {
  position: absolute; inset: 0;
}
.l2-reel-vis::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.l2-reel-cap {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  z-index: 2;
}
.l2-reel-play {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: var(--r-pill, 9999px);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  z-index: 2;
}
.l2-reel-1 { background: linear-gradient(135deg, #FFB08A 0%, #FF6B9D 50%, #7C5CFC 100%); }
.l2-reel-2 { background: linear-gradient(135deg, #34D399 0%, #06B6D4 50%, #3B82F6 100%); }
.l2-reel-3 { background: linear-gradient(135deg, #F59E0B 0%, #EF4444 50%, #7C5CFC 100%); }
.l2-reel-4 { background: linear-gradient(135deg, #1a1a2e 0%, #4338CA 50%, #7C5CFC 100%); }

/* ---------- Pricing teaser ---------- */
.l2-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
}
.l2-price-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl, 28px);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.l2-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.l2-price-card.featured {
  border: 1.5px solid var(--tone-violet);
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
}
.l2-price-badge {
  position: absolute;
  top: -12px; left: 24px;
  padding: 5px 12px;
  background: var(--tone-violet);
  color: #fff;
  border-radius: var(--r-pill, 9999px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.l2-price-name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.l2-price-amount {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 6px;
}
.l2-price-amount .num {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}
.l2-price-amount .per { font-size: 14px; color: var(--text-muted); }
.l2-price-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.45;
}
.l2-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.l2-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.l2-price-features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 3px;
  background: var(--tone-emerald-50, #D9F7EB);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.l2-price-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--r-pill, 9999px);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.l2-price-cta.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
}
.l2-price-cta.primary:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}
.l2-price-cta.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.l2-price-cta.outline:hover {
  border-color: var(--primary);
  background: var(--bg-subtle);
}
.l2-pricing-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 18px;
}
.l2-pricing-foot a {
  color: var(--tone-violet-700);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.l2-faq {
  max-width: 760px;
  margin: 0 auto;
}
.l2-faq-item {
  border-bottom: 1px solid var(--hairline);
}
.l2-faq-item:first-child { border-top: 1px solid var(--hairline); }
.l2-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
}
.l2-faq-q:hover { color: var(--accent); }
.l2-faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
}
.l2-faq-item.open .l2-faq-icon {
  transform: rotate(45deg);
  background: var(--tone-violet-50);
  color: var(--tone-violet-700);
}
.l2-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.l2-faq-a p { margin: 0 0 12px; }
.l2-faq-item.open .l2-faq-a {
  max-height: 400px;
  padding: 0 0 22px;
}

/* ---------- Footer ---------- */
.l2-footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.l2-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.l2-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.l2-footer-links a:hover { color: var(--text); }
