/* Lectopa — landing custom styles
 * Tailwind via CDN covers base. This file: brand tokens + non-Tailwind tweaks.
 */

:root {
  --lp-primary: #1B4FFF;
  --lp-primary-dark: #143ECC;
  --lp-secondary: #FFD23F;
  --lp-success: #22C55E;
  --lp-error: #EF4444;
  --lp-ink: #0F172A;
  --lp-muted: #64748B;
  --lp-bg: #F8FAFC;
  --lp-card: #FFFFFF;
  --lp-border: #E2E8F0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Buttons — mínimo 44px tap target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 79, 255, 0.3);
}
.btn-primary:hover { background: var(--lp-primary-dark); }
.btn-secondary {
  background: #fff;
  color: var(--lp-primary);
  border-color: var(--lp-primary);
}
.btn-secondary:hover { background: rgba(27, 79, 255, 0.05); }
.btn-ghost {
  background: transparent;
  color: var(--lp-ink);
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }

/* Price card — highlight */
.price-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); }
.price-card.featured {
  border-color: var(--lp-primary);
  box-shadow: 0 12px 30px rgba(27, 79, 255, 0.15);
  position: relative;
}
.price-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-secondary);
  color: var(--lp-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero gradient */
.hero-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(255, 210, 63, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27, 79, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
}

/* FAQ accordion */
details.faq {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
  outline: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--lp-muted);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq[open] summary { color: var(--lp-primary); }

/* Compat table */
.compat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--lp-card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--lp-border);
}
.compat-table th, .compat-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--lp-border);
  font-size: 0.95rem;
}
.compat-table tr:last-child td { border-bottom: 0; }
.compat-table th { background: #F8FAFC; font-weight: 600; }
.check-yes { color: var(--lp-success); font-weight: 700; }
.check-no { color: var(--lp-error); font-weight: 700; }

/* Steps */
.step-number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Lang switcher */
.lang-switch {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
}
.lang-switch a {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lp-muted);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.lang-switch a.active {
  background: var(--lp-primary);
  color: #fff;
}

/* Section spacing */
section { padding: 4rem 0; }
@media (max-width: 640px) { section { padding: 2.5rem 0; } }

/* Container */
.container-lp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile-first: ensure 16px base prevents iOS zoom on input focus */
input, select, textarea { font-size: 16px; }

/* Activation-code display (success page) */
.code-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  background: #0F172A;
  color: #FFD23F;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

/* QR placeholder */
.qr-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--lp-border);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-muted);
  font-size: 0.875rem;
  background: #fff;
}

/* Loader */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(27, 79, 255, 0.2);
  border-top-color: var(--lp-primary);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Helper utilities not in Tailwind by default */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
