/* ByteZero — folha de estilos única. */

:root {
  /* Marca */
  --navy: #1c2d3b;
  --navy-800: #142330;
  --navy-900: #0d1822;
  --navy-950: #08111a;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);

  /* Neutros */
  --ink: #0f1b26;
  --text: #334155;
  --muted: #64748b;
  --surface: #f6f8fb;
  --surface-2: #eef2f7;
  --border: #e3e8ef;
  --white: #fff;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgb(15 27 38 / 0.05);
  --shadow-md: 0 6px 16px -4px rgb(15 27 38 / 0.08), 0 2px 4px -2px rgb(15 27 38 / 0.04);
  --shadow-lg: 0 24px 48px -16px rgb(15 27 38 / 0.2);
  --ring: 0 0 0 3px rgb(37 99 235 / 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; text-wrap: balance; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); }
::selection { background: rgb(37 99 235 / 0.18); }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.app-main { min-height: 60vh; }
.icon { flex-shrink: 0; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.muted { color: var(--muted); }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 2.375rem; padding: 0 1.125rem; font-size: 0.875rem; }
.btn-lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgb(37 99 235 / 0.7); }
.btn-primary:hover { background: var(--blue-600); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost-light { color: var(--white); border: 1px solid rgb(255 255 255 / 0.22); background: rgb(255 255 255 / 0.04); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.35); }
.btn-outline { color: var(--ink); border: 1px solid var(--border); background: var(--white); }
.btn-outline:hover { background: var(--surface-2); border-color: rgb(15 27 38 / 0.18); }
.btn-disabled { color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); cursor: default; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: var(--radius-sm); color: var(--ink); }
.btn-icon:hover { background: var(--surface-2); }

.nudge { transition: transform .2s var(--ease); }
a:hover .nudge, button:hover .nudge { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgb(37 99 235 / 0.07); border: 1px solid rgb(37 99 235 / 0.14);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow-dark { color: #93c5fd; background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.12); }
.eyebrow-dark::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--white); }
.lang-toggle a {
  padding: 0.25rem 0.625rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a.is-active { background: var(--navy); color: var(--white); }

/* ---------- Navbar ---------- */

.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.85); border-bottom: 1px solid rgb(227 232 239 / 0.8);
}
@supports (backdrop-filter: blur(0)) {
  .navbar { background: rgb(255 255 255 / 0.72); backdrop-filter: saturate(180%) blur(14px); }
}
.navbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.5rem; }
.navbar-logo img { height: 2.25rem; width: auto; }
.nav-links { display: none; gap: 0.25rem; margin-inline: auto; }
.nav-links a {
  padding: 0.5rem 0.875rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.is-active { color: var(--navy); background: var(--surface-2); font-weight: 600; }
.nav-actions { display: none; align-items: center; gap: 0.75rem; }
.nav-burger { margin-left: auto; }
@media (min-width: 1024px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-burger { display: none; }
}

/* ---------- Hero (página inicial) ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  padding: 5rem 0 6rem;
  background:
    radial-gradient(900px 520px at 85% -10%, rgb(37 99 235 / 0.38), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgb(34 211 238 / 0.16), transparent 60%),
    var(--navy-950);
}

.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; } }
.hero-copy { animation: rise .7s var(--ease) both; }
.hero-title {
  margin: 1.5rem 0 1.25rem; color: var(--white);
  font-size: clamp(2.375rem, 5.5vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
}
.hero-lead { max-width: 34rem; font-size: 1.125rem; line-height: 1.7; color: rgb(226 232 240 / 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }


/* ---------- Animação de POS no topo ---------- */

.hero-visual { margin: 0; animation: rise .8s .15s var(--ease) both; }
.pos-scene { display: block; width: 100%; max-width: 56rem; height: auto; margin-inline: auto; overflow: visible; }
.pos-scene text { font-family: var(--font); }
.pos-label { font-size: 13px; font-weight: 500; fill: rgb(203 213 225 / 0.7); }
.dev-brand { font-size: 7px; font-weight: 600; letter-spacing: 0.3em; fill: rgb(255 255 255 / 0.28); }
.ui-status { font-size: 7px; font-weight: 600; fill: #475569; }
.ui-brand { font-size: 10px; font-weight: 700; fill: #fff; letter-spacing: -0.01em; }
.ui-brand-sm { font-size: 8.5px; }
.ui-label { font-size: 8px; font-weight: 600; letter-spacing: 0.12em; fill: #64748b; }
.ui-amount { font-size: 22px; font-weight: 700; fill: #0f172a; letter-spacing: -0.03em; }
.ui-amount-sm { font-size: 19px; }
.ui-hint { font-size: 10px; font-weight: 500; fill: #475569; }
.ui-ok { font-size: 15px; font-weight: 700; fill: #0f172a; }
.ui-ok-sm { font-size: 12px; }
.ui-sub { font-size: 10px; fill: #64748b; }
.card-num { font-size: 8px; fill: rgb(255 255 255 / 0.9); letter-spacing: 0.1em; }
.ui-brand-xs { font-size: 7px; }
.ui-label-xs { font-size: 6.5px; letter-spacing: 0.1em; }
.ui-amount-xs { font-size: 14px; }
.ui-hint-xs { font-size: 8px; }
.ui-ok-xs { font-size: 10px; }
.pp-key { fill: rgb(255 255 255 / 0.08); stroke: rgb(255 255 255 / 0.1); }
.pp-key-cancel { fill: rgb(220 38 38 / 0.75); }
.pp-key-enter { fill: rgb(22 163 74 / 0.8); }
.pp-key-text { font-size: 9px; font-weight: 600; fill: rgb(255 255 255 / 0.78); }
.pp-press { fill: #22d3ee; fill-opacity: 0.55; }

/* Estados iniciais (também o quadro estático para movimento reduzido). */
.a-card, .a-wave, .a-ok, .a-proc, .b-hand, .b-veins, .b-scan, .b-beam, .b-s2, .b-s3, .b-s4,
.c-s2, .c-s3, .c-s4, .c-dot, .pp-press, .d-card { opacity: 0; }
.c-card { opacity: 0; transform: translateY(30px); }
.a-receipt { transform: translateY(90px); }
.b-ring { stroke-opacity: 0.35; }
.a-card, .a-wave, .d-card, .b-progress, .ui-spin { transform-box: fill-box; }
.a-card, .a-wave, .d-card, .ui-spin { transform-origin: center; }
.b-progress { transform-origin: 0 50%; transform: scaleX(0); }

/*
 * Sincronia: cada aparelho roda um ciclo de 8s, defasados para que as aprovações
 * se alternem: palma aos 0s, celular aos 2s, POS Android aos 4s e PIN pad aos 6s.
 */
.pos-a *, .pos-b *, .pos-c *, .pos-d * { animation-duration: 8s; animation-iteration-count: infinite; animation-timing-function: var(--ease); }
.pos-b * { animation-delay: -4.8s; }
.pos-c * { animation-delay: -6.8s; }
.pos-d * { animation-delay: -2s; }
.pos-scene .ui-spin { animation: spin 0.9s linear infinite; }
.a-card { animation-name: a-card; }
.a-wave { animation-name: a-wave; }
.a-wave-2 { animation-name: a-wave-2; }
.a-pay { animation-name: a-pay; }
.a-proc { animation-name: a-proc; }
.a-ok { animation-name: a-ok; }
.a-receipt { animation-name: a-receipt; }
.b-hand { animation-name: b-hand; }
.b-veins { animation-name: b-veins; }
.b-scan { animation-name: b-scan; animation-timing-function: linear; }
.b-beam { animation-name: b-beam; }
.b-ring { animation-name: b-ring; }
.b-progress { animation-name: b-progress; animation-timing-function: linear; }
.b-s1 { animation-name: b-s1; }
.b-s2 { animation-name: b-s2; }
.b-s4 { animation-name: b-s4; }
.b-s3 { animation-name: b-s3; }
.c-card { animation-name: c-card; }
.c-s1 { animation-name: c-s1; }
.c-s2 { animation-name: c-s2; }
.c-s4 { animation-name: c-s4; }
.c-s3 { animation-name: c-s3; }
.c-dot-1 { animation-name: c-dot-1; }
.c-dot-2 { animation-name: c-dot-2; }
.c-dot-3 { animation-name: c-dot-3; }
.c-dot-4 { animation-name: c-dot-4; }
.pp-press-1 { animation-name: pp-press-1; }
.pp-press-2 { animation-name: pp-press-2; }
.pp-press-3 { animation-name: pp-press-3; }
.pp-press-4 { animation-name: pp-press-4; }
.d-card { animation-name: d-card; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes a-card {
  0%, 10% { opacity: 0; transform: translate(-130px, 150px) rotate(-16deg); }
  20%, 36% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: translate(-130px, 150px) rotate(-16deg); }
}
@keyframes a-wave {
  0%, 22% { opacity: 0; transform: scale(0.6); }
  26% { opacity: 0.9; }
  34%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes a-wave-2 {
  0%, 27% { opacity: 0; transform: scale(0.6); }
  31% { opacity: 0.9; }
  39%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes a-pay { 0%, 14% { opacity: 1; } 20%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes a-proc { 0%, 26% { opacity: 0; } 30%, 48% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes a-ok { 0%, 48% { opacity: 0; } 50%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes a-receipt {
  0%, 52% { opacity: 1; transform: translateY(90px); }
  74%, 92% { opacity: 1; transform: translateY(0); }
  96% { opacity: 0; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(90px); }
}

@keyframes b-hand {
  0%, 6% { opacity: 0; transform: translateY(-50px); }
  16%, 62% { opacity: 1; transform: none; }
  76%, 100% { opacity: 0; transform: translateY(-50px); }
}
@keyframes b-beam { 0%, 18% { opacity: 0; } 22%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes b-ring { 0%, 18% { stroke-opacity: 0.35; } 22%, 40% { stroke-opacity: 1; } 46%, 100% { stroke-opacity: 0.35; } }
@keyframes b-scan {
  0%, 20% { opacity: 0; transform: translateY(150px); }
  22% { opacity: 1; transform: translateY(150px); }
  40% { opacity: 1; transform: translateY(0); }
  42%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes b-veins { 0%, 24% { opacity: 0; } 32%, 46% { opacity: 0.9; } 54%, 100% { opacity: 0; } }
@keyframes b-progress { 0%, 22% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes b-s1 { 0%, 18% { opacity: 1; } 20%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes b-s2 { 0%, 18% { opacity: 0; } 20%, 40% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes b-s4 { 0%, 40% { opacity: 0; } 42%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes b-s3 { 0%, 58% { opacity: 0; } 60%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

@keyframes c-card {
  0%, 6% { opacity: 0; transform: translateY(30px); }
  14%, 78% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: translateY(30px); }
}
@keyframes c-s1 { 0%, 14% { opacity: 1; } 18%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes c-s2 { 0%, 16% { opacity: 0; } 18%, 42% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes c-dot-1 { 0%, 24% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes c-dot-2 { 0%, 29% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes c-dot-3 { 0%, 34% { opacity: 0; } 35%, 100% { opacity: 1; } }
@keyframes c-dot-4 { 0%, 39% { opacity: 0; } 40%, 100% { opacity: 1; } }
@keyframes pp-press-1 { 0%, 23% { opacity: 0; } 24%, 26% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes pp-press-2 { 0%, 28% { opacity: 0; } 29%, 31% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes pp-press-3 { 0%, 33% { opacity: 0; } 34%, 36% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes pp-press-4 { 0%, 38% { opacity: 0; } 39%, 41% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes c-s4 { 0%, 44% { opacity: 0; } 46%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes c-s3 { 0%, 58% { opacity: 0; } 60%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

@keyframes d-card {
  0%, 10% { opacity: 0; transform: translate(90px, 140px) rotate(14deg); }
  20%, 36% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; transform: translate(90px, 140px) rotate(14deg); }
}

/* ---------- Fluxo da transação (página de soluções) ---------- */

.section-flow { padding-bottom: 0; }
.flow-panel {
  position: relative; overflow: hidden; padding: 2.5rem 1.5rem; border-radius: var(--radius-xl); color: var(--white);
  background:
    radial-gradient(700px 360px at 90% 0%, rgb(37 99 235 / 0.42), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgb(34 211 238 / 0.16), transparent 70%),
    var(--navy-950);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .flow-panel { padding: 3.5rem 3rem; } }
.flow-panel .h2 { margin-bottom: 0.75rem; color: var(--white); }
.flow-panel .lead { max-width: 40rem; color: rgb(226 232 240 / 0.78); }
.flow { position: relative; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 0.08); }
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-svg text { font-family: var(--font); }
.flow-v { max-width: 26rem; }
.flow-h { display: none; }
@media (min-width: 1024px) { .flow-h { display: block; } .flow-v { display: none; } }
.fl-line { fill: none; stroke: rgb(255 255 255 / 0.12); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.fl-box { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.1); }
.fl-icon-bg { fill: rgb(255 255 255 / 0.06); }
.fl-icon { fill: none; stroke: #93c5fd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-title { font-size: 14px; font-weight: 600; fill: #fff; }
.fl-sub { font-size: 12px; fill: rgb(203 213 225 / 0.7); }
.flow-v .fl-title { font-size: 13px; }
.flow-v .fl-sub { font-size: 10.5px; }
.fl-ok { fill: #4ade80; }
.fl-bad { fill: #f87171; }
.fl-wait { fill: #67e8f9; }
.fl-caption { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; fill: rgb(203 213 225 / 0.6); }
.fl-chip { fill: none; stroke: rgb(255 255 255 / 0.16); }
.fl-chip-text { font-size: 10.5px; font-weight: 600; fill: rgb(226 232 240 / 0.85); }

/* ---------- Faixa de parceiros ---------- */

.logos { padding: 2.5rem 0; }
.logos-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .logos-inner { flex-direction: row; justify-content: space-between; } }
.logos-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.logos-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem; }
.logos-list img {
  height: 1.5rem; width: auto; max-width: 6.5rem; object-fit: contain;
  filter: grayscale(1); opacity: 0.45;
}

/* ---------- Seções ---------- */

.section { padding: 4.5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section:not(.section-alt) + .section-cta, .logos + .section-cta { padding-top: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.h2 { margin: 1rem 0; font-size: clamp(1.875rem, 3.6vw, 2.625rem); line-height: 1.12; letter-spacing: -0.028em; }
.lead { font-size: 1.125rem; line-height: 1.75; color: var(--muted); }
.center-actions { display: flex; justify-content: center; margin-top: 3rem; }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.media { position: relative; }
.media::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; z-index: -1;
  border-radius: var(--radius-xl); background: var(--gradient); opacity: 0.18; filter: blur(40px);
}
.media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); outline: 1px solid rgb(15 27 38 / 0.06); outline-offset: -1px;
}

/* ---------- Grids e cards ---------- */

.grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .grid { gap: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; padding: 1.75rem; text-align: left;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-link-wrap { cursor: pointer; }
.card-link-wrap:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(37 99 235 / 0.28); }
.card-title { margin: 1.25rem 0 0.5rem; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.012em; }
.card-text { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }
.card-link {
  display: inline-flex; align-items: center; gap: 0.375rem; margin-top: auto; padding-top: 1.5rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--blue);
}
.card:hover .nudge { transform: translateX(3px); }

.icon-tile {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 12px; color: var(--white);
  background: var(--gradient); box-shadow: 0 10px 20px -8px rgb(37 99 235 / 0.55);
}
.icon-tile-soft { background: var(--surface-2); color: var(--navy); box-shadow: none; border: 1px solid var(--border); }
.icon-tile-lg { width: 3.5rem; height: 3.5rem; border-radius: 16px; }

.checklist { display: grid; gap: 0.625rem; margin-top: 1.25rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; color: var(--text); }
.check {
  box-sizing: content-box; padding: 3px; margin-top: 1px; border-radius: 50%;
  color: var(--blue); background: rgb(37 99 235 / 0.1);
}
.checklist-grid { margin-top: 0; }
@media (min-width: 640px) { .checklist-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; } }

.partner { align-items: center; text-align: center; }
.partner-logo {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 6.5rem;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--border);
}
.partner-logo img { max-height: 3.25rem; max-width: 70%; object-fit: contain; }

/* ---------- Simulador de POS ---------- */

.tools-grid { max-width: 52rem; }
.hero-actions-center { justify-content: center; margin-top: 2rem; }
.features-1 { grid-template-columns: minmax(0, 1fr) !important; }

/* As fotos dos terminais têm fundo #e9edf2; o painel usa a mesma cor para a imagem se fundir. */
.device-shot {
  display: grid; place-items: center; margin: 0; padding: 1.5rem 1rem 0;
  border-radius: var(--radius-lg); background: #e9edf2; overflow: hidden;
}
.device-shot img { width: auto; max-width: 100%; max-height: 26rem; object-fit: contain; }
.device-shot-hero { padding: 2.5rem 1.5rem 0; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.device-shot-hero img { max-height: 36rem; }
.model { margin: 0; padding: 0.75rem; }
.model .device-shot { width: 100%; height: 24rem; padding: 1.25rem; }
.model .device-shot img { height: 21.5rem; width: auto; max-height: none; }
.model figcaption { padding: 0.25rem 0.75rem 0.75rem; }
.download { align-items: stretch; }
.download .card-text { margin-bottom: 1.5rem; }
.download-actions { display: grid; gap: 0.625rem; margin-top: auto; }
.btn-meta { margin-left: auto; padding-left: 0.5rem; font-weight: 500; opacity: 0.75; font-variant-numeric: tabular-nums; }
.download-actions .btn { justify-content: flex-start; }
.version-tag { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.requirements { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .requirements { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.requirements .dialog-subtitle { margin-top: 0; }
.sdk-box { display: flex; gap: 1rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.sdk-box h4 { margin-bottom: 0.375rem; font-size: 1rem; font-weight: 600; }
.sdk-box p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.sdk-box .card-link { padding-top: 0.875rem; }

/* ---------- Cabeçalho das páginas internas ---------- */

.page-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 5rem 0 4rem; border-bottom: 1px solid var(--border);
  background: radial-gradient(800px 360px at 50% -10%, rgb(37 99 235 / 0.12), transparent 70%), var(--surface);
}
.page-hero .container > * { animation: rise .6s var(--ease) both; }
.page-title {
  max-width: 48rem; margin: 1.25rem auto 1rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
}
.page-hero .lead { max-width: 40rem; margin-inline: auto; }

.notfound { padding: 7rem 0; }
.notfound-code {
  margin: 1rem 0; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; letter-spacing: -0.05em; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Sobre ---------- */

.about-logo { height: 3.5rem; width: auto; margin-bottom: 1.75rem; }
.mission {
  position: relative; overflow: hidden; padding: 2.5rem; border-radius: var(--radius-xl); color: var(--white);
  background: radial-gradient(500px 300px at 100% 0%, rgb(37 99 235 / 0.45), transparent 70%), var(--navy-950);
  box-shadow: var(--shadow-lg);
}
.mission-text { margin-top: 1.5rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- CTA ---------- */

.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 4rem 1.5rem; border-radius: var(--radius-xl); color: var(--white);
  background:
    radial-gradient(600px 300px at 15% 0%, rgb(37 99 235 / 0.5), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgb(34 211 238 / 0.25), transparent 70%),
    var(--navy-950);
}
@media (min-width: 768px) { .cta { padding: 5rem 3rem; } }
.cta-title { color: var(--white); font-size: clamp(1.875rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; }
.cta-text { max-width: 38rem; margin: 1rem auto 0; font-size: 1.125rem; line-height: 1.7; color: rgb(226 232 240 / 0.78); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }

/* ---------- Footer ---------- */

.footer { padding: 4rem 0 2rem; background: var(--navy-950); color: rgb(203 213 225 / 0.7); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1fr; } }
.footer-brand p { max-width: 20rem; margin-top: 1.25rem; line-height: 1.7; }
.footer-logo { height: 2.25rem; width: auto; filter: brightness(0) invert(1); }
.footer-title { margin-bottom: 1rem; color: var(--white); font-size: 0.875rem; font-weight: 600; }
.footer-list { display: grid; gap: 0.75rem; }
.footer-list a, .social { transition: color .2s; }
.footer-list a:hover { color: var(--white); }
.footer-contact { display: inline-flex; align-items: center; gap: 0.5rem; }
.social {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  border: 1px solid rgb(255 255 255 / 0.12); background: rgb(255 255 255 / 0.04);
}
.social:hover { color: var(--white); background: rgb(255 255 255 / 0.1); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 0.8125rem;
}
.footer .lang-toggle { background: transparent; border-color: rgb(255 255 255 / 0.14); }
.footer .lang-toggle a { color: rgb(203 213 225 / 0.7); }
.footer .lang-toggle a:hover { color: var(--white); }
.footer .lang-toggle a.is-active { background: var(--white); color: var(--navy); }

/* ---------- Diálogos (elemento <dialog> nativo) ---------- */

.dialog, .sheet {
  border: 1px solid var(--border); padding: 0; color: var(--text); background: var(--white);
  box-shadow: 0 40px 80px -20px rgb(8 17 26 / 0.45);
}
.dialog::backdrop, .sheet::backdrop {
  background: rgb(8 17 26 / 0.6); backdrop-filter: blur(4px); animation: fade-in .2s;
}
.dialog:focus-visible, .sheet:focus-visible { box-shadow: 0 40px 80px -20px rgb(8 17 26 / 0.45); }
.dialog { width: calc(100% - 2rem); margin: auto; border-radius: var(--radius-xl); max-height: 88vh; overflow-y: auto; }
.dialog[open] { animation: pop-in .25s var(--ease); }
.dialog-sm { max-width: 26rem; }
.dialog-lg { max-width: 54rem; }
.dialog-head { display: flex; align-items: center; gap: 1rem; padding: 2rem 4rem 1.5rem 2rem; }
.dialog-title { font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -0.025em; }
.dialog-body { padding: 0 2rem 2rem; }
.dialog-subtitle {
  margin: 2.25rem 0 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

.features { display: grid; gap: 0.875rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 1rem; padding: 1.125rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  border-radius: 10px; color: var(--blue); background: var(--white); border: 1px solid var(--border);
}
.feature h4 { margin-bottom: 0.25rem; font-size: 0.9375rem; font-weight: 600; }
.feature p { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }

.contact { display: grid; justify-items: center; gap: 0.75rem; padding: 2.5rem 2rem 2rem; text-align: center; }
.contact .dialog-title { margin-top: 0.5rem; }
.contact-email {
  width: 100%; margin: 0.25rem 0 0.75rem; padding: 0.875rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; color: var(--ink); word-break: break-all;
}

.dialog-close {
  position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s;
}
.dialog-close:hover { background: var(--surface-2); color: var(--ink); }

.sheet {
  margin: 0; inset: 0 0 0 auto; width: min(22rem, 88vw); height: 100%; max-height: none;
  border-width: 0 0 0 1px; padding: 1.25rem;
}
.sheet[open] { display: flex; flex-direction: column; animation: slide-in .35s var(--ease); }
.sheet-logo img { height: 2rem; width: auto; }
.sheet-links { display: grid; gap: 0.25rem; margin-top: 2rem; }
.sheet-links a {
  display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem;
  border-radius: var(--radius); font-size: 1.0625rem; font-weight: 500; color: var(--ink);
}
.sheet-links a .icon { color: var(--muted); }
.sheet-links a:hover, .sheet-links a.is-active { background: var(--surface-2); }
.sheet-links a.is-active { font-weight: 600; color: var(--navy); }
.sheet-footer { display: grid; gap: 1rem; justify-items: start; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sheet-footer .btn { width: 100%; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

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