/* =========================================================
   Caramba Landing — styles
   ---------------------------------------------------------
   Designed around the real-product palette: royal blue
   primary, action green CTAs, WhatsApp emphasis throughout.
   ========================================================= */

@import url('./colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--caramba-blue-600);
  margin-bottom: 18px;
}
.eyebrow.center { display: flex; justify-content: center; }
.section-h {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 48px; line-height: 1.04; letter-spacing: -0.025em; text-align: center;
  color: var(--fg-1);
}
.section-h .muted { color: var(--neutral-400); font-weight: 700; }
.section-sub { text-align: center; color: var(--fg-2); font-size: 17px; margin-top: 14px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  transition: all 0.18s var(--ease-out);
}
.btn i { width: 16px; height: 16px; stroke-width: 2.2; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--caramba-green-500);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.50);
}
.btn-primary:hover { background: var(--caramba-green-600); transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--fg-1);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { background: var(--neutral-50); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.14); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--border-subtle);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px;
  color: var(--fg-1); letter-spacing: -0.02em;
}
.brand-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg-1); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .link { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-cta .link:hover { color: var(--fg-1); }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--caramba-blue-700); color: #fff; padding: 80px 48px 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 999px; background: radial-gradient(circle, rgba(255,184,0,0.16), transparent 60%); pointer-events: none; }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero-copy .eyebrow { color: var(--caramba-green-300); }
.hero-h1 { font-family: var(--font-display); font-weight: 800; font-size: 84px; line-height: 0.96; letter-spacing: -0.035em; }
.hero-h1 .hl { color: var(--caramba-green-500); }
.hero-sub { font-size: 19px; line-height: 1.5; color: rgba(255,255,255,0.78); margin-top: 24px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; font-size: 13.5px; color: rgba(255,255,255,0.65); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta i { width: 14px; height: 14px; color: var(--caramba-green-500); }

/* Hero device */
.hero-visual { position: relative; }
.device { position: relative; }
.device-glow { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 50%, rgba(255,184,0,0.20), transparent 60%); filter: blur(20px); }
.device-screen { position: relative; background: #fff; color: var(--fg-1); border-radius: 16px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.ds-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.ds-logo { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ds-logo img { width: 18px; height: 18px; }
.ds-pills { display: flex; gap: 4px; }
.ds-pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--fg-2); }
.ds-pill.active { background: var(--caramba-blue-700); color: #fff; }
.ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; }
.ds-stat { padding: 10px; border-radius: 8px; background: var(--neutral-50); }
.ds-stat-l { font-size: 10px; color: var(--fg-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.ds-stat-v { font-family: var(--font-mono); font-size: 20px; font-weight: 600; margin-top: 4px; }
.ds-stat-d { font-size: 10px; font-weight: 600; margin-top: 2px; }
.ds-stat-d.up { color: var(--success); }
.ds-orders { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.ds-row { display: grid; grid-template-columns: 60px 80px 1fr auto; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; font-size: 11px; }
.ds-row:hover { background: var(--neutral-50); }
.ds-id { font-family: var(--font-mono); color: var(--caramba-blue-500); font-weight: 600; }
.ds-plate { font-family: var(--font-mono); background: var(--caramba-blue-700); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; letter-spacing: 0.06em; text-align: center; }
.ds-model { color: var(--fg-1); font-weight: 500; font-size: 11.5px; }
.ds-status { font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.ds-status.warn { background: var(--warning-bg); color: #a16207; }
.ds-status.yellow { background: var(--caramba-green-100); color: #8a6500; }
.ds-status.blue { background: var(--info-bg); color: var(--info); }

.device-wa { position: absolute; bottom: -30px; right: -40px; background: #ECE5DD; border-radius: 14px; padding: 10px; width: 220px; box-shadow: 0 20px 30px -10px rgba(0,0,0,0.4); }
.wa-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--caramba-green-600); margin-bottom: 8px; }
.wa-head i { width: 14px; height: 14px; }
.wa-bubble { background: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; margin-bottom: 4px; line-height: 1.35; }
.wa-bubble.me { background: #DCF8C6; align-self: flex-end; margin-left: 30px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { padding: 96px 48px; background: var(--neutral-50); }
.features-inner { max-width: 1280px; margin: 0 auto; }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.feat-card {
  padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease-out);
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon i { width: 24px; height: 24px; stroke-width: 2; }
.tone-whatsapp .feat-icon { background: var(--caramba-green-50); color: var(--caramba-green-600); }
.tone-yellow .feat-icon { background: var(--icon-bg-yellow); color: var(--icon-fg-yellow); }
.tone-navy .feat-icon { background: var(--caramba-blue-tint); color: var(--caramba-blue-600); }
.feat-title {
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.feat-body { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* =========================================================
   HOW IT WORKS — three flows
   ========================================================= */
.how { padding: 96px 48px; background: #fff; }
.how-inner { max-width: 1180px; margin: 0 auto; }
.how-head { margin-bottom: 64px; }

.flows {
  display: flex; flex-direction: column; gap: 96px;
}
.flow-card {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
.flow-card.alt { grid-template-columns: 1fr 1.05fr; }
.flow-card.alt .flow-copy { order: 2; }
.flow-card.alt .flow-phone-wrap { order: 1; }

.flow-eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--caramba-green-600);
  background: var(--caramba-green-50);
  padding: 5px 10px; border-radius: 999px;
}
.flow-title {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 14px;
  line-height: 1.1;
}
.flow-lead {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  margin-top: 14px; max-width: 460px;
}
.flow-steps {
  list-style: none;
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.flow-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.5; color: var(--fg-1);
}
.fs-n {
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--caramba-blue-tint);
  color: var(--caramba-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}
.flow-trigger {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--caramba-green-50);
  color: var(--caramba-green-700);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.flow-trigger i { width: 15px; height: 15px; stroke-width: 2.5; }

/* Phone in how-it-works */
.flow-phone-wrap { display: flex; justify-content: center; }
.fphone {
  width: 320px;
  background: #1A2330;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 40px 80px -30px rgba(20, 30, 50, 0.5);
}
.fp-screen {
  background: #ECE5DD;
  border-radius: 28px;
  overflow: hidden;
  height: 540px;
  display: flex; flex-direction: column;
}
.fp-head {
  background: #075E54; color: #fff;
  padding: 14px 14px 12px;
  display: flex; align-items: center; gap: 10px;
}
.fp-head i { width: 18px; height: 18px; }
.fp-contact { display: flex; align-items: center; gap: 10px; flex: 1; }
.fp-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--caramba-blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.fp-name { font-size: 14px; font-weight: 600; }
.fp-status { font-size: 11px; opacity: 0.7; margin-top: 1px; }
.fp-thread {
  flex: 1;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.fp-bubble {
  background: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  border-top-left-radius: 2px;
  font-size: 13.5px; line-height: 1.4;
  max-width: 88%;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  align-self: flex-start;
}
.fp-bubble.them { /* default */ }
.fp-doc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
}
.fp-doc-icon {
  width: 38px; height: 38px;
  background: var(--caramba-blue-tint);
  color: var(--caramba-blue-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.fp-doc-icon i { width: 19px; height: 19px; }
.fp-doc-name {
  font-size: 13px; font-weight: 600; color: var(--fg-1);
  word-break: break-word;
}
.fp-doc-meta { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { padding: 96px 48px; background: var(--neutral-50); }
.pricing-inner { max-width: 1180px; margin: 0 auto; }
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.plan {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--caramba-blue-600);
  background: var(--caramba-blue-700);
  color: #fff;
  transform: scale(1.03);
}
.plan-tag {
  position: absolute; top: -12px; left: 32px;
  background: var(--caramba-green-500); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.plan-name { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.plan-sub { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.plan.featured .plan-sub { color: rgba(255,255,255,0.7); }
.plan-price { margin: 24px 0; display: flex; align-items: baseline; gap: 6px; }
.price-num {
  font-family: var(--font-mono); font-size: 38px; font-weight: 700;
  letter-spacing: -0.02em;
}
.price-unit { font-size: 13px; color: var(--fg-2); }
.plan.featured .price-unit { color: rgba(255,255,255,0.7); }
.plan-feats {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px; flex: 1;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.45;
}
.plan-feats i {
  width: 16px; height: 16px;
  color: var(--caramba-green-500); flex: 0 0 auto;
  margin-top: 2px; stroke-width: 2.5;
}
.plan.featured .plan-feats i { color: var(--caramba-green-300); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background: var(--caramba-blue-700);
  color: #fff;
  padding: 96px 48px;
  text-align: center;
}
.final-cta-inner { max-width: 720px; margin: 0 auto; }
.final-cta h2 {
  font-weight: 800; font-size: 52px;
  letter-spacing: -0.025em; line-height: 1.05;
}
.final-cta p {
  font-size: 18px; color: rgba(255,255,255,0.75);
  margin-top: 18px;
}
.final-cta-actions {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 36px; flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 56px 48px 32px; background: var(--neutral-900); color: rgba(255,255,255,0.72); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px;
  color: #fff;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin: 32px 0;
}
.footer-cols h5 { color: #fff; font-size: 13px; margin-bottom: 14px; font-weight: 600; }
.footer-cols a { display: block; padding: 4px 0; font-size: 13.5px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav {
    padding: 14px 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .features,
  .how,
  .pricing,
  .final-cta,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-inner,
  .flow-card,
  .flow-card.alt {
    grid-template-columns: 1fr;
  }

  .flow-card.alt .flow-copy,
  .flow-card.alt .flow-phone-wrap {
    order: initial;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .feat-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand-name,
  .nav-cta .link {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-cta .btn {
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .features,
  .how,
  .pricing,
  .final-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero,
  .features,
  .how,
  .pricing,
  .final-cta,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    gap: 44px;
  }

  .hero-h1 {
    font-size: clamp(48px, 14vw, 64px);
    line-height: 0.98;
  }

  .hero-sub {
    font-size: 17px;
  }

  .section-h {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.08;
  }

  .hero-ctas,
  .final-cta-actions {
    flex-direction: column;
  }

  .hero-ctas .btn,
  .final-cta-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .hero-meta {
    gap: 12px 18px;
  }

  .device-screen {
    padding: 12px;
    border-radius: 14px;
  }

  .ds-top {
    align-items: flex-start;
  }

  .ds-pills {
    display: none;
  }

  .ds-stats,
  .feat-grid,
  .plan-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .ds-row {
    grid-template-columns: 58px 78px minmax(0, 1fr);
    gap: 7px;
  }

  .ds-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .device-wa {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 14px;
  }

  .feat-grid,
  .plan-grid {
    margin-top: 40px;
  }

  .feat-card,
  .plan {
    border-radius: 14px;
    padding: 24px;
  }

  .flows {
    gap: 72px;
  }

  .flow-card,
  .flow-card.alt {
    gap: 34px;
  }

  .flow-title {
    font-size: 30px;
  }

  .flow-lead {
    font-size: 16px;
  }

  .flow-trigger {
    border-radius: 16px;
    align-items: flex-start;
  }

  .fphone {
    width: min(320px, 100%);
    border-radius: 30px;
  }

  .fp-screen {
    height: 500px;
    border-radius: 23px;
  }

  .fp-name {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-tag {
    left: 24px;
  }

  .price-num {
    font-size: clamp(30px, 9vw, 38px);
  }

  .final-cta h2 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .final-cta p {
    font-size: 16px;
  }

  .footer {
    padding-top: 44px;
  }
}

@media (max-width: 380px) {
  .nav-cta .btn {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-h1 {
    font-size: 44px;
  }

  .ds-row {
    grid-template-columns: 1fr 1fr;
  }

  .ds-model,
  .ds-status {
    grid-column: 1 / -1;
  }

  .fp-head {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
