/* ============================================================
   TRUCK FIRST — Public Website Styles
   Design System: Green #2ECC71, Blue #3498DB, Red #E74C3C
   Font: Inter (Google Fonts)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary:       #2ECC71;
  --primary-dark:  #27AE60;
  --primary-light: #A9DFBF;
  --primary-glow:  rgba(46,204,113,.35);
  --secondary:     #3498DB;
  --secondary-dark:#2980B9;
  --accent:        #E74C3C;
  --accent-dark:   #C0392B;
  --warning:       #F39C12;
  --bg:            #FFFFFF;
  --bg-alt:        #F8F9FA;
  --bg-card:       #FFFFFF;
  --text:          #1A1A2E;
  --text-muted:    #6C757D;
  --border:        #E0E0E0;
  --shadow:        0 4px 24px rgba(0,0,0,.08);
  --shadow-hover:  0 8px 40px rgba(0,0,0,.14);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --nav-h:         70px;
  --transition:    all .25s cubic-bezier(.4,0,.2,1);
}

/* ===== THEMES ===== */

[data-theme="dark"] {
  --primary-glow:  rgba(46,204,113,.35);
  --bg:       #0F0F1A;
  --bg-alt:   #1A1A2E;
  --bg-card:  #1E1E32;
  --text:     #F0F0F0;
  --text-muted: #9CA3AF;
  --border:   #2D2D4A;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --shadow-hover: 0 8px 40px rgba(0,0,0,.6);
}

/* Ocean — cool sky-blue */
[data-theme="ocean"] {
  --primary:       #0EA5E9;
  --primary-dark:  #0284C7;
  --primary-light: #BAE6FD;
  --primary-glow:  rgba(14,165,233,.35);
  --secondary:     #6366F1;
  --secondary-dark:#4F46E5;
  --bg:       #F0F9FF;
  --bg-alt:   #E0F2FE;
  --bg-card:  #FFFFFF;
  --text:     #0C2340;
  --text-muted:#475569;
  --border:   #BAE6FD;
  --shadow:        0 4px 24px rgba(14,165,233,.12);
  --shadow-hover:  0 8px 40px rgba(14,165,233,.22);
}

/* Sunset — warm orange & pink */
[data-theme="sunset"] {
  --primary:       #F97316;
  --primary-dark:  #EA580C;
  --primary-light: #FED7AA;
  --primary-glow:  rgba(249,115,22,.35);
  --secondary:     #EC4899;
  --secondary-dark:#DB2777;
  --bg:       #FFFBF7;
  --bg-alt:   #FEF3E9;
  --bg-card:  #FFFFFF;
  --text:     #1C0A00;
  --text-muted:#92400E;
  --border:   #FED7AA;
  --shadow:        0 4px 24px rgba(249,115,22,.12);
  --shadow-hover:  0 8px 40px rgba(249,115,22,.22);
}

/* Midnight — deep purple dark */
[data-theme="midnight"] {
  --primary:       #A78BFA;
  --primary-dark:  #8B5CF6;
  --primary-light: #DDD6FE;
  --primary-glow:  rgba(167,139,250,.4);
  --secondary:     #F472B6;
  --secondary-dark:#EC4899;
  --bg:       #07071A;
  --bg-alt:   #0F0F2A;
  --bg-card:  #141432;
  --text:     #EDE9FE;
  --text-muted:#A78BFA;
  --border:   #2D2B60;
  --shadow:        0 4px 24px rgba(0,0,0,.5);
  --shadow-hover:  0 8px 40px rgba(167,139,250,.2);
}

/* Forest — earthy emerald */
[data-theme="forest"] {
  --primary:       #22C55E;
  --primary-dark:  #16A34A;
  --primary-light: #BBF7D0;
  --primary-glow:  rgba(34,197,94,.35);
  --secondary:     #84CC16;
  --secondary-dark:#65A30D;
  --bg:       #F0FDF4;
  --bg-alt:   #DCFCE7;
  --bg-card:  #FFFFFF;
  --text:     #052E16;
  --text-muted:#15803D;
  --border:   #BBF7D0;
  --shadow:        0 4px 24px rgba(34,197,94,.12);
  --shadow-hover:  0 8px 40px rgba(34,197,94,.22);
}

/* Navy — deep indigo navy, white bg */
[data-theme="navy"] {
  --primary:       #27187e;
  --primary-dark:  #1d1260;
  --primary-light: #c5c9f0;
  --primary-glow:  rgba(39,24,126,.25);
  --secondary:     #7b2d8b;
  --secondary-dark:#611f72;
  --bg:       #f4f5ff;
  --bg-alt:   #eaecff;
  --bg-card:  #FFFFFF;
  --text:     #0a0820;
  --text-muted:#4a4680;
  --border:   #c5c9f0;
  --shadow:        0 4px 24px rgba(39,24,126,.1);
  --shadow-hover:  0 8px 40px rgba(39,24,126,.2);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

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

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ---------- Layout ---------- */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

section { padding: 80px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52,152,219,.35);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary), 0 2px 8px rgba(0,0,0,.15);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: .75rem 1rem;
}
.btn-ghost:hover { color: var(--primary); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
/* nav-inner is a direct child of .navbar — height:100% resolves correctly */
.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  overflow: hidden;
}
.nav-links a {
  padding: .5rem .65rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(46,204,113,.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Auth-page simple toggle (login/register) */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); transform: scale(1.05); }

/* ===== Theme Picker (public pages) ===== */
.theme-picker { position: relative; }

.theme-picker-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-picker-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.18);
  opacity: 0;
  transition: opacity .2s;
}
.theme-picker-trigger:hover::after { opacity: 1; }
.theme-picker-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.theme-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2000;
  min-width: 148px;
}
.theme-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.theme-option:hover { background: var(--bg-alt); color: var(--text); }
.theme-option.active { color: var(--primary); font-weight: 600; }
.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,.12);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.3);
}
.theme-option.active .theme-dot {
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 3.5px var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--bg);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.mobile-nav .btn { margin-top: .5rem; text-align: center; justify-content: center; }

/* Page offset for fixed navbar */
main { padding-top: var(--nav-h); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg) 55%, rgba(46,204,113,.06) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,113,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(46,204,113,.1);
  color: var(--primary-dark);
  border: 1px solid rgba(46,204,113,.3);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title .highlight { color: var(--primary); }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.hero-trust-avatars span:first-child { margin-left: 0; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-hover);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.hero-card-float.top-right {
  top: -1rem;
  right: -1.5rem;
  animation-delay: 0s;
}
.hero-card-float.bottom-left {
  bottom: -1rem;
  left: -1.5rem;
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--primary);
  padding: 1.5rem 0;
  overflow: hidden;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: .75rem 3rem;
  border-right: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .8rem;
  opacity: .85;
  margin-top: .25rem;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(46,204,113,.1);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { font-size: 1.05rem; }

/* ---------- How It Works ---------- */
.how-it-works { background: var(--bg-alt); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0 1rem;
  align-items: start;
}
.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(2rem + 14px); /* aligns with circle vertical centre */
  color: var(--primary);
  opacity: .7;
}
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px rgba(46,204,113,.18);
}
.step-card h3 { margin-bottom: .5rem; }

/* ---------- User Types ---------- */
.user-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.user-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.user-type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.user-type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--card-accent, var(--primary));
}
.user-type-card.driver  { --card-accent: var(--primary); }
.user-type-card.owner   { --card-accent: var(--secondary); }
.user-type-card.shipper { --card-accent: var(--warning); }

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  background: rgba(46,204,113,.1);
}
.owner .card-icon   { background: rgba(52,152,219,.1); }
.shipper .card-icon { background: rgba(243,156,18,.1); }

.user-type-card h3 { margin-bottom: .5rem; }
.user-type-card p  { font-size: .9rem; margin-bottom: 1.25rem; }

.card-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.card-feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.card-feature::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card-accent, var(--primary));
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-price {
  font-size: .85rem;
  color: var(--text-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: .3rem;
}
.card-price strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* ---------- Features ---------- */
.features { background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-card h4 { margin-bottom: .4rem; }
.feature-card p  { font-size: .875rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,204,113,.1);
  transform: translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.pricing-role {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.pricing-name { margin-bottom: 1rem; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.price-currency { font-size: 1.2rem; font-weight: 700; }
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.price-period { font-size: .85rem; color: var(--text-muted); }
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
}
.pricing-feature .check {
  color: var(--primary);
  font-weight: 700;
  margin-top: .1rem;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: #F39C12;
  font-size: 1.1rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9rem; }
.author-role { font-size: .8rem; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: .9rem;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: .6rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-size: .9rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col ul a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel {
  /* Dark enough gradients so white text passes WCAG AA (≥4.5:1) */
  background: linear-gradient(160deg, #1A6B3C 0%, #0D3358 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.auth-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.auth-panel-content { position: relative; z-index: 1; }
.auth-panel h2 { font-size: 2rem; color: #fff; margin-bottom: .75rem; }
.auth-panel p  { color: rgba(255,255,255,.92); }
.auth-panel-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
.auth-panel-feature {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
}
.auth-panel-feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.auth-form-panel {
  background: var(--bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth-form-inner {
  width: min(420px, 100%);
  margin: 0 auto;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.auth-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.auth-logo span { color: var(--primary); }

.auth-title { margin-bottom: .4rem; font-size: 1.75rem; }
.auth-subtitle { font-size: .9rem; margin-bottom: 2rem; }

/* ---------- Form Elements ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--accent); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(231,76,60,.12); }

.phone-input-wrap {
  display: flex;
  gap: .5rem;
}
.country-code {
  flex: 0 0 80px;
  font-size: .95rem;
}
.phone-field { flex: 1; }

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .form-input { padding-left: 2.75rem; }
.input-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.form-error { font-size: .8rem; color: var(--accent); margin-top: .35rem; display: none; }
.form-error.show { display: block; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.form-checkbox input { margin-top: 2px; accent-color: var(--primary); }
.form-checkbox a { color: var(--primary); font-weight: 600; }

/* OTP input group */
.otp-group {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: 'IBM Plex Mono', monospace;
}
.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.otp-input.filled {
  border-color: var(--primary);
  background: rgba(46,204,113,.05);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.role-option {
  position: relative;
}
.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1rem .5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.role-label .role-icon { font-size: 1.6rem; }
.role-label .role-name { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.role-option input:checked + .role-label {
  border-color: var(--primary);
  background: rgba(46,204,113,.07);
}
.role-option input:checked + .role-label .role-name { color: var(--primary-dark); }
.role-label:hover { border-color: var(--primary-light); }

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: 2rem;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}
.step-dot.done { background: var(--primary); }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Auth footer link */
.auth-footer-link {
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.auth-footer-link a { color: var(--primary); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  display: none;
}
.alert.show { display: flex; }
.alert-error  { background: rgba(231,76,60,.08); color: #C0392B; border: 1px solid rgba(231,76,60,.25); }
.alert-success{ background: rgba(46,204,113,.08); color: #27AE60; border: 1px solid rgba(46,204,113,.25); }
.alert-info   { background: rgba(52,152,219,.08); color: #2980B9; border: 1px solid rgba(52,152,219,.25); }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow-hover);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: slideIn .3s ease;
  max-width: 320px;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green  { background: rgba(46,204,113,.12); color: var(--primary-dark); }
.badge-blue   { background: rgba(52,152,219,.12); color: var(--secondary-dark); }
.badge-orange { background: rgba(243,156,18,.12); color: #C87F00; }
.badge-red    { background: rgba(231,76,60,.12);  color: var(--accent-dark); }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(46,204,113,.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Hide Login ghost button to give Get Started more room */
  .nav-actions .btn-ghost { display: none; }
  .nav-links a { padding: .5rem .55rem; font-size: .82rem; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card-float { display: none; }

  .stats-bar-inner { gap: 0; }
  .stat-item { padding: .75rem 1.5rem; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { padding-top: 0; padding-bottom: .5rem; transform: rotate(90deg); }

  .user-types-grid { grid-template-columns: 1fr; }
  .features-grid   { grid-template-columns: 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .pricing-card.featured { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Auth */
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-panel { padding: 2rem 1.5rem; min-height: 100vh; }

  .role-selector { grid-template-columns: 1fr; }
  .otp-group { gap: .4rem; }
  .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
  .stat-item { padding: .75rem 1rem; }
  .stat-value { font-size: 1.5rem; }
}
