/* ============================================================
   TAKEOFF Engine — Clean Light design system
   Shared tokens + components across the 3 landing options
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* surfaces */
  --bg:        #FFFFFF;
  --bg-alt:    #F8FAFC;
  --surface:   #FFFFFF;
  --border:    #E2E8F0;
  --border-2:  #EDF1F6;

  /* brand */
  --primary:        #4F46E5;
  --primary-light:  #EEF2FF;
  --primary-dark:   #3730A3;
  --secondary:      #0D9488;
  --secondary-light:#F0FDFA;
  --accent:         #F59E0B;
  --accent-light:   #FFFBEB;

  /* text */
  --text:    #1E293B;
  --text-2:  #64748B;
  --muted:   #94A3B8;

  /* status */
  --success: #10B981;
  --error:   #EF4444;
  --hot:     #EF4444;
  --warm:    #F59E0B;
  --cold:    #3B82F6;

  /* effects */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 4px 14px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 22px 50px -18px rgba(15,23,42,.18), 0 8px 18px -10px rgba(15,23,42,.10);
  --shadow-xl: 0 40px 90px -30px rgba(30,41,59,.28);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 16px; }
  .logos-row { gap: 24px 16px; }
  .tcard { padding: 20px; }
}

::selection { background: var(--primary-light); color: var(--primary-dark); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }

p { text-wrap: pretty; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow.teal { color: var(--secondary); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(79,70,229,.5); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--primary); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--primary-dark); }
.btn-lg { font-size: 16px; padding: 15px 28px; }
.btn-block { width: 100%; }

/* ---------- pill / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px){ .nav-links { display: none; } }
@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-actions { gap: 8px; }
  .btn { padding: 9px 15px; font-size: 13.5px; }
  .btn-lg { padding: 12px 20px; font-size: 14.5px; }
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; color: var(--text); }
.logo .mark { width: 28px; height: 28px; flex: none; }
.logo b { font-weight: 800; }

/* ---------- section scaffolding ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--text-2); }

/* ---------- generic card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D7DEE8; }

/* ---------- icon chip ---------- */
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--primary-light); color: var(--primary);
}
.icon-chip svg { width: 23px; height: 23px; }
.icon-chip.teal { background: var(--secondary-light); color: var(--secondary); }
.icon-chip.amber { background: var(--accent-light); color: var(--accent); }

/* ---------- lead badge (BANT) ---------- */
.lead-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lead-badge.hot  { background: #FEF2F2; color: var(--hot); }
.lead-badge.warm { background: var(--accent-light); color: #B45309; }
.lead-badge.cold { background: #EFF6FF; color: var(--cold); }

/* ---------- chat widget mock (shared) ---------- */
.chatw { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chatw-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--border-2); }
.chatw-avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: grid; place-items: center; color: #fff; flex: none; }
.chatw-avatar svg { width: 20px; height: 20px; }
.chatw-name { font-weight: 700; font-size: 14.5px; }
.chatw-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 5px; }
.chatw-status .ping { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.45);} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }
.chatw-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.msg { max-width: 82%; padding: 10px 14px; font-size: 14px; line-height: 1.5; border-radius: 15px; }
.msg.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chatw-bant { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border-2); background: #fff; }
.bant-tag { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border-2); display: inline-flex; align-items: center; gap: 5px; transition: all .3s; }
.bant-tag.on { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.bant-tag svg { width: 12px; height: 12px; }

/* ---------- rubro tiles ---------- */
.rubros-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px){ .rubros-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .rubros-grid { grid-template-columns: 1fr; } }
.rubro {
  display: flex; align-items: center; gap: 13px; padding: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s ease; cursor: pointer;
}
.rubro:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.rubro .ri { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); flex: none; }
.rubro .ri svg { width: 21px; height: 21px; }
.rubro h4 { font-size: 14.5px; font-weight: 600; }
.rubro p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 15px 18px; text-align: center; font-size: 14.5px; border-bottom: 1px solid var(--border-2); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare thead th { font-weight: 700; font-size: 14px; }
.compare thead th.us { background: var(--primary); color: #fff; position: relative; }
.compare td.us { background: var(--primary-light); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--success); }
.compare .no  { color: var(--muted); }
.compare .partial { color: var(--warm); font-size: 12.5px; font-weight: 600; }
.compare svg { width: 19px; height: 19px; margin: 0 auto; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1040px){ .price-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ 
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 20px 16px !important; }
}
.price-card { display: flex; flex-direction: column; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 24px 50px -24px rgba(79,70,229,.45); }
.price-card .plan { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.price-card.featured .plan { color: var(--primary); }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-amt .cur { font-size: 20px; font-weight: 700; }
.price-amt .num { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.price-amt .per { font-size: 14px; color: var(--muted); }
.price-card .tagline { font-size: 13.5px; color: var(--text-2); min-height: 38px; }
.price-feats { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text); }
.price-feats li svg { width: 16px; height: 16px; color: var(--secondary); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; }
.badge-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; box-shadow: 0 6px 16px -4px rgba(79,70,229,.5); }
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-top: 22px; }
.bill-toggle button { border: none; background: transparent; font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .18s; }
.bill-toggle button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.bill-toggle .save { color: var(--secondary); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 16.5px; font-weight: 600; color: var(--text); text-align: left; }
.faq-q .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; flex: none; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--text-2); font-size: 15px; max-width: 760px; }

/* ---------- testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .testimonials-grid { grid-template-columns: 1fr; } }
.tcard { padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.tcard .quote { font-size: 15.5px; color: var(--text); line-height: 1.6; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; flex: none; }
.tcard .who b { font-size: 14px; font-weight: 600; display: block; }
.tcard .who span { font-size: 12.5px; color: var(--muted); }
.tstars { display: flex; gap: 2px; color: var(--accent); }
.tstars svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- logos / social proof ---------- */
.logos-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; opacity: .62; }
.logos-row .l { font-weight: 700; font-size: 17px; color: var(--text-2); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; }
.logos-row .l svg { width: 19px; height: 19px; }

/* ---------- stat ---------- */
.stat .n { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat .n b { background: linear-gradient(120deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 14px; color: var(--text-2); margin-top: 2px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer h5 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-2); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }

/* ---------- gradient text ---------- */
.grad { background: linear-gradient(115deg, var(--primary) 10%, var(--secondary) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
