/* Flique — Video Downloader by Folner
   Shared design system for all /flique/ pages.
   Folner indigo/slate visual language. */

:root {
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --indigo-900: #312E81;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --indigo-grad: linear-gradient(135deg, #4F46E5, #3730A3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo-600); }

/* ── Brand mark ─────────────────────────────────────────────── */
.flq-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--indigo-grad);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flq-mark.sm { width: 28px; height: 28px; border-radius: 8px; }
.flq-mark.lg { width: 64px; height: 64px; border-radius: 18px; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--slate-900); font-weight: 700; font-size: 1.125rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--slate-700); font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--indigo-600); }
.nav-cta { background: var(--indigo-600); color: #fff !important; padding: 0.625rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; transition: background 0.2s; }
.nav-cta:hover { background: var(--indigo-700); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { max-width: 900px; margin: 0 auto; padding: 6rem 2rem 5rem; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #EEF2FF; color: var(--indigo-700); font-size: 0.8125rem; font-weight: 600; padding: 0.375rem 1rem; border-radius: 100px; margin-bottom: 1.75rem; letter-spacing: 0.02em; text-transform: uppercase; }
.hero-badge::before { content: '▾'; font-size: 0.75rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
h1 span { background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.25rem; color: var(--slate-700); max-width: 580px; margin: 0 auto 3rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.625rem; background: var(--indigo-600); color: #fff; padding: 1rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 14px rgba(79,70,229,0.35); }
.btn-primary:hover { background: var(--indigo-700); transform: translateY(-1px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.625rem; background: transparent; color: var(--slate-700); padding: 1rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 2px solid var(--slate-200); transition: border-color 0.2s, color 0.2s; }
.btn-secondary:hover { border-color: var(--indigo-500); color: var(--indigo-600); }
.btn-white { display: inline-flex; align-items: center; gap: 0.625rem; background: #fff; color: var(--indigo-700); padding: 1rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: opacity 0.2s, transform 0.1s; }
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }

/* ── Stats ──────────────────────────────────────────────────── */
.stats { background: var(--slate-100); padding: 2.5rem 2rem; }
.stats-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--indigo-600); display: block; }
.stat-label { font-size: 0.875rem; color: var(--slate-500); font-weight: 500; }

/* ── Features ───────────────────────────────────────────────── */
.features { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; }
.section-label { text-align: center; font-size: 0.8125rem; font-weight: 700; color: var(--indigo-600); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1rem; }
.features h2, .how-it-works h2, .cta-section h2 { text-align: center; }
.section-sub { text-align: center; color: var(--slate-500); font-size: 1.0625rem; max-width: 580px; margin: 0 auto 4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card { border: 1px solid var(--slate-200); border-radius: 16px; padding: 2rem; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: var(--indigo-500); box-shadow: 0 8px 32px rgba(79,70,229,0.12); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: #EEF2FF; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--slate-500); font-size: 0.9375rem; }

/* ── How it works ───────────────────────────────────────────── */
.how-it-works { background: var(--slate-100); padding: 6rem 2rem; }
.how-inner { max-width: 800px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-600); color: #fff; font-weight: 700; font-size: 0.9375rem; display: flex; align-items: center; justify-content: center; }
.step-content h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem; }
.step-content p { color: var(--slate-500); font-size: 0.9375rem; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, #312E81 0%, #4F46E5 100%); padding: 6rem 2rem; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.78); font-size: 1.125rem; margin: 1rem auto 2.5rem; max-width: 520px; }

/* ── Content / docs / legal ─────────────────────────────────── */
.page { max-width: 820px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.page-head { margin-bottom: 2.5rem; }
.page-head .eyebrow { font-size: 0.8125rem; font-weight: 700; color: var(--indigo-600); letter-spacing: 0.08em; text-transform: uppercase; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); text-align: left; margin: 0.75rem 0 0.5rem; }
.page-head p { color: var(--slate-500); font-size: 1.0625rem; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--slate-700); font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose code { background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 5px; padding: 0.1rem 0.4rem; font-size: 0.875rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose .muted { color: var(--slate-500); font-size: 0.9375rem; }
.updated { color: var(--slate-500); font-size: 0.875rem; margin-top: 0.5rem; }

/* callout / notice */
.callout { background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; color: var(--slate-700); font-size: 0.9375rem; }
.callout strong { color: var(--indigo-700); }

/* cards grid (support/docs index) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.link-card { display: block; border: 1px solid var(--slate-200); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s; }
.link-card:hover { border-color: var(--indigo-500); box-shadow: 0 8px 24px rgba(79,70,229,0.10); transform: translateY(-1px); }
.link-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.link-card p { color: var(--slate-500); font-size: 0.9rem; }

/* FAQ */
.faq { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--slate-200); padding: 1.25rem 0; }
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.faq-item p { color: var(--slate-500); font-size: 0.9375rem; }

/* forms */
.form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form label { font-weight: 600; font-size: 0.9375rem; display: block; margin-bottom: 0.4rem; }
.form input, .form select, .form textarea { width: 100%; padding: 0.75rem 0.875rem; border: 1px solid var(--slate-300); border-radius: 10px; font: inherit; color: var(--slate-900); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(79,70,229,0.25); border-color: var(--indigo-600); }
.form textarea { min-height: 140px; resize: vertical; }

/* welcome / checklist */
.hero-banner { background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-600) 100%); padding: 5rem 2rem 4rem; text-align: center; color: #fff; }
.hero-banner h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.hero-banner p { opacity: 0.85; font-size: 1.125rem; max-width: 480px; margin: 0 auto; }
.check-list { list-style: none; margin: 0 0 3rem; }
.check-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--slate-200); align-items: flex-start; }
.check-list li:last-child { border-bottom: none; }
.check-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #EEF2FF; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; }
.check-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.check-content p { color: var(--slate-500); font-size: 0.9375rem; }
.tips { background: var(--slate-50); border-radius: 16px; padding: 2rem; margin-bottom: 3rem; }
.tips h2 { font-size: 1.125rem; text-align: left; margin-bottom: 1.25rem; }
.tip { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.9375rem; color: var(--slate-700); }
.tip-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--indigo-600); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 0.125rem; }
.cta-center { text-align: center; padding: 2rem 0; }
.cta-center h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-center p { color: var(--slate-500); margin-bottom: 2rem; }
.btn { display: inline-block; background: var(--indigo-600); color: #fff; padding: 0.875rem 2rem; border-radius: 10px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; margin: 0.375rem; transition: background 0.2s; }
.btn:hover { background: var(--indigo-700); }
.btn-outline { background: transparent; color: var(--indigo-600); border: 2px solid var(--indigo-600); }
.btn-outline:hover { background: #EEF2FF; }

/* changelog */
.release { border-left: 2px solid var(--slate-200); padding: 0 0 2rem 1.5rem; position: relative; }
.release::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--indigo-600); }
.release h2 { font-size: 1.25rem; text-align: left; margin-bottom: 0.25rem; }
.release .date { color: var(--slate-500); font-size: 0.875rem; margin-bottom: 0.75rem; }
.release ul { margin-left: 1.25rem; }
.release li { color: var(--slate-700); margin-bottom: 0.4rem; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.5rem; border-radius: 5px; margin-right: 0.5rem; }
.tag-new { background: #DCFCE7; color: #166534; }
.tag-fix { background: #EEF2FF; color: var(--indigo-700); }
.tag-improve { background: #FEF9C3; color: #854D0E; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--slate-200); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer-brand { max-width: 300px; }
.footer-brand .brand-name { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--slate-500); font-size: 0.875rem; }
.footer-links h4 { font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { text-decoration: none; color: var(--slate-500); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--indigo-600); }
.footer-bottom { text-align: center; color: var(--slate-500); font-size: 0.8125rem; padding-top: 2rem; margin: 2rem auto 0; border-top: 1px solid var(--slate-200); max-width: 1100px; }

@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links li.hide-sm { display: none; }
}
