/* ==========================================================================
   Bambino Baby Monitor - Modern Design System
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --hero-gradient: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
  
  /* Accent Colors */
  --accent-purple: #7c3aed;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --night-green: #22c55e;

  /* Neutral Surface & Text */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Glassmorphism & Shadows */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 48px -8px rgba(99, 102, 241, 0.16);

  /* Layout & Sizing */
  --container-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}

/* The menu takes the middle and centres itself in it. Nothing in the header
   is allowed to wrap: a two-line nav item is what made it look broken. */
.site-header nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border-radius: var(--radius-pill);
  height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-qr-trigger:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-download-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 40px;
  white-space: nowrap;
  background: var(--text-main);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-download-nav:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 18px;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(99, 102, 241, 0.35);
  background: #111827;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-appstore-text small {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.btn-appstore-text strong {
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.btn-demo-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-demo-scroll:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-proof-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-proof-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
}

.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-wrap {
  position: relative;
  width: 290px;
  height: 600px;
  border-radius: 44px;
  background: #1e1b4b;
  padding: 10px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
}

.hero-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-pill.pill-top-left {
  /* Clear of the headline printed across the top of the screenshot. */
  top: 300px;
  left: -40px;
  animation-delay: 0s;
}

.hero-floating-pill.pill-bottom-right {
  bottom: 60px;
  right: -35px;
  animation-delay: 2s;
}

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

.floating-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.floating-icon-wrap.alert {
  background: #fee2e2;
  color: #ef4444;
}

.floating-icon-wrap.status {
  background: #dcfce7;
  color: #10b981;
}

.floating-text-wrap {
  display: flex;
  flex-direction: column;
}

.floating-text-wrap strong {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.2;
}

.floating-text-wrap span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers & Common Styles
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-alt {
  background: #ffffff;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Live Simulator
   ========================================================================== */
.simulator-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ede9fe 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.simulator-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
}

.simulator-phone-wrapper {
  display: flex;
  justify-content: center;
}

.sim-phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
  user-select: none;
}

.sim-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #181433;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sim-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.sim-camera-lens {
  width: 10px;
  height: 10px;
  background: #1e293b;
  border-radius: 50%;
  border: 1px solid #334155;
}

.sim-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 6px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 5;
}

.sim-feed-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}

.sim-feed-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.sim-feed-bg.night-active {
  filter: contrast(1.1) brightness(0.9) sepia(0.6) hue-rotate(85deg) saturate(1.8);
}

.sim-live-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.sim-live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.sim-telemetry-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}

.sim-alert-banner {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 8;
}

.sim-alert-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.sim-alert-text {
  font-size: 0.78rem;
  line-height: 1.3;
}

.sim-alert-text strong {
  display: block;
  font-size: 0.82rem;
}

.sim-audio-wave {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.3s;
}

.sim-audio-wave.active {
  opacity: 1;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: #38bdf8;
  border-radius: 4px;
}

.sim-audio-wave.active .wave-bar {
  animation: wave-bounce 1s ease-in-out infinite;
}

.sim-audio-wave.active .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.sim-audio-wave.active .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.sim-audio-wave.active .wave-bar:nth-child(4) { animation-delay: 0.45s; }
.sim-audio-wave.active .wave-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes wave-bounce {
  0%, 100% { height: 6px; }
  50% { height: 24px; background: #60a5fa; }
}

.sim-controls-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 10px 20px;
  background: #110e28;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sim-app-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.sim-app-btn.active {
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.sim-app-btn.talk-btn.talking {
  background: #10b981;
  box-shadow: 0 0 16px #10b981;
  animation: pulse-talk 1.2s infinite;
}

@keyframes pulse-talk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Simulator Side Controls */
.simulator-panel-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sim-mode-toggle-group {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  width: fit-content;
}

.sim-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sim-tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.sim-feature-triggers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sim-action-card {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-action-card:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sim-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.sim-action-card strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.sim-action-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

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

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
  background: var(--primary);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table th.col-highlight {
  background: #eef2ff;
  color: var(--primary);
  font-size: 1.1rem;
}

.comparison-table td.col-highlight {
  background: rgba(238, 242, 255, 0.4);
  font-weight: 600;
  color: var(--primary-hover);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-badge-win {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
}

.comparison-badge-loss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-rose);
}

/* ==========================================================================
   App Screenshots Showcase / Carousel
   ========================================================================== */
.screenshots-section {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
}

.screenshots-section .section-title {
  color: #ffffff;
}

.screenshots-section .section-subtitle {
  color: var(--text-light);
}

.carousel-outer {
  position: relative;
  margin-top: 40px;
}

.carousel-viewport {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 270px;
  scroll-snap-align: center;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev-btn { left: -20px; }
.carousel-nav-btn.next-btn { right: -20px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}

/* ==========================================================================
   Parent Reviews & Scenarios
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.review-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.review-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.review-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section (Native Exclusive Details Accordion)
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  list-style: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Call to Action (CTA) Section
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 80px 0;
}

.cta-banner {
  background: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Floating Mobile CTA Bar
   ========================================================================== */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-mobile-bar.visible {
  transform: translateY(0);
}

.floating-mobile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-mobile-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-mobile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
}

.floating-mobile-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.2;
}

.floating-mobile-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-floating-download {
  padding: 8px 18px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   QR Code Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.modal-qr-img {
  width: 180px;
  height: 180px;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

/* ==========================================================================
   Legal & Support Standalone Pages Shell
   ========================================================================== */
.page-shell {
  padding: 60px 0 90px;
}

.legal-article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.legal-article h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.legal-article .muted {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.legal-article p,
.legal-article li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-article ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-article a {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-proof-row {
    justify-content: center;
  }

  .hero-visual-card {
    margin-top: 20px;
  }

  .simulator-box {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps-grid,
  .features-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Below this the six links and two buttons no longer fit on one line, so the
   menu folds into the toggle rather than wrapping. */
@media (max-width: 1100px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform var(--transition-fast);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-qr-trigger {
    display: none;
  }
}

@media (max-width: 768px) {

  .hero-floating-pill.pill-top-left {
    left: 0;
    top: 45%;
  }

  .hero-floating-pill.pill-bottom-right {
    right: 0;
    bottom: 10px;
  }

  .steps-grid,
  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .sim-feature-triggers {
    grid-template-columns: 1fr;
  }

  .floating-mobile-bar {
    display: block;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .legal-article {
    padding: 28px 20px;
  }

  .carousel-nav-btn {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Shared page furniture added with the blog: skip link, breadcrumbs,
   footer headings, QR modal text, secondary button, language switcher.
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-main);
  color: #ffffff;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

.breadcrumbs {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-shell-wide .breadcrumbs,
.page-shell-article .breadcrumbs {
  max-width: none;
}

.page-shell-article .breadcrumbs {
  max-width: 760px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-brand .brand {
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-qr-img img {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switcher ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-switcher a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lang-switcher a[aria-current="true"] {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   Blog listing
   ========================================================================== */
.page-hero {
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

.feed-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.feed-link a {
  color: var(--primary);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.post-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px;
}

.post-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--primary);
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.post-card-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.post-card-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.blog-empty {
  max-width: 680px;
  padding: 40px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-empty p + p {
  margin-top: 20px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-weight: 600;
}

.pagination a {
  color: var(--primary);
}

/* ==========================================================================
   Article
   ========================================================================== */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 32px;
}

.article-category {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-hero {
  margin: 0 0 32px;
}

.article-hero img,
.article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.article-toc {
  margin-bottom: 36px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
}

.article-toc-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.article-toc ol {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.article-toc a {
  color: var(--text-main);
}

.article-toc a:hover {
  color: var(--primary);
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #334155;
}

.article-body > * + * {
  margin-top: 20px;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin-top: 44px;
  scroll-margin-top: 96px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 32px;
  scroll-margin-top: 96px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  display: grid;
  gap: 8px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  font-style: italic;
}

.article-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-muted);
}

.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.callout-title {
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap th {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-weight: 700;
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.article-body figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.article-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--text-main);
  color: #cbd5e1;
}

.article-cta img {
  border-radius: 14px;
  flex-shrink: 0;
}

.article-cta div {
  flex: 1;
}

.article-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.article-cta .btn-download-nav {
  background: #ffffff;
  color: var(--text-main);
}

.related-posts {
  max-width: 1140px;
  margin: 72px auto 0;
}

.related-posts h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.back-link {
  max-width: 760px;
  margin: 40px auto 0;
  font-weight: 600;
}

.back-link a {
  color: var(--primary);
}

/* ==========================================================================
   404
   ========================================================================== */
.not-found {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
}

.not-found-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.not-found h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.not-found .page-lead {
  margin: 0 auto;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-empty {
    padding: 24px;
  }

  .breadcrumbs [aria-current="page"] {
    max-width: 24ch;
  }
}

.nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.legal-summary {
  margin-bottom: 32px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.legal-summary-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.legal-summary-title {
  font-weight: 800;
  color: var(--text-main) !important;
  margin-bottom: 10px !important;
}

.legal-summary ul {
  margin-bottom: 12px;
}

.legal-toc {
  margin-bottom: 8px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
}

.legal-toc ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
}

.legal-article .legal-toc li {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.legal-article .legal-toc a {
  text-decoration: none;
}

.legal-article h2 {
  scroll-margin-top: 96px;
}

.legal-article .legal-caps {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

@media (max-width: 640px) {
  .legal-article {
    padding: 28px 20px;
  }

  .legal-toc ol {
    columns: 1;
  }
}

.legal-article h1 {
  line-height: 1.2;
}

/* ==========================================================================
   SEO content blocks: takeaways, inline CTA, sources, author box and page,
   comparisons hub, apps grid
   ========================================================================== */
.takeaways {
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.takeaways-title,
.inline-cta-title {
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.takeaways ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.inline-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.inline-cta div {
  flex: 1;
}

.inline-cta p {
  margin: 0;
}

.article-body .inline-cta a.btn-download-nav {
  color: #ffffff;
  text-decoration: none;
}

.sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.sources h2 {
  font-size: 1.1rem !important;
  margin-top: 0 !important;
}

.sources ol {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.muted-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body sup a {
  text-decoration: none;
  font-weight: 600;
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.author-box img,
.author-hero-img {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.author-box-name {
  font-weight: 700;
}

.author-box-name a {
  color: var(--text-main);
}

.author-box-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.author-box p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.author-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.author-hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.author-bio {
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.7;
  color: #334155;
}

.author-bio p + p {
  margin-top: 12px;
}

.author-bio a,
.page-lead a {
  color: var(--primary);
  text-decoration: underline;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

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

.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.compare-method {
  max-width: 760px;
  margin-top: 64px;
  line-height: 1.7;
  color: #334155;
}

.compare-method h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.compare-method ul {
  padding-left: 22px;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.compare-method a {
  color: var(--primary);
}

.section-more,
.apps-more {
  margin-top: 32px;
  text-align: center;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
}

.app-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.app-card img {
  border-radius: 14px;
  flex-shrink: 0;
}

.app-card-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--primary);
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 4px 0 6px;
}

.app-card-title a {
  color: var(--text-main);
}

.app-card-summary {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.app-card-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-card-links a {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .inline-cta,
  .author-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-bottom {
  row-gap: 8px;
}

.footer-bottom p:first-child {
  flex-basis: 100%;
}

.footer-bottom a {
  color: var(--primary);
}

/* ==========================================================================
   Web App button – the browser viewer at /app/, deliberately the loudest
   button on the page after the App Store one
   ========================================================================== */
.btn-webapp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-webapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
  color: #ffffff;
}

.btn-webapp::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(139, 92, 246, 0.45);
  animation: webapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes webapp-pulse {
  0% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-webapp::after {
    animation: none;
    opacity: 0;
  }
}

.nav-webapp-item {
  display: none;
}

.hero-webapp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.14);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.hero-webapp:hover {
  transform: translateY(-2px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.22);
}

.hero-webapp-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #ffffff;
  flex-shrink: 0;
}

.hero-webapp-icon svg {
  width: 20px;
  height: 20px;
}

.hero-webapp-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.hero-webapp-text strong {
  color: var(--text-main);
  font-size: 0.98rem;
}

.hero-webapp-text span {
  color: var(--accent-purple);
  font-size: 0.9rem;
  font-weight: 700;
}

/* The header holds six links and three buttons; below 1320px the QR
   button keeps only its icon so nothing wraps. */
@media (max-width: 1320px) {
  .btn-qr-trigger span {
    display: none;
  }

  .btn-qr-trigger {
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .btn-webapp-header {
    display: none;
  }

  .nav-webapp-item {
    display: block;
    margin-top: 8px;
  }

  .nav-webapp-item .btn-webapp {
    display: flex;
    justify-content: center;
    height: 48px;
  }
}

.hero-webapp {
  margin-bottom: 20px;
}
