/* ============================================================
   THE CONFIDENT TECH — Shared Styles
   Used by: index.html, login.html, register.html
   Mobile-first, 375px base
   ============================================================ */

:root {
  --primary: #1A56DB;
  --primary-dark: #1043A6;
  --primary-light: #EBF0FF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --neutral-900: #111827;
  --neutral-800: #1F2937;
  --neutral-700: #374151;
  --neutral-500: #6B7280;
  --neutral-400: #9CA3AF;
  --neutral-200: #E5E7EB;
  --neutral-100: #F3F4F6;
  --white: #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--neutral-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 600; line-height: 1.4; }
p  { font-size: 1rem; color: var(--neutral-700); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 3rem 0; }
.section-lg { padding: 5rem 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-accent {
  background: var(--accent);
  color: var(--neutral-900);
  border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--neutral-700);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--neutral-200); }

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card-bordered { border: 1px solid var(--neutral-200); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-input::placeholder { color: var(--neutral-400); }
.form-input.error { border-color: var(--danger); }

.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 3rem; }
.toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-500);
  font-size: 1.1rem;
  padding: 0.25rem;
}

.form-hint { font-size: 0.8rem; color: var(--neutral-500); margin-top: 0.3rem; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #C3DAFE; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NAV / HEADER
   ============================================================ */
.site-nav {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neutral-900);
  text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a { color: var(--neutral-700); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

/* ============================================================
   HERO SECTION (Landing Page)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--neutral-900) 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-cta { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--neutral-900);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.feature-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.feature-card p { font-size: 0.9rem; }

/* ============================================================
   QUOTIENT CARDS
   ============================================================ */
.quotient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.quotient-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.quotient-card .q-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
  margin-top: 0.1rem;
}
.quotient-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.quotient-card p { font-size: 0.85rem; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 0.25rem; }
.step-content p { font-size: 0.9rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  margin: 0 auto;
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pricing-card .price-desc { font-size: 0.85rem; color: var(--neutral-500); margin-bottom: 1.5rem; }
.price-features { text-align: left; margin-bottom: 1.5rem; }
.price-features li {
  list-style: none;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--neutral-100);
}
.price-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.price-original {
  font-size: 1.1rem;
  color: var(--neutral-400);
  text-decoration: line-through;
  margin-bottom: 0.2rem;
}
.price-launch-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}
.price-breakdown {
  font-size: 0.8rem;
  color: var(--neutral-500);
  margin-top: 0.1rem;
}
.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #F0FDF4;
  border: 1.5px solid #10B981;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}
.guarantee-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.guarantee-text strong {
  display: block;
  font-size: 0.9rem;
  color: #065F46;
  margin-bottom: 0.25rem;
}
.guarantee-text p {
  font-size: 0.82rem;
  color: #047857;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   EMAIL CAPTURE (hero lead magnet form)
   ============================================================ */
.email-capture-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 640px;
  margin: 2rem auto 0;
  backdrop-filter: blur(4px);
}
.email-capture-label {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.email-capture-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--neutral-800);
  background: var(--white);
}
.email-capture-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.3);
}
.email-capture-input::placeholder { color: var(--neutral-400); }

/* ============================================================
   BONUS CARDS
   ============================================================ */
.bonus-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  align-items: flex-start;
}
.bonus-num {
  background: var(--accent);
  color: var(--neutral-900);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  white-space: nowrap;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.bonus-body h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.bonus-body p { font-size: 0.875rem; color: var(--neutral-600); }
.bonus-value {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--neutral-200); padding: 1rem 0; }
.faq-q { font-weight: 600; margin-bottom: 0.5rem; }
.faq-a { font-size: 0.9rem; color: var(--neutral-700); }

/* ============================================================
   AUTH PAGES (login, register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--neutral-100);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo h1 { font-size: 1.4rem; color: var(--neutral-900); }
.auth-logo h1 span { color: var(--primary); }
.auth-logo p { font-size: 0.875rem; color: var(--neutral-500); margin-top: 0.25rem; }
.auth-divider {
  text-align: center;
  margin: 1.25rem 0;
  color: var(--neutral-400);
  font-size: 0.85rem;
}
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--neutral-500);
  margin-top: 1.25rem;
}
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--neutral-900);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
}
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-muted { color: var(--neutral-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .hero { padding: 6rem 2rem; }
  .hero-cta { flex-direction: row; justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quotient-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: row; flex-wrap: wrap; }
  .step { flex: 1; min-width: 200px; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .quotient-grid { grid-template-columns: repeat(3, 1fr); }
}
