/* ==========================================================================
   Labass — folha de estilo compartilhada (landing + documentação)
   Paleta derivada de lib/app/shared/themes/app_colors.dart
   ========================================================================== */
:root {
  --brand-50:  #F0F6FB;
  --brand-100: #DCEBF7;
  --brand-200: #B7D5EE;
  --brand-400: #4E9BD8;
  --brand-500: #1D73BD;
  --brand-600: #1A64A5;
  --brand-700: #155891;
  --brand-800: #103F6C;
  --brand-900: #0A2A4A;
  --brand-950: #061A2F;

  --agro-500: #2F6926;
  --ok:       #22A04B;
  --amber:    #F5B73B;
  --danger:   #E5484D;

  --ink:      #0F172A;
  --ink-2:    #334155;
  --muted:    #64748B;
  --line:     #E3E8EF;
  --line-2:   #EEF2F6;
  --surface:  #FFFFFF;
  --surface-2:#F7F9FC;
  --bg:       #FFFFFF;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:    0 8px 24px -8px rgba(15,23,42,.14), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg: 0 30px 60px -20px rgba(10,42,74,.35);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--brand-800); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 650; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 18px -6px rgba(29,115,189,.6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--amber); color: var(--brand-950); box-shadow: 0 10px 24px -10px rgba(245,183,59,.8); }
.btn-accent:hover { background: #FFC655; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-200); background: var(--brand-50); }
.btn-ghost-dark { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / títulos de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(15,23,42,.18); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: background-color .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
  }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
}
@media (max-width: 440px) { .nav-actions .btn-primary { display: none; } }

/* ---------- Selos das lojas ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 14px;
  border-radius: 12px; background: #0B0F17; color: #fff; border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, background-color .2s;
}
.store:hover { background: #151B26; transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex-shrink: 0; fill: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 10.5px; opacity: .72; letter-spacing: .02em; }
.store strong { font-size: 16px; font-weight: 650; }

/* ---------- Mockup de celular ---------- */
.phone {
  position: relative; width: 100%;
  background: #0B0F17; border-radius: 13% / 6%; padding: 3.2%;
  box-shadow: 0 0 0 1.5px #2A3140, var(--shadow-lg);
}
.phone img { width: 100%; height: auto; border-radius: 10.5% / 4.9%; }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--brand-950); color: rgba(255,255,255,.66); padding-block: 64px 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-name small { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 16px; max-width: 320px; line-height: 1.6; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.footer-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 5px; object-fit: contain; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Compra pelo site (checkout InfinitePay) ---------- */
.checkout {
  width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.checkout::backdrop { background: rgba(6,26,47,.62); }
.checkout-form { display: grid; gap: 14px; padding: clamp(18px, 4vw, 26px); text-align: left; }
.checkout-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checkout-head h3 { font-size: 22px; margin-top: 4px; }
.checkout-price { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.checkout-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 28px; line-height: 1; color: var(--muted); }
.checkout-close:hover { background: var(--surface-2); color: var(--ink); }
.checkout-notice { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: #FFF7E6; border: 1px solid #F5D08A; color: #6B4A06; font-size: 14px; line-height: 1.55; }
.checkout-notice strong { color: #4A3304; font-size: 15px; }
.checkout-notice a { color: var(--brand-700); font-weight: 650; text-decoration: underline; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-100); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-500); }
.checkout-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.checkout-foot { text-align: center; color: var(--muted); font-size: 13px; }
.btn[disabled] { opacity: .65; pointer-events: none; }
