/* ============================================================
   EXACT BR — área do cliente / landing
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden; /* full-bleed canvas */
}

#root, .app {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}

/* ---------- Background variants ----------------------------- */
.bg-grid, .bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-grid svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bg-lines {
  background-image:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255,255,255,0.04) calc(50% - 0.5px), rgba(255,255,255,0.04) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-linear-gradient(90deg, transparent 0, transparent 119px, rgba(255,255,255,0.025) 119px, rgba(255,255,255,0.025) 120px);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(8,10,12,0.55) 75%, rgba(8,10,12,0.95) 100%);
  pointer-events: none;
}

/* ---------- Corner crosshairs ------------------------------- */
.corners {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 2;
}
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--fg-3);
  opacity: 0.55;
}
.corner.tl { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.corner.tr { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.corner.bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.corner.br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }

/* ---------- Top bar ----------------------------------------- */
.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
  z-index: 5;
}
.logo {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.96;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data-positive);
  box-shadow: 0 0 0 3px rgba(79,195,138,0.16);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79,195,138,0.16); }
  50%      { box-shadow: 0 0 0 5px rgba(79,195,138,0.05); }
}

/* ---------- Stage / hero ------------------------------------ */
.stage {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 96px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 3;
}

/* ---------- Access badge (exclusive area) ------------------- */
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--exact-orange-line);
  background:
    linear-gradient(180deg, rgba(241,117,34,0.12), rgba(241,117,34,0.04));
  border-radius: var(--radius-pill);
  color: var(--exact-orange);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
  box-shadow: 0 0 0 6px rgba(241,117,34,0.05),
              0 8px 28px rgba(241,117,34,0.10);
  position: relative;
}
.access-badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--exact-orange);
  opacity: 0;
  animation: badgePing 2.8s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes badgePing {
  0%   { opacity: 0.55; transform: scale(1); }
  60%  { opacity: 0;    transform: scale(1.18); }
  100% { opacity: 0;    transform: scale(1.18); }
}
.access-badge-ico {
  flex-shrink: 0;
  color: var(--exact-orange);
}
.access-badge-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.access-badge-tag { color: var(--exact-orange); }
.access-badge-sep {
  color: var(--exact-orange);
  opacity: 0.5;
  font-weight: 400;
}
.access-badge-sub {
  color: var(--fg-1);
  letter-spacing: 0.14em;
}


/* ---------- Hero typography --------------------------------- */
.hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8.6vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.hero-line {
  display: block;
}
.hero-line + .hero-line {
  margin-top: 4px;
}

/* "achismo" treatments */
.achismo {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.achismo--strike .achismo-line {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 6px;
  background: var(--exact-orange);
  transform: rotate(-2.2deg);
  transform-origin: center;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(241,117,34,0.45);
  animation: strikeIn 700ms var(--ease-out) 250ms backwards;
}
@keyframes strikeIn {
  from { transform: rotate(-2.2deg) scaleX(0); }
  to   { transform: rotate(-2.2deg) scaleX(1); }
}
.achismo--circle {
  padding: 0 6px;
}
.achismo--circle .achismo-circle {
  position: absolute;
  inset: -10% -4%;
  width: 108%;
  height: 120%;
  pointer-events: none;
  animation: drawCircle 900ms var(--ease-out) 250ms backwards;
}
@keyframes drawCircle {
  from { stroke-dasharray: 0 600; }
  to   { stroke-dasharray: 600 0; }
}

/* ---------- Lede paragraph ---------------------------------- */
.lede {
  margin-top: 40px;
  max-width: 720px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 400;
}
.lede em {
  color: var(--fg-1);
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 1px;
}

/* ---------- Pull quote -------------------------------------- */
.pull {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.pull-rule {
  display: inline-block;
  width: 72px;
  height: 2px;
  background: var(--exact-orange);
  flex-shrink: 0;
  border-radius: 1px;
}
.pull-quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.5;
  color: var(--exact-orange);
  margin-right: -6px;
  transform: translateY(8px);
}

/* ---------- CTA block --------------------------------------- */
.cta-block {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-hint {
  color: var(--fg-3);
  font-size: 14px;
  max-width: 220px;
  line-height: 1.4;
}

/* ---------- Buttons ----------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--exact-orange);
  color: #fff;
  padding: 0 28px;
  height: 52px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset,
              0 12px 32px rgba(241,117,34,0.18);
}
.btn-primary:hover {
  background: var(--exact-orange-hover);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset,
              0 14px 36px rgba(241,117,34,0.32);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-primary:active {
  background: var(--exact-orange-press);
  transform: translateY(1px);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(241,117,34,0.32),
              0 0 0 4px rgba(241,117,34,0.18),
              0 12px 32px rgba(241,117,34,0.25);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn-hero {
  height: 60px;
  padding: 0 36px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
  font-family: var(--font-display);
  font-weight: 500;
}

/* ---------- Footer ticker (removed) ------------------------- */

/* ---------- Login modal ------------------------------------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8,10,12,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: scrimIn 220ms var(--ease-out);
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  animation: cardIn 320ms var(--ease-out);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-1);
}
.modal-eyebrow {
  color: var(--fg-3);
  font-size: 11px;
}
.modal-close {
  background: transparent;
  border: 1px solid var(--line-2);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--fg-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--fg-1);
}
.modal-body {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}
.modal-sub {
  font-size: 14px;
  color: var(--fg-3);
  margin: -8px 0 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field input {
  background: var(--exact-ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 14px;
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  outline: none;
}
.field input::placeholder { color: var(--fg-4); }
.field input:focus {
  border-color: var(--exact-orange-line);
  box-shadow: 0 0 0 3px rgba(241,117,34,0.12);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-3);
  border-radius: 3px;
  background: var(--exact-ink);
  cursor: pointer;
  position: relative;
}
.check input:checked {
  background: var(--exact-orange);
  border-color: var(--exact-orange);
}
.check input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.link-quiet {
  font-size: 13px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-2);
}
.link-quiet:hover { color: var(--exact-orange); border-bottom-color: var(--exact-orange); }

/* link visual em elemento <button> (para ações sem rota, como "Esqueci minha senha") */
.link-as-button {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.2;
}
.link-as-button:hover { color: var(--exact-orange); border-bottom-color: var(--exact-orange); }
.link-as-button:focus-visible { outline: 2px solid var(--exact-orange); outline-offset: 3px; }

.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  gap: 12px;
  flex-wrap: wrap;
}
.modal-foot .mono { font-family: var(--font-mono); }

/* error message */
.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(229, 72, 77, 0.32);
  background: rgba(229, 72, 77, 0.08);
  border-radius: var(--radius-md);
  color: var(--data-negative);
  font-size: 13px;
  line-height: 1.4;
  animation: shake 320ms var(--ease-out);
}
.login-error svg { flex-shrink: 0; color: var(--data-negative); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-4px); }
  40%     { transform: translateX(4px); }
  60%     { transform: translateX(-2px); }
  80%     { transform: translateX(2px); }
}

/* spinner */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success state */
.modal-success {
  align-items: center;
  text-align: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(241,117,34,0.10);
  border: 1px solid var(--exact-orange-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  animation: bumpIn 360ms var(--ease-out);
}
.success-mark svg { width: 28px; height: 28px; }
@keyframes bumpIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.loading-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.loading-bar-fill {
  height: 100%;
  background: var(--exact-orange);
  width: 30%;
  animation: loadBar 1.6s var(--ease-in-out) infinite;
}
@keyframes loadBar {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(180%); }
  100% { transform: translateX(180%); }
}

/* ---------- Entry choreography ------------------------------ */
.stage > * {
  animation: rise 700ms var(--ease-out) both;
}
.stage > *:nth-child(1) { animation-delay: 80ms; }
.stage > *:nth-child(2) { animation-delay: 160ms; }
.stage > *:nth-child(3) { animation-delay: 280ms; }
.stage > *:nth-child(4) { animation-delay: 380ms; }
.stage > *:nth-child(5) { animation-delay: 460ms; }
.top { animation: rise 700ms var(--ease-out) 0ms both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive -------------------------------------- */
@media (max-width: 900px) {
  .stage { padding: 0 32px; }
  .top { padding: 20px 24px; }
}
@media (max-height: 760px) {
  .lede { margin-top: 24px; }
  .pull { margin-top: 20px; }
  .cta-block { margin-top: 32px; }
  .access-badge { margin-bottom: 24px; }
}
