/* ==========================================================================
   JB LOOP - pagina publica de apresentacao (/)
   O painel React usa CSS compilado separado em public/painel.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #070a11;
  --surface: #0d121b;
  --ink: #eef4ff;
  --ink-strong: #ffffff;
  --muted: #a8b4c7;
  --muted-2: #78879e;
  --line: rgba(180, 196, 222, 0.18);
  --line-strong: rgba(220, 231, 249, 0.3);
  --brand: #f0061c;
  --brand-2: #ff5a24;
  --blue: #2b7fff;
  --green: #22c55e;
  --radius: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
p { margin: 0; }

.presentation-page {
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* hero -------------------------------------------------------------------- */
.sales-hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.sales-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.sales-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.96) 0%, rgba(5, 8, 14, 0.88) 31%, rgba(5, 8, 14, 0.42) 66%, rgba(5, 8, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18) 0%, rgba(5, 8, 14, 0.8) 100%);
  z-index: -2;
}

.sales-hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 48px;
}

.sales-copy {
  max-width: 620px;
  display: grid;
  gap: 18px;
}

.sales-copy .hero-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  color: #d4deef;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(240, 6, 28, 0.2);
}

.sales-copy h1 {
  font-size: 72px;
  font-weight: 950;
  color: var(--ink-strong);
}

.sales-copy .lead {
  max-width: 560px;
  color: #d5deec;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.site-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.48);
}

.site-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 18px 40px rgba(240, 6, 28, 0.28);
}

.site-btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 600px;
  margin-top: 14px;
}

.hero-proof span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 22, 0.72);
  backdrop-filter: blur(8px);
}

.hero-proof strong {
  display: block;
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-proof small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* faixas e secoes --------------------------------------------------------- */
.presentation-strip,
.sales-section,
.compatibility,
.presentation-foot {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.presentation-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 12px;
}

.presentation-strip div,
.workflow div,
.audience div {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(2, 6, 14, 0.24);
}

.presentation-strip strong,
.workflow strong,
.audience strong {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 850;
  margin-bottom: 6px;
}

.presentation-strip span,
.workflow span,
.audience span,
.sales-copy-block p {
  color: var(--muted);
  font-size: 14px;
}

.sales-section {
  padding: 58px 0 0;
}

.sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
}

.sales-copy-block {
  display: grid;
  gap: 14px;
}

.sales-copy-block h2,
.compatibility h2 {
  max-width: 760px;
  color: var(--ink-strong);
  font-size: 42px;
  font-weight: 900;
}

.sales-copy-block p {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.65;
}

.workflow {
  display: grid;
  gap: 12px;
}

.workflow div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}

.workflow b {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #eaf4ff;
  background: rgba(43, 127, 255, 0.18);
  border: 1px solid rgba(43, 127, 255, 0.34);
  font-size: 14px;
}

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.audience div:nth-child(1) { border-top-color: var(--brand); }
.audience div:nth-child(2) { border-top-color: var(--blue); }
.audience div:nth-child(3) { border-top-color: var(--green); }

.compatibility {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 58px 0 46px;
}

.compatibility > div:first-child {
  display: grid;
  gap: 14px;
}

.presentation-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.presentation-tags .platform {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  padding: 9px 13px;
}

.presentation-tags .platform img {
  height: 21px;
  width: auto;
}

/* rodape ------------------------------------------------------------------ */
.presentation-foot {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.presentation-foot span {
  font-weight: 900;
  color: var(--ink);
}

.presentation-foot small {
  font-size: 13px;
}

@media (max-width: 980px) {
  .sales-copy h1 { font-size: 58px; }
  .sales-copy .lead { font-size: 19px; }
  .presentation-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-grid,
  .compatibility {
    grid-template-columns: minmax(0, 1fr);
  }
  .presentation-tags { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .sales-hero { min-height: 74svh; }
  .sales-hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 8, 14, 0.92) 0%, rgba(5, 8, 14, 0.78) 48%, rgba(5, 8, 14, 0.92) 100%);
  }
  .sales-hero-image { object-position: 65% center; }
  .sales-hero-inner,
  .presentation-strip,
  .sales-section,
  .compatibility,
  .presentation-foot {
    width: min(100% - 28px, 1160px);
  }
  .sales-hero-inner { padding: 34px 0 28px; }
  .sales-copy { gap: 14px; }
  .sales-copy .hero-logo { width: 64px; height: 64px; }
  .sales-copy h1 { font-size: 44px; }
  .sales-copy .lead { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .site-btn { flex: 1 1 150px; padding: 0 14px; }
  .hero-proof { grid-template-columns: minmax(0, 1fr); }
  .presentation-strip,
  .audience {
    grid-template-columns: minmax(0, 1fr);
  }
  .sales-section { padding-top: 42px; }
  .sales-copy-block h2,
  .compatibility h2 {
    font-size: 30px;
  }
  .workflow div { grid-template-columns: 44px minmax(0, 1fr); }
  .workflow b { width: 44px; height: 44px; }
  .compatibility { padding-top: 42px; }
}

@media (max-width: 380px) {
  .sales-copy h1 { font-size: 38px; }
  .sales-copy .lead { font-size: 16px; }
  .presentation-tags .platform { flex: 1 1 88px; }
}

/* Vendas, cadastro e assinatura ----------------------------------------- */
.site-nav {
  width: min(1160px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-brand img { width: 38px; height: 38px; }
.site-brand strong { color: #fff; font-size: 16px; }
.site-nav nav { display: flex; align-items: center; gap: 24px; }
.site-nav nav > a:not(.site-btn) { color: var(--muted); font-size: 14px; font-weight: 700; }
.site-nav nav > a:hover { color: #fff; }
.site-btn-small { min-height: 38px; padding: 0 14px; }
.site-nav + .sales-hero { min-height: calc(78svh - 72px); }
.trial-note { color: #c7d2e3; font-size: 13px; }

.section-heading { max-width: 760px; display: grid; gap: 14px; }
.section-heading h2, .final-cta h2 { color: #fff; font-size: 42px; font-weight: 900; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; max-width: 62ch; }
.pricing-section { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.price-plan { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 22px; }
.price-plan-featured { border-color: rgba(240, 6, 28, 0.7); }
.plan-label { position: absolute; top: 0; right: 20px; padding: 7px 10px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.price-plan > div:not(.plan-label) { display: grid; gap: 4px; }
.price-plan span { color: var(--muted); font-weight: 800; }
.price-plan strong { color: #fff; font-size: 34px; }
.price-plan small { color: var(--muted-2); }
.price-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.price-plan li { color: #d7e0ee; padding-left: 24px; position: relative; }
.price-plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.price-plan .site-btn { width: 100%; }
.final-cta { width: min(1160px, calc(100% - 40px)); margin: 0 auto 54px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.final-cta > div { display: grid; gap: 12px; max-width: 760px; }

.signup-body, .billing-body { background: #070a11; }
.signup-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(340px, .85fr) minmax(460px, 1.15fr); }
.signup-aside { padding: 46px max(32px, 6vw); border-right: 1px solid var(--line); background: #0b1019 url('/public/assets/jbloop-hero-signage-20260901.png') center / cover no-repeat; background-blend-mode: soft-light; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.signup-aside > div { display: grid; gap: 16px; }
.signup-aside h1 { color: #fff; font-size: 48px; font-weight: 900; }
.signup-aside p { color: #d3dceb; max-width: 48ch; }
.signup-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.signup-benefits li { color: #fff; font-weight: 750; padding-left: 26px; position: relative; }
.signup-benefits li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); }
.signup-form-wrap { padding: 46px clamp(22px, 7vw, 100px); display: grid; place-items: center; }
.signup-form { width: min(100%, 560px); display: grid; gap: 18px; }
.form-heading { display: grid; gap: 7px; margin-bottom: 6px; }
.form-heading > span { color: var(--brand); font-weight: 900; font-size: 13px; text-transform: uppercase; }
.form-heading h2 { color: #fff; font-size: 36px; }
.form-heading p, .form-login { color: var(--muted); }
.signup-form > label:not(.terms):not(.honeypot) { display: grid; gap: 7px; color: #e6edf8; font-size: 14px; font-weight: 800; }
.signup-form input[type="email"], .signup-form input[type="password"], .signup-form input:not([type]) { width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #0d131e; color: #fff; padding: 0 13px; font: inherit; }
.signup-form input:focus { outline: 2px solid rgba(43, 127, 255, .6); outline-offset: 1px; }
.signup-form label small { color: var(--muted-2); font-weight: 500; }
.signup-form fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup-form legend { color: #e6edf8; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.plan-choice { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.plan-choice:has(input:checked) { border-color: var(--blue); background: rgba(43,127,255,.08); }
.plan-choice span { display: grid; min-width: 0; }
.plan-choice strong { color: #fff; font-size: 14px; }
.plan-choice small { color: var(--muted); }
.plan-choice b { margin-left: auto; color: var(--green); font-size: 10px; text-align: right; }
.terms { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; }
.terms input { margin-top: 3px; }
.terms a, .form-login a { color: #fff; text-decoration: underline; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-error, .billing-notice { color: #ffd8dc; background: rgba(240,6,28,.1); border: 1px solid rgba(240,6,28,.35); border-radius: var(--radius); padding: 12px; }
.form-submit { border: 0; font: inherit; cursor: pointer; }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-login { text-align: center; font-size: 13px; }
.signup-success { width: min(100%, 560px); display: grid; gap: 14px; align-content: center; }
.signup-success[hidden] { display: none; }
.signup-success-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .38); color: var(--green); font-size: 26px; font-weight: 900; }
.signup-success h2 { color: #fff; font-size: 34px; }
.signup-success > p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.signup-success .site-btn { width: fit-content; margin-top: 6px; }
.billing-page { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 60px; }
.billing-head { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.billing-head > a:last-child { color: var(--muted); font-weight: 700; }
.billing-title { padding: 58px 0 12px; display: grid; gap: 14px; }
.billing-title h1 { color: #fff; font-size: 42px; max-width: 760px; }
.billing-title > p:last-child { color: var(--muted); }
.billing-notice { margin-top: 18px; }
.billing-grid { margin-top: 20px; }

@media (max-width: 980px) {
  .signup-layout { grid-template-columns: minmax(0, 1fr); }
  .signup-aside { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .site-nav { width: min(100% - 28px, 1160px); height: 64px; }
  .site-nav nav > a:not(.site-btn) { display: none; }
  .site-nav + .sales-hero { min-height: calc(78svh - 64px); }
  .pricing-section, .final-cta { width: min(100% - 28px, 1160px); }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .section-heading h2, .final-cta h2 { font-size: 30px; }
  .price-plan { padding: 22px; }
  .final-cta { align-items: stretch; flex-direction: column; }
  .signup-aside { min-height: 360px; padding: 28px 22px; }
  .signup-aside h1 { font-size: 36px; }
  .signup-form-wrap { padding: 34px 18px 50px; }
  .signup-form fieldset { grid-template-columns: minmax(0, 1fr); }
  .billing-page { width: min(100% - 28px, 980px); }
  .billing-title { padding-top: 40px; }
  .billing-title h1 { font-size: 32px; }
}
