/* SollusPay — site institucional.
   Tokens: papel/tinta + azul Sollus para ações; verde só para "pago"; violeta só para a rede Polygon. */
:root {
  --paper: #F3F6FB;
  --paper-2: #E8EDF6;
  --white: #FFFFFF;
  --ink: #0A1636;
  --ink-2: #33405F;
  --muted: #637091;
  --line: #D5DCEA;
  --blue: #004CFF;
  --blue-deep: #0037BD;
  --blue-soft: #E3EBFF;
  --green: #0E9F6E;
  --green-soft: #DDF4EA;
  --violet: #7B3FE4;
  --violet-soft: #EEE6FD;
  --amber: #A65F00;

  --font: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-optical-sizing: auto; font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); font-variant-ligatures: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -120px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cabeçalho ──────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 251, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 30px; width: auto; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a:not(.btn) { text-decoration: none; font-size: 16px; color: var(--ink-2); }
.top nav a:not(.btn):hover { color: var(--blue); }

/* ── Títulos ────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; max-width: 17ch; }
.sub { color: var(--ink-2); font-size: 19px; max-width: 56ch; margin: 20px 0 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 112px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.hero h1 { text-wrap: balance;
  font-size: clamp(46px, 6.7vw, 98px); line-height: .95; letter-spacing: -0.03em; font-weight: 800;
  max-width: 11ch; font-variation-settings: "opsz" 96;
}
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 28px 0 36px; }
.live { display: flex; align-items: baseline; gap: 10px; margin: 36px 0 0; font-size: 15px; color: var(--muted); }
.live b { color: var(--ink); font-weight: 500; font-size: 14px; }
.pulse { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(123, 63, 228, .5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123, 63, 228, .45); } 70% { box-shadow: 0 0 0 10px rgba(123, 63, 228, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 63, 228, 0); } }

/* Comprovante animado */
.demo { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.demo::before {
  content: ""; position: absolute; inset: -12% -18% 10% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 76, 255, .16), rgba(0, 76, 255, 0));
}
.ticket-wrap { filter: drop-shadow(0 30px 34px rgba(0, 38, 140, .2)) drop-shadow(0 2px 2px rgba(10, 22, 54, .06)); }
.ticket { /* serrilha de comprovante recortada na borda de baixo */
  position: relative; background: var(--white); border-radius: 24px 24px 0 0; padding: 26px 26px 30px;
  -webkit-mask: radial-gradient(circle 7px at 9px 100%, #0000 97%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 9px 100%, #0000 97%, #000) 0 0 / 18px 100% repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.ticket-head b { color: var(--ink); font-weight: 600; }
.net { color: var(--violet); background: var(--violet-soft); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.ticket-amount { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 22px; font-variant-numeric: tabular-nums; }
.ticket-amount small { font-size: 18px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ticket-body { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.qr { position: relative; width: 124px; height: 124px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.qr svg { width: 100%; height: 100%; transition: opacity 300ms var(--ease), filter 300ms var(--ease); }
.scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; background: linear-gradient(180deg, rgba(0, 76, 255, 0), rgba(0, 76, 255, .28) 85%, rgba(0, 76, 255, .9)); opacity: 0; }
.qr-done { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .78); opacity: 0; transition: opacity 260ms var(--ease); }
.qr-done svg { width: 56px; height: 56px; padding: 10px; border-radius: 50%; background: var(--green); stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; transform: scale(.7); transition: transform 360ms var(--ease); }
.addr { display: grid; gap: 4px; min-width: 0; }
.addr-label { font-size: 13px; color: var(--muted); }
.addr-value { font-size: 15px; color: var(--ink); }

.track { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.track li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); transition: color 240ms var(--ease); }
.track .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.track .r { font-size: 13px; color: var(--muted); }
.track .bar { width: 92px; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.track .bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; }
.track .stamp { font-family: var(--font); font-weight: 700; color: var(--green); opacity: 0; transform: rotate(-6deg) scale(1.3); transition: opacity 200ms var(--ease), transform 320ms var(--ease); }
.track li.is-active { color: var(--ink); }
.track li.is-active .dot { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.track li.is-done { color: var(--ink); }
.track li.is-done .dot { border-color: var(--green); background: var(--green); }
.track li[data-s="paid"].is-done { font-weight: 650; }
.track li[data-s="paid"].is-done .stamp { opacity: 1; transform: rotate(-6deg) scale(1); }

.flow { position: relative; height: 72px; display: flex; justify-content: center; }
.flow-line { width: 40px; height: 100%; }
.flow-line path { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; fill: none; vector-effect: non-scaling-stroke; }
.coin {
  position: absolute; top: 4px; left: 50%; transform: translate(-50%, 0) scale(.6); opacity: 0;
  font: 700 14px/1 var(--font); color: #fff; background: var(--green); padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.wallet {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px;
  background: var(--ink); color: #fff; border-radius: 16px; transition: box-shadow 400ms var(--ease);
}
.wallet-label { display: block; font-size: 14px; color: #AEB9D6; }
.wallet-addr { font-size: 13px; color: #fff; }
.wallet-balance { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wallet-balance small { font-size: 14px; color: #AEB9D6; font-weight: 600; letter-spacing: 0; }

/* Fases do comprovante (o JS só troca data-phase) */
.demo[data-phase="scan"] .scan { animation: scan 1.1s var(--ease) 1; }
@keyframes scan { 0% { top: -30%; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.demo[data-phase="final"] .bar i { width: 100%; transition: width 1.6s linear; }
.demo[data-phase="paid"] .bar i, .demo[data-phase="move"] .bar i, .demo[data-phase="rest"] .bar i { width: 100%; background: var(--green); transition: background-color 300ms var(--ease); }
.demo[data-phase="paid"] .qr-done, .demo[data-phase="move"] .qr-done, .demo[data-phase="rest"] .qr-done { opacity: 1; }
.demo[data-phase="paid"] .qr-done svg, .demo[data-phase="move"] .qr-done svg, .demo[data-phase="rest"] .qr-done svg { transform: scale(1); stroke-dashoffset: 0; transition: transform 360ms var(--ease), stroke-dashoffset 420ms var(--ease) 120ms; }
.demo[data-phase="move"] .coin { animation: coin 1.15s var(--ease) forwards; }
@keyframes coin {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  18% { opacity: 1; transform: translate(-50%, 4px) scale(1); }
  82% { opacity: 1; transform: translate(-50%, 52px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 70px) scale(.8); }
}
.demo[data-phase="rest"] .wallet { box-shadow: 0 0 0 4px rgba(14, 159, 110, .35); }

/* ── Um endereço por cobrança ───────────────────────────────────────────── */
.match { padding: 120px 0; background: var(--white); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.side { border-radius: 20px; padding: 30px; }
.side h3 { font-size: 22px; margin-bottom: 18px; }
.side-old { border: 1.5px dashed var(--line); color: var(--ink-2); }
.side-new { background: var(--paper); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 1fr auto 104px; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; font-variant-numeric: tabular-nums; }
.ledger li > :nth-child(2) { text-align: right; }
.ledger li > :last-child { text-align: right; }
.ledger .mono { font-size: 14px; color: var(--muted); }
.ledger small { color: var(--muted); font-size: 14px; margin-left: 4px; }
.ledger em { color: var(--amber); font-style: normal; font-weight: 600; font-size: 15px; }
.ledger strong { color: var(--green); font-weight: 650; font-size: 15px; }
.ledger strong.warn { color: var(--amber); }
.note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* ── Caminho do dinheiro ────────────────────────────────────────────────── */
.path { padding: 120px 0; }
.path-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
.path-sticky { position: sticky; top: 104px; align-self: start; }
.diagram { position: relative; margin-top: 56px; width: min(100%, 380px); height: 420px; }
.diagram .links { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.diagram .links path { stroke: var(--line); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; transition: stroke 400ms var(--ease); }
.node {
  position: absolute; left: 0; right: 0; z-index: 1; display: flex; align-items: center; gap: 14px; height: 80px;
  padding: 0 18px 0 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; color: var(--muted);
  transition: border-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.node .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); color: var(--muted); font-size: 15px; font-weight: 750; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.node .nt { display: grid; gap: 2px; min-width: 0; }
.node b { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.node small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node small.mono { font-size: 13px; }
.n1 { top: 0; } .n2 { top: 108px; } .n3 { top: 216px; } .n4 { top: 324px; }
.diagram[data-step="1"] .n1, .diagram[data-step="2"] .n2, .diagram[data-step="3"] .n3, .diagram[data-step="4"] .n4 {
  border-color: var(--blue); color: var(--ink); transform: translateX(12px); box-shadow: 0 18px 36px -18px rgba(0, 54, 189, .5);
}
.diagram[data-step="1"] .n1 .ic, .diagram[data-step="2"] .n2 .ic, .diagram[data-step="3"] .n3 .ic { background: var(--blue); color: #fff; }
.diagram[data-step="4"] .n4 { border-color: var(--green); box-shadow: 0 18px 36px -18px rgba(14, 159, 110, .55); }
.diagram[data-step="4"] .n4 .ic { background: var(--green); color: #fff; }
.diagram[data-step="2"] .n1, .diagram[data-step="3"] .n1, .diagram[data-step="3"] .n2, .diagram[data-step="4"] .n1, .diagram[data-step="4"] .n2, .diagram[data-step="4"] .n3 { color: var(--ink); border-color: #B9C5DD; }
.diagram[data-step="2"] .l1, .diagram[data-step="3"] .l1, .diagram[data-step="3"] .l2, .diagram[data-step="4"] .l1, .diagram[data-step="4"] .l2 { stroke: var(--blue); }
.diagram[data-step="4"] .l3 { stroke: var(--green); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 0 64px; min-height: 36vh; display: flex; flex-direction: column; justify-content: center; }
.steps li + li { border-top: 1px solid var(--line); }
.steps .num { position: absolute; left: 0; top: 50%; transform: translateY(-120%); font-size: 15px; font-weight: 700; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--muted); transition: all 300ms var(--ease); }
.steps li.is-current .num { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps h3 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ── Desenvolvedores ────────────────────────────────────────────────────── */
.devs { background: var(--ink); color: #fff; padding: 120px 0; }
.devs-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.devs .sub { color: #B7C2DD; }
.facts { margin: 36px 0 40px; display: grid; gap: 22px; }
.facts dt { font-weight: 650; font-size: 18px; }
.facts dd { margin: 4px 0 0; color: #B7C2DD; font-size: 16px; max-width: 46ch; }
.facts code { font-size: 14px; color: #fff; background: rgba(255, 255, 255, .1); padding: 2px 6px; border-radius: 6px; }
.code { background: #050C22; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; }
.tabs button { font: 600 14px/1 var(--font); color: #9AA7C7; background: none; border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.panel { margin: 0; padding: 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; color: #DCE4FF; }
.panel .c { color: #7083B3; } .panel .k { color: #8FB1FF; } .panel .s { color: #8EE3BE; }

/* ── Proteção ───────────────────────────────────────────────────────────── */
.guard { padding: 120px 0; }
.guard-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.guard-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.guard-list > div { padding: 24px 0; border-top: 2px solid var(--ink); }
.guard-list dt { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.guard-list dd { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* ── Perguntas ──────────────────────────────────────────────────────────── */
.faq { padding: 120px 0; background: var(--white); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform 240ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { margin: 0 0 24px; color: var(--ink-2); max-width: 58ch; }

/* ── Fechamento e rodapé ────────────────────────────────────────────────── */
.closing { background: var(--blue); color: #fff; padding: 96px 0; }
.closing-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; max-width: 13ch; }
.closing .btn-blue { background: #fff; color: var(--blue); }
.closing .btn-blue:hover { background: var(--blue-soft); }
.closing .btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.closing .btn-line:hover { background: #fff; color: var(--blue); }
.foot { padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot img { height: 24px; width: auto; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* ── Responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .path-grid, .devs-grid, .guard-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .demo { justify-self: start; }
  .path-sticky { position: static; }
  .diagram { display: none; }
  .steps li { min-height: 0; padding-top: 32px; padding-bottom: 32px; }
  .steps .num { top: 32px; transform: none; }
  .steps li.is-current .num { background: transparent; border-color: var(--line); color: var(--muted); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 32px 0 80px; }
  .lede { font-size: 19px; }
  .versus, .guard-list { grid-template-columns: 1fr; }
  .side { padding: 22px; }
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger li > :last-child { grid-column: 1 / -1; text-align: left; margin-top: -6px; }
  .match, .path, .devs, .guard, .faq { padding: 80px 0; }
  .ticket { padding: 22px 18px 18px; }
  .ticket-amount { font-size: 46px; }
  .ticket-body { grid-template-columns: 104px 1fr; }
  .qr { width: 104px; height: 104px; }
  .actions .btn { flex: 1 1 auto; }
}

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