/* ============================================================
   EasyQR — Shared Styles
   Brand: #0D2338 (Navy), #3B82F6 (Accent Blue)
   Fonts: Fraunces (headings), Outfit (body)
   ============================================================ */

:root {
  --brand: #0D2338;
  --brand-light: #1A3A5C;
  --accent: #3B82F6;
  --accent-dark: #2563EB;
  --bg: #FAFBFE;
  --bg-white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F0F0F5;
  --success: #22C55E;
  --success-bg: #E8F5E9;
  --success-text: #2E7D32;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(13,35,56,0.12);
  --shadow-lg: 0 8px 30px rgba(13,35,56,0.15);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Fraunces', serif; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 900; letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.subtitle { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted); line-height: 1.7; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); border: none;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand); color: #FFF;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--brand-light); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--bg-white); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--brand); }
.btn-accent {
  background: var(--accent); color: #FFF;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-lg { padding: 16px 36px; font-size: 16px; font-weight: 700; border-radius: 14px; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,251,254,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06); padding: 14px 0;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-logo span { font-weight: 700; font-size: 17px; color: var(--text); }
.nav-links {
  display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { font-size: 14px; padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* ─── SECTIONS ─── */
.section { padding: 100px 0; }
.section-white { background: var(--bg-white); }
.section-gradient { background: linear-gradient(135deg, #F0F4FF 0%, #FAF0FF 50%, #F0FFF4 100%); }
.section-center { text-align: center; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: 24px; padding: 6px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.badge-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; }
.badge-ai {
  background: var(--success-bg); color: var(--success-text);
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ─── PRICING ─── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start;
}
.pricing-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px 24px; text-align: left;
  position: relative; transition: transform 0.3s;
}
.pricing-card.featured {
  background: var(--brand); color: #FFF;
  border: none; transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.85); }
.pricing-card.featured .pricing-features .check { color: #34D399; }
.pricing-card.featured .subtitle { color: rgba(255,255,255,0.6); }
.pricing-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #FFF; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 12px; white-space: nowrap;
}
.pricing-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.pricing-price .amount { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 900; }
.pricing-price .period { font-size: 15px; opacity: 0.5; }
.pricing-annual { font-size: 12px; color: var(--text-light); margin-bottom: 20px; }
.pricing-card.featured .pricing-annual { color: rgba(255,255,255,0.45); }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-muted); padding: 6px 0;
}
.pricing-features .check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-features .cross { color: var(--text-light); flex-shrink: 0; }
.pricing-btn {
  width: 100%; padding: 13px 20px; border-radius: var(--radius);
  border: none; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: opacity 0.2s;
}
.pricing-btn:hover { opacity: 0.9; }

/* ─── STATS ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-value { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 900; color: var(--brand); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ─── STEPS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-icon {
  width: 64px; height: 64px; background: #F0F4FF; border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  margin-bottom: 20px;
}
.step-num { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }

/* ─── FEATURES GRID ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-light); font-size: 13px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.social-btn {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.social-btn:hover { border-color: var(--brand); background: #F8F9FF; }
.form-status {
  margin-top: 12px;
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  color: var(--text-light);
}
.form-status.error { color: #B91C1C; }
.form-status.success { color: var(--success-text); }
.btn.is-loading { cursor: wait; opacity: 0.7; }

/* ─── BILLING PAGE ─── */
.billing-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.billing-header {
  padding: 32px; border-bottom: 1px solid var(--border-light);
}
.billing-body { padding: 32px; }
.billing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.billing-row:last-child { border-bottom: none; }
.billing-total { font-weight: 700; font-size: 17px; }
.plan-badge {
  display: inline-flex; padding: 4px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700; background: var(--success-bg); color: var(--success-text);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; font-size: 13px; color: var(--text-light);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-light); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

/* â”€â”€â”€ CONSENT â”€â”€â”€ */
.consent-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}
.consent-banner.hidden { display: none; }
.consent-card {
  max-width: 960px;
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}
.consent-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.consent-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.consent-links {
  margin-top: 10px;
  font-size: 13px;
}
.consent-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.consent-actions .btn { width: 100%; }
.consent-reject { background: #F3F4F6; }

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.consent-modal.open { display: flex; }
.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
}
.consent-modal-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 640px;
  width: calc(100% - 48px);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.consent-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.consent-modal-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.consent-close {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}
.consent-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consent-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.consent-option-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.consent-option-desc {
  font-size: 13px;
  color: var(--text-muted);
}
.consent-option-status {
  font-size: 12px;
  color: var(--success-text);
  background: var(--success-bg);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.consent-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.consent-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.consent-switch input { display: none; }
.consent-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #E5E7EB;
  border-radius: 999px;
  transition: 0.2s;
}
.consent-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}
.consent-switch input:checked + .consent-slider {
  background: var(--accent);
}
.consent-switch input:checked + .consent-slider::after {
  transform: translateX(20px);
}

.qr-art-img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.qr-art-card {
  text-align: center;
  padding: 18px;
}
.qr-art-title {
  text-align: center;
}

@media (max-width: 768px) {
  .consent-card {
    grid-template-columns: 1fr;
  }
  .consent-actions {
    flex-direction: column;
  }
  .consent-modal-actions {
    flex-direction: column;
  }
}

@media (min-width: 900px) {
  .consent-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .consent-actions .btn { width: auto; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: scale(1); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--bg-white);
    padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr !important; text-align: center; }
  .hero-qr-row { justify-content: center !important; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid > div { text-align: center; }
  .step-icon { margin: 0 auto 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .billing-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px !important; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
