/* HubPix — landing page */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --line: #e3e6eb;
  --text: #14171c;
  --muted: #5d6472;
  --accent: #0a8f6a;
  --accent-strong: #077356;
  --accent-soft: #e3f4ee;
  --on-accent: #ffffff;
  --code-bg: #0f141a;
  --code-text: #d7e2ea;
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1014;
    --panel: #141920;
    --line: #252c36;
    --text: #e8ecf1;
    --muted: #9aa3b2;
    --accent: #2fd39c;
    --accent-strong: #5fe0b4;
    --accent-soft: #12302a;
    --on-accent: #06281e;
    --code-bg: #0a0d11;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.08rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0a8f6a; }
.btn-light:hover { background: #eafaf4; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.brand-sm { font-size: 1rem; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; display: flex; gap: 10px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }

.hero-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { margin-left: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.mock-body { display: flex; gap: 20px; padding: 22px; align-items: center; }
.mock-qr { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); flex: 0 0 auto; }
.qr-art { width: 132px; height: 132px; display: block; fill: #111; }
.mock-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-amount { font-size: 1.6rem; margin-bottom: 8px; }
.mock-ref { font-family: var(--mono); font-size: .9rem; margin-bottom: 10px; }
.mock-badge { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 99px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.mock-code { font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-copy { font-size: .8rem; font-weight: 700; color: var(--accent); }

/* Seções */
.section { padding: 72px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; font-size: 1.05rem; }
.grid.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; fill: var(--accent); stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.feature-icon svg path[fill="none"], .feature-icon svg circle[fill="none"] { fill: none; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.step p { color: var(--muted); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px;
}

.api-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.api-links { display: flex; flex-wrap: wrap; gap: 10px; }
.code-card { background: var(--code-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.code-head { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8b98a5; font-family: var(--mono); font-size: .8rem; }
.code { margin: 0; padding: 18px; overflow-x: auto; color: var(--code-text); font-family: var(--mono); font-size: .85rem; line-height: 1.7; }

.cta { background: linear-gradient(135deg, #0a8f6a, #067055); color: #fff; }
.cta-inner { text-align: center; }
.cta-inner p { opacity: .9; margin: 0 0 24px; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.copy { margin: 0 0 0 auto; color: var(--muted); font-size: .85rem; }

@media (max-width: 960px) {
  .hero-inner, .api-grid { grid-template-columns: 1fr; }
  .grid.features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 48px 0; }
  .grid.features, .steps { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 0 12px; min-height: 38px; font-size: .88rem; }
  .mock-body { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1 1 100%; }
  .copy { margin-left: 0; }
}
