/* ============================================================
   VendorExit Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,700&display=swap');

/* --- Design Tokens ----------------------------------------- */
:root {
  /* Primary – teal */
  --ve-teal-900: #04342C;
  --ve-teal-800: #085041;
  --ve-teal-600: #0F6E56;
  --ve-teal-400: #1D9E75;
  --ve-teal-200: #5DCAA5;
  --ve-teal-100: #9FE1CB;
  --ve-teal-50:  #E1F5EE;

  /* Accent – coral (urgency / warnings only) */
  --ve-coral-600: #993C1D;
  --ve-coral-400: #D85A30;
  --ve-coral-50:  #FAECE7;

  /* Neutrals */
  --ve-gray-900: #2C2C2A;
  --ve-gray-600: #5F5E5A;
  --ve-gray-400: #888780;
  --ve-gray-200: #B4B2A9;
  --ve-gray-100: #D6D4CC;
  --ve-gray-50:  #F1EFE8;

  /* Surfaces */
  --ve-white:    #FFFFFF;
  --ve-bg:       #FFFFFF;
  --ve-bg-alt:   #F9F8F5;

  /* Typography */
  --ve-font-display: 'Fraunces', Georgia, serif;
  --ve-font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Radii */
  --ve-radius-sm:  6px;
  --ve-radius-md:  8px;
  --ve-radius-lg: 12px;

  /* Shadows */
  --ve-shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --ve-shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --ve-shadow-lg:  0 12px 32px rgba(0,0,0,0.10);

  /* Transitions */
  --ve-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--ve-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ve-gray-900);
  background: var(--ve-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout Container -------------------------------------- */
.ve-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page-level wrapper – keeps content readable on wide screens */
.ve-page {
  max-width: 1120px;
  margin: 0 auto;
}

/* ============================================================
   Navigation
   ============================================================ */
.ve-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ve-gray-50);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

/* Full-width border under nav even when content is constrained */
.ve-nav-border {
  border-bottom: 1px solid var(--ve-gray-50);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.ve-nav-border .ve-nav {
  border-bottom: none;
  position: static;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ve-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ve-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--ve-teal-600);
  border-radius: var(--ve-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ve-logo-icon svg {
  width: 18px;
  height: 18px;
}

.ve-logo-text {
  font-family: var(--ve-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ve-gray-900);
}

.ve-logo-text span {
  color: var(--ve-teal-600);
}

.ve-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}

.ve-nav-links a {
  color: var(--ve-gray-600);
  transition: color 0.15s var(--ve-ease);
}

.ve-nav-links a:hover {
  color: var(--ve-gray-900);
}

.ve-nav-cta {
  background: var(--ve-teal-600) !important;
  color: var(--ve-white) !important;
  padding: 7px 18px;
  border-radius: var(--ve-radius-sm);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s var(--ve-ease);
}

.ve-nav-cta:hover {
  background: var(--ve-teal-800) !important;
}

/* Mobile nav */
.ve-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  color: var(--ve-gray-600);
}

/* ============================================================
   Hero
   ============================================================ */
.ve-hero {
  padding: 64px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.ve-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 340px;
  height: 340px;
  border: 44px solid var(--ve-teal-50);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.ve-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border: 28px solid var(--ve-teal-50);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}

.ve-badge {
  display: inline-block;
  background: var(--ve-teal-50);
  color: var(--ve-teal-800);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
  position: relative;
}

.ve-hero h1 {
  font-family: var(--ve-font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
  position: relative;
}

.ve-hero h1 em {
  font-style: italic;
  color: var(--ve-teal-600);
}

.ve-hero-sub {
  font-size: 17px;
  color: var(--ve-gray-600);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.55;
  position: relative;
}

.ve-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.ve-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ve-teal-600);
  color: var(--ve-white);
  padding: 13px 28px;
  border-radius: var(--ve-radius-md);
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: background 0.15s var(--ve-ease), transform 0.1s var(--ve-ease);
}

.ve-btn-primary:hover {
  background: var(--ve-teal-800);
}

.ve-btn-primary:active {
  transform: scale(0.98);
}

.ve-btn-primary svg {
  width: 16px;
  height: 16px;
  display: inline;
}

.ve-hero-secondary {
  color: var(--ve-gray-600);
  font-size: 13px;
  transition: color 0.15s var(--ve-ease);
}

.ve-hero-secondary:hover {
  color: var(--ve-gray-900);
}

/* ============================================================
   Stats Bar
   ============================================================ */
.ve-stats-border {
  border-top: 1px solid var(--ve-gray-50);
  border-bottom: 1px solid var(--ve-gray-50);
}

.ve-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
  margin: 0 auto;
}

.ve-stat {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--ve-gray-50);
}

.ve-stat:last-child {
  border-right: none;
}

.ve-stat-num {
  font-family: var(--ve-font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ve-teal-600);
  line-height: 1;
}

.ve-stat-label {
  font-size: 12px;
  color: var(--ve-gray-600);
  margin-top: 5px;
}

/* ============================================================
   Section – Generic
   ============================================================ */
.ve-section {
  padding: 48px 32px;
}

.ve-section-title {
  font-family: var(--ve-font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.ve-section-sub {
  font-size: 15px;
  color: var(--ve-gray-600);
  margin-bottom: 28px;
}

/* ============================================================
   Steps (How It Works)
   ============================================================ */
.ve-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ve-step {
  padding: 22px 18px;
  border: 1px solid var(--ve-gray-50);
  border-radius: var(--ve-radius-lg);
  transition: box-shadow 0.2s var(--ve-ease), border-color 0.2s var(--ve-ease);
}

.ve-step:hover {
  border-color: var(--ve-teal-100);
  box-shadow: var(--ve-shadow-sm);
}

.ve-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ve-teal-50);
  color: var(--ve-teal-800);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ve-step h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ve-gray-900);
}

.ve-step p {
  font-size: 13px;
  color: var(--ve-gray-600);
  line-height: 1.5;
}

/* ============================================================
   Form Section
   ============================================================ */
.ve-form-section {
  padding: 48px 32px;
  background: var(--ve-bg-alt);
}

.ve-form-card {
  background: var(--ve-white);
  border: 1px solid var(--ve-gray-50);
  border-radius: var(--ve-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--ve-shadow-sm);
}

.ve-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.ve-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ve-gray-600);
  margin-bottom: 6px;
}

.ve-field input,
.ve-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ve-gray-100);
  border-radius: var(--ve-radius-sm);
  font-size: 14px;
  font-family: var(--ve-font-body);
  background: var(--ve-white);
  color: var(--ve-gray-900);
  transition: border-color 0.15s var(--ve-ease), box-shadow 0.15s var(--ve-ease);
  -webkit-appearance: none;
  appearance: none;
}

.ve-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888780' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.ve-field input:focus,
.ve-field select:focus {
  outline: none;
  border-color: var(--ve-teal-400);
  box-shadow: 0 0 0 3px rgba(15,110,86,0.08);
}

.ve-field input::placeholder {
  color: var(--ve-gray-400);
}

.ve-field-full {
  grid-column: 1 / -1;
}

.ve-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.ve-submit-btn {
  background: var(--ve-teal-600);
  color: var(--ve-white);
  padding: 11px 26px;
  border: none;
  border-radius: var(--ve-radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--ve-font-body);
  transition: background 0.15s var(--ve-ease), transform 0.1s var(--ve-ease);
  white-space: nowrap;
}

.ve-submit-btn:hover {
  background: var(--ve-teal-800);
}

.ve-submit-btn:active {
  transform: scale(0.98);
}

.ve-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ve-form-note {
  font-size: 12px;
  color: var(--ve-gray-400);
  max-width: 300px;
  line-height: 1.5;
}

/* ============================================================
   Messages / Alerts
   ============================================================ */
.ve-message {
  padding: 14px 16px;
  border-radius: var(--ve-radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  line-height: 1.5;
}

.ve-message a {
  font-weight: 600;
  text-decoration: underline;
}

.ve-message.success {
  background: var(--ve-teal-50);
  border: 1px solid var(--ve-teal-200);
  color: var(--ve-teal-800);
  display: block;
}

.ve-message.success a { color: var(--ve-teal-800); }

.ve-message.error {
  background: var(--ve-coral-50);
  border: 1px solid var(--ve-coral-400);
  color: var(--ve-coral-600);
  display: block;
}

.ve-message.error a { color: var(--ve-coral-600); }

.ve-message.show {
  display: block;
}

/* ============================================================
   Privacy Callout
   ============================================================ */
.ve-privacy {
  display: flex;
  gap: 20px;
  padding: 32px;
  align-items: flex-start;
}

.ve-privacy-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--ve-teal-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-privacy h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ve-gray-900);
}

.ve-privacy p {
  font-size: 14px;
  color: var(--ve-gray-600);
  line-height: 1.55;
}

/* ============================================================
   Reminder Timeline
   ============================================================ */
.ve-reminders {
  padding: 0 32px 48px;
}

.ve-timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 24px 0 0;
}

.ve-timeline::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--ve-teal-50);
}

.ve-tl-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.ve-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ve-teal-600);
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
}

.ve-tl-dot.minor {
  width: 10px;
  height: 10px;
  background: var(--ve-teal-200);
}

.ve-tl-dot.coral {
  background: var(--ve-coral-400);
}

.ve-tl-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ve-gray-900);
}

.ve-tl-desc {
  font-size: 12px;
  color: var(--ve-gray-600);
  margin-top: 2px;
}

/* ============================================================
   Footer
   ============================================================ */
.ve-footer-border {
  border-top: 1px solid var(--ve-gray-50);
}

.ve-footer {
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.ve-footer-left {
  color: var(--ve-gray-600);
}

.ve-footer-left a {
  color: var(--ve-teal-600);
  font-weight: 500;
}

.ve-footer-left a:hover {
  text-decoration: underline;
}

.ve-footer-links {
  display: flex;
  gap: 18px;
}

.ve-footer-links a {
  color: var(--ve-gray-400);
  transition: color 0.15s var(--ve-ease);
}

.ve-footer-links a:hover {
  color: var(--ve-gray-600);
}

/* ============================================================
   Verification Section
   ============================================================ */
.ve-verify-section {
  max-width: 480px;
  margin: 0 auto;
}

.ve-verify-section h2 {
  font-family: var(--ve-font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ve-verify-section p {
  font-size: 14px;
  color: var(--ve-gray-600);
  margin-bottom: 8px;
}

.ve-verify-hint {
  background: var(--ve-teal-50);
  border-left: 3px solid var(--ve-teal-600);
  padding: 12px 14px;
  border-radius: 0 var(--ve-radius-sm) var(--ve-radius-sm) 0;
  margin: 16px 0;
  font-size: 13px;
  color: var(--ve-teal-900);
}

.ve-verify-hint strong { display: block; margin-bottom: 2px; }

.ve-code-input {
  font-size: 28px !important;
  letter-spacing: 10px;
  text-align: center;
  font-family: 'Courier New', monospace !important;
  padding: 14px 12px !important;
}

/* ============================================================
   Login Modal
   ============================================================ */
.ve-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.ve-modal-overlay.active {
  display: flex;
}

.ve-modal {
  background: var(--ve-white);
  border-radius: var(--ve-radius-lg);
  max-width: 460px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--ve-shadow-lg);
}

.ve-modal-header {
  background: var(--ve-teal-600);
  color: var(--ve-white);
  padding: 24px 28px;
  border-radius: var(--ve-radius-lg) var(--ve-radius-lg) 0 0;
}

.ve-modal-header h2 {
  font-family: var(--ve-font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.ve-modal-header p {
  margin: 6px 0 0;
  opacity: 0.85;
  font-size: 14px;
}

.ve-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ve-white);
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ve-radius-sm);
  transition: background 0.15s var(--ve-ease);
}

.ve-modal-close:hover {
  background: rgba(255,255,255,0.15);
}

.ve-modal-body {
  padding: 28px;
}

.ve-modal-body .ve-field {
  margin-bottom: 16px;
}

/* ============================================================
   Reminder Preview (inline schedule display)
   ============================================================ */
.ve-reminder-preview {
  display: none;
  background: var(--ve-teal-50);
  border-left: 3px solid var(--ve-teal-400);
  padding: 16px;
  margin: 20px 0;
  border-radius: 0 var(--ve-radius-md) var(--ve-radius-md) 0;
}

.ve-reminder-preview.show {
  display: block;
}

.ve-reminder-preview h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ve-teal-800);
  margin-bottom: 10px;
}

/* ============================================================
   Responsive – Tablet (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .ve-nav {
    padding: 14px 20px;
  }

  .ve-nav-links a:not(.ve-nav-cta) {
    display: none;
  }

  .ve-hero {
    padding: 44px 20px 40px;
  }

  .ve-hero h1 {
    font-size: 30px;
  }

  .ve-hero-sub {
    font-size: 15px;
  }

  .ve-hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .ve-stats {
    grid-template-columns: 1fr;
    border-bottom: none;
  }

  .ve-stat {
    border-right: none;
    border-bottom: 1px solid var(--ve-gray-50);
    padding: 16px 20px;
  }

  .ve-section {
    padding: 36px 20px;
  }

  .ve-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ve-form-section {
    padding: 36px 20px;
  }

  .ve-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ve-form-submit {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .ve-submit-btn {
    width: 100%;
    text-align: center;
  }

  .ve-form-note {
    max-width: none;
    text-align: center;
  }

  .ve-privacy {
    flex-direction: column;
    gap: 14px;
    padding: 28px 20px;
  }

  .ve-reminders {
    padding: 0 20px 36px;
  }

  .ve-timeline {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0 0;
  }

  .ve-timeline::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .ve-tl-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 8px 0;
  }

  .ve-tl-dot {
    margin: 0;
    flex-shrink: 0;
  }

  .ve-tl-content {
    display: flex;
    flex-direction: column;
  }

  .ve-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px;
  }

  .ve-footer-links {
    justify-content: center;
  }
}

/* ============================================================
   Responsive – Small phone (< 480px)
   ============================================================ */
@media (max-width: 479px) {
  .ve-hero h1 {
    font-size: 26px;
  }

  .ve-steps {
    grid-template-columns: 1fr;
  }

  .ve-stat-num {
    font-size: 24px;
  }

  .ve-section-title {
    font-size: 20px;
  }
}

/* ============================================================
   Responsive – Large desktop (> 1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .ve-hero {
    padding: 80px 48px 64px;
  }

  .ve-hero h1 {
    font-size: 48px;
  }

  .ve-hero-sub {
    font-size: 18px;
    max-width: 560px;
  }

  .ve-section {
    padding: 56px 48px;
  }

  .ve-form-section {
    padding: 56px 48px;
  }
}
