/* ═══════════════════════════════════════════
   OnCall — Global Stylesheet
   joinoncall.com
   ═══════════════════════════════════════════ */

/* TOKENS */
:root {
  --navy: #052a5e;
  --navy-mid: #08396f;
  --navy-light: #0a4580;
  --navy-dark: #031a3a;
  --sky: #03b1f8;
  --sky-light: #e0f4ff;
  --orange: #f97316;
  --orange-hover: #e56a0e;
  --gray: #919193;
  --gray-light: #f5f7fa;
  --gray-border: #e0e4ea;
  --gray-dark: #4a4d52;
  --white: #ffffff;
  --text: #1a1d23;
  --text-muted: #5a5e66;
  --gold: #e5b020;
  --radius: 12px;
  --max-w: 1140px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 42, 94, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--sky);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: #029ae0; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--orange-hover); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* ─── SECTION HELPERS ─── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ─── HERO ─── */
.hero {
  padding: 140px 32px 80px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(3,177,248,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(3,177,248,0.1);
  border: 1px solid rgba(3,177,248,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--sky);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--sky); }
.hero > div > p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── PHONE MOCKUP ─── */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-avatar img { width: 36px; height: 36px; object-fit: cover; }
.phone-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.phone-sub { font-size: 11px; color: var(--gray); }
.sms-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  max-width: 92%;
  animation: fadeUp 0.5s ease-out both;
}
.sms-bubble:nth-child(2) { animation-delay: 0.3s; }
.sms-bubble:nth-child(3) { animation-delay: 0.6s; }
.sms-bubble:nth-child(4) { animation-delay: 0.9s; }
.sms-incoming { background: #f0f1f3; color: var(--text); border-bottom-left-radius: 4px; }
.sms-alert { background: var(--navy); color: var(--white); border-bottom-left-radius: 4px; }
.sms-alert strong { color: var(--sky); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── STATS BAR ─── */
.stats { background: var(--white); padding: 48px 32px; border-bottom: 1px solid #eee; }
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  font-family: 'DM Mono', monospace;
}
.stat-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ─── PROBLEM ─── */
.problem { padding: 80px 32px; background: var(--gray-light); }
.problem-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-border);
}
.problem-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.problem-icon.red { background: #fef2f2; color: #dc2626; }
.problem-icon.amber { background: #fffbeb; color: #d97706; }
.problem-icon.blue { background: var(--sky-light); color: var(--sky); }
.problem-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── FEATURES ─── */
.features { padding: 80px 32px; background: var(--white); }
.features-inner { max-width: var(--max-w); margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-border);
  transition: border-color 0.2s;
}
.feature:hover { border-color: var(--sky); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── HOW IT WORKS ─── */
.how { padding: 80px 32px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.how-inner { max-width: var(--max-w); margin: 0 auto; }
.how .section-title { color: var(--white); }
.how .section-sub { color: rgba(255,255,255,0.6); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--sky);
  font-family: 'DM Mono', monospace;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ─── CTA SECTION ─── */
.cta { padding: 80px 32px; background: var(--white); text-align: center; }
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta .section-title { margin-bottom: 16px; }
.cta p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }

/* ─── FOOTER ─── */
.footer { background: var(--navy-dark); padding: 48px 32px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo img { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 280px;
}
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ─── PAGE HEADER (Privacy, Terms, Pricing) ─── */
.page-header {
  padding: 120px 32px 48px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
}
.page-header h1 { font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.page-header p { font-size: 16px; color: rgba(255,255,255,0.5); }

/* ─── PAGE BODY (Privacy, Terms) ─── */
.page-body { max-width: 720px; margin: 0 auto; padding: 48px 32px 80px; }
.page-body h2 { font-size: 20px; font-weight: 600; color: var(--navy); margin: 32px 0 12px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.page-body a { color: var(--sky); }
.page-body a:hover { text-decoration: underline; }
.page-body ul { margin: 0 0 16px 20px; }
.page-body li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 4px; }

/* ─── PRICING ─── */
.pricing-section { padding: 48px 32px 80px; background: var(--gray-light); }
.pricing-inner { max-width: var(--max-w); margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--sky); position: relative; }
.popular-badge {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--sky);
  color: var(--white);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 6px;
  letter-spacing: 1px;
}
.pricing-header { padding: 32px 24px 24px; text-align: center; border-bottom: 1px solid #eee; }
.pricing-card.featured .pricing-header {
  padding-top: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: rgba(255,255,255,0.08);
}
.pricing-card.dark { background: var(--navy); border-color: #1a4a7a; }
.pricing-card.dark .pricing-header { border-color: rgba(255,255,255,0.08); }
.pricing-tier { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; color: var(--navy); }
.pricing-card.featured .pricing-tier { color: var(--sky); }
.pricing-card.dark .pricing-tier { color: var(--gold); }
.pricing-price { font-size: 40px; font-weight: 700; color: var(--navy); }
.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-card.dark .pricing-price { color: var(--white); }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--gray); }
.pricing-card.featured .pricing-price span { color: rgba(255,255,255,0.5); }
.pricing-desc { font-size: 13px; color: var(--gray); margin-top: 4px; }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.5); }
.pricing-card.dark .pricing-desc { color: rgba(255,255,255,0.4); }
.pricing-body { padding: 24px; flex: 1; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.pricing-card.dark .pricing-feature { color: rgba(255,255,255,0.65); }
.pricing-check { font-size: 14px; flex-shrink: 0; margin-top: 2px; color: var(--sky); }
.pricing-card.dark .pricing-check { color: var(--gold); }
.pricing-disabled { color: #c0c4c8 !important; }
.pricing-disabled .pricing-check { color: #c0c4c8 !important; }
.pricing-footer { padding: 0 24px 24px; }
.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: none;
  transition: transform 0.15s;
}
.pricing-btn:hover { transform: translateY(-1px); }
.pricing-btn.outline { background: var(--white); border: 1.5px solid var(--navy); color: var(--navy); }
.pricing-btn.filled { background: var(--sky); color: var(--white); }
.pricing-btn.gold { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.pricing-faq { max-width: 680px; margin: 60px auto 0; }
.pricing-faq h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 32px; text-align: center; }
.faq-item { text-align: left; border-bottom: 1px solid var(--gray-border); padding: 18px 0; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero > div > p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .features-grid, .how-steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
}
