/* ========================================
   Ikno.app — OSINT Research Service
   Design System & Shared Styles
   ======================================== */

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

:root {
  --bg: #07070d;
  --bg-elevated: #0d0d15;
  --bg-card: rgba(15, 15, 25, 0.7);
  --bg-card-hover: rgba(20, 20, 35, 0.85);
  --bg-input: rgba(12, 12, 20, 0.8);
  --accent: #00d4ff;
  --accent-rgb: 0, 212, 255;
  --accent-glow: rgba(0, 212, 255, 0.12);
  --accent-alt: #7b61ff;
  --accent-alt-rgb: 123, 97, 255;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-alt));
  --text: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #5a5a70;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 212, 255, 0.2);
  --success: #00e87b;
  --warning: #ffa726;
  --error: #ff4466;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 30px rgba(0, 212, 255, 0.08);
  --blur: blur(20px);
  --max-width: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Background effects */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--accent-rgb), 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(var(--accent-alt-rgb), 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ─────────────────────────── */

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { opacity: 0.85; }

.mono { font-family: 'JetBrains Mono', monospace; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ── Layout ─────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 40px; }

/* ── Navbar ─────────────────────────────── */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 13, 0.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Glass Card ─────────────────────────── */

.card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}
.card-lg { padding: 32px; border-radius: var(--radius-lg); }
.card-flat { backdrop-filter: none; }
.card-flat:hover { box-shadow: none; }

/* ── Buttons ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(var(--accent-rgb), 0.35);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text); }

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Form Elements ──────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Progress Bar ───────────────────────── */

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ── Steps indicator ────────────────────── */

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

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

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #07070d;
}

.step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: #07070d;
}

.step-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.step.active .step-label { color: var(--text); }
.step.done .step-label { color: var(--text-secondary); }

.step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
}
.step.done + .step-line,
.step-line.done {
  background: var(--success);
}

/* ── Badge / Tag ────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-accent {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}
.badge-success {
  background: rgba(0, 232, 123, 0.12);
  color: var(--success);
}
.badge-warning {
  background: rgba(255, 167, 38, 0.12);
  color: var(--warning);
}
.badge-popular {
  background: rgba(var(--accent-alt-rgb), 0.15);
  color: var(--accent-alt);
}

/* ── Pricing Card ───────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pricing-card {
  position: relative;
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.1);
  transform: scale(1.03);
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 4px;
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.pricing-card .plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-card .plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.pricing-card .features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card .features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card .features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .features li.locked::before {
  content: '✕';
  color: var(--text-muted);
}
.pricing-card .features li.locked {
  color: var(--text-muted);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Stat card ──────────────────────────── */

.stat {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Screen transitions ─────────────────── */

.screen {
  display: none;
  animation: fadeIn 0.4s ease;
}
.screen.active {
  display: block;
}

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

/* ── Loader / spinner ───────────────────── */

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.radar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.2);
  position: relative;
  margin: 0 auto;
}
.radar::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  animation: radarSweep 2s linear infinite;
  box-shadow: 0 0 12px var(--accent);
}
.radar::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--accent);
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Scan line items ────────────────────── */

.scan-list {
  list-style: none;
  max-width: 480px;
  margin: 32px auto;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}
.scan-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.scan-item.done { color: var(--text-secondary); }
.scan-item .icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.scan-item.done .icon { color: var(--success); }
.scan-item.active .icon { color: var(--accent); }

/* ── Result cards ───────────────────────── */

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.result-value {
  font-size: 1.3rem;
  font-weight: 700;
}
.result-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Blurred paywall ────────────────────── */

.blurred-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.5;
}

.paywall-overlay {
  position: relative;
}
.paywall-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ── Dashboard ──────────────────────────── */

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.category-item .cat-name {
  width: 200px;
  color: var(--text-secondary);
}
.category-item .cat-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.category-item .cat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}
.category-item .cat-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 50px;
  text-align: right;
}

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

/* ── Hero ────────────────────────────────── */

.hero {
  padding: 140px 0 80px;
  text-align: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* ── Feature grid ───────────────────────── */

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How it works ───────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

/* ── Example dossier preview ────────────── */

.dossier-preview {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.dossier-preview .card {
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.dossier-person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.dossier-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  color: #fff;
}

.dossier-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.dossier-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.dossier-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dossier-field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dossier-field-value {
  font-size: 0.9rem;
}

/* ── FAQ ─────────────────────────────────── */

.faq-list {
  max-width: 700px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ──────────────────────────────── */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Summary table ──────────────────────── */

.summary-table {
  width: 100%;
  border-collapse: collapse;
}
.summary-table tr {
  border-bottom: 1px solid var(--border);
}
.summary-table td {
  padding: 12px 0;
  font-size: 0.95rem;
}
.summary-table td:first-child {
  color: var(--text-secondary);
  width: 180px;
  font-weight: 500;
}
.summary-table td:last-child {
  color: var(--text);
}
.summary-table .edit-btn {
  color: var(--accent);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 12px;
}

/* ── Dossier example (detailed) ──────────── */

.example-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.example-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2);
}

.example-info { flex: 1; }
.example-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.example-info .meta { color: var(--text-secondary); font-size: 0.95rem; }

.example-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.example-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.example-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(var(--accent-rgb), 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.example-stat .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.example-stat .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.example-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.example-tab {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.example-tab:hover { color: var(--text-secondary); }
.example-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.example-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.example-panel.active { display: block; }

.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.social-row:last-child { border-bottom: none; }
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.social-icon.fb { background: rgba(24, 119, 242, 0.15); }
.social-icon.ig { background: rgba(225, 48, 108, 0.15); }
.social-icon.li { background: rgba(0, 119, 181, 0.15); }
.social-icon.gh { background: rgba(110, 84, 148, 0.15); }
.social-icon.tw { background: rgba(29, 161, 242, 0.15); }
.social-icon.tg { background: rgba(0, 136, 204, 0.15); }
.social-info { flex: 1; }
.social-info .name { font-weight: 500; font-size: 0.9rem; }
.social-info .detail { font-size: 0.8rem; color: var(--text-muted); }
.social-confidence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  width: 60px;
  flex-shrink: 0;
  padding-top: 2px;
}
.timeline-content { flex: 1; }
.timeline-title { font-weight: 500; font-size: 0.9rem; }
.timeline-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

.data-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.data-row:last-child { border-bottom: none; }
.data-label {
  color: var(--text-muted);
  width: 140px;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.data-value { color: var(--text); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-item {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .example-stats-row { grid-template-columns: repeat(3, 1fr); }
  .example-header { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 500px) {
  .example-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Auth pages ──────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card .logo {
  text-align: center;
  display: block;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-error {
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--error);
  margin-bottom: 16px;
  display: none;
}
.auth-error.visible { display: block; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}
.btn-google:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 500;
}

/* ── Page header ─────────────────────────── */

.page-header {
  padding: 120px 0 40px;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }

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

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .result-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

  .steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  .step-line { display: none; }

  .category-item .cat-name { width: 140px; }
}

@media (max-width: 500px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 110px 0 48px; }
  .card { padding: 16px; }
  .card-lg { padding: 20px; }
  .hero-stats { gap: 16px; }
  .dossier-person { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Price comparison ────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}
.compare-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:last-child { text-align: right; }
.compare-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.compare-table tbody td:last-child { text-align: right; }
.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-row-ikno {
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent);
}
.compare-row-ikno td:first-child { padding-left: 13px; }

.compare-provider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.compare-logo.fiverr { background: rgba(30,190,98,0.15); color: #1dbf73; }
.compare-logo.upwork { background: rgba(20,168,0,0.15); color: #14a800; }
.compare-logo.pi { background: rgba(255,180,50,0.15); color: #ffb432; }
.compare-logo.spokeo { background: rgba(100,120,255,0.15); color: #7888ff; }
.compare-logo.ikno { background: rgba(0,212,255,0.15); color: var(--accent); }

.compare-name { font-weight: 500; }
.compare-type { font-size: 0.8rem; color: var(--text-secondary); }
.compare-price {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.compare-price.expensive { color: var(--error); }
.compare-price.cheap { color: var(--success); }
.compare-price.ikno-price { color: var(--accent); font-size: 1.05rem; }
.compare-time { font-size: 0.85rem; color: var(--text-secondary); }
.compare-depth {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.compare-depth.low { background: rgba(255,80,80,0.12); color: var(--error); }
.compare-depth.medium { background: rgba(255,180,50,0.12); color: #ffb432; }
.compare-depth.high { background: rgba(0,212,255,0.12); color: var(--accent); }
.compare-depth.full { background: rgba(46,204,113,0.12); color: var(--success); }

.compare-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 16px;
}
.compare-note a { color: var(--accent); text-decoration: underline; }

.compare-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  margin-top: 24px;
  font-size: 0.9rem;
}
.compare-savings strong { color: var(--accent); }

/* Compact comparison for paywall */
.compare-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.compare-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.compare-compact-row.is-ikno {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}
.compare-compact-row .provider-name { font-weight: 500; }
.compare-compact-row .provider-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.compare-compact-row .provider-price.strike {
  text-decoration: line-through;
  color: var(--text-secondary);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .compare-table { font-size: 0.82rem; }
  .compare-table thead th,
  .compare-table tbody td { padding: 10px 10px; }
  .compare-table .col-time,
  .compare-table .col-depth { display: none; }
}
