/* ==========================================================================
   Quizi AI - Official Landing Page Stylesheet (pdftoquiz.app)
   Modern, Lightweight, Responsive & High-Converting
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-light: #8b5cf6;
  --primary-subtle: #f3e8ff;
  --primary-glow: rgba(124, 58, 237, 0.28);
  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-glow: radial-gradient(circle at 50% 30%, rgba(124, 58, 237, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  --gradient-dark: linear-gradient(180deg, #0b0f19 0%, #111827 100%);

  /* Accent Colors */
  --accent-success: #10b981;
  --accent-success-bg: #ecfdf5;
  --accent-success-border: #a7f3d0;
  --accent-danger: #ef4444;
  --accent-danger-bg: #fef2f2;
  --accent-danger-border: #fecaca;
  --accent-warning: #f59e0b;
  --accent-warning-bg: #fffbeb;
  --accent-info: #0284c7;

  /* Neutrals (Light Mode by default with rich contrast) */
  --bg-body: #fafafa;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f4f5f8;
  --bg-muted: #eef1f6;
  --border-subtle: #e5e7eb;
  --border-focus: #c4b5fd;

  /* Typography Colors */
  --text-headline: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(124, 58, 237, 0.18);
  --shadow-device: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 40px rgba(124, 58, 237, 0.12);

  /* Layout & Geometry */
  --max-w-container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-body);
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography Utilities
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-headline);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* --------------------------------------------------------------------------
   Site Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
}

.brand-logo:hover {
  color: var(--primary-hover);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-header-ios {
  background: #0f172a;
  color: #ffffff;
}

.btn-header-ios:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-header-android {
  background: var(--primary);
  color: #ffffff;
}

.btn-header-android:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-subtle);
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-headline);
  transition: all 0.25s ease;
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-headline);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-subtle);
}

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: #ede9fe;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-headline);
  margin-bottom: 1.35rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Feature Pills in Hero */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.hero-pill:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.hero-pill-icon {
  font-size: 1rem;
}

/* App Download Badges */
.cta-badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-badge-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.app-badge-apple {
  background: #0f172a;
}

.app-badge-apple:hover {
  background: #1e293b;
}

.app-badge-google {
  background: #111827;
  border: 1px solid #374151;
}

.app-badge-google:hover {
  background: #1f2937;
}

.app-badge-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-badge-text {
  text-align: left;
  line-height: 1.2;
}

.app-badge-text .badge-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.app-badge-text .badge-main {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Trust / Rating row */
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.stars-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #f59e0b;
  font-weight: 700;
}

.proof-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-subtle);
}

/* Hero Showcase Mockup Composite */
.hero-showcase {
  position: relative;
  margin-top: 3.5rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ipad-frame {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  background: transparent;
  filter: drop-shadow(0 25px 50px rgba(15, 23, 42, 0.2));
  transition: transform var(--transition-normal);
}

.ipad-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-phone-left {
  display: none;
  position: absolute;
  left: -20px;
  bottom: -35px;
  z-index: 2;
  width: 220px;
  background: transparent;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));
  transition: transform var(--transition-normal);
}

@media (min-width: 900px) {
  .floating-phone-left {
    display: block;
  }
}

.floating-phone-right {
  display: none;
  position: absolute;
  right: -20px;
  bottom: -35px;
  z-index: 2;
  width: 220px;
  background: transparent;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.25));
  transition: transform var(--transition-normal);
}

@media (min-width: 900px) {
  .floating-phone-right {
    display: block;
  }
}

.floating-phone-left:hover,
.floating-phone-right:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Floating Feature Badges over Hero */
.hero-floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-headline);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 10%;
  left: 2%;
}

.floating-card-2 {
  top: 15%;
  right: 2%;
  animation-delay: 2s;
}

@media (max-width: 768px) {
  .hero-floating-card {
    display: none;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Supported Formats Ticker / Trust Bar
   -------------------------------------------------------------------------- */
.trust-strip {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.trust-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-strip-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.trust-strip-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.format-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

a.format-tag:hover {
  border-color: var(--primary-light);
  background: var(--primary-subtle);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.format-tag svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   How It Works (3 Steps)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.step-mini-visual {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-input-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-headline);
  border: 1px solid var(--border-subtle);
}

.mini-input-tag span.badge-ext {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   App Visual Showcase Section
   -------------------------------------------------------------------------- */
.app-showcase-section {
  background: linear-gradient(180deg, #f8f9fe 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .showcase-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.showcase-visuals-duo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.showcase-phone-card {
  width: 260px;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-normal);
}

.showcase-phone-card:hover {
  transform: translateY(-8px);
}

.showcase-phone-card img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.showcase-info-item {
  display: flex;
  gap: 1.25rem;
}

.info-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.info-item-title {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.info-item-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Key Features Grid (Deep Dive)
   -------------------------------------------------------------------------- */
.features-section {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-box-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-box-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-box-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.feature-box-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--bg-subtle);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Interactive In-Page Mini Quiz Demo
   Boosts engagement & time-on-page (SEO signal)
   -------------------------------------------------------------------------- */
.interactive-demo-section {
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 50%, #0f172a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.interactive-demo-section .section-title {
  color: #ffffff;
}

.interactive-demo-section .section-description {
  color: #cbd5e1;
}

.interactive-demo-section .section-label {
  background: rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.3);
}

.demo-card-container {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-headline);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .demo-card-container {
    padding: 2.5rem;
  }
}

.demo-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-badge-subject {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.demo-progress-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.demo-question-text {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-headline);
}

.demo-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.demo-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: #ffffff;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.demo-option-btn:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: #faf5ff;
}

.demo-option-letter,
.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

/* Correct / Incorrect states matching app screenshot */
.demo-option-btn.correct {
  border-color: var(--accent-success);
  background: var(--accent-success-bg);
  color: #065f46;
}

.demo-option-btn.correct .demo-option-letter,
.demo-option-btn.correct .option-letter {
  background: var(--accent-success);
  color: #ffffff;
}

.demo-option-btn.incorrect {
  border-color: var(--accent-danger);
  background: var(--accent-danger-bg);
  color: #991b1b;
}

.demo-option-btn.incorrect .demo-option-letter,
.demo-option-btn.incorrect .option-letter {
  background: var(--accent-danger);
  color: #ffffff;
}

.demo-feedback-box {
  display: none;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--primary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.demo-feedback-box.show {
  display: block;
}

.demo-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .demo-cta-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Subjects Auto-Detection Showcase
   -------------------------------------------------------------------------- */
.subjects-section {
  background: #ffffff;
}

.subjects-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .subjects-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .subjects-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subject-chip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.subject-chip-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.subject-icon-wrap {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subject-chip-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-headline);
}

.subject-chip-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Active Recall Comparison
   -------------------------------------------------------------------------- */
.comparison-section {
  background: var(--bg-subtle);
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .comparison-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-col {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.comparison-col-traditional {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.comparison-col-quizi {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.comparison-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.badge-gray {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.badge-purple {
  background: var(--primary-subtle);
  color: var(--primary);
}

.comparison-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.comparison-icon-x {
  color: var(--accent-danger);
  font-size: 1.1rem;
  font-weight: bold;
}

.comparison-icon-check {
  color: var(--accent-success);
  font-size: 1.1rem;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   FAQ Section (Accordions + SEO Targeting)
   -------------------------------------------------------------------------- */
.faq-section {
  background: #ffffff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  background: #ffffff;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headline);
  text-align: left;
  background: none;
  border: none;
}

.faq-icon-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-headline);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
  background: var(--primary-subtle);
  color: var(--primary);
}

.faq-question .chevron-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   Bottom Call-to-Action (High Conversion)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  background: var(--gradient-brand);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .cta-banner-title {
    font-size: 3rem;
  }
}

.cta-banner-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.25rem auto;
}

/* --------------------------------------------------------------------------
   Explore Study Workflows & Use Cases (Replaces Keyword Cloud)
   -------------------------------------------------------------------------- */
.workflows-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.workflows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .workflows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .workflows-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.workflow-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.workflow-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.workflow-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.workflow-card-title {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 0.45rem;
}

.workflow-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 0.9rem;
}

.workflow-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-learn-more:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

a.subject-chip-card {
  display: block;
}

a.subject-chip-card .subject-chip-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 2.5rem 0;
  font-size: 0.9375rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.site-footer .btn-header-ios {
  background: #1e293b;
  border: 1px solid #334155;
}

.site-footer .btn-header-ios:hover {
  background: #334155;
  border-color: #475569;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-schema-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.schema-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.75rem;
}

.schema-indicator span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Blog & High-Conversion Content Styles (pdftoquiz.app/blog/)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: var(--text-light);
}

/* Blog Index Layout */
.blog-index-hero {
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  padding: 4.5rem 0 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.category-pill {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.blog-card-media {
  height: 180px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.2));
}

.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-headline);
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Article Detail Layout */
.article-wrapper {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.article-header h1 {
  font-size: 2.35rem;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-headline);
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 3rem;
  }
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.author-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-headline);
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Table of Contents Box */
.article-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.article-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-headline);
  margin-bottom: 0.75rem;
}

.article-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-toc a {
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* Article Body Typography */
.article-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-body);
}

.article-body h2 {
  font-size: 1.85rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text-headline);
  scroll-margin-top: 6rem;
}

.article-body h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-headline);
  scroll-margin-top: 6rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, 
.article-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-headline);
  margin: 2rem 0;
}

.article-body strong {
  color: var(--text-headline);
  font-weight: 700;
}

.article-body a:not(.app-badge-btn):not(.btn-header-app):not(.workflow-card):not(.related-guide-card) {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:not(.app-badge-btn):not(.btn-header-app):not(.workflow-card):not(.related-guide-card):hover {
  color: var(--primary-hover);
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--primary-dark);
}

.article-callout {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Conversion Tactic: In-Article CTA Callout (25% & 75% scroll depth) */
.in-article-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.in-article-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.in-article-cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(196, 181, 253, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.in-article-cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.in-article-cta-desc {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.in-article-cta .cta-badge-group {
  margin-bottom: 0.75rem;
}

/* In-Article Interactive Mini Quiz Box */
.article-quiz-box {
  background: #ffffff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.75rem 0;
  box-shadow: var(--shadow-md);
}

.article-quiz-box .demo-badge-subject {
  font-size: 0.75rem;
}

/* Conversion Tactic: Floating Sticky Mobile Download Bar */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #334155;
  padding: 0.75rem 1rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
  }
}

.sticky-cta-text {
  display: flex;
  flex-direction: column;
}

.sticky-cta-text strong {
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.2;
}

.sticky-cta-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sticky-cta-buttons {
  display: flex;
  gap: 0.4rem;
}

.sticky-cta-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}

.sticky-cta-ios {
  background: var(--primary);
  color: #ffffff;
}

.sticky-cta-android {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #475569;
}

/* Article Author Bio */
.article-author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 3.5rem;
}

.author-bio-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-pill a {
  color: var(--text-headline);
  text-decoration: none;
}

.author-pill a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.article-author-card a {
  color: var(--primary);
  font-weight: 600;
}

.article-author-card a:hover {
  text-decoration: underline;
}

/* Related Guides Section (Blog & Landing Pages) */
.related-guides {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.related-guides-heading {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text-headline);
}

.related-guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.related-guide-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-guide-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.related-guide-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.related-guide-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Trust, Legal, About & Contact Pages
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 2.85rem;
  }
}

.page-hero .section-description {
  max-width: 700px;
}

.legal-section {
  padding: 3rem 0 5rem 0;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .legal-card {
    padding: 3rem;
  }
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.legal-body a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card h2 {
  font-size: 1.25rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.contact-email-link:hover {
  text-decoration: underline;
}

/* Quick Format Bar on Blog Index */
.blog-usecase-bar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-usecase-bar a {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-subtle);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.blog-usecase-bar a:hover {
  background: var(--primary);
  color: #ffffff;
}
