/* ============================================================
   DownSnap – Design System
   Inspired by: Linear, Vercel, Raycast
   Approach: CSS custom properties, precise spacing, clean type
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Accent — single intentional color (not "AI purple") */
  --accent-hue: 221;
  --accent:        hsl(var(--accent-hue), 83%, 53%);
  --accent-hover:  hsl(var(--accent-hue), 83%, 47%);
  --accent-muted:  hsl(var(--accent-hue), 83%, 53%, 0.12);
  --accent-border: hsl(var(--accent-hue), 83%, 53%, 0.25);
  --accent-text:   hsl(var(--accent-hue), 83%, 63%);

  /* Typography */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;
}

/* ── DARK MODE (default) ──────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0a0a0b;
  --bg-subtle:   #111113;
  --bg-raised:   #18181b;
  --bg-overlay:  #1e1e23;
  --bg-hover:    rgba(255,255,255,.04);
  --bg-active:   rgba(255,255,255,.07);

  --border:      rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.15);

  --text-primary:   #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary:  #71717a;
  --text-disabled:  #52525b;

  --input-bg:    #111113;
  --input-border: rgba(255,255,255,.1);
  --input-focus:  hsl(var(--accent-hue), 83%, 53%);

  --tab-bg:      #18181b;
  --tab-active:  #27272a;

  --card-bg:     #111113;
  --card-border: rgba(255,255,255,.07);
  --card-hover-border: rgba(255,255,255,.14);

  --nav-bg:      rgba(10,10,11,.85);

  --scrollbar: #3f3f46;

  /* Semantic */
  --error-bg:   rgba(239,68,68,.1);
  --error-text: #fca5a5;
  --error-border: rgba(239,68,68,.25);

  --success-bg:   rgba(34,197,94,.1);
  --success-text: #86efac;

  --code-bg:  rgba(99,102,241,.12);
  --code-text: #a5b4fc;
}

/* ── LIGHT MODE ───────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #fafafa;
  --bg-subtle:   #f4f4f5;
  --bg-raised:   #ffffff;
  --bg-overlay:  #ffffff;
  --bg-hover:    rgba(0,0,0,.03);
  --bg-active:   rgba(0,0,0,.06);

  --border:      rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.14);

  --text-primary:   #09090b;
  --text-secondary: #52525b;
  --text-tertiary:  #71717a;
  --text-disabled:  #a1a1aa;

  --input-bg:    #ffffff;
  --input-border: rgba(0,0,0,.12);
  --input-focus:  hsl(var(--accent-hue), 83%, 53%);

  --tab-bg:      #f4f4f5;
  --tab-active:  #ffffff;

  --card-bg:     #ffffff;
  --card-border: rgba(0,0,0,.07);
  --card-hover-border: rgba(0,0,0,.14);

  --nav-bg:      rgba(250,250,250,.90);

  --scrollbar: #d4d4d8;

  --error-bg:   rgba(239,68,68,.07);
  --error-text: #dc2626;
  --error-border: rgba(239,68,68,.2);

  --success-bg:   rgba(34,197,94,.08);
  --success-text: #16a34a;

  --code-bg:  rgba(99,102,241,.07);
  --code-text: #4338ca;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.05);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

/* ── Accessibility ────────────────────────────────────────── */
.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;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; }

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

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
}

strong { color: var(--text-primary); font-weight: 600; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-md {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: opacity var(--dur-base) var(--ease);
}
.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Theme Toggle ─────────────────────────────────────────── */
#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
#theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
#theme-toggle svg { width: 16px; height: 16px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Main Card ────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: border-color var(--dur-base) var(--ease);
  overflow: hidden;
}

/* ── Platform Tabs ────────────────────────────────────────── */
.tab-bar {
  display: flex;
  background: var(--tab-bg);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  position: relative;
  white-space: nowrap;
}
.tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.tab-btn[aria-selected="true"] {
  background: var(--tab-active);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
[data-theme="dark"] .tab-btn[aria-selected="true"] {
  border-color: var(--border-strong);
}

/* ── Card Body ────────────────────────────────────────────── */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Sub-options ──────────────────────────────────────────── */
.sub-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.sub-opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.sub-opt-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}
.sub-opt-btn[data-selected="true"] {
  border-color: var(--accent-border);
  color: var(--accent-text);
  background: var(--accent-muted);
}

.platform-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.platform-banner-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── URL Input ────────────────────────────────────────────── */
.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color var(--dur-fast) var(--ease);
}
.input-icon svg { width: 16px; height: 16px; display: block; }

#url-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
#url-input::placeholder { color: var(--text-disabled); }
#url-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px hsl(var(--accent-hue), 83%, 53%, 0.15);
}
#url-input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--accent-text); }

/* ── Fetch Button ─────────────────────────────────────────── */
#fetch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  box-shadow: 0 2px 8px hsl(var(--accent-hue), 83%, 53%, 0.3);
}
#fetch-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px hsl(var(--accent-hue), 83%, 53%, 0.4);
}
#fetch-btn:active:not(:disabled) { transform: scale(0.98); }
#fetch-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#fetch-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error Box ────────────────────────────────────────────── */
#error-box {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  font-size: 0.875rem;
  line-height: 1.5;
}
#error-box.show { display: flex; }
#error-box svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

/* ── Results ──────────────────────────────────────────────── */
#results-section {
  display: none;
  margin-top: 28px;
}
#results-section.show { display: block; }

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.results-header h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#results-count {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

#media-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Media Card ───────────────────────────────────────────── */
.media-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp var(--dur-slow) var(--ease) both;
}

.media-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.media-card-type {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.type-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent-muted);
  color: var(--accent-text);
}
.type-badge.photo {
  background: rgba(236,72,153,.1);
  color: #f472b6;
}
.type-badge svg { width: 11px; height: 11px; }

.media-card-duration {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.media-preview {
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 480px;
  overflow: hidden;
}
.media-preview video,
.media-preview img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}
.media-preview video { border-radius: 0; }

.media-card-footer {
  padding: 12px 14px;
}

/* ── Download Button ──────────────────────────────────────── */
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
  background: var(--accent-muted);
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.dl-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px hsl(var(--accent-hue), 83%, 53%, 0.25);
}
.dl-btn:active { transform: scale(0.98); }
.dl-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.dl-btn.photo-btn {
  border-color: rgba(236,72,153,.25);
  background: rgba(236,72,153,.08);
  color: #f472b6;
}
.dl-btn.photo-btn:hover {
  background: #ec4899;
  color: #fff;
  border-color: #ec4899;
  box-shadow: 0 2px 10px rgba(236,72,153,.3);
}

/* ── Section Divider ──────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── How It Works ─────────────────────────────────────────── */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 520px;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.step-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Platform Details ─────────────────────────────────────── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.platform-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.platform-card-head svg { width: 18px; height: 18px; flex-shrink: 0; }

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-list li {
  display: flex;
  gap: 8px;
  font-size: 0.8375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.platform-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--dur-base) var(--ease);
}
.feature-card:hover { border-color: var(--card-hover-border); }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.feature-icon svg { width: 17px; height: 17px; }

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 6px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
}
.faq-question:hover { background: var(--bg-hover); }
.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform var(--dur-base) var(--ease);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.faq-answer p {
  padding: 0 18px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ── SEO Prose ────────────────────────────────────────────── */
.prose-block {
  max-width: 720px;
}
.prose-block h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.prose-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.prose-block p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy, .footer-links, .footer-tech {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeUp var(--dur-slow) var(--ease) both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .container, .container-sm, .container-md { padding: 0 16px; }
  .hero { padding: 48px 0 32px; }
  .tab-btn span.tab-label { display: none; }
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .card-body { padding: 14px; }
  .platform-feature-grid { grid-template-columns: 1fr; }
  .supported-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { gap: 8px 16px; }
}

/* ── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}
.trust-bar span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ── Platform Feature Grid ────────────────────────────────── */
.platform-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.platform-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.platform-feature-card:hover {
  box-shadow: var(--shadow-md);
}
.platform-feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.platform-feature-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Facebook accent */
.fb-accent { border-top: 2px solid hsl(221, 83%, 60%); }
.fb-accent:hover { border-color: hsl(221, 83%, 53%); }

/* Instagram accent */
.ig-accent { border-top: 2px solid #e1306c; }
.ig-accent:hover { border-color: #c13584; }

.pfcard-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-text);
}
.pfcard-icon svg { width: 18px; height: 18px; }

.pfcard-icon.ig-icon {
  background: rgba(225,48,108,.1);
  border-color: rgba(225,48,108,.25);
  color: #e1306c;
}

/* ── Keyword List ─────────────────────────────────────────── */
.kw-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}
.kw-list li {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}
.kw-list li::before {
  content: '✓';
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-text);
  flex-shrink: 0;
}
.ig-accent .kw-list li::before { color: #e1306c; }

/* ── Supported Sites Grid ─────────────────────────────────── */
.supported-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.supported-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.supported-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-sm);
}
.supported-card strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.supported-card span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.supported-card.all-sites {
  border-color: var(--accent-border);
  background: var(--accent-muted);
}
.supported-card.all-sites strong { color: var(--accent-text); }
.supported-card.all-sites span { color: var(--accent-text); opacity: 0.7; }

