/* === convertpdf.uk Design System === */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --text: #1e293b;
  --text2: #64748b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: rgba(5,150,105,0.08);
  --green: #16a34a;
  --green-bg: rgba(22,163,74,0.1);
  --red: #dc2626;
  --red-bg: rgba(220,38,38,0.1);
  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,0.1);
  --purple: #7c3aed;
  --purple-bg: rgba(124,58,237,0.1);
  --orange: #ea580c;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1100px;
  --header-h: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2em;
}
.logo .accent-dot { color: var(--accent); }
.logo-icon { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface2); }

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88em;
  background: var(--surface);
  user-select: none;
  transition: border-color 0.15s;
}
.lang-switcher:hover { border-color: var(--accent); }
.lang-flag { font-size: 1.1em; }
.lang-code { font-weight: 600; color: var(--text2); }
.lang-arrow { font-size: 0.7em; color: var(--text2); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.1s;
}
.lang-dropdown a:hover { background: var(--surface2); }
.lang-dropdown a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.lang-dropdown .fi { font-size: 1.2em; }

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 span { color: var(--accent); }
.hero p { color: var(--text2); font-size: 1.1em; max-width: 560px; margin: 16px auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}
.btn:hover { background: var(--surface2); border-color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(5,150,105,0.2); }
.btn-sm { padding: 6px 14px; font-size: 0.85em; border-radius: 6px; }
.btn-lg { padding: 16px 36px; font-size: 1.1em; }

/* Drop Zone (file upload) */
.dropzone {
  max-width: 640px;
  margin: 0 auto 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  background: var(--surface);
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-light); }
.dropzone-icon { font-size: 3em; margin-bottom: 12px; display: block; }
.dropzone h3 { color: var(--text); margin-bottom: 6px; }
.dropzone p { color: var(--text2); font-size: 0.9em; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .formats { margin-top: 12px; font-size: 0.8em; color: var(--text2); }

/* Result Area */
.result-box {
  max-width: 640px;
  margin: 0 auto 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-box .check-icon {
  width: 56px; height: 56px;
  background: var(--accent-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  margin-bottom: 12px;
}
.result-box h3 { color: var(--accent); margin-bottom: 4px; }
.result-box .filename { color: var(--text2); font-size: 0.9em; margin-bottom: 16px; }
.result-box .result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 60px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text2); font-size: 1.05em; }

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--text2); font-size: 0.9em; }

/* Tool Cards (homepage grid) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card.coming-soon { opacity: 0.6; pointer-events: none; }
.tool-card .tc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}
.tool-card .tc-info h3 { font-size: 1em; margin-bottom: 4px; }
.tool-card .tc-info p { color: var(--text2); font-size: 0.85em; }
.badge-soon {
  display: inline-block;
  background: var(--surface2);
  color: var(--text2);
  font-size: 0.7em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

/* How Steps */
.steps { display: flex; flex-direction: column; gap: 20px; max-width: 560px; margin: 0 auto; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 4px; }
.step-content p { color: var(--text2); font-size: 0.9em; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: var(--surface2); }
.faq-q .arrow { transition: transform 0.2s; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 16px;
  color: var(--text2);
  font-size: 0.92em;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 72px 24px;
  background: linear-gradient(135deg, var(--accent), #047857);
  color: #fff;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 1.05em; }
.cta-section .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-section .btn:hover { background: #f0fdf4; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  background: var(--surface);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer p { color: var(--text2); font-size: 0.85em; }
.site-footer .footer-note { margin-top: 6px; font-size: 0.8em; color: #94a3b8; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 32px; }
  .section { padding: 36px 16px; }
  .header-inner { padding: 0 12px; }
  .lang-code { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .dropzone { padding: 36px 16px; }
}
