/* ============================================================
   SnagReel — Design System
   Theme: Light · Clean · Single brand color
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Colors */
  --bg-page:          #f6f8fb;
  --bg-surface:       #ffffff;
  --bg-subtle:        #eef2f7;
  --bg-hero:          #eaf1fb;

  --border-subtle:    #e1e7ef;
  --border-strong:    #c9d4e2;

  --brand:            #1a6ff5;
  --brand-dark:       #0f5ad0;
  --brand-tint:       #e8f0fe;

  --success:          #128a52;
  --success-tint:     #e7f6ee;
  --danger:           #d3382c;
  --danger-tint:      #fdeceb;
  --warning:          #9a6700;
  --warning-tint:     #fff4d6;

  --text-primary:     #182334;
  --text-secondary:   #4a5a70;
  --text-muted:       #75839a;

  /* Spacing */
  --radius-sm:   8px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:  0 1px 2px rgba(16,24,40,0.05), 0 1px 3px rgba(16,24,40,0.08);
  --shadow-raised: 0 4px 12px rgba(16,24,40,0.08), 0 2px 4px rgba(16,24,40,0.05);
  --shadow-btn:   0 1px 2px rgba(16,24,40,0.1);

  /* Transitions */
  --transition: 0.18s ease;
  --transition-slow: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }
ul, ol { padding-left: 1.5rem; color: var(--text-secondary); }
li { margin-bottom: 0.4rem; }

/* ── Layout Container ───────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.25rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.25rem;
  position: relative;
  z-index: 1;
}

/* ── Icons ──────────────────────────────────────────────────── */
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.8rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 18px; height: 18px; }

.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-links a.active {
  color: var(--brand);
  background: var(--brand-tint);
  font-weight: 600;
}

.nav-cta {
  background: var(--brand) !important;
  color: white !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

/* ── Ad Block Notice ────────────────────────────────────────── */
.adblock-notice {
  display: none;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  background: var(--warning-tint);
  border-bottom: 1px solid #efd9a0;
  font-size: 0.85rem;
  color: var(--warning);
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(58rem 28rem at 50% -7rem, rgba(26,111,245,0.10), transparent 62%),
    linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.hero-title { margin-bottom: 1rem; }

.hero-title .gradient-text,
.gradient-text {
  color: var(--brand);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

/* ── Hero: two-column app layout (homepage) ─────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}

.hero-copy .hero-badge { margin-bottom: 1.25rem; }
.hero-copy .hero-title { margin-bottom: 1.1rem; }
.hero-copy .hero-subtitle { margin: 0 0 1.75rem; max-width: 540px; }

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero-checks svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.p-ico {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.p-ico svg { width: 16px; height: 16px; }

/* The downloader as a crafted product panel */
.dl-card { max-width: none; margin: 0; }

.dl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dl-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.dl-card-title svg { width: 19px; height: 19px; color: var(--brand); }
.dl-card-platforms { display: inline-flex; gap: 0.4rem; }
.dl-card-platforms .p-ico { width: 24px; height: 24px; border-radius: 6px; }
.dl-card-platforms .p-ico svg { width: 14px; height: 14px; }

.dl-card .input-group { margin-bottom: 0; }
.dl-card .btn-paste { padding: 0.85rem; }
.dl-card .btn-download {
  width: 100%;
  justify-content: center;
  margin-top: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.dl-card-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; text-align: center; }
  .hero-copy .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-checks { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .hero-platforms { justify-content: center; }
  .dl-card { max-width: 600px; margin: 0 auto; }
}

/* ── Platform Badges (chips under the tool) ─────────────────── */
.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.platform-badge svg { width: 14px; height: 14px; }

/* ── Downloader Card ────────────────────────────────────────── */
.downloader-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 980px;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-raised);
  text-align: left;
}

.input-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.url-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  min-width: 0;
}

.url-input::placeholder { color: var(--text-muted); }

.url-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,111,245,0.15);
}

.btn-download {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-download:hover { background: var(--brand-dark); }
.btn-download:active { transform: translateY(1px); }

.btn-download.loading {
  pointer-events: none;
  opacity: 0.75;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-paste {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-paste:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ── Detected Platform Indicator ────────────────────────────── */
.detected-platform {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--success);
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--success-tint);
  border: 1px solid #bfe5cf;
  border-radius: var(--radius-sm);
}

.detected-platform.show { display: flex; }

/* ── Result Container ───────────────────────────────────────── */
.result-container {
  display: none;
  margin-top: 1.25rem;
  animation: fadeInUp 0.3s ease;
}

.result-container.show { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.result-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-icon svg { width: 22px; height: 22px; }

.result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition);
}

.download-option:hover { border-color: var(--border-strong); }

.option-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.option-quality { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.option-type { font-size: 0.76rem; color: var(--text-muted); }

.btn-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition);
  white-space: nowrap;
}

.btn-dl-link:hover { filter: brightness(1.08); color: white; }
.btn-dl-link:disabled { opacity: 0.6; cursor: default; }

/* In-button download progress */
.dl-progress-bar {
  display: inline-block;
  width: 90px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.dl-progress-fill {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 999px;
  transition: width 0.15s linear;
}
.dl-progress-label {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  /* Allow the label to wrap instead of forcing the button to grow past its
     container (which overflowed the viewport on narrow screens). */
  white-space: normal;
  overflow-wrap: anywhere;
}
/* While showing progress the button must be allowed to shrink within its
   grid cell rather than expand to fit a long "Transferring X% · MB/MB" label. */
.btn-dl-link:has(.dl-progress-label) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  flex-wrap: wrap;
  justify-content: center;
}

/* Retry / notice card shown when the servers are busy */
.result-notice {
  padding: 1.5rem;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-notice h4 { margin-bottom: 0.5rem; }
.result-notice p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.1rem; }

/* ── Error & Loading States ─────────────────────────────────── */
.error-msg {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--danger-tint);
  border: 1px solid #f3c2bd;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.87rem;
  font-weight: 500;
  margin-top: 0.9rem;
}

.error-msg.show { display: flex; }

/* ── Trust Bar (under the tool) ─────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-item svg { width: 16px; height: 16px; color: var(--success); }

/* Legacy stats bar (kept for subpages that still use it) */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
  margin: 0 auto 4rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.stat-item {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  display: block;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 4.5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.section-title { margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-secondary); max-width: 700px; margin: 0 auto 2.75rem; text-align: center; }

/* ── Features Grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-icon svg { width: 21px; height: 21px; }

.feature-card h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.89rem; margin-bottom: 0; color: var(--text-muted); }

/* ── Supported Platforms Section ────────────────────────────── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.platform-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.platform-icon-wrap svg { width: 22px; height: 22px; }

.platform-info h4 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.15rem; color: var(--text-primary); }
.platform-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* Platform brand colors */
.platform-yt { background: #ff0000; }
.platform-tt { background: #121212; }
.platform-ig { background: #e4405f; }
.platform-tw { background: #14171a; }
.platform-fb { background: #1877f2; }

/* ── Steps / How-It-Works ───────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  padding: 1.9rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  margin: 0 auto 1.1rem;
}

.step-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Guide Link Cards ───────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

/* Card grids collapse gracefully on smaller screens */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .steps-grid,
  .guides-grid,
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.guide-card-title { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.guide-card-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }

/* ── FAQ Section ────────────────────────────────────────────── */
.faq-list { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border-strong); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--brand); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--brand-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  transition: transform var(--transition);
  color: var(--brand);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding var(--transition);
  padding: 0 1.4rem;
}

.faq-item.open .faq-answer {
  max-height: 320px;
  padding: 0 1.4rem 1.15rem;
}

.faq-answer p { font-size: 0.9rem; margin: 0; }

/* ── Ad Containers ──────────────────────────────────────────── */
.ad-container {
  min-height: 90px;
  margin: 2rem auto;
  max-width: 728px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.ad-container-wide {
  min-height: 250px;
  margin: 2rem auto;
  max-width: 970px;
}

.ad-label {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Native Content Grid (Adskeeper) ────────────────────────── */
.native-grid-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
}

/* ── Article / Content Pages ────────────────────────────────── */
.article-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.article-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.25rem 4rem;
}

.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.45rem; }
.article-body h3 { margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.article-body p  { font-size: 0.975rem; line-height: 1.8; color: var(--text-secondary); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { font-size: 0.975rem; line-height: 1.7; color: var(--text-secondary); }

.article-body .step-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-card);
}

.article-body .tip-box {
  background: var(--brand-tint);
  border: 1px solid #c4d9fb;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.article-body .tip-box p { color: var(--brand-dark); margin: 0; font-size: 0.9rem; }

/* Inline code — long example URLs must wrap on small screens */
code {
  font-family: 'Consolas', 'Menlo', monospace;
  font-size: 0.85em;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: var(--text-primary);
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1rem 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--text-secondary); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.9rem 1.1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-section h2 { margin-bottom: 0.75rem; color: #fff; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

.cta-section .btn-primary {
  background: #fff;
  color: var(--brand);
}

.cta-section .btn-primary:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--brand-dark); color: white; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* ── Contact Form ───────────────────────────────────────────── */
.contact-form { max-width: 600px; display: flex; flex-direction: column; gap: 1.15rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-textarea, .form-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,111,245,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }

/* Info cards on the contact page */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

/* ── Page Header (Legal Pages) ──────────────────────────────── */
.page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-page) 100%);
}

.page-header .hero-badge { margin-bottom: 1rem; }
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { margin: 0; font-size: 0.9rem; }

.legal-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.25rem 5rem;
}

.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; color: var(--text-primary); }
.legal-content h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; color: var(--text-secondary); }
.legal-content p { font-size: 0.9rem; line-height: 1.8; }
.legal-content ul { margin: 0.75rem 0 1.25rem 1.5rem; }
.legal-content li { font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ── Responsive ─────────────────────────────────────────────── */
/* Nav collapses at 900px — below that the full link row wraps badly */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-raised);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-mobile-toggle { display: block; }
  .navbar { position: relative; }
}

@media (max-width: 768px) {
  .input-group { flex-direction: column; }
  .btn-paste,
  .btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .stats-bar { grid-template-columns: 1fr; border-radius: var(--radius-md); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-item:last-child { border-bottom: none; }

  .trust-bar { gap: 0.9rem 1.5rem; }

  .downloader-card { padding: 1.4rem; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .section { padding: 3.25rem 0; }

  .container,
  .container-narrow { padding: 0 1.25rem; }
  .article-body,
  .legal-content { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .download-options { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .dl-card-head { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

/* ── Utility Classes ────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.divider { height: 1px; background: var(--border-subtle); margin: 3rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
