/* ===================================================================
   Order Control — Landing Page
   Stack: HTML + CSS + JS puro (sem dependências)
   Mobile-first, responsivo.
   =================================================================== */

/* -------- Design tokens -------- */
:root {
  --blue: #2E7DF5;          /* azul forte (prints) */
  --blue-600: #2468d6;
  --blue-700: #1f57b5;
  --blue-soft: #eaf1ff;     /* fundo azul claro */
  --navy: #1B3A57;          /* azul-marinho (títulos) */
  --navy-soft: #274a6b;
  --white: #ffffff;
  --ink: #26374a;           /* texto corpo */
  --muted: #5f7183;         /* texto secundário */
  --line: #e6edf5;          /* bordas */
  --bg: #f4f8ff;            /* fundo geral */
  --green: #25D366;         /* whatsapp */
  --green-600: #1ebe5b;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 16px rgba(27, 58, 87, .06);
  --shadow: 0 14px 40px rgba(27, 58, 87, .10);
  --shadow-lg: 0 24px 60px rgba(27, 58, 87, .16);

  --container: 1160px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.hl { color: var(--blue); }
.hl-navy { color: var(--blue); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-xl { padding: 20px 40px; font-size: 1.18rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(46,125,245,.35); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 14px 32px rgba(46,125,245,.42); }

.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-whatsapp { background: var(--green); color: #063a1e; box-shadow: 0 10px 26px rgba(37,211,102,.34); }
.btn-whatsapp:hover { background: var(--green-600); color: #042e18; box-shadow: 0 14px 32px rgba(37,211,102,.42); }

/* Ícone WhatsApp (SVG inline via mask) */
.wa-icon {
  width: 20px; height: 20px; display: inline-block; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--wa) center / contain no-repeat;
          mask: var(--wa) center / contain no-repeat;
}
.wa-icon-lg { width: 30px; height: 30px; }
:root {
  --wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm5.8 14.13c-.24.68-1.42 1.32-1.95 1.36-.5.04-.5.4-3.16-.66-2.67-1.05-4.35-3.77-4.48-3.95-.13-.18-1.07-1.42-1.07-2.71 0-1.29.68-1.92.92-2.19.24-.26.52-.33.7-.33.17 0 .35 0 .5.01.16.01.38-.06.59.45.24.57.81 1.96.88 2.1.07.13.12.29.02.47-.09.18-.14.29-.28.44-.14.15-.29.34-.42.45-.14.13-.28.28-.12.55.16.26.72 1.19 1.55 1.93 1.06.95 1.96 1.24 2.23 1.38.27.13.43.11.59-.07.16-.18.68-.79.86-1.06.18-.27.36-.22.6-.13.24.09 1.55.73 1.81.86.27.13.44.2.51.31.06.11.06.65-.18 1.32z'/%3E%3C/svg%3E");
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  display: inline-grid; place-items: center;
  background: var(--blue);
  color: #fff; font-weight: 800; letter-spacing: .5px;
  padding: 8px 12px; border-radius: 14px; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(46,125,245,.35);
}
.brand-logo sup { font-size: .7em; top: -.5em; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.15rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--navy-soft); font-weight: 600; }
.nav-link:hover { color: var(--blue); }
.nav-cta { color: #063a1e; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: 72px 0 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.hero-copy .eyebrow {
  display: inline-block; background: rgba(255,255,255,.16);
  padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
.hero h1 .hl { color: #cfe0ff; white-space: nowrap; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 1;
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 280px; max-width: 78vw;
  background: #0f1f30; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { background: #f3f6fb; border-radius: 32px; overflow: hidden; }
.app-topbar {
  background: var(--navy); color: #fff; padding: 18px 18px 16px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.app-body { padding: 16px; }
.sales-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); text-align: center; }
.sales-title { color: var(--navy); font-weight: 700; margin: 0 0 10px; }
.chips { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.chip { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-weight: 600; }
.chip-on { background: var(--navy); color: #fff; }
.sales-value { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: 0; }
.sales-sub { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tile {
  background: #fff; border-radius: 16px; padding: 16px 10px; text-align: center;
  font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); font-size: .9rem;
}
.tile-ico { display: block; font-size: 1.5rem; margin-bottom: 6px; }

/* ===================================================================
   SCREENS (mockups)
   =================================================================== */
.screens { background: var(--bg); }
.screens-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.screen-card {
  background: #fff; border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.screen-card h3 { margin-top: 18px; font-size: 1.2rem; }
.screen-card p { color: var(--muted); margin: 0; }
.screen-mini {
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  border-radius: var(--radius); padding: 18px; min-height: 150px;
  border: 1px solid var(--line);
}
.screen-mini--center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mini-head { font-weight: 700; color: var(--navy); font-size: .9rem; margin-bottom: 8px; }
.mini-big { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 0; }
.mini-sub { color: var(--muted); font-size: .82rem; margin: 0; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; margin-top: 14px; }
.mini-bars span { flex: 1; background: var(--blue); border-radius: 6px 6px 0 0; opacity: .85; }
.mini-products { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mini-products span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.mini-hbars { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mini-hbars > div { display: flex; align-items: center; gap: 8px; }
.mini-hbars .lbl { width: 30px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.mini-hbars .bar { height: 12px; background: var(--blue); border-radius: 999px; }
.nfce-badge { background: var(--navy); color: #fff; font-weight: 800; letter-spacing: 1px; padding: 10px 22px; border-radius: 14px; }
.qr { width: 74px; height: 74px; margin-top: 16px; border-radius: 12px;
  background:
    linear-gradient(90deg, var(--navy) 25%, transparent 25% 50%, var(--navy) 50% 75%, transparent 75%),
    linear-gradient(0deg, var(--navy) 25%, #fff 25% 50%, var(--navy) 50% 75%, #fff 75%);
  background-size: 20px 20px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--navy);
}
.devices { display: flex; gap: 14px; font-size: 2rem; flex-wrap: wrap; justify-content: center; }
.os-row { display: flex; gap: 16px; margin-top: 14px; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* ===================================================================
   NICHES
   =================================================================== */
.niches { background: #fff; }
.niche-list {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.niche-list li { min-width: 0; max-width: 100%; }
.niche-list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; font-weight: 700; color: var(--navy);
}
.niche-list li span { font-size: 1.5rem; }

/* ===================================================================
   FEATURES
   =================================================================== */
.features { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--blue-soft); border-radius: 16px; font-size: 1.7rem; margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* ===================================================================
   FISCAL
   =================================================================== */
.fiscal { background: #fff; }
.fiscal-inner {
  display: flex; gap: 24px; align-items: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #fff; border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow);
}
.fiscal-inner h2 { color: #fff; }
.fiscal-inner p { color: rgba(255,255,255,.9); margin: 0; }
.fiscal-ico {
  flex: 0 0 auto; width: 74px; height: 74px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border-radius: 20px; font-size: 2.2rem;
}

/* ===================================================================
   PROOF
   =================================================================== */
.proof { background: var(--bg); }
.proof-inner {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.proof-badge {
  flex: 0 0 auto; background: var(--blue-soft); color: var(--blue);
  border-radius: var(--radius-lg); padding: 22px 30px; text-align: center; font-weight: 800; font-size: 1.05rem;
}
.proof-num { display: block; font-size: 3rem; line-height: 1; color: var(--navy); }
.proof-text { flex: 1; min-width: 260px; }
.proof-text h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.proof-text p { color: var(--muted); margin: 0; }

/* ===================================================================
   PRICING
   =================================================================== */
.pricing { background: #fff; }
.price-card {
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #fff, var(--blue-soft));
  border: 2px solid var(--blue); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow-lg); text-align: center;
}
.price-head { margin-bottom: 22px; }
.price-tag {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 700; font-size: .82rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.price-head h3 { font-size: 1.5rem; margin: 0 0 6px; }
.price-value { font-size: 3.4rem; font-weight: 800; color: var(--navy); margin: 0; }
.price-cur { font-size: 1.4rem; vertical-align: super; margin-right: 4px; }
.price-per { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.price-list { text-align: left; margin: 8px 0 26px; display: grid; gap: 12px; }
.price-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 600; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--green); color: #063a1e; border-radius: 50%; font-size: .8rem; font-weight: 800;
}
.price-note { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { background: var(--bg); }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); border-radius: 50%; font-size: 1.2rem; transition: .2s;
}
.faq-item[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }

/* ===================================================================
   CTA FINAL
   =================================================================== */
.cta-final {
  background: linear-gradient(160deg, var(--blue), var(--blue-700));
  color: #fff; text-align: center;
}
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.cta-final p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 28px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 48px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand .brand-name { color: #fff; }
.footer-brand { max-width: 340px; }
.footer-tag { margin-top: 12px; color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-nav a { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.6); }

/* ===================================================================
   RESPONSIVO
   =================================================================== */
@media (min-width: 640px) {
  .niche-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  section { padding: 84px 0; }
  .hero { padding: 90px 0 140px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .screens-grid { grid-template-columns: repeat(3, 1fr); }
  .screen-card--wide { grid-column: span 3; }
  .screen-card--wide .screen-mini { min-height: auto; }
  .niche-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Menu mobile */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .28s ease;
    z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
