/* Jyl — Premium Farm Job Assistant */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --primary-glow: rgba(14,165,233,.15);
  --bg: #FAFBFC;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════
   NAV
   ═══════════════════════════════════ */
.nav {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.02em;
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-hamburger:hover { color: var(--text); background: var(--border-light); }
.nav-hamburger.active { color: var(--primary); }
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4px;
}
.nav-mobile.open {
  display: flex;
  animation: slideDown .25s ease;
}
.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-mobile-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.user-info {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -.01em;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14,165,233,.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(14,165,233,.35);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-google svg {
  flex-shrink: 0;
}
.btn-white {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-color: var(--text-muted);
}

/* ═══════════════════════════════════
   HERO — Landing Page
   ═══════════════════════════════════ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: fadeIn .6s ease;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -.03em;
  color: var(--text);
  animation: slideUp .6s ease .1s both;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
  animation: slideUp .6s ease .2s both;
}
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeIn .6s ease .5s both;
}

/* Hero visual card */
.hero-visual {
  animation: slideUp .8s ease .3s both;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.hero-card-body { padding: 16px 20px; }
.hero-email-line {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 500;
  transition: all .3s;
}
.hero-email-line.sent {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.hero-email-line.active {
  background: #FFF8E1;
  color: #F57F17;
  animation: pulse 2s ease infinite;
}
.hero-email-line.pending {
  background: var(--border-light);
  color: var(--text-muted);
}
.hero-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-card-footer .progress-bar { flex: 1; }

/* ═══════════════════════════════════
   SECTIONS
   ═══════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-dark {
  background: var(--surface);
  max-width: 100%;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-dark .section-title,
.section-dark .states-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -.02em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.step:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* States grid */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 24px;
}
.state-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition);
}
.state-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.state-card strong { color: var(--primary); font-size: 20px; font-weight: 800; }
.state-card span { color: var(--text-secondary); font-size: 13px; }

/* CTA */
.cta-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 17px;
}

/* Section subtitle */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: -36px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════
   SOCIAL PROOF
   ═══════════════════════════════════ */
.proof-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.proof-item { text-align: center; }
.proof-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.proof-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ═══════════════════════════════════
   PRICING
   ═══════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.pricing-popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pricing-header {
  margin-bottom: 24px;
}
.pricing-header h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-price {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.pricing-currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}
.pricing-features li svg {
  flex-shrink: 0;
}
.pricing-btn {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════
   FAQ
   ═══════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════
   ABOUT
   ═══════════════════════════════════ */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.about-stat:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.about-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.about-stat span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════
   CASE STUDY
   ═══════════════════════════════════ */
.case-study {
  max-width: 900px;
  margin: 0 auto;
}
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.case-study-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.case-study-highlight {
  border-color: #22c55e;
  background: #f0fdf4;
}
.case-study-highlight:hover {
  border-color: #16a34a;
}
.case-study-icon {
  margin-bottom: 16px;
}
.case-study-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.case-study-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.case-study-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.case-study-bottom {
  text-align: center;
}
.case-study-math {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--primary-light);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.math-step {
  white-space: nowrap;
}
.math-result {
  font-weight: 800;
  color: var(--primary);
}
.case-study-note {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover { color: var(--primary); }

/* ═══════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════ */
.dashboard {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ═══════════════════════════════════
   WIZARD — Multi-Step Onboarding
   ═══════════════════════════════════ */
.wizard-container {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.wizard {
  width: 100%;
  max-width: 520px;
  position: relative;
}

/* Progress dots */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.wizard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.wizard-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}
.wizard-dot.done {
  background: var(--primary);
}

/* Steps */
.wizard-step {
  display: none;
  animation: wizardIn .45s cubic-bezier(.4,0,.2,1);
}
.wizard-step.active {
  display: block;
}
.wizard-step h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.02em;
  text-align: center;
}
.wizard-step .wizard-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 36px;
}

/* Wizard inputs */
.wizard-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 18px;
  font-family: inherit;
  background: var(--surface);
  transition: all var(--transition);
  text-align: center;
  font-weight: 500;
  color: var(--text);
}
.wizard-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.wizard-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.wizard-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  transition: all var(--transition);
  resize: vertical;
  min-height: 120px;
  color: var(--text);
  line-height: 1.6;
}
.wizard-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.wizard-textarea::placeholder {
  color: var(--text-muted);
}

/* State picker */
.state-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.state-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.state-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.state-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.state-option strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.state-option span {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* Plan picker (wizard) */
.plan-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  position: relative;
}
.plan-option:hover {
  border-color: var(--primary);
}
.plan-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.plan-option-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.plan-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.plan-option-header strong {
  font-size: 17px;
  font-weight: 700;
}
.plan-option-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}
.plan-option-emails {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-option-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Wizard upload */
.wizard-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--surface);
}
.wizard-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.wizard-upload.has-file {
  border-color: var(--primary);
  border-style: solid;
  background: var(--primary-light);
}
.wizard-upload.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.02);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.wizard-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.wizard-upload-icon {
  margin-bottom: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.wizard-upload.has-file .wizard-upload-icon { color: var(--primary); }
.wizard-upload.drag-over .wizard-upload-icon { color: var(--primary); }
.wizard-upload-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.wizard-upload.has-file .wizard-upload-text { color: var(--primary-dark); }
.wizard-upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Wizard navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}
.wizard-nav .btn { min-width: 120px; }

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}
.wizard-back:hover {
  color: var(--text);
  background: var(--border-light);
}
.wizard-back svg { transition: transform var(--transition); }
.wizard-back:hover svg { transform: translateX(-3px); }

/* ═══════════════════════════════════
   SUMMARY CARD — Premium Step 10
   ═══════════════════════════════════ */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.summary-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.summary-card-header .summary-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.summary-card-header .summary-name {
  font-size: 18px;
  font-weight: 700;
}
.summary-card-header .summary-email {
  font-size: 13px;
  opacity: .8;
}
.summary-card-body {
  padding: 0;
}
.summary-section {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
}
.summary-section:last-child { border-bottom: none; }
.summary-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.summary-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.summary-row-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 70px;
}
.summary-row-value {
  font-weight: 600;
  color: var(--text);
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary-plan-highlight {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.summary-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.summary-plan-emails {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.summary-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.summary-footer {
  padding: 20px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}
.summary-total {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.summary-total-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.summary-total-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.summary-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ═══════════════════════════════════
   CAMPAIGNS VIEW
   ═══════════════════════════════════ */
.campaigns-section {
  margin-top: 48px;
}
.campaigns-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -.01em;
}
.campaigns-list { display: flex; flex-direction: column; gap: 12px; }
.campaign-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
}
.campaign-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.campaign-state {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.campaign-name {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.campaign-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}
.campaign-meta { text-align: right; }
.campaign-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-draft { background: #f1f5f9; color: #64748b; }
.status-running { background: #dbeafe; color: #2563eb; }
.status-paused { background: #fef3c7; color: #d97706; }
.status-completed { background: var(--primary-light); color: var(--primary-dark); }
.status-failed { background: #fee2e2; color: #dc2626; }
.campaign-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 15px;
}
.empty-state-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.empty-state-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
.skeleton-card {
  height: 80px;
  margin-bottom: 12px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

/* ═══════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #38BDF8);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════
   MODAL
   ═══════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn .3s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h2 { margin: 0; font-size: 20px; font-weight: 700; }
.modal-body { padding: 28px; }
.modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px;
}

.campaign-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.campaign-progress { font-size: 14px; }
.campaign-progress .label {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 13px;
}
.campaign-progress .count {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}

/* Email logs */
.email-logs { display: flex; flex-direction: column; gap: 8px; }
.log-item {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  transition: all var(--transition);
}
.log-item:hover { background: var(--bg); }
.log-item .log-farm { font-weight: 600; }
.log-item .log-subject { color: var(--text-secondary); margin-top: 2px; }
.log-item .log-time { color: var(--text-muted); font-size: 12px; float: right; }
.log-item.log-failed { border-color: #fca5a5; background: #fef2f2; }

/* ═══════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn .35s cubic-bezier(.4,0,.2,1);
  max-width: 360px;
}
.toast.toast-success { border-left: 3px solid #22c55e; }
.toast.toast-error { border-left: 3px solid #ef4444; }
.toast.toast-info { border-left: 3px solid var(--primary); }
.toast.toast-out { animation: toastOut .3s ease forwards; }
.toast-icon { flex-shrink: 0; }

/* ═══════════════════════════════════
   FORMS (legacy support)
   ═══════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
select, input[type="number"], input[type="text"], textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  transition: all var(--transition);
  color: var(--text);
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea { resize: vertical; }

/* ═══════════════════════════════════
   PRIVACY PAGE
   ═══════════════════════════════════ */
.privacy-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.privacy-container h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.privacy-container .privacy-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.privacy-container h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -.01em;
}
.privacy-container p,
.privacy-container li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.privacy-container ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.privacy-container a {
  color: var(--primary);
  text-decoration: none;
}
.privacy-container a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wizardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 40px;
  }
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .state-picker { grid-template-columns: repeat(2, 1fr); }
  .wizard-step h2 { font-size: 24px; }
  .wizard-input { font-size: 16px; padding: 14px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .campaign-item { grid-template-columns: 1fr; }
  .campaign-meta { text-align: left; }
  .summary-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .summary-row-value { text-align: left; }
  .summary-plan-highlight { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .case-study-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 32px; }
  .case-study-math { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; }
  .plan-picker { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .toast-container { right: 12px; left: 12px; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  .state-picker { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-inner { padding: 0 16px; }
  .dashboard { padding: 24px 16px; }
  .wizard-container { padding: 24px 16px; }
  .summary-card-header { padding: 20px; }
  .summary-section { padding: 16px 20px; }
  .summary-footer { padding: 16px 20px; }
}
