/* ============ BOBAX Landing — Design Tokens ============ */
:root {
  /* Brand — Violeta cyber (default) */
  --brand-50:  #F4EEFF;
  --brand-100: #EFE6FF;
  --brand-200: #D8C5FF;
  --brand-300: #B49AFB;
  --brand-400: #9050F5;
  --brand-500: #7C3AED;
  --brand-600: #6B21D9;
  --brand-700: #5316B0;
  --brand-800: #3F0F86;
  --brand-900: #2B0A60;

  /* Esmeralda — para WhatsApp section */
  --emerald-400: #34D29B;
  --emerald-500: #10B981;
  --emerald-600: #0FA174;
  --emerald-700: #0B7D5A;

  /* Dark surfaces */
  --ink-0:  #ffffff;
  --dark-bg:    #06070d;
  --dark-bg-2:  #0a0a18;
  --dark-panel: #14112b;
  --dark-line:  rgba(255,255,255,0.08);
  --dark-mute:  rgba(255,255,255,0.62);

  /* Light surfaces */
  --paper:      #F7F6F2;
  --paper-2:    #FFFFFF;
  --paper-line: #E8E5DC;
  --ink:        #0B0816;
  --ink-2:      #2A253A;
  --ink-mute:   #5E5872;

  /* Type */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui;
  --f-body:    "DM Sans", ui-sans-serif, system-ui;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1260px;
  --pad-x:     clamp(20px, 4vw, 56px);
  --radius:    14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-500); color: white; }

html { scroll-behavior: smooth; }

/* ============ Layout ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding: clamp(72px, 7.5vw, 110px) 0;
  position: relative;
}
.section--tight { padding: clamp(56px, 6vw, 84px) 0; }
.section--dark {
  background: var(--dark-bg);
  color: var(--ink-0);
}
.section--light { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--emerald {
  background: linear-gradient(180deg, #061812, #0a2620);
  color: white;
}

/* ============ Display type ============ */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.display-xl { font-size: clamp(48px, 7.2vw, 100px); }
.display-lg { font-size: clamp(38px, 5.2vw, 68px); }
.display-md { font-size: clamp(28px, 3.4vw, 44px); }
.display-sm { font-size: clamp(22px, 2.4vw, 28px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-500);
  font-weight: 500;
}
.section--dark .eyebrow,
.section--emerald .eyebrow { color: var(--brand-300); }
.section--emerald .eyebrow { color: var(--emerald-400); }

.muted { color: var(--ink-mute); }
.section--dark .muted, .section--emerald .muted { color: var(--dark-mute); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-500);
  color: white;
  box-shadow: 0 16px 40px -14px var(--brand-500);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }
.btn-light {
  background: white;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-1px); }
.btn-emerald {
  background: var(--emerald-500);
  color: white;
  box-shadow: 0 16px 40px -14px var(--emerald-500);
}
.btn-emerald:hover { background: var(--emerald-600); transform: translateY(-1px); }

/* ============ Cards ============ */
.card {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-dark {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--ink-0);
  backdrop-filter: blur(6px);
}

/* ============ Pill / Tag ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-500) 10%, transparent);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor;
}
.section--dark .pill { background: color-mix(in oklab, var(--brand-500) 22%, transparent); color: var(--brand-200); }
.section--emerald .pill { background: rgba(16,185,129,0.18); color: var(--emerald-400); }

/* ============ Helpers ============ */
.grid { display: grid; gap: 24px; }
.center { display: flex; align-items: center; justify-content: center; }

/* ============ Stock-photo placeholder ============ */
.stock-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.stock-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.stock-img.no-label::after { display: none; }

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ============ Focus ============ */
:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ Mobile polish ============ */
@media (max-width: 720px) {
  body { font-size: 16px; }

  :root {
    --pad-x: 18px;
    --radius-lg: 18px;
  }

  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }

  /* Buttons get a touch-friendly minimum hit area */
  .btn {
    padding: 13px 20px !important;
    font-size: 14.5px !important;
    min-height: 46px;
  }

  /* Tighten display sizes */
  .display-xl { font-size: clamp(40px, 11vw, 60px) !important; }
  .display-lg { font-size: clamp(32px, 8.5vw, 44px) !important; }
  .display-md { font-size: clamp(24px, 6.4vw, 32px) !important; }

  /* Tighten cards */
  .card, .card-dark { padding: 22px !important; }

  /* Eyebrow on mobile — slightly bigger so it's tappable readable */
  .eyebrow { font-size: 10.5px; }
}

@media (max-width: 520px) {
  .section { padding: 56px 0; }
  /* Stretch pill containers to wrap */
  .pill { font-size: 11px; padding: 5px 10px; }
}

/* Tap-friendly inputs */
@media (hover: none) {
  input[type="range"] { height: 32px; }
  button, a.btn { min-height: 44px; }
}

/* ============ Section-specific mobile polish ============ */
@media (max-width: 720px) {
  /* Pricing featured: no translateY on mobile (was lifting the card causing visual offset) */
  #pricing-grid > *:last-child { transform: none !important; }

  /* AfiliAds + Pricing CTA bands stack with left-align */
  #pricing #pricing-grid + .reveal,
  #pricing-grid + .reveal { gap: 14px !important; }

  /* Testimonials featured card padding */
  #testimonials .test-grid > *:first-child { padding: 24px !important; }
  #testimonials .test-grid > *:first-child > div:first-child > div:nth-child(2) { font-size: 22px !important; }

  /* Activation phone scale down on small screens */
  #flow-grid > div:first-child > div > div { transform: scale(0.92); transform-origin: center; }

  /* Reveal: disable transform on mobile to prevent horizontal scrollbar artifacts */
  .reveal { transform: translateY(20px); }

  /* Hide ambient orbs / decorative overflowing elements */
  section .hero-showcase > div[aria-hidden="true"] { transform: scale(0.8); }

  /* Force all main grids to single column when not already overridden */
  section .container { overflow-x: hidden; }
}

/* Avoid horizontal scroll caused by absolute decorative elements */
html, body { overflow-x: hidden; }
