/* ━━━ FlipForge Landing Page Styles ━━━ */

/* ── Hero ── */
.hero { padding: calc(var(--nav-h) + 90px) 0 100px; position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 16px; border-radius: 30px; font-size: 0.82rem; font-weight: 600;
  background: var(--brand-light); color: var(--brand); border: 1px solid rgba(99,102,241,0.25);
  box-shadow: 0 2px 10px rgba(99,102,241,0.12);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 10px var(--brand); animation: fb-pulse 2s infinite;
}
.hero__title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 22px; }
.hero__title span.hero__title-gradient { background: linear-gradient(135deg, var(--brand), #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__sub { font-size: 1.1rem; color: var(--fg-muted); max-width: 500px; margin-bottom: 34px; line-height: 1.65; }

/* CTAs */
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__cta-main { box-shadow: 0 8px 24px var(--brand-glow), 0 2px 6px rgba(0,0,0,0.1); }
.hero__cta-main:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--brand-glow); }
.fb-btn__arrow { display: inline-block; transition: transform 0.2s ease; margin-left: 4px; }
.hero__cta-main:hover .fb-btn__arrow { transform: translateX(4px); }
.hero__cta-sub { backdrop-filter: blur(8px); background: rgba(255,255,255,0.6); }
[data-theme="dark"] .hero__cta-sub { background: rgba(30,30,40,0.6); }

/* Stats */
.hero__stats { display: flex; gap: 10px; margin-top: 40px; align-items: center; flex-wrap: nowrap; }
.hero__stat {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 40px;
  font-size: 0.78rem; color: var(--fg-muted); transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm); white-space: nowrap; flex-shrink: 0;
}
.hero__stat:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero__stat strong { color: var(--fg); font-weight: 700; }
.hero__stat svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }

/* Ambient background glows & grid */
.hero__glow--1 {
  position: absolute; top: -160px; right: -100px; width: 650px; height: 650px;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(139,92,246,0.15) 45%, transparent 70%);
  pointer-events: none; filter: blur(70px); opacity: 0.8; z-index: 1;
}
.hero__glow--2 {
  position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, rgba(99,102,241,0.08) 50%, transparent 70%);
  pointer-events: none; filter: blur(80px); z-index: 1;
}
.hero__bg-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 32px 32px; z-index: 0;
  mask-image: radial-gradient(circle at 60% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black 20%, transparent 80%);
}

/* ── Hero Book Visual & Floating Badges ── */
.hero__visual { display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.hero__visual-wrap { position: relative; perspective: 1200px; padding: 20px; }

/* Floating Micro Glass Badges */
.hero__float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  z-index: 10; transition: transform 0.3s var(--ease-out);
}
[data-theme="dark"] .hero__float-badge {
  background: rgba(22,22,29,0.85); border-color: rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hero__float-badge:hover { transform: translateY(-4px) scale(1.03); }
.hero__float-icon { font-size: 1.2rem; }
.hero__float-badge strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--fg); line-height: 1.2; }
.hero__float-badge span { font-size: 0.72rem; color: var(--fg-muted); }

.hero__float-badge--top { top: -10px; right: -20px; animation: floatTop 5s ease-in-out infinite; }
.hero__float-badge--bottom { bottom: 10px; right: -15px; animation: floatBottom 6s ease-in-out infinite 1s; }
.hero__float-badge--left { top: 40%; left: -40px; animation: floatLeft 5.5s ease-in-out infinite 0.5s; }

@keyframes floatTop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatBottom { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes floatLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }

/* 3D Book Mockup */
.book-mockup {
  width: 320px; height: 430px; position: relative;
  transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(4deg);
  animation: bookFloat 7s ease-in-out infinite;
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(1deg) translateY(-14px); }
}

.book-mockup__shadow {
  position: absolute; bottom: -30px; left: 10%; right: 10%; height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
  transform: rotateX(90deg) translateZ(-40px); pointer-events: none; filter: blur(8px);
}

.book-mockup__cover {
  position: absolute; inset: 0; border-radius: 4px 14px 14px 4px;
  background: linear-gradient(140deg, #4f46e5 0%, #6366f1 40%, #7c3aed 100%);
  box-shadow: var(--shadow-lg), -10px 8px 30px rgba(79,70,229,0.35);
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; padding: 32px 28px; overflow: hidden;
}
.book-mockup__cover-shine {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  pointer-events: none;
}
.book-mockup__cover-header { display: flex; align-items: center; justify-content: space-between; }
.book-mockup__tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.85; text-transform: uppercase; }
.book-mockup__cover-logo { width: 36px; height: 36px; opacity: 0.95; }
.book-mockup__cover-body { text-align: left; }
.book-mockup__cover-title { font-size: 1.8rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.book-mockup__cover-sub { font-size: 0.85rem; opacity: 0.85; font-weight: 400; }
.book-mockup__cover-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; opacity: 0.8; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 12px; }
.book-mockup__pill { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 0.7rem; }

.book-mockup__spine {
  position: absolute; left: -14px; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(to right, #3730a3, #4338ca);
  transform: rotateY(-90deg); transform-origin: right;
  border-radius: 4px 0 0 4px;
}

.book-mockup__page {
  position: absolute; inset: 4px; border-radius: 2px 12px 12px 2px;
  background: #fff; transform: translateZ(-2px); box-shadow: -1px 0 2px rgba(0,0,0,0.1);
}
.book-mockup__page:nth-child(2) { transform: translateZ(-5px); inset: 6px; background: #f8fafc; }
.book-mockup__page:nth-child(3) { transform: translateZ(-8px); inset: 8px; background: #f1f5f9; }

/* Flip Animation */
.book-mockup__flip-page {
  position: absolute; inset: 4px; border-radius: 2px 12px 12px 2px;
  background: #ffffff; transform-origin: left center;
  animation: pageFlip 5s ease-in-out infinite 2s;
  backface-visibility: hidden; padding: 24px;
  box-shadow: inset 10px 0 20px rgba(0,0,0,0.06);
}
.book-mockup__flip-inner { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.mockup-page-header { width: 40%; height: 10px; background: #e2e8f0; border-radius: 4px; }
.mockup-page-text { width: 100%; height: 6px; background: #f1f5f9; border-radius: 3px; }
.mockup-page-text--short { width: 70%; }
.mockup-page-img { flex: 1; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border-radius: 8px; margin-top: 8px; }

@keyframes pageFlip {
  0%, 25% { transform: rotateY(0); }
  45%, 65% { transform: rotateY(-165deg); }
  75%, 100% { transform: rotateY(0); }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__stats { justify-content: center; flex-wrap: wrap; }
  .hero__visual { margin-top: 40px; }
  .book-mockup { width: 270px; height: 360px; }
  .hero__float-badge--left { left: -10px; }
  .hero__float-badge--top { right: -10px; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .book-mockup { width: 230px; height: 310px; }
  .hero__float-badge { padding: 6px 10px; font-size: 0.75rem; }
  .hero__float-badge--left { display: none; }
}

/* ── Social Proof ── */
.social-proof { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.social-proof__label { text-align: center; font-size: 0.8rem; color: var(--fg-subtle); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; }
.social-proof__track { display: flex; animation: fb-marquee 20s linear infinite; width: max-content; }
.social-proof__item {
  padding: 0 40px; font-size: 1.1rem; font-weight: 600; color: var(--fg-subtle);
  opacity: 0.4; white-space: nowrap;
}

/* ── Features Grid ── */
.features { background: var(--bg-surface); }
.features__header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.features__header h2 { margin-bottom: 12px; }
.features__header p { color: var(--fg-muted); }

/* ── How It Works ── */
.how-it-works__header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.how-it-works__header h2 { margin-bottom: 12px; }
.how-it-works__flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.how-it-works__flow::before {
  content: ''; position: absolute; top: 40px; left: 16.67%; right: 16.67%; height: 2px;
  background: linear-gradient(to right, var(--brand), #a78bfa, var(--brand)); opacity: 0.3;
}
.how-it-works__step { text-align: center; position: relative; }
.how-it-works__num {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: var(--brand); background: var(--brand-light);
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.how-it-works__step-icon { margin: 0 auto 12px; width: 36px; height: 36px; color: var(--brand); }
.how-it-works__step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.how-it-works__step p { font-size: 0.9rem; color: var(--fg-muted); max-width: 280px; margin: 0 auto; }
@media (max-width: 768px) {
  .how-it-works__flow { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .how-it-works__flow::before { display: none; }
}

/* ── Demo Section ── */
.demo { background: var(--bg-surface); }
.demo__header { text-align: center; margin-bottom: 40px; }
.demo__header h2 { margin-bottom: 8px; }
.demo__frame {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); background: var(--bg); max-width: 960px; margin: 0 auto;
}
.demo__frame iframe { width: 100%; height: 560px; border: none; display: block; }
@media (max-width: 768px) { .demo__frame iframe { height: 400px; } }

/* ── Comparison Table ── */
.comparison__header { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.comparison__header h2 { margin-bottom: 12px; }
.comparison__table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.comparison__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.comparison__table th, .comparison__table td { padding: 14px 20px; text-align: center; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.comparison__table th { background: var(--bg-surface); font-weight: 600; color: var(--fg); }
.comparison__table th:first-child, .comparison__table td:first-child { text-align: left; font-weight: 500; }
.comparison__table th.is-highlight { background: var(--brand); color: #fff; }
.comparison__table td.is-highlight { background: var(--brand-light); }
.comparison__table .check { color: var(--success); font-weight: 700; }
.comparison__table .dash { color: var(--fg-subtle); }

/* ── Testimonials ── */
.testimonials { background: var(--bg-surface); }
.testimonials__header { text-align: center; margin-bottom: 48px; }
.testimonials__header h2 { margin-bottom: 12px; }
.testimonial-card { padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.testimonial-card__quote { font-size: 0.95rem; color: var(--fg); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: var(--brand); font-weight: 600; font-size: 0.85rem;
}
.testimonial-card__name { font-size: 0.9rem; font-weight: 600; color: var(--fg); }
.testimonial-card__role { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Pricing Teaser ── */
.pricing-teaser__header { text-align: center; margin-bottom: 40px; }
.pricing-teaser__header h2 { margin-bottom: 12px; }
.pricing-teaser__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
.pricing-teaser-card { padding: 32px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: all 0.3s var(--ease-out); }
.pricing-teaser-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pricing-teaser-card__label { font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); margin-bottom: 8px; }
.pricing-teaser-card__price { font-size: 2rem; font-weight: 700; color: var(--fg); margin-bottom: 12px; }
.pricing-teaser-card__desc { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 20px; }
@media (max-width: 640px) { .pricing-teaser__cards { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq__header { text-align: center; margin-bottom: 40px; }
.faq__header h2 { margin-bottom: 12px; }
.faq__list { max-width: 760px; margin: 0 auto; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand), #7c3aed, #4f46e5);
  color: #fff; text-align: center; padding: 80px 24px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .fb-btn--primary { background: #fff; color: var(--brand); }
.cta-banner .fb-btn--primary:hover { background: #f0f0ff; }
.cta-banner__note { margin-top: 16px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ── Scroll animations (intersection observer) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Pricing Section Styles (Shared) ── */
.pricing-hero { padding: calc(var(--nav-h) + 60px) 0 40px; text-align: center; }
.pricing-hero h1 { margin-bottom: 8px; }
.pricing-hero p { color: var(--fg-muted); max-width: 480px; margin: 0 auto 32px; }
.pricing-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 48px; }
.pricing-toggle-wrap span { font-size: 0.9rem; font-weight: 500; color: var(--fg-muted); }
.pricing-toggle-wrap span.is-active { color: var(--fg); }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto 80px; }
.pricing-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px 28px; text-align: center; position: relative; transition: all 0.35s var(--ease-out); }
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.is-popular { border-color: var(--brand); transform: scale(1.04); box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand); }
.pricing-card.is-popular:hover { transform: scale(1.06); }
.pricing-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.pricing-card__name { font-size: 0.85rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.pricing-card__price { font-size: 3rem; font-weight: 800; color: var(--fg); margin-bottom: 4px; letter-spacing: -0.03em; }
.pricing-card__period { font-size: 0.85rem; color: var(--fg-subtle); margin-bottom: 20px; }
.pricing-card__desc { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 24px; line-height: 1.6; }
.pricing-card__features { text-align: left; margin-bottom: 28px; }
.pricing-card__feature { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--fg-muted); padding: 6px 0; }
.pricing-card__feature svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pricing-card .fb-btn { width: 100%; }
.pricing-compare { margin-bottom: 80px; }
.pricing-compare h2 { text-align: center; margin-bottom: 32px; }
.pricing-compare__table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pricing-compare__table th, .pricing-compare__table td { padding: 12px 16px; text-align: center; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.pricing-compare__table th { background: var(--bg-surface); font-weight: 600; }
.pricing-compare__table td:first-child { text-align: left; font-weight: 500; color: var(--fg); }
.pricing-compare__table .check { color: var(--success); font-weight: 700; }
.pricing-compare__table .dash { color: var(--fg-subtle); }
.pricing-faq { max-width: 760px; margin: 0 auto 80px; }
.pricing-faq h2 { text-align: center; margin-bottom: 32px; }
.pricing-refund { text-align: center; padding: 40px 0 80px; }
.pricing-refund p { color: var(--fg-muted); }
@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.is-popular { transform: none; }
  .pricing-card.is-popular:hover { transform: translateY(-2px); }
}

