﻿:root {
  /* Palette */
  --bg: #f5f1ff;
  --ink: #12091f;
  --muted: #6f6681;
  --line: #ded4f1;
  --panel: #ffffff;
  --rail: #160b2a;
  --primary: #7b2ff7;
  --primary-light: #9747ff;
  --primary-dark: #4f169f;
  --primary-soft: #efe6ff;
  --gold: #f2bd4b;
  --gold-soft: #fff4d8;
  --danger: #b42318;
  --danger-soft: #ffe4df;
  --soft: #edf1ee;
  /* Brazilian-fintech accents */
  --accent: #00d57a;
  --accent-light: #1ee896;
  --accent-dark: #009d59;
  --accent-soft: #d6f7e7;
  --warning: #ff9f1c;
  --warning-soft: #fff1da;
  --info: #2196f3;
  --info-soft: #d8eefc;
  /* Elevation */
  --shadow: 0 20px 48px rgba(17, 28, 24, 0.1);
  --shadow-sm: 0 2px 4px rgba(17, 28, 24, 0.06), 0 1px 2px rgba(17, 28, 24, 0.04);
  --shadow-md: 0 6px 16px rgba(17, 28, 24, 0.08), 0 2px 4px rgba(17, 28, 24, 0.05);
  --shadow-lg: 0 16px 40px rgba(17, 28, 24, 0.10), 0 6px 12px rgba(17, 28, 24, 0.06);
  --shadow-primary: 0 12px 28px rgba(123, 47, 247, 0.28), 0 4px 8px rgba(123, 47, 247, 0.16);
  --shadow-primary-lg: 0 20px 44px rgba(123, 47, 247, 0.40), 0 8px 16px rgba(123, 47, 247, 0.22);
  --shadow-accent: 0 12px 28px rgba(0, 213, 122, 0.30), 0 4px 8px rgba(0, 213, 122, 0.18);
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
  --duration-slow: 320ms;
  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea { font: inherit; }
button {
  position: relative;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              opacity var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button:active:not(:disabled):not([aria-disabled="true"]) { transform: translateY(1px) scale(0.985); }
button:disabled, button[aria-disabled="true"], button.is-disabled { opacity: 0.5; cursor: not-allowed; filter: saturate(0.4); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(123, 47, 247, 0.4);
  outline-offset: 2px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  outline: none;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: #c4b5e6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.16); }
label { display: grid; gap: 7px; color: var(--muted); font-size: 0.84rem; font-weight: 800; }
h1, h2, p { margin-top: 0; letter-spacing: 0; }
h1 { margin-bottom: 12px; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.9; }
h2 { margin-bottom: 0; font-size: 1.15rem; }
pre { overflow: auto; min-height: 180px; max-height: 360px; margin: 0; border-radius: 8px; background: #101816; color: #c9f4df; padding: 16px; white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }
.eyebrow { margin-bottom: 6px; color: var(--primary); font-size: 0.73rem; font-weight: 950; text-transform: uppercase; }
.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

.button-secondary {
  background: var(--soft);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover:not(:disabled) {
  background: #e2eae6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button-danger {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(180, 35, 24, 0.10);
}
.button-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(180, 35, 24, 0.30);
}

.button-success {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.button-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 213, 122, 0.42), 0 8px 16px rgba(0, 213, 122, 0.24);
}

.button-ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}
.button-ghost:hover:not(:disabled) {
  background: var(--primary-soft);
}

.button-pill { border-radius: var(--radius-pill); padding: 0 22px; }
.button-icon { gap: 8px; display: inline-flex; align-items: center; justify-content: center; }

.auth-view { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr); grid-template-areas: "nav nav" "brand visual" "modules modules" "login login"; gap: 24px; align-items: center; padding: 0 7vw 44px; background: radial-gradient(circle at 66% 38%, rgba(255,255,255,0.94), rgba(255,255,255,0.58) 28%, transparent 48%), linear-gradient(135deg, #f2edff 0%, #fff6f6 54%, #efeaff 100%); color: #12091f; overflow: hidden; }
.auth-view::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 18%, rgba(84, 35, 155, 0.08) 18.2% 18.45%, transparent 18.7% 100%); pointer-events: none; }
.landing-nav { position: relative; z-index: 3; grid-area: nav; min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 22px; margin: 0 -7vw 24px; padding: 0 8.5vw; border-bottom: 0; background: transparent; }
.landing-brand { display: flex; align-items: center; gap: 10px; color: #12091f; font-size: 1.82rem; font-weight: 950; letter-spacing: -0.03em; }
.landing-nav nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 28px; }
.landing-nav a { color: #2b1c43; text-decoration: none; font-weight: 850; font-size: 0.96rem; white-space: nowrap; }
.landing-nav a:hover { color: #7b2ff7; }
.landing-nav .nav-access { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(123, 47, 247, 0.18); border-radius: 999px; background: rgba(255,255,255,0.62); padding: 0 18px; box-shadow: 0 8px 18px rgba(38, 18, 73, 0.06); }
.landing-nav .nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #12091f 0%, #2b1c43 100%);
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 16px 26px rgba(18, 9, 31, 0.22);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.landing-nav .nav-cta:hover {
  background: linear-gradient(135deg, #4f169f 0%, #7b2ff7 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(123, 47, 247, 0.38);
}
.landing-nav .nav-access {
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.landing-nav .nav-access:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(38, 18, 73, 0.12);
}
.auth-brand { position: relative; z-index: 2; grid-area: brand; max-width: 760px; padding: 22px 0 30px; }
.auth-brand h1 { max-width: 640px; margin-bottom: 18px; color: #08020f; font-size: clamp(1.85rem, 4.2vw, 4.65rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; text-shadow: 0 8px 20px rgba(51, 31, 76, 0.1); }
.auth-brand p:not(.eyebrow) { max-width: 610px; color: #3c2d50; font-size: 1.06rem; line-height: 1.55; }
.auth-brand p strong { font-weight: 950; color: #160b2a; }
.eyebrow { margin-bottom: 12px; color: #7b2ff7; font-size: 0.76rem; font-weight: 950; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-primary {
  min-width: 240px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 999px;
  padding: 0 28px;
  background: linear-gradient(135deg, #7b2ff7 0%, #9747ff 50%, #7b2ff7 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 22px 38px rgba(123, 47, 247, 0.32), 0 8px 16px rgba(123, 47, 247, 0.20);
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background-position var(--duration-slow) var(--ease-out);
}
.hero-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 28px 52px rgba(123, 47, 247, 0.42), 0 12px 24px rgba(123, 47, 247, 0.26);
}
.hero-primary:active { transform: translateY(0) scale(1); }
.hero-primary span { font-size: 1.9rem; line-height: 1; }
.hero-secondary { display: none; }
.trust-grid { display: none; }
.hero-visual { position: relative; z-index: 1; grid-area: visual; min-height: 430px; overflow: visible; transform: scale(0.86); transform-origin: center; }
.abstract-scene { display: grid; place-items: center; }
.abstract-scene::before { content: ""; position: absolute; inset: 4% -8% 0 0; border-radius: 44% 56% 48% 52%; background: radial-gradient(circle at 54% 48%, rgba(255,255,255,0.86), rgba(255,255,255,0.38) 35%, rgba(162,131,211,0.22) 63%, transparent 72%); filter: blur(1px); transform: rotate(-8deg); }
.portal-ring { position: relative; width: min(410px, 68vw); aspect-ratio: 0.68; transform: rotate(-8deg); }
.ring-edge { position: absolute; inset: 0; border-radius: 46% 54% 48% 52%; background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(192,178,222,0.4) 44%, rgba(126,93,180,0.22)); box-shadow: inset -28px -20px 48px rgba(75, 43, 119, 0.16), inset 24px 18px 34px rgba(255,255,255,0.9), 0 44px 80px rgba(56, 35, 92, 0.13); }
.ring-edge::before { content: ""; position: absolute; inset: 18% 22%; border-radius: 48% 52% 42% 58%; background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(250,244,255,0.72)); box-shadow: inset 16px 18px 36px rgba(98,72,137,0.11); }
.ring-glow { position: absolute; right: 17%; bottom: 18%; width: 28px; height: 54px; border-radius: 999px; background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0)); filter: blur(3px); opacity: 0.78; transform: rotate(28deg); }
.floating-token { position: absolute; right: 30%; bottom: 25%; width: 58px; aspect-ratio: 0.74; border-radius: 48% 52% 50% 50%; background: linear-gradient(135deg, #f5c85a, #d9901d); box-shadow: 0 22px 18px rgba(87, 55, 18, 0.18), inset 8px 10px 16px rgba(255,255,255,0.36), inset -8px -10px 18px rgba(91,51,8,0.16); animation: tokenOrbit 7s ease-in-out infinite; }
.floating-token span { position: absolute; inset: 12px 18px; border-radius: 999px; border-left: 2px solid rgba(255,255,255,0.46); transform: rotate(18deg); }
.mini-ledger { position: absolute; right: 7%; bottom: 16%; display: grid; gap: 4px; border: 1px solid rgba(123,47,247,0.14); border-radius: 18px; background: rgba(255,255,255,0.72); padding: 12px 16px; box-shadow: 0 18px 34px rgba(54, 30, 93, 0.11); backdrop-filter: blur(12px); }
.mini-ledger strong { color: #4f169f; font-size: 1.2rem; }
.mini-ledger span { color: #7a708a; font-size: 0.76rem; font-weight: 850; text-transform: uppercase; }
.orbit-line { position: absolute; height: 1px; background: rgba(82, 56, 125, 0.16); transform-origin: center; }
.orbit-one { width: 760px; left: -160px; top: 84px; transform: rotate(28deg); }
.orbit-two { width: 580px; right: -100px; bottom: 78px; transform: rotate(-18deg); }
.data-speck { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(79,22,159,0.32); }
.speck-one { left: 18%; bottom: 20%; }
.speck-two { right: 26%; top: 22%; }
.speck-three { right: 12%; bottom: 36%; }
@keyframes tokenOrbit {
  0%, 100% { transform: translate(0, 0) rotate(-18deg); }
  24% { transform: translate(-34px, -122px) rotate(12deg); }
  50% { transform: translate(-145px, -68px) rotate(32deg); }
  76% { transform: translate(-84px, 58px) rotate(-6deg); }
}
.finance-scene { display: grid; place-items: center; perspective: 1100px; }
.finance-scene::before { content: ""; position: absolute; width: min(620px, 90vw); height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(8, 166, 223, 0.1), rgba(8, 166, 223, 0)); transform: translate(-4px, 96px) rotate(-10deg); }
.phone-mockup { position: relative; width: min(355px, 62vw); aspect-ratio: 0.54; min-height: 0; transform: rotateX(58deg) rotateZ(-48deg) translate(-4px, -4px); transform-style: preserve-3d; filter: drop-shadow(28px 42px 28px rgba(7, 17, 31, 0.2)); }
.phone-shell { position: absolute; inset: 0; border: 10px solid #080b10; border-radius: 44px; background: #080b10; box-shadow: inset 0 0 0 2px #29313b, 18px 22px 0 rgba(7, 17, 31, 0.1); overflow: hidden; }
.phone-shell::after { content: ""; position: absolute; right: -8px; top: 35%; width: 4px; height: 92px; border-radius: 8px; background: #2c343d; }
.phone-speaker { position: absolute; z-index: 3; right: 44px; top: 16px; width: 96px; height: 24px; border-radius: 999px; background: #05070a; transform: none; }
.phone-screen { position: absolute; inset: 7px; display: grid; align-content: start; gap: 12px; border-radius: 34px; background: linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%); padding: 32px 18px 18px; overflow: hidden; }
.phone-topline { display: flex; justify-content: space-between; align-items: center; color: #102445; font-size: 0.74rem; font-weight: 900; }
.phone-topline span { width: 22px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #7b2ff7 3px, transparent 3px 6px, #7b2ff7 6px 9px, transparent 9px 12px, #7b2ff7 12px 15px); }
.phone-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.phone-actions span { min-height: 58px; display: grid; place-items: center; border-radius: 12px; background: #7b2ff7; color: #fff; font-size: 0.64rem; font-weight: 950; box-shadow: 0 8px 18px rgba(123, 47, 247, 0.22); }
.phone-balance { border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; padding: 13px 14px; box-shadow: 0 10px 22px rgba(16, 36, 69, 0.06); }
.phone-balance span { display: block; color: #728099; font-size: 0.66rem; font-weight: 850; }
.phone-balance strong { display: block; margin-top: 4px; color: #6a20d8; font-size: 1.2rem; line-height: 1; }
.phone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.phone-grid span { aspect-ratio: 1.35; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; box-shadow: 0 8px 16px rgba(16, 36, 69, 0.05); }
.phone-grid span::before { content: ""; display: block; width: 20px; height: 20px; margin: 13px auto 0; border-radius: 7px; background: #edf4ff; box-shadow: inset 0 0 0 2px #9bb6ff; }
.phone-chart { display: grid; grid-template-columns: 0.8fr 1.2fr 0.95fr; align-items: end; gap: 8px; height: 72px; border-radius: 15px; background: #fff; padding: 14px; }
.phone-chart span { border-radius: 999px 999px 4px 4px; background: #12c987; }
.phone-chart span:nth-child(1) { height: 36%; }
.phone-chart span:nth-child(2) { height: 82%; background: #7b2ff7; }
.phone-chart span:nth-child(3) { height: 58%; background: #f5b21b; }
.phone-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.phone-tabs span, .phone-tabs strong { min-height: 34px; display: grid; place-items: center; border-radius: 999px; font-size: 0.64rem; font-weight: 950; }
.phone-tabs span { border: 1px solid #eadcff; color: #7b2ff7; background: #fff; }
.phone-tabs strong { color: #fff; background: #7b2ff7; }
.pay-card { position: absolute; z-index: 4; right: 2px; bottom: 18px; width: min(360px, 62vw); aspect-ratio: 1.58; min-height: 0; display: grid; align-content: space-between; border-radius: 18px; background: linear-gradient(135deg, #32105f 0%, #7b2ff7 52%, #4f169f 100%); color: #fff; padding: 28px; box-shadow: 0 34px 46px rgba(66, 25, 122, 0.26); transform: rotate(10deg); }
.pay-card::before { content: ""; position: absolute; inset: 1px; border-radius: 17px; border: 1px solid rgba(255,255,255,0.22); pointer-events: none; }
.card-chip { width: 50px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, #f7d26f, #b88920); box-shadow: inset 0 0 0 1px rgba(82, 54, 0, 0.2); }
.card-chip::after { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent 48%, rgba(82,54,0,0.28) 49% 51%, transparent 52%), linear-gradient(0deg, transparent 48%, rgba(82,54,0,0.22) 49% 51%, transparent 52%); }
.card-mark { position: absolute; left: 74px; bottom: 48px; display: flex; align-items: center; gap: 12px; font-size: 2rem; font-weight: 950; letter-spacing: -0.04em; }
.card-mark strong::before { content: ""; position: absolute; left: -40px; top: 8px; width: 32px; height: 22px; border-radius: 50% 10% 50% 10%; background: rgba(255,255,255,0.96); transform: rotate(-22deg); }
.card-mark .brand-lock { background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.card-mark .brand-lock::before { color: #fff; }
.card-network { position: absolute; right: 26px; bottom: 24px; width: 70px; height: 42px; }
.card-network span { position: absolute; top: 4px; width: 38px; height: 38px; border-radius: 50%; opacity: 0.92; }
.card-network span:first-child { left: 0; background: #ff2b1f; }
.card-network span:last-child { right: 0; background: #ffba27; }
.brand-lock { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #4f169f, #b85cff); margin-bottom: 28px; color: #12091f; font-weight: 950; font-size: 2rem; letter-spacing: -0.08em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.34), 0 12px 24px rgba(123,47,247,0.18); transform: rotate(45deg); }
.brand-lock.small { width: 42px; height: 42px; margin-bottom: 0; flex: 0 0 auto; font-size: 1.45rem; }
.brand-lock span { display: none; }
.brand-lock::before { content: "P"; position: absolute; left: 50%; top: 50%; transform: translate(-56%, -47%) rotate(-45deg); color: #fff; font-weight: 950; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.brand-lock::after { content: none; }
.brand-lock.small::after { content: none; }
.landing-modules { position: relative; z-index: 2; grid-area: modules; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-self: start; margin-top: -12px; }
.landing-modules article { min-height: 118px; border: 1px solid #e0d2f6; border-radius: 8px; background: rgba(255,255,255,0.86); padding: 16px; box-shadow: 0 14px 28px rgba(38, 18, 73, 0.06); }
.landing-modules span { color: #7b2ff7; font-size: 0.72rem; font-weight: 950; text-transform: uppercase; }
.landing-modules strong { display: block; margin-top: 8px; color: #12091f; font-size: 1.02rem; }
.landing-modules p { margin: 9px 0 0; color: #5e536f; font-size: 0.86rem; line-height: 1.5; }
.auth-card { grid-area: login; display: none; }
.auth-view.auth-page-mode { min-height: 100vh; grid-template-columns: 1fr; grid-template-areas: "login"; place-items: center; padding: 36px 18px; background: radial-gradient(circle at 18% 46%, rgba(123,47,247,0.14), transparent 30%), linear-gradient(135deg, #f2edff 0%, #ffffff 38%, #fff8fb 100%); overflow: hidden; }
.auth-view.auth-page-mode::before, .auth-view.auth-page-mode::after { content: ""; position: fixed; pointer-events: none; border: 1px solid rgba(123,47,247,0.22); transform: rotate(45deg); }
.auth-view.auth-page-mode::before { width: 620px; height: 620px; left: -190px; top: 92px; border-radius: 46%; }
.auth-view.auth-page-mode::after { width: 520px; height: 520px; right: -120px; top: -210px; }
.auth-page-mode .landing-nav, .auth-page-mode .auth-brand, .auth-page-mode .hero-visual, .auth-page-mode .landing-modules, .auth-page-mode .landing-faq, .auth-page-mode .landing-footer { display: none; }
.auth-page-mode .auth-card { position: relative; z-index: 1; width: min(574px, 100%); min-height: 584px; display: grid; align-content: start; gap: 16px; border: 1px solid #e7edf3; border-radius: 14px; background: rgba(255,255,255,0.98); color: var(--ink); padding: 42px 48px 32px; box-shadow: 0 18px 44px rgba(7, 17, 31, 0.11); }
.auth-card-brand { display: flex; align-items: center; justify-content: center; gap: 12px; color: #4f169f; font-size: 2.05rem; font-weight: 950; letter-spacing: -0.03em; margin-bottom: 12px; }
.auth-back { position: absolute; left: 18px; top: 16px; min-height: auto; border-radius: 999px; background: transparent; color: #7c8998; padding: 6px 8px; font-size: 0.82rem; font-weight: 850; }
.auth-back:hover { color: #7b2ff7; background: #f2ebff; }
.auth-page-mode .auth-tabs { width: 100%; max-width: 340px; justify-self: center; margin-bottom: 4px; }
.auth-page-mode .auth-form h2 { margin: 2px 0 4px; color: #111827; text-align: center; font-size: 1.72rem; font-weight: 780; }
.auth-subtitle { margin: 0 0 18px; color: #8a95a3; text-align: center; font-size: 0.96rem; }
.auth-page-mode .auth-form label { gap: 0; color: transparent; font-size: 0; }
.auth-page-mode .auth-form input { min-height: 42px; border-color: #d7dde5; border-radius: 8px; padding: 12px 16px; color: #26364d; font-size: 1rem; }
.auth-page-mode .auth-form input::placeholder { color: #52627a; }
.forgot-link { min-height: auto; justify-self: end; margin-top: -6px; padding: 0; background: transparent; color: #008de0; text-decoration: none; font-size: 0.78rem; font-weight: 850; }
.forgot-link:hover { text-decoration: underline; }
.auth-page-mode .auth-form .button-primary { min-height: 40px; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 7px; background: #7b2ff7; box-shadow: none; font-size: 1rem; }
.auth-page-mode .auth-form .button-primary span { font-size: 1.7rem; line-height: 0; }
.auth-page-mode .button-secondary { background: transparent; color: #7b2ff7; border: 1px solid #7b2ff7; }
.auth-page-mode .api-config, .auth-page-mode .lead-form { display: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 8px; background: var(--soft); }
.auth-tabs button { background: transparent; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 8px 18px rgba(17, 28, 24, 0.08); }
.auth-form, .api-config { display: grid; gap: 14px; }
.lead-form { border-top: 1px solid var(--line); padding-top: 18px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 292px minmax(0, 1fr); }
.app-shell.setup-shell { background: #fff; }
.setup-shell .workspace { gap: 0; padding-top: 0; background: #fff; }
.setup-shell .topbar { display: none; }
.setup-shell .sidebar { background: #fff; color: #314257; border-right: 1px solid #e7edf3; box-shadow: none; }
.setup-shell .brand span, .setup-shell .connection-panel label { color: #6f7f91; }
.setup-shell .nav-link { color: #42536b; }
.setup-shell .nav-link.active, .setup-shell .nav-link:hover { background: #f2ebff; color: #7b2ff7; }
.setup-shell .connection-panel { border-top-color: #e7edf3; }
.setup-shell .connection-panel input { border-color: #d7dde5; background: #f8fafc; color: #26364d; }

.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; background: var(--rail); color: #f7fbf8; padding: 22px 18px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong, .brand span { display: block; }
.brand span { color: #adc1b7; font-size: 0.8rem; }
.nav-list { display: grid; gap: 6px; }
.nav-category { width: 100%; min-height: 34px; justify-content: flex-start; margin: 12px 0 2px; border-top: 1px solid rgba(255,255,255,0.11); border-radius: 0; background: transparent; color: #a887ff; padding: 12px 4px 4px; font-size: 0.68rem; font-weight: 950; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.nav-category:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.nav-category:hover { color: #fff; }
.nav-link { width: 100%; min-height: 38px; justify-content: flex-start; background: transparent; color: #cbd8d0; text-align: left; padding: 8px 10px; }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,0.09); color: #fff; }
.connection-panel { margin-top: auto; display: grid; gap: 12px; border-top: 1px solid rgba(255,255,255,0.13); padding-top: 18px; }
.connection-panel label { color: #d7e5de; }
.connection-panel input { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: #fff; }
.workspace { display: grid; gap: 20px; padding: 28px; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.topbar h1 { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 4vw, 3.6rem); }
.health-card, .metric, .panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.health-card { min-width: 245px; display: flex; gap: 12px; align-items: center; padding: 14px; }
.health-card strong, .health-card span { display: block; }
.health-card span { color: var(--muted); font-size: 0.82rem; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: #15803d; box-shadow: 0 0 0 5px rgba(21,128,61,0.12); }
.status-dot.muted { background: var(--muted); }
.status-dot.error { background: var(--danger); box-shadow: 0 0 0 5px rgba(180,35,24,0.12); }
.view-stack { display: grid; gap: 18px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { position: relative; overflow: hidden; padding: 18px; }
.metric::after { content: ""; position: absolute; right: 0; bottom: 0; width: 54px; height: 5px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.metric span { color: var(--muted); font-size: 0.82rem; font-weight: 850; }
.metric strong { display: block; margin-top: 8px; font-size: 1.55rem; }
.panel { display: grid; gap: 18px; padding: 18px; }
.primary-panel { border-color: rgba(8, 127, 91, 0.22); }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr); gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: 1 / -1; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.limits-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
.fee-simulator-result { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; border: 1px solid rgba(123,47,247,0.18); border-radius: 8px; background: #fbf9ff; padding: 16px; }
.fee-simulator-result span { color: var(--muted); font-size: 0.84rem; font-weight: 850; }
.fee-simulator-result strong { color: var(--ink); font-size: 1.2rem; text-align: right; }
.webhook-grid { grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); }
.api-keys-grid { grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr); }
.api-key-secret { display: grid; gap: 10px; border: 1px solid rgba(123,47,247,0.28); border-radius: 8px; background: #fbf9ff; padding: 14px; }
.api-key-secret code { display: block; max-width: 100%; overflow: auto; border-radius: 8px; background: #140722; color: #efe5ff; padding: 12px; font-size: 0.78rem; white-space: nowrap; }
.webhook-switch-row, .webhook-events { display: grid; gap: 10px; }
.webhook-switch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.webhook-switch-row label, .webhook-events label { min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9ff; color: #3c2d50; padding: 10px 12px; font-weight: 850; }
.webhook-switch-row input, .webhook-events input { width: 16px; height: 16px; accent-color: var(--primary); }
.webhook-events strong, .webhook-help strong { color: var(--ink); }
.webhook-help { display: grid; gap: 8px; border: 1px dashed rgba(123,47,247,0.28); border-radius: 8px; background: #fbf9ff; padding: 14px; }
.record-list { display: grid; gap: 10px; max-height: 540px; overflow: auto; }
.statement-list { max-height: 680px; }
.record-card { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfb; padding: 12px; }
.record-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mono { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.78rem; word-break: break-all; }
.badge { border-radius: 999px; background: var(--soft); color: var(--muted); padding: 4px 10px; font-size: 0.74rem; font-weight: 950; }
.badge.approved, .badge.captured, .badge.refunded, .badge.partially_refunded { background: var(--primary-soft); color: var(--primary-dark); }
.badge.pending, .badge.authorized, .badge.submitted, .badge.in_review, .badge.needs_more_info { background: var(--gold-soft); color: #8a5b09; }
.badge.failed, .badge.canceled, .badge.rejected, .badge.suspended { background: var(--danger-soft); color: var(--danger); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; border-radius: 8px; background: var(--rail); color: #fff; padding: 12px 14px; box-shadow: var(--shadow); z-index: 20; }
.setup-view { gap: 28px; }
.setup-titlebar { position: relative; display: flex; justify-content: center; align-items: center; min-height: 54px; border-bottom: 3px solid #9d6bff; }
.setup-titlebar h1 { margin: 0; color: #152234; font-size: 1.45rem; font-weight: 850; }
.setup-titlebar .button-secondary { position: absolute; right: 0; min-height: 36px; }
.setup-progress { display: flex; align-items: center; gap: 0; max-width: 420px; margin-left: 14px; }
.setup-step { position: relative; min-height: auto; display: grid; justify-items: center; gap: 8px; min-width: 104px; padding: 0; background: transparent; color: #152234; font-size: 0.78rem; }
.setup-step:not(:last-child)::after { content: ""; position: absolute; left: 66px; top: 24px; width: 82px; height: 2px; background: #dedede; }
.setup-step span { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #dcdfe3; border-radius: 999px; background: #fff; color: #7b2ff7; font-weight: 950; }
.setup-step.active span { border-color: #7b2ff7; background: #7b2ff7; color: #fff; box-shadow: 0 10px 24px rgba(123, 47, 247, 0.24); }
.setup-step strong { font-weight: 800; }
.setup-step.active strong { color: #7b2ff7; }
.setup-panel { display: grid; gap: 24px; border: 1px solid #e6eaee; border-radius: 8px; background: #fff; padding: 28px 16px 24px; box-shadow: 0 8px 22px rgba(7, 17, 31, 0.05); }
.setup-section-heading h2, .setup-panel > h2 { margin: 0; color: #030913; font-size: 1rem; font-weight: 900; }
.setup-section-heading p { margin: 8px 0 0; color: #66758a; font-size: 0.88rem; }
.radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #33445c; font-size: 0.88rem; }
.radio-row span { font-weight: 850; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; color: #33445c; font-size: 0.88rem; font-weight: 750; }
.radio-row input { width: 16px; height: 16px; accent-color: #7b2ff7; }
.setup-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.setup-form-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-form-grid label { color: #42536b; font-size: 0.78rem; }
.setup-form-grid input { min-height: 44px; border: 0; background: #eaf1f6; color: #3e526d; }
.span-3 { grid-column: 1 / -1; }
.setup-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.setup-actions .button-primary { min-width: 200px; min-height: 40px; background: #7b2ff7; box-shadow: 0 12px 26px rgba(123, 47, 247, 0.2); }
.metrics-grid-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.command-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.command-button { min-height: 92px; display: grid; align-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 12px 28px rgba(17, 28, 24, 0.08); }
.command-button:hover { border-color: rgba(8, 127, 91, 0.36); background: #f8fcfa; transform: translateY(-1px); }
.command-button span { color: var(--primary-dark); font-size: 0.9rem; font-weight: 950; }
.command-button strong { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr); gap: 18px; align-items: start; }
.compact-list { max-height: none; }
.compact-list .record-card { background: #fff; }
.compact-list .record-card:first-child { border-color: rgba(8, 127, 91, 0.24); background: #f8fcfa; }
.badge.financeiro, .badge.ledger, .badge.saldo, .badge.repasses, .badge.chargeback, .badge.controle, .badge.seguranca { background: var(--soft); color: var(--ink); }
.badge.seguranca { background: #e9f0ff; color: #24447a; }
.badge.financeiro, .badge.ledger, .badge.saldo { background: var(--primary-soft); color: var(--primary-dark); }
.badge.chargeback { background: var(--danger-soft); color: var(--danger); }
.badge.repasses, .badge.controle { background: var(--gold-soft); color: #8a5b09; }


.landing-stats, .landing-product-showcase, .landing-tech, .landing-audience, .landing-security, .landing-integrations, .landing-tools, .landing-pricing { grid-column: 1 / -1; }
.landing-stats { display: grid; gap: 20px; padding: 56px 0 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats-grid article { border-bottom: 1px solid #dbe8f1; padding: 0 0 18px; }
.stats-grid strong { display: block; color: #7b2ff7; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; }
.stats-grid span { display: block; margin-top: 10px; color: #4d5c73; font-weight: 850; }
.landing-product-showcase { display: grid; gap: 28px; padding: 56px 0 42px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.42) 48%, transparent); }
.product-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: 42px; align-items: center; min-height: 460px; border-top: 1px solid rgba(123,47,247,0.12); padding-top: 42px; }
.product-feature.reverse { grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr); }
.feature-copy { display: grid; justify-items: start; gap: 16px; padding: 10px 0; }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; background: #f0e7ff; color: #7b2ff7; font-size: 1.45rem; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(123,47,247,0.08); }
.feature-name { margin: 0; color: #2a1a43; font-size: 1.05rem; font-weight: 850; }
.feature-copy h2 { margin: 8px 0 0; max-width: 610px; color: #07111f; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.16; font-weight: 900; }
.feature-copy p:not(.feature-name) { max-width: 620px; margin: 0; color: #58687f; font-size: 1.12rem; line-height: 1.55; }
.feature-button { min-height: 56px; display: inline-flex; align-items: center; gap: 12px; border-radius: 8px; background: #7b2ff7; color: #fff; padding: 0 20px; text-decoration: none; box-shadow: 0 18px 32px rgba(123,47,247,0.22); }
.feature-button:hover { background: #4f169f; }
.feature-button span { font-size: 1.5rem; line-height: 1; }
.feature-art { position: relative; min-height: 430px; overflow: visible; }
.dashboard-perspective { perspective: 1200px; }
.dashboard-perspective::before { content: ""; position: absolute; left: 12%; top: 20%; width: 72%; height: 58%; border-radius: 50%; background: radial-gradient(circle, rgba(123,47,247,0.12), transparent 66%); filter: blur(2px); transform: rotate(-12deg); }
.dash-plane { position: absolute; left: 6%; top: 12%; width: 78%; height: 58%; display: grid; grid-template-columns: 86px 1fr; border: 1px solid rgba(123,47,247,0.22); border-radius: 12px; background: rgba(255,255,255,0.82); box-shadow: 0 34px 58px rgba(42,22,78,0.12); transform: rotateX(58deg) rotateZ(-18deg); transform-style: preserve-3d; overflow: hidden; }
.dash-plane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,0.52), transparent 48%); pointer-events: none; }
.dash-sidebar { display: grid; align-content: start; gap: 13px; border-right: 1px solid rgba(123,47,247,0.12); background: #fbf8ff; padding: 26px 18px; }
.dash-sidebar span { height: 8px; border-radius: 999px; background: #e1d2fb; }
.dash-sidebar span:nth-child(1) { width: 62%; background: #7b2ff7; }
.dash-sidebar span:nth-child(2) { width: 84%; }
.dash-sidebar span:nth-child(3) { width: 72%; }
.dash-sidebar span:nth-child(4) { width: 56%; }
.dash-main { display: grid; align-content: start; gap: 16px; padding: 24px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dash-top strong { color: #12091f; font-size: 1.1rem; }
.dash-top span { border-radius: 999px; background: #f0e7ff; color: #4f169f; padding: 8px 14px; font-weight: 950; }
.dash-chart { position: relative; height: 126px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; align-items: end; border: 1px solid #eadcff; border-radius: 12px; background: #fff; padding: 18px; }
.dash-chart i { display: block; border-radius: 999px 999px 4px 4px; background: linear-gradient(180deg, #b85cff, #7b2ff7); }
.dash-chart i:nth-child(1) { height: 42%; }
.dash-chart i:nth-child(2) { height: 64%; }
.dash-chart i:nth-child(3) { height: 88%; }
.dash-chart i:nth-child(4) { height: 55%; background: linear-gradient(180deg, #38d1b0, #11a784); }
.dash-chart i:nth-child(5) { height: 74%; }
.dash-chart b { position: absolute; left: 18px; right: 18px; top: 44%; height: 2px; background: linear-gradient(90deg, transparent, #7b2ff7, transparent); transform: rotate(-10deg); }
.dash-list { display: grid; gap: 9px; }
.dash-list span { height: 10px; border-radius: 999px; background: #eee6fb; }
.dash-list span:nth-child(2) { width: 72%; }
.dash-list span:nth-child(3) { width: 46%; background: #d9f6ee; }
.dash-card { position: absolute; right: 9%; bottom: 6%; width: 46%; min-height: 174px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 10px; border: 1px solid rgba(123,47,247,0.16); border-radius: 14px; background: rgba(255,255,255,0.92); padding: 24px 22px; box-shadow: 0 28px 46px rgba(42,22,78,0.14); transform: rotateX(48deg) rotateZ(-7deg); }
.dash-card span { border-radius: 999px 999px 5px 5px; background: linear-gradient(180deg, #c7a5ff, #7b2ff7); }
.dash-card span:nth-child(1) { height: 38%; }
.dash-card span:nth-child(2) { height: 74%; }
.dash-card span:nth-child(3) { height: 52%; }
.dash-card span:nth-child(4) { height: 86%; background: linear-gradient(180deg, #38d1b0, #11a784); }
.dash-card span:nth-child(5) { height: 64%; }
.instant-perspective { min-height: 430px; perspective: 1000px; }
.instant-perspective::before { content: ""; position: absolute; left: 18%; bottom: 18%; width: 68%; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(123,47,247,0.16), transparent 68%); filter: blur(6px); transform: rotate(-12deg); }
.pix-cube { position: absolute; left: 16%; top: 22%; width: 210px; height: 132px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-radius: 24px; background: linear-gradient(135deg, #7b2ff7, #4f169f); padding: 19px; box-shadow: 0 32px 42px rgba(79,22,159,0.22), inset 0 0 0 1px rgba(255,255,255,0.22); transform: rotateX(58deg) rotateZ(13deg); }
.pix-cube span { border-radius: 12px; background: rgba(255,255,255,0.92); }
.pix-cube span:nth-child(1), .pix-cube span:nth-child(4) { background: rgba(255,255,255,0.76); }
.transfer-lines span { position: absolute; left: 39%; top: 52%; width: 170px; height: 1px; background: #b85cff; transform-origin: left; }
.transfer-lines span:nth-child(1) { transform: rotate(34deg); }
.transfer-lines span:nth-child(2) { width: 210px; transform: rotate(14deg); }
.transfer-lines span:nth-child(3) { width: 150px; transform: rotate(52deg); }
.transfer-lines span::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #7b2ff7; }
.balance-slip { position: absolute; right: 5%; bottom: 9%; width: min(390px, 72%); min-height: 104px; display: grid; gap: 6px; border: 1px solid rgba(123,47,247,0.28); border-radius: 13px; background: rgba(255,255,255,0.94); padding: 18px 72px 18px 22px; box-shadow: 0 30px 50px rgba(42,22,78,0.12); transform: rotateX(58deg) rotateZ(-12deg); }
.balance-slip small { color: #8b7ba4; font-weight: 850; }
.balance-slip strong { color: #7b2ff7; font-size: clamp(1.4rem, 3vw, 2.35rem); }
.balance-slip i { position: absolute; right: 22px; top: 26px; width: 36px; height: 36px; border-radius: 999px; border: 7px solid #7b2ff7; }
.landing-tech, .landing-integrations { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 38px; align-items: center; padding: 74px 0; }
.landing-tech { align-items: start; }
.section-copy h2, .landing-audience h2, .landing-security h2, .landing-pricing h2 { margin: 0; color: #07111f; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; font-weight: 720; letter-spacing: -0.02em; }
.section-copy p:not(.eyebrow), .landing-pricing p { color: #506078; font-size: 1.05rem; line-height: 1.7; }
.product-art { position: relative; min-height: 410px; border: 1px solid #e0d2f6; border-radius: 12px; background: linear-gradient(135deg, #ffffff 0%, #f6f0ff 54%, #fff8fb 100%); box-shadow: 0 24px 54px rgba(38,18,73,0.09); overflow: hidden; }
.product-art::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(123,47,247,0.1); border-radius: 22px; transform: rotate(-7deg); }
.art-window { position: absolute; left: 34px; top: 32px; display: flex; gap: 7px; }
.art-window span { width: 8px; height: 8px; border-radius: 999px; background: #7b2ff7; opacity: 0.56; }
.ledger-screen { position: absolute; left: 8%; top: 18%; width: 74%; min-height: 250px; border: 1px solid rgba(123,47,247,0.18); border-radius: 18px; background: rgba(255,255,255,0.86); padding: 22px; box-shadow: 0 28px 42px rgba(62, 27, 118, 0.13); transform: rotate(-4deg); }
.ledger-top span, .ledger-top strong { display: block; }
.ledger-top span { color: #6f6681; font-size: 0.82rem; font-weight: 850; text-transform: uppercase; }
.ledger-top strong { margin-top: 8px; color: #4f169f; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1; }
.ledger-bars { height: 118px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; align-items: end; margin-top: 24px; padding: 14px; border-radius: 14px; background: #f8f4ff; }
.ledger-bars span { border-radius: 999px 999px 5px 5px; background: linear-gradient(180deg, #7b2ff7, #4f169f); }
.ledger-bars span:nth-child(1) { height: 44%; }
.ledger-bars span:nth-child(2) { height: 72%; background: linear-gradient(180deg, #17c694, #0f8f72); }
.ledger-bars span:nth-child(3) { height: 92%; }
.ledger-bars span:nth-child(4) { height: 58%; background: linear-gradient(180deg, #f2bd4b, #d9901d); }
.ledger-lines { display: grid; gap: 9px; margin-top: 18px; }
.ledger-lines span { height: 10px; border-radius: 999px; background: #eadcff; }
.ledger-lines span:nth-child(2) { width: 74%; }
.ledger-lines span:nth-child(3) { width: 52%; background: #d7f5ea; }
.floating-receipt { position: absolute; right: 28px; bottom: 42px; min-width: 150px; display: grid; gap: 6px; border: 1px solid rgba(123,47,247,0.18); border-radius: 14px; background: #fff; padding: 15px 17px; box-shadow: 0 22px 34px rgba(38,18,73,0.13); transform: rotate(7deg); }
.floating-receipt span { color: #7b2ff7; font-size: 0.74rem; font-weight: 950; }
.floating-receipt strong { color: #12091f; font-size: 1rem; }
.tech-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-tech .tech-card-grid { grid-column: 1 / -1; }
.tech-card-grid article, .audience-grid article, .tools-grid article { border: 1px solid #e7edf3; border-radius: 8px; background: #fff; padding: 20px; box-shadow: 0 18px 38px rgba(7,17,31,0.06); }
.tech-card-grid article { position: relative; min-height: 132px; overflow: hidden; padding-right: 112px; }
.tech-card-grid article::before { content: ""; position: absolute; right: 22px; top: 22px; width: 58px; height: 58px; border-radius: 16px; background: #f0e7ff; box-shadow: inset 0 0 0 1px rgba(123,47,247,0.1), 0 16px 24px rgba(79,22,159,0.08); }
.tech-card-grid article::after { content: ""; position: absolute; right: 38px; top: 38px; width: 26px; height: 26px; border-radius: 8px; background: #7b2ff7; box-shadow: 0 0 0 7px rgba(123,47,247,0.08); }
.tech-card-grid article:nth-child(1)::after { border-radius: 7px; background: linear-gradient(90deg, transparent 0 32%, #7b2ff7 32% 45%, transparent 45% 55%, #7b2ff7 55% 68%, transparent 68%), linear-gradient(180deg, transparent 0 32%, #7b2ff7 32% 45%, transparent 45% 55%, #7b2ff7 55% 68%, transparent 68%); box-shadow: none; }
.tech-card-grid article:nth-child(2)::after { border-radius: 50% 12% 50% 12%; background: #7b2ff7; transform: rotate(45deg); box-shadow: 14px 0 0 rgba(184,92,255,0.55), 0 14px 0 rgba(79,22,159,0.44); }
.tech-card-grid article:nth-child(3)::after { width: 34px; height: 22px; border-radius: 7px; background: linear-gradient(180deg, #7b2ff7 0 34%, transparent 34% 47%, #7b2ff7 47% 63%, transparent 63% 76%, #7b2ff7 76%); box-shadow: none; }
.tech-card-grid article:nth-child(4)::after { width: 30px; height: 34px; border-radius: 16px 16px 18px 18px; background: linear-gradient(135deg, #7b2ff7, #4f169f); box-shadow: inset 0 0 0 6px rgba(255,255,255,0.26); }
.tech-card-grid span { color: #7b2ff7; font-weight: 950; text-transform: uppercase; font-size: 0.75rem; }
.tech-card-grid h3, .tools-grid h3 { margin: 10px 0 8px; color: #07111f; }
.tech-card-grid p, .tools-grid p { margin: 0; color: #506078; line-height: 1.55; }
.landing-audience { position: relative; display: grid; gap: 22px; padding: 76px 0 70px; overflow: hidden; }
.landing-audience::before { content: ""; position: absolute; right: 5%; top: 18px; width: 360px; height: 180px; border: 1px solid rgba(123,47,247,0.14); border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(240,231,255,0.42)); box-shadow: 0 24px 52px rgba(79,22,159,0.08); transform: rotateX(58deg) rotateZ(-13deg); pointer-events: none; }
.landing-audience::after { content: ""; position: absolute; right: 18%; top: 68px; width: 220px; height: 2px; background: linear-gradient(90deg, transparent, rgba(123,47,247,0.44), transparent); transform: rotate(-9deg); pointer-events: none; }
.landing-audience > .eyebrow, .landing-audience > h2, .audience-grid { position: relative; z-index: 1; }
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.audience-grid article { position: relative; min-height: 126px; overflow: hidden; padding-top: 58px; }
.audience-grid article::before { content: ""; position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 9px; background: #f0e7ff; box-shadow: inset 0 0 0 1px rgba(123,47,247,0.1); }
.audience-grid article::after { content: ""; position: absolute; left: 30px; top: 28px; width: 10px; height: 10px; border-radius: 999px; background: #7b2ff7; box-shadow: 14px 0 0 #b85cff, 7px 13px 0 #4f169f; }
.audience-grid article:nth-child(2)::after { width: 24px; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #7b2ff7 0 28%, transparent 28% 38%, #b85cff 38% 66%, transparent 66% 76%, #4f169f 76%); box-shadow: 0 12px 0 rgba(123,47,247,0.28); }
.audience-grid article:nth-child(3)::after { width: 24px; height: 18px; border-radius: 999px 999px 5px 5px; background: #7b2ff7; box-shadow: 0 -9px 0 -3px #b85cff; }
.audience-grid article:nth-child(4)::after { width: 28px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, #7b2ff7 0 44%, #fff 44% 52%, #b85cff 52%); box-shadow: none; }
.audience-grid strong, .audience-grid span { display: block; }
.audience-grid strong { color: #07111f; font-size: 1.02rem; }
.audience-grid span { margin-top: 10px; color: #506078; line-height: 1.5; }
.landing-security { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; border-radius: 10px; background: #f2ebff; padding: 42px; }
.security-wrap { display: grid; gap: 22px; }
.security-art { position: relative; min-height: 210px; border: 1px solid rgba(123,47,247,0.18); border-radius: 12px; background: linear-gradient(135deg, #fff, #f7f0ff); overflow: hidden; }
.shield-mark { position: absolute; left: 36px; top: 34px; width: 118px; height: 138px; border-radius: 60px 60px 72px 72px; background: linear-gradient(135deg, #7b2ff7, #4f169f); box-shadow: 0 24px 34px rgba(75,22,159,0.2); }
.shield-mark::before { content: ""; position: absolute; left: 50%; top: 16px; width: 50px; height: 76px; border: 8px solid rgba(255,255,255,0.92); border-top: 0; border-left: 0; transform: translateX(-50%) rotate(42deg); }
.shield-mark span { position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,0.3); border-radius: inherit; }
.security-panel { position: absolute; right: 32px; top: 44px; width: min(260px, 48%); display: grid; gap: 13px; border: 1px solid #eadcff; border-radius: 14px; background: rgba(255,255,255,0.82); padding: 18px; box-shadow: 0 18px 28px rgba(62, 27, 118, 0.09); }
.security-panel span { height: 13px; border-radius: 999px; background: #eadcff; }
.security-panel span:nth-child(1) { width: 86%; background: #d7f5ea; }
.security-panel span:nth-child(2) { width: 100%; }
.security-panel span:nth-child(3) { width: 64%; background: #fff4d8; }
.landing-security ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.landing-security li { position: relative; padding-left: 28px; color: #283950; font-weight: 820; }
.landing-security li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #7b2ff7; box-shadow: 0 0 0 5px rgba(123,47,247,0.12); }
.integration-cloud { min-height: 280px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; border: 1px solid #e0d2f6; border-radius: 12px; background: linear-gradient(135deg, #fff, #f2ebff); padding: 24px; }
.integration-cloud span { min-width: 112px; min-height: 54px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #4f169f; font-weight: 950; box-shadow: 0 14px 28px rgba(38,18,73,0.07); }
.integration-map { position: relative; min-height: 360px; border: 1px solid #e0d2f6; border-radius: 12px; background: linear-gradient(135deg, #fff, #f2ebff 64%, #fff8fb); overflow: hidden; box-shadow: 0 22px 48px rgba(38,18,73,0.08); }
.map-center { position: absolute; left: 50%; top: 50%; width: 176px; min-height: 72px; display: grid; place-items: center; border-radius: 16px; background: #12091f; color: #fff; font-size: 1.1rem; font-weight: 950; transform: translate(-50%, -50%); box-shadow: 0 24px 34px rgba(18,9,31,0.2); }
.map-node { position: absolute; min-width: 112px; min-height: 52px; display: grid; place-items: center; border: 1px solid rgba(123,47,247,0.14); border-radius: 12px; background: rgba(255,255,255,0.92); color: #4f169f; font-weight: 950; box-shadow: 0 14px 28px rgba(38,18,73,0.08); }
.node-shop { left: 8%; top: 16%; }
.node-erp { right: 10%; top: 18%; }
.node-crm { left: 13%; bottom: 19%; }
.node-webhook { right: 11%; bottom: 18%; }
.node-pix { left: 42%; top: 8%; color: #0f8f72; }
.node-bi { left: 43%; bottom: 8%; color: #8a5b09; }
.map-line { position: absolute; left: 50%; top: 50%; width: 70%; height: 1px; background: rgba(123,47,247,0.18); transform-origin: center; }
.line-a { transform: translate(-50%, -50%) rotate(25deg); }
.line-b { transform: translate(-50%, -50%) rotate(-28deg); }
.line-c { transform: translate(-50%, -50%) rotate(90deg); width: 54%; }
.landing-tools { display: grid; gap: 20px; padding: 64px 0; }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.landing-pricing { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #e7edf3; padding: 54px 0 70px; }
.landing-pricing > div { max-width: 780px; }
@media (max-width: 1060px) {
  .auth-view, .app-shell, .content-grid, .metrics-grid, .metrics-grid-wide, .command-strip, .dashboard-grid, .landing-modules, .stats-grid, .product-feature, .product-feature.reverse, .landing-tech, .landing-integrations, .tech-card-grid, .audience-grid, .landing-security, .tools-grid { grid-template-columns: 1fr; }
  .auth-view { grid-template-areas: "nav" "brand" "visual" "modules" "login"; padding: 0 22px 38px; }
  .landing-nav { margin: 0 -22px 20px; padding: 14px 22px; align-items: flex-start; flex-direction: column; }
  .landing-nav nav { gap: 10px; justify-content: flex-start; }
  .auth-brand h1 { font-size: 2.35rem; }
  .auth-brand p:not(.eyebrow) { font-size: 1.06rem; }
  .product-feature, .product-feature.reverse { gap: 24px; min-height: auto; }
  .product-feature.reverse .feature-copy { order: 2; }
  .product-feature.reverse .feature-art { order: 1; }
  .feature-art { min-height: 380px; }
  .dash-plane { left: 3%; width: 86%; }
  .dash-card { right: 3%; width: 50%; }
  .tech-card-grid article { padding-right: 96px; }
  .landing-audience::before { right: -70px; top: 38px; width: 300px; height: 140px; opacity: 0.7; }
  .hero-visual { min-height: 360px; transform: scale(0.88); }
  .portal-ring { width: min(360px, 76vw); }
  .mini-ledger { right: 12%; bottom: 18%; }
  .phone-mockup { width: min(330px, 62vw); transform: rotateX(58deg) rotateZ(-48deg) translate(-4px, -4px); }
  .pay-card { right: 50%; bottom: 24px; width: min(330px, 60vw); transform: translateX(58%) rotate(10deg); }
  .landing-pricing { align-items: stretch; flex-direction: column; }
  .landing-security { padding: 24px; }
  .sidebar { position: static; height: auto; }
}
@media (max-width: 700px) {
  .auth-view, .workspace, .sidebar { padding: 18px; }
  .form-grid, .topbar, .setup-form-grid, .setup-form-grid.three-cols { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .setup-titlebar { justify-content: flex-start; }
  .setup-titlebar .button-secondary { position: static; }
  .setup-progress { overflow-x: auto; margin-left: 0; }
  .span-2 { grid-column: auto; }
  .hero-visual { min-height: 280px; overflow: hidden; transform: scale(0.84); }
  .portal-ring { width: min(270px, 76vw); }
  .floating-token { right: 26%; bottom: 27%; width: 46px; }
  .mini-ledger { right: 8%; bottom: 12%; padding: 10px 12px; border-radius: 14px; }
  .mini-ledger strong { font-size: 0.94rem; }
  .orbit-one { width: 460px; left: -170px; top: 70px; }
  .orbit-two { width: 420px; right: -160px; bottom: 58px; }
  .landing-product-showcase { padding: 34px 0 24px; }
  .product-feature { padding-top: 30px; }
  .feature-copy h2 { font-size: 2rem; }
  .feature-copy p:not(.feature-name) { font-size: 1rem; }
  .tech-card-grid article { min-height: 122px; padding: 18px 84px 18px 18px; }
  .tech-card-grid article::before { right: 16px; top: 18px; width: 48px; height: 48px; border-radius: 13px; }
  .tech-card-grid article::after { right: 30px; top: 32px; transform: scale(0.82); transform-origin: center; }
  .tech-card-grid article:nth-child(2)::after { transform: rotate(45deg) scale(0.82); }
  .landing-audience { padding: 52px 0; }
  .landing-audience::before { right: -120px; top: 44px; width: 260px; height: 120px; opacity: 0.42; }
  .landing-audience::after { right: 4%; top: 82px; width: 150px; opacity: 0.48; }
  .audience-grid article { min-height: 116px; padding: 54px 16px 16px; }
  .feature-art { min-height: 300px; overflow: hidden; }
  .dash-plane { left: -4%; top: 10%; width: 96%; height: 58%; grid-template-columns: 58px 1fr; border-radius: 10px; }
  .dash-sidebar { gap: 9px; padding: 18px 12px; }
  .dash-main { gap: 11px; padding: 16px; }
  .dash-top { align-items: flex-start; flex-direction: column; gap: 7px; }
  .dash-top span { padding: 6px 10px; font-size: 0.74rem; }
  .dash-chart { height: 92px; gap: 8px; padding: 12px; }
  .dash-card { right: -2%; bottom: 6%; width: 58%; min-height: 118px; gap: 7px; padding: 16px 14px; }
  .pix-cube { left: 5%; top: 22%; width: 148px; height: 94px; border-radius: 18px; padding: 14px; }
  .transfer-lines span { left: 32%; top: 52%; width: 116px; }
  .transfer-lines span:nth-child(2) { width: 142px; }
  .transfer-lines span:nth-child(3) { width: 102px; }
  .balance-slip { right: -1%; bottom: 12%; width: 76%; min-height: 82px; padding: 14px 54px 14px 16px; }
  .balance-slip strong { font-size: 1.38rem; }
  .balance-slip i { right: 16px; top: 22px; width: 28px; height: 28px; border-width: 6px; }
  .product-art { min-height: 330px; }
  .ledger-screen { left: 7%; top: 20%; width: 82%; padding: 16px; }
  .ledger-bars { height: 88px; margin-top: 16px; }
  .floating-receipt { right: 14px; bottom: 18px; min-width: 126px; padding: 12px; }
  .security-art { min-height: 250px; }
  .shield-mark { left: 22px; top: 34px; width: 96px; height: 116px; }
  .security-panel { right: 16px; top: 56px; width: 48%; padding: 14px; }
  .integration-map { min-height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; }
  .map-line { display: none; }
  .map-center, .map-node { position: static; min-width: 0; width: 100%; transform: none; }
  .map-center { grid-column: 1 / -1; min-height: 58px; }
  .map-node { min-height: 48px; }
  .finance-scene::before { width: 430px; height: 220px; }
  .phone-mockup { width: min(245px, 62vw); transform: rotateX(58deg) rotateZ(-48deg) translate(-8px, -4px); }
  .phone-shell { border-width: 8px; border-radius: 34px; }
  .phone-speaker { right: 34px; width: 72px; height: 16px; top: 12px; }
  .phone-screen { inset: 6px; gap: 7px; border-radius: 27px; padding: 25px 11px 11px; }
  .phone-topline { font-size: 0.58rem; }
  .phone-actions { gap: 6px; }
  .phone-actions span { min-height: 38px; border-radius: 8px; font-size: 0.48rem; }
  .phone-balance { padding: 10px 11px; border-radius: 12px; }
  .phone-balance span { font-size: 0.52rem; }
  .phone-balance strong { font-size: 0.82rem; }
  .phone-grid { gap: 6px; }
  .phone-grid span { border-radius: 10px; }
  .phone-grid span::before { width: 13px; height: 13px; margin-top: 8px; }
  .phone-chart { height: 48px; padding: 8px; border-radius: 10px; }
  .phone-tabs { gap: 6px; }
  .phone-tabs span, .phone-tabs strong { min-height: 22px; font-size: 0.45rem; }
  .pay-card { bottom: 22px; width: min(240px, 68vw); border-radius: 14px; padding: 18px; transform: translateX(58%) rotate(10deg); }
  .card-chip { width: 38px; height: 29px; border-radius: 7px; }
  .card-mark { left: 48px; bottom: 32px; gap: 8px; font-size: 1.18rem; }
  .card-mark strong::before { left: -26px; top: 5px; width: 22px; height: 15px; }
  .card-mark .brand-lock.small { width: 32px; height: 32px; font-size: 1.1rem; }
  .card-network { right: 17px; bottom: 16px; width: 48px; height: 30px; }
  .card-network span { width: 28px; height: 28px; }
}


/* === Polish layer (Brazilian fintech feel) === */

/* Card hover lift */
.health-card, .metric, .panel {
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.health-card:hover, .metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(17, 28, 24, 0.14);
}

/* Anchor transitions */
a { transition: color var(--duration) var(--ease-out); }

/* Sidebar nav-link nuances */
.nav-link {
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), padding var(--duration) var(--ease-out);
}
.nav-link:hover { padding-left: 14px; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--accent); }

/* Toast spring entry */
.toast { animation: toast-in var(--duration-slow) var(--ease-spring); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form helper text */
.form-hint { color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-top: 4px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.02em; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-pending { background: var(--warning-soft); color: #8a5500; }
.pill-approved, .pill-success { background: var(--accent-soft); color: var(--accent-dark); }
.pill-rejected, .pill-error { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: #0d5fbb; }
.pill-neutral { background: var(--soft); color: var(--muted); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--soft) 0%, #f7f4fb 50%, var(--soft) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite ease-in-out;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-primary, .button-primary, .button-success, .nav-cta { transform: none !important; }
}


/* === Hero payment stack (concrete artifacts) === */

.payment-stack {
  position: relative;
  display: block;
  min-height: 480px;
  padding: 18px 24px;
}

.pay-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(35, 14, 73, 0.18), 0 8px 16px rgba(35, 14, 73, 0.08);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.pay-card:hover { box-shadow: 0 36px 72px rgba(35, 14, 73, 0.25), 0 12px 24px rgba(35, 14, 73, 0.12); animation-play-state: paused; }

/* Receipt card (back-left, slight tilt) */
.pay-receipt {
  top: 6%;
  left: 4%;
  width: 188px;
  padding: 22px 18px 26px;
  border-radius: 14px;
  transform: rotate(-9deg);
  background: linear-gradient(180deg, #fff 0%, #fafaff 100%);
  border: 1px dashed rgba(123, 47, 247, 0.18);
}
.pay-receipt-bar { height: 7px; border-radius: 4px; background: #ece4f9; margin-bottom: 9px; }
.pay-receipt-bar.wide { width: 100%; height: 9px; background: #d8caf3; }
.pay-receipt-bar.narrow { width: 55%; }
.pay-receipt-stamp {
  position: absolute;
  right: -14px;
  bottom: 18px;
  padding: 4px 12px;
  border: 2px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  transform: rotate(-12deg);
  box-shadow: 0 6px 14px rgba(0, 213, 122, 0.28);
}

/* Credit card (middle, dark, gold chip) */
.pay-credit {
  top: 22%;
  left: 26%;
  width: 270px;
  height: 168px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1c1130 0%, #4f169f 55%, #7b2ff7 100%);
  color: #fff;
  border-radius: 16px;
  transform: rotate(-3deg);
  box-shadow: 0 32px 60px rgba(76, 28, 158, 0.45), 0 12px 22px rgba(76, 28, 158, 0.28);
}
.pay-credit-top { display: flex; justify-content: space-between; align-items: center; }
.pay-credit-brand { font-size: 0.78rem; font-weight: 950; letter-spacing: -0.02em; opacity: 0.95; }
.pay-credit-flag { width: 32px; height: 22px; background: linear-gradient(90deg, #f2bd4b 0%, #f2bd4b 50%, #00d57a 50%, #00d57a 100%); border-radius: 4px; opacity: 0.85; }
.pay-credit-chip { width: 38px; height: 28px; margin: 12px 0 14px; border-radius: 6px; background: linear-gradient(135deg, #f5cb5c, #b88318); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); position: relative; }
.pay-credit-chip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent 30%, rgba(0,0,0,0.18) 31% 33%, transparent 34% 66%, rgba(0,0,0,0.18) 67% 69%, transparent 70%); }
.pay-credit-number { display: flex; gap: 12px; align-items: center; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.92rem; letter-spacing: 0.05em; }
.pay-credit-number span { display: inline-block; width: 30px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.85); }
.pay-credit-number strong { color: #fff; font-weight: 850; }
.pay-credit-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; }
.pay-credit-bottom small { font-size: 0.66rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.78; }
.pay-credit-bottom strong { font-size: 1.18rem; font-weight: 950; }

/* Pix card (front-right, tallest) */
.pay-pix {
  top: 0;
  right: 2%;
  width: 196px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #f6fffa 100%);
  border-radius: 18px;
  transform: rotate(5deg);
  border: 1px solid rgba(0, 213, 122, 0.18);
  box-shadow: 0 32px 60px rgba(0, 113, 60, 0.16), 0 12px 22px rgba(0, 113, 60, 0.10);
  z-index: 2;
}
.pay-pix-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pay-pix-logo { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #00d57a, #1ee896); position: relative; box-shadow: 0 6px 14px rgba(0, 213, 122, 0.35); }
.pay-pix-logo::before { content: ""; position: absolute; inset: 5px; border-radius: 4px; background: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pay-pix-head strong { font-size: 1.05rem; font-weight: 950; color: #003c20; letter-spacing: -0.02em; }
.pay-pix-qr { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 6px; background: #fff; border-radius: 6px; border: 1px solid #e6f5ec; aspect-ratio: 1; margin-bottom: 12px; }
.pay-pix-qr span { background: #001a0e; border-radius: 1px; }
/* Random-looking QR pattern using nth-child */
.pay-pix-qr span:nth-child(2n), .pay-pix-qr span:nth-child(3n+1), .pay-pix-qr span:nth-child(7n+2) { background: transparent; }
.pay-pix-qr span:nth-child(1), .pay-pix-qr span:nth-child(7), .pay-pix-qr span:nth-child(19) { background: #001a0e; }
.pay-pix-amount { display: flex; justify-content: space-between; align-items: baseline; }
.pay-pix-amount span { color: #5d6c66; font-size: 0.7rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.pay-pix-amount strong { color: var(--accent-dark); font-size: 1.05rem; font-weight: 950; }

/* Floating tags */
.pay-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(35, 14, 73, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink);
  z-index: 3;
}
.pay-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 213, 122, 0.18); animation: pulseDot 1.8s ease-in-out infinite; }
.pay-tag-approved { top: 8%; right: 14%; color: var(--accent-dark); animation: floatTag 5s ease-in-out infinite; }
.pay-tag-balance { bottom: 18%; left: 18%; background: linear-gradient(135deg, #12091f, #2b1c43); color: #fff; box-shadow: 0 14px 28px rgba(18, 9, 31, 0.32); animation: floatTag 6s ease-in-out infinite reverse; }

/* Override mini-ledger position for new layout */
.payment-stack .mini-ledger {
  bottom: 4%;
  right: 6%;
  z-index: 4;
}

/* Animations */
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 213, 122, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(0, 213, 122, 0.06); }
}

/* Make abstract-scene::before work for payment-stack too */
.payment-stack::before { content: ""; position: absolute; inset: 4% -8% 0 0; border-radius: 44% 56% 48% 52%; background: radial-gradient(circle at 54% 48%, rgba(255,255,255,0.94), rgba(255,255,255,0.46) 35%, rgba(162,131,211,0.22) 63%, transparent 72%); filter: blur(2px); transform: rotate(-8deg); pointer-events: none; }

/* === Landing modules: colored variants === */

.landing-modules article {
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid #e0d2f6;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 168px;
}
.landing-modules article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.landing-modules article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.module-icon svg { width: 22px; height: 22px; }

.module-core::before { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%); }
.module-core .module-icon { background: var(--primary-soft); color: var(--primary-dark); }
.module-core:hover { border-color: var(--primary); }

.module-ledger::before { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%); }
.module-ledger .module-icon { background: var(--accent-soft); color: var(--accent-dark); }
.module-ledger:hover { border-color: var(--accent); }

.module-risk::before { background: linear-gradient(90deg, var(--warning) 0%, #ffbf6a 100%); }
.module-risk .module-icon { background: var(--warning-soft); color: #b06a00; }
.module-risk:hover { border-color: var(--warning); }

.landing-modules span { color: var(--muted); font-size: 0.7rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.06em; }
.landing-modules strong { display: block; margin-top: 2px; color: var(--ink); font-size: 1.08rem; font-weight: 950; letter-spacing: -0.02em; }
.landing-modules p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Responsive payment-stack */
@media (max-width: 1080px) {
  .payment-stack { min-height: 420px; }
  .pay-receipt { width: 156px; }
  .pay-credit { width: 230px; height: 144px; left: 22%; }
  .pay-pix { width: 168px; }
}
@media (max-width: 640px) {
  .payment-stack { min-height: 340px; transform: scale(0.78); transform-origin: top center; }
  .pay-tag-approved { top: 4%; right: 4%; }
  .pay-tag-balance { bottom: 14%; left: 8%; }
}


/* === Hero cards: continuous gentle motion === */
.pay-receipt { animation: floatReceipt 6s ease-in-out infinite; }
.pay-credit  { animation: floatCredit 7s ease-in-out infinite; animation-delay: 0.4s; }
.pay-pix     { animation: floatPix 5.5s ease-in-out infinite; animation-delay: 1.1s; }

@keyframes floatReceipt {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50%      { transform: rotate(-7deg) translateY(-10px); }
}
@keyframes floatCredit {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-12px); }
}
@keyframes floatPix {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(7deg) translateY(-9px); }
}

/* Tags already pulse/float; add the receipt stamp wiggle */
.pay-receipt-stamp { animation: stampWobble 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes stampWobble {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(-9deg) scale(1.04); }
}

/* Reduced-motion: stop floating */
@media (prefers-reduced-motion: reduce) {
  .pay-receipt, .pay-credit, .pay-pix, .pay-receipt-stamp { animation: none !important; }
}


/* === Reveal-on-scroll === */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0, 0);
}

[data-reveal="fade-left"] { transform: translateX(-40px); }
[data-reveal="fade-left"].is-revealed { transform: translateX(0); }

[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="fade-right"].is-revealed { transform: translateX(0); }

[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-revealed { transform: scale(1); }

[data-reveal="fade"] { transform: none; }

/* Stagger delays */
[data-delay="0"]   { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="120"] { transition-delay: 120ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="240"] { transition-delay: 240ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="360"] { transition-delay: 360ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* === Hover gleam on module cards === */
.landing-modules article {
  isolation: isolate;
}
.landing-modules article::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 800ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.landing-modules article:hover::after { left: 130%; }
.landing-modules article > * { position: relative; z-index: 2; }

/* === Section tones (rompe a monotonia roxo-clara) === */
.landing-stats {
  position: relative;
  margin: 0 -7vw;
  padding: 64px 7vw 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 213, 122, 0.04) 50%, transparent 100%);
}
.landing-stats::before {
  content: "";
  position: absolute;
  top: 0; left: 7vw; right: 7vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 213, 122, 0.4), transparent);
}

.landing-product-showcase {
  position: relative;
  margin: 0 -7vw;
  padding: 64px 7vw;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 159, 28, 0.04) 50%, transparent 100%);
}

.landing-tech {
  position: relative;
  margin: 0 -7vw;
  padding: 64px 7vw;
  background: linear-gradient(180deg, transparent 0%, rgba(33, 150, 243, 0.04) 50%, transparent 100%);
}

.landing-audience {
  position: relative;
  margin: 0 -7vw;
  padding: 64px 7vw;
}

/* Stats counter values: tabular-num so width does not jump while counting */
.stats-grid strong { font-variant-numeric: tabular-nums; }

/* Subtle parallax-ish drift on hero abstract bg (just a slow loop) */
.payment-stack::before {
  animation: heroBgDrift 18s ease-in-out infinite;
}
@keyframes heroBgDrift {
  0%, 100% { transform: rotate(-8deg) translate(0, 0); }
  50%      { transform: rotate(-6deg) translate(-12px, -8px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .payment-stack::before { animation: none !important; }
  .landing-modules article::after { display: none; }
}


/* === Smooth scroll === */
html { scroll-behavior: smooth; }

/* === Section header (shared by FAQ etc) === */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 36px; padding: 0; }
.section-title { color: var(--ink); font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; line-height: 1.15; }

/* === FAQ accordion === */
.landing-faq {
  grid-column: 1 / -1;
  margin: 0 -7vw;
  padding: 72px 7vw 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(123, 47, 247, 0.05) 50%, transparent 100%);
}
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.faq-item:hover { border-color: rgba(123, 47, 247, 0.4); box-shadow: var(--shadow-md); }
.faq-item.is-open { border-color: var(--primary); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: var(--ink);
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0;
  box-shadow: none;
}
.faq-q:hover:not(:disabled) { background: rgba(123, 47, 247, 0.04); transform: none; box-shadow: none; }
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; background: var(--primary-soft); transition: background var(--duration) var(--ease-out); }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--primary);
  border-radius: 999px;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon { background: var(--primary); }
.faq-item.is-open .faq-icon::before { background: #fff; }
.faq-item.is-open .faq-icon::after  { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.faq-a > p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  min-height: 0;
  overflow: hidden;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* === Footer === */
.landing-footer {
  grid-column: 1 / -1;
  margin: 24px -7vw 0;
  padding: 64px 7vw 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 9, 31, 0.03) 30%, rgba(18, 9, 31, 0.06) 100%);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.footer-brand-mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; max-width: 340px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.social-link:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col strong { color: var(--ink); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; transition: color var(--duration) var(--ease-out); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}


  100% { transform: translateX(-50%); }
}

/* === Cursor blob (desktop only) === */
.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(123, 47, 247, 0.18) 0%,
    rgba(0, 213, 122, 0.10) 35%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  transform: translate(-9999px, -9999px);
  will-change: transform;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.cursor-blob.is-active { opacity: 1; }

/* Hide on touch devices and reduced-motion */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-blob { display: none; }
}

/* Make sure auth-view content stays above the blob */
.auth-view > *, .app-shell > * { position: relative; z-index: 1; }
.auth-view::before, .auth-view::after { z-index: 0; }

/* === Section dividers: subtle gradient bar at top of major sections === */
.landing-stats,
.landing-product-showcase,
.landing-tech,
.landing-audience,
.landing-integrations,
.landing-faq {
  position: relative;
}
.landing-stats::after,
.landing-product-showcase::after,
.landing-tech::after,
.landing-audience::after,
.landing-integrations::after,
.landing-faq::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 24px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M0 12 Q 50 0 100 12 T 200 12' stroke='%237b2ff7' stroke-width='1.4' stroke-opacity='0.5' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  opacity: 0.45;
  pointer-events: none;
}

/* Mobile ticker tweak */
@media (max-width: 640px) {
}


/* === Idle motion: product showcase, tech ledger, integration map === */

/* --- Section 1: dashboard mockup (.dash-plane) --- */
.dash-plane {
  animation: dashRock 8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes dashRock {
  0%, 100% { transform: rotateX(58deg) rotateZ(-18deg) translateY(0); }
  50%      { transform: rotateX(56deg) rotateZ(-16deg) translateY(-6px); }
}
/* Chart bars: pulse heights independently (chart updating feel) */
.dash-chart i { transform-origin: bottom center; }
.dash-chart i:nth-child(1) { animation: barPulse1 3.2s ease-in-out infinite; }
.dash-chart i:nth-child(2) { animation: barPulse2 3.6s ease-in-out infinite 0.3s; }
.dash-chart i:nth-child(3) { animation: barPulse3 4.0s ease-in-out infinite 0.6s; }
.dash-chart i:nth-child(4) { animation: barPulse4 3.4s ease-in-out infinite 0.9s; }
.dash-chart i:nth-child(5) { animation: barPulse5 3.8s ease-in-out infinite 1.2s; }
@keyframes barPulse1 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }
@keyframes barPulse2 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.78); } }
@keyframes barPulse3 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.88); } }
@keyframes barPulse4 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.45); } }
@keyframes barPulse5 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.85); } }

/* --- Section 1b: pix cube + balance slip (instant-perspective) --- */
.pix-cube {
  animation: cubeSpin 12s linear infinite;
}
@keyframes cubeSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pix-cube span {
  animation: cubeBreath 3.4s ease-in-out infinite alternate;
}
.pix-cube span:nth-child(2) { animation-delay: 0.2s; }
.pix-cube span:nth-child(3) { animation-delay: 0.4s; }
.pix-cube span:nth-child(4) { animation-delay: 0.6s; }
@keyframes cubeBreath {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
.balance-slip {
  animation: slipFloat 5.5s ease-in-out infinite;
}
@keyframes slipFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(1.2deg); }
}
.transfer-lines span {
  animation: lineFlow 2.4s linear infinite;
}
.transfer-lines span:nth-child(2) { animation-delay: 0.4s; }
.transfer-lines span:nth-child(3) { animation-delay: 0.8s; }
@keyframes lineFlow {
  0%   { opacity: 0.2; transform: translateX(-12px); }
  50%  { opacity: 1; }
  100% { opacity: 0.2; transform: translateX(12px); }
}

/* --- Section 2: ledger screen + bars + receipt --- */
.ledger-screen {
  animation: ledgerRock 7.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ledgerRock {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-8px); }
}
.ledger-bars span { transform-origin: bottom center; }
.ledger-bars span:nth-child(1) { animation: ledgerBar1 3.4s ease-in-out infinite; }
.ledger-bars span:nth-child(2) { animation: ledgerBar2 3.8s ease-in-out infinite 0.3s; }
.ledger-bars span:nth-child(3) { animation: ledgerBar3 3.2s ease-in-out infinite 0.6s; }
.ledger-bars span:nth-child(4) { animation: ledgerBar4 3.6s ease-in-out infinite 0.9s; }
@keyframes ledgerBar1 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.4); } }
@keyframes ledgerBar2 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.85); } }
@keyframes ledgerBar3 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.78); } }
@keyframes ledgerBar4 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.55); } }

.ledger-top strong {
  background: linear-gradient(90deg, #4f169f, #7b2ff7, #00d57a, #4f169f);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ledgerSheen 6s linear infinite;
}
@keyframes ledgerSheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.floating-receipt {
  animation: receiptFloat 5.5s ease-in-out infinite;
}
@keyframes receiptFloat {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50%      { transform: rotate(9deg) translateY(-12px); }
}

/* --- Section 3: integration map --- */
.map-center {
  position: relative;
  animation: centerPulse 3s ease-in-out infinite;
}
.map-center::before, .map-center::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: centerRing 2.6s ease-out infinite;
}
.map-center::after { animation-delay: 1.3s; }
@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 47, 247, 0.4), 0 16px 36px rgba(123, 47, 247, 0.28); }
  50%      { box-shadow: 0 0 0 10px rgba(123, 47, 247, 0.0), 0 22px 48px rgba(123, 47, 247, 0.36); }
}
@keyframes centerRing {
  0%   { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.6); }
}

.map-node {
  animation: nodeFloat 5s ease-in-out infinite;
  position: relative;
}
.map-node.node-shop    { animation-delay: 0s; }
.map-node.node-pix     { animation-delay: 0.4s; animation-duration: 4.6s; }
.map-node.node-erp     { animation-delay: 0.8s; animation-duration: 5.4s; }
.map-node.node-webhook { animation-delay: 1.2s; animation-duration: 4.8s; }
.map-node.node-crm     { animation-delay: 1.6s; animation-duration: 5.2s; }
.map-node.node-bi      { animation-delay: 2.0s; animation-duration: 4.4s; }
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.map-line {
  background-image: linear-gradient(90deg, var(--primary) 50%, transparent 50%);
  background-size: 14px 100%;
  background-repeat: repeat-x;
  animation: lineDataFlow 1.8s linear infinite;
}
.map-line.line-b { animation-duration: 2.4s; animation-direction: reverse; }
.map-line.line-c { animation-duration: 2.0s; }
@keyframes lineDataFlow {
  0%   { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

/* Pause on hover (consistent with hero cards) */
.dash-plane:hover, .ledger-screen:hover, .integration-map:hover * {
  animation-play-state: paused !important;
}

/* Reduced motion: stop everything */
@media (prefers-reduced-motion: reduce) {
  .dash-plane, .dash-chart i, .pix-cube, .pix-cube span, .balance-slip, .transfer-lines span,
  .ledger-screen, .ledger-bars span, .ledger-top strong, .floating-receipt,
  .map-center, .map-center::before, .map-center::after, .map-node, .map-line {
    animation: none !important;
  }
}


/* === Hero word stagger animation === */
.hero-h1 .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroWordIn 700ms var(--ease-out) forwards;
}
.hero-h1 .hero-word:nth-child(1) { animation-delay: 0.10s; }
.hero-h1 .hero-word:nth-child(2) { animation-delay: 0.20s; }
.hero-h1 .hero-word:nth-child(3) { animation-delay: 0.30s; }
.hero-h1 .hero-word:nth-child(4) { animation-delay: 0.40s; }
.hero-h1 .hero-word:nth-child(5) { animation-delay: 0.50s; }
.hero-h1 .hero-word:nth-child(6) { animation-delay: 0.60s; }
.hero-h1 .hero-word:nth-child(7) {
  animation-delay: 0.70s;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-h1 .hero-word:nth-child(8) {
  animation-delay: 0.80s;
  background: linear-gradient(120deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* === Hero secondary CTA + trust badges === */
.hero-secondary-cta {
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  border: 1.5px solid rgba(18, 9, 31, 0.18);
  box-shadow: none;
}
.hero-secondary-cta:hover:not(:disabled) {
  background: rgba(18, 9, 31, 0.04);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 9, 31, 0.10);
}

.trust-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3c2d50;
  font-size: 0.84rem;
  font-weight: 700;
}
.trust-list .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 213, 122, 0.3);
}
.trust-list .check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -55%) rotate(45deg);
}

/* === Payment methods row === */
.landing-methods {
  grid-column: 1 / -1;
  margin: 18px -7vw 0;
  padding: 36px 7vw 18px;
  text-align: center;
}
.methods-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.methods-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
  max-width: 920px;
  margin: 0 auto;
}
.method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.method:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.method-pix      { color: var(--accent-dark); border-color: rgba(0, 213, 122, 0.3); }
.method-pix .pix-dot { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 8px rgba(0,213,122,0.5); }
.method-visa     { color: #1a1f71; font-style: italic; font-family: Georgia, serif; font-weight: 900; letter-spacing: 0.05em; }
.method-master   { color: #1a1f24; }
.method-master .m-circles { display: inline-flex; align-items: center; }
.method-master .m-circles i { width: 14px; height: 14px; border-radius: 50%; }
.method-master .m-circles i:first-child  { background: #eb001b; }
.method-master .m-circles i:last-child   { background: #f79e1b; margin-left: -7px; mix-blend-mode: multiply; }
.method-elo      { color: #ffcb05; background: #1a1a1a; border-color: #1a1a1a; font-weight: 950; text-transform: lowercase; letter-spacing: -0.04em; }
.method-amex     { color: #fff; background: #006fcf; border-color: #006fcf; font-size: 0.62rem; font-weight: 950; letter-spacing: 0.08em; }
.method-hipercard { color: #b5121b; }
.method-boleto    { color: #444; }
.method-boleto .m-bars { display: inline-block; width: 18px; height: 14px; background: repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 3px, #1a1a1a 3px 4px, transparent 4px 5px, #1a1a1a 5px 7px, transparent 7px 8px); }
.method-asaas     { color: #2e8eed; font-weight: 900; }

/* === Floating actions (sticky CTA + back-to-top) === */
.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.floating-actions > * { pointer-events: auto; }

.back-to-top, .sticky-cta {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-spring);
}
.back-to-top.is-visible, .sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(18, 9, 31, 0.32);
  padding: 0;
}
.back-to-top:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.05);
}
.sticky-cta {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 900;
  font-size: 0.94rem;
  box-shadow: 0 18px 38px rgba(123, 47, 247, 0.42), 0 6px 14px rgba(0, 213, 122, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sticky-cta:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 24px 48px rgba(123, 47, 247, 0.50), 0 8px 18px rgba(0, 213, 122, 0.28);
}
.sticky-cta-arrow { font-size: 1.4rem; line-height: 0; }

/* Hide floating-actions in auth-page-mode */
.auth-page-mode .floating-actions { display: none; }

@media (max-width: 640px) {
  .floating-actions { right: 16px; bottom: 16px; }
  .sticky-cta { font-size: 0.86rem; min-height: 46px; padding: 0 18px; }
  .trust-list { gap: 10px 16px; }
  .trust-list li { font-size: 0.78rem; }
  .hero-secondary-cta { min-height: 52px; min-width: 0; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-h1 .hero-word { opacity: 1 !important; transform: none !important; animation: none !important; }
  .back-to-top, .sticky-cta { transition: none !important; }
}


/* === MOBILE AUDIT FIXES (added after the new hero composition was introduced) === */

/* --- Hero payment-stack: shrink, reposition cards to fit narrow viewports --- */
@media (max-width: 880px) {
  .payment-stack {
    min-height: 380px;
    transform: scale(0.82);
    transform-origin: top center;
    margin-top: -10px;
    margin-bottom: -40px;
  }
  /* The duplicate mini-ledger (overlay) hides on mobile to avoid clutter */
  .payment-stack .mini-ledger { display: none; }
}

@media (max-width: 700px) {
  .payment-stack {
    min-height: 320px;
    transform: scale(0.7);
    margin-bottom: -80px;
  }
  /* Drop the "Saldo R$" floating tag on small screens (least informative) */
  .pay-tag-balance { display: none; }
  /* Reposition cards so they tile within the smaller width */
  .pay-receipt { top: 0%;  left: 4%;  width: 170px; }
  .pay-credit  { top: 22%; left: 22%; width: 240px; height: 152px; padding: 16px 18px; }
  .pay-pix     { top: -4%; right: 4%; width: 168px; }
  .pay-tag-approved { top: 4%; right: 4%; font-size: 0.72rem; padding: 6px 10px; }
  /* Disable hover-pause on touch since it never triggers anyway */
  .pay-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .payment-stack {
    min-height: 280px;
    transform: scale(0.6);
    margin-bottom: -120px;
  }
  .pay-receipt { left: 2%; }
  .pay-credit  { left: 16%; }
  .pay-pix     { right: 2%; }
}

/* --- Hero brand area: tighter spacing on phones --- */
@media (max-width: 700px) {
  .auth-brand { padding: 12px 0 18px; }
  .auth-brand p:not(.eyebrow) { font-size: 0.96rem; line-height: 1.5; }
  .hero-actions { gap: 10px; margin-top: 18px; }
  .hero-primary { min-width: 0; min-height: 54px; padding: 0 22px; font-size: 0.94rem; }
  .hero-primary span { font-size: 1.5rem; }
  .hero-secondary-cta { min-height: 54px; font-size: 0.92rem; }
}

/* --- Trust badges: smaller chips on phones --- */
@media (max-width: 640px) {
  .trust-list { gap: 8px 14px; margin-top: 16px; }
  .trust-list li { font-size: 0.76rem; }
  .trust-list .check { width: 16px; height: 16px; }
  .trust-list .check::after { width: 4px; height: 7px; border-right-width: 1.6px; border-bottom-width: 1.6px; }
}

/* --- Payment methods row: tighter on phones --- */
@media (max-width: 640px) {
  .landing-methods { padding: 24px 7vw 12px; margin-top: 6px; }
  .methods-row { gap: 8px 10px; }
  .method { min-height: 38px; padding: 0 12px; font-size: 0.84rem; border-radius: 10px; }
  .method-amex { font-size: 0.56rem; }
  .methods-label { font-size: 0.66rem; letter-spacing: 0.12em; margin-bottom: 12px; }
}

/* --- Module cards: prevent hover-lift overflow on touch --- */
@media (hover: none) {
  .landing-modules article:hover { transform: none; }
  .landing-modules article::after { display: none; } /* skip gleam on touch */
  .health-card:hover, .metric:hover { transform: none; }
}

/* --- Floating actions: smaller, lower on phones --- */
@media (max-width: 640px) {
  .floating-actions { right: 14px; bottom: 14px; gap: 10px; }
  .back-to-top { width: 40px; height: 40px; }
  .back-to-top svg { width: 16px; height: 16px; }
  .sticky-cta {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.84rem;
  }
  .sticky-cta-arrow { font-size: 1.2rem; }
}

/* --- Hero word-stagger: ensure proper line-breaks on phones --- */
@media (max-width: 640px) {
  .hero-h1 .hero-word { display: inline-block; margin-right: 0.18em; }
}

/* --- Section dividers: scale on small screens --- */
@media (max-width: 640px) {
  .landing-stats::after,
  .landing-product-showcase::after,
  .landing-tech::after,
  .landing-audience::after,
  .landing-integrations::after,
  .landing-faq::after { width: 140px; height: 18px; }
}

/* --- FAQ tighter on phones --- */
@media (max-width: 640px) {
  .landing-faq { padding: 48px 7vw 36px; }
  .faq-q { padding: 16px 18px; font-size: 0.94rem; min-height: 56px; gap: 12px; }
  .faq-a > p { padding: 0 18px 16px; font-size: 0.88rem; line-height: 1.55; }
  .faq-icon { width: 20px; height: 20px; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: 1.5rem; }
}

/* --- Footer: smaller text on mobile --- */
@media (max-width: 640px) {
  .landing-footer { padding: 48px 7vw 24px; }
  .footer-grid { gap: 28px; }
  .footer-brand p { font-size: 0.86rem; }
  .footer-col strong { font-size: 0.72rem; }
  .footer-col a { font-size: 0.86rem; }
}

/* --- Stats grid: smaller numbers + better wrapping on mobile --- */
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .stats-grid strong { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .stats-grid span { font-size: 0.82rem; }
}

/* --- Disable cursor-blob on landscape phones too --- */
@media (max-width: 900px) and (orientation: landscape) {
  .cursor-blob { display: none; }
}

/* --- Avoid auth-view::before diagonal stripe overflow on mobile --- */
@media (max-width: 700px) {
  .auth-view::before { display: none; }
}

/* --- Header nav: collapse to icons or wrap on phones --- */
@media (max-width: 760px) {
  .landing-nav { gap: 12px; padding: 0 7vw; margin: 0 -7vw 16px; flex-wrap: wrap; }
  .landing-nav nav { gap: 12px; }
  .landing-nav nav a { font-size: 0.86rem; }
  .landing-nav .nav-access, .landing-nav .nav-cta { padding: 0 14px; min-height: 40px; font-size: 0.84rem; }
}

@media (max-width: 540px) {
  /* Hide the textual nav links on really small screens, keep only login + register buttons */
  .landing-nav nav a { display: none; }
  .landing-nav nav a:nth-last-child(-n+2) { display: none; } /* nav-access/nav-cta are buttons not anchors, won't match */
  .landing-brand { font-size: 1.5rem; }
}
