/* Clube Coins — site público (apresentação, desenvolvedores, downloads).
   Padrão visual: vidro estilo Apple + micro-interações "gelatina". Sem build, sem dependências. */

:root {
  --ink: #0E1220; --ink2: #4A5068; --ink3: #6B7189;
  --iris: #5B5BF7; --violet: #8B5CF6; --amber: #F6B93B; --ok: #16A36A; --ok-ink: #0F7A4F; --danger: #D93036;
  --link: #4B4BE6;
  --bg: #F6F7FD;
  --glass: rgba(255, 255, 255, .62);
  --glass-solid: rgba(255, 255, 255, .94);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .7);
  --outline: rgba(14, 18, 32, .06);
  --hi: rgba(255, 255, 255, .8);
  --shadow: 0 10px 40px -12px rgba(14, 18, 32, .18);
  --line: rgba(14, 18, 32, .08);
  --chip: rgba(91, 91, 247, .1);
  --chip-ink: #3E3EC9;
  --pill-on: rgba(255, 255, 255, .96);
  --code-bg: #0F1226; --code-ink: #E4E7F6; --code-muted: #8D93B3; --code-str: #FFD27A; --code-line: rgba(255, 255, 255, .08);
  --inline-code: rgba(91, 91, 247, .09);
  --blob1: #C9CCFF; --blob2: #FFD9BE; --blob3: #BDF1DA;
  --grad: linear-gradient(120deg, #5B5BF7 0%, #8B5CF6 100%);
  --grad-text: linear-gradient(100deg, #4F4FE8 0%, #7C4CEB 100%);
  --radius: 24px;
  --gutter: 16px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF0F8; --ink2: #B4B9CF; --ink3: #9298B3;
    --link: #A5A6FF; --ok-ink: #4FD69A;
    --bg: #0B0E1A;
    --glass: rgba(22, 26, 44, .55);
    --glass-solid: rgba(22, 26, 44, .96);
    --glass-strong: rgba(28, 33, 56, .78);
    --glass-border: rgba(255, 255, 255, .09);
    --outline: rgba(0, 0, 0, .35);
    --hi: rgba(255, 255, 255, .07);
    --shadow: 0 12px 44px -14px rgba(0, 0, 0, .6);
    --line: rgba(255, 255, 255, .09);
    --chip: rgba(139, 140, 255, .14);
    --chip-ink: #C3C4FF;
    --pill-on: rgba(255, 255, 255, .14);
    --code-bg: #080A16;
    --inline-code: rgba(165, 166, 255, .12);
    --blob1: #3B3BB8; --blob2: #0F6E6A; --blob3: #4A2B8C;
    --grad-text: linear-gradient(100deg, #A5A6FF 0%, #C9A8FF 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EEF0F8; --ink2: #B4B9CF; --ink3: #9298B3;
  --link: #A5A6FF; --ok-ink: #4FD69A;
  --bg: #0B0E1A;
  --glass: rgba(22, 26, 44, .55);
  --glass-solid: rgba(22, 26, 44, .96);
  --glass-strong: rgba(28, 33, 56, .78);
  --glass-border: rgba(255, 255, 255, .09);
  --outline: rgba(0, 0, 0, .35);
  --hi: rgba(255, 255, 255, .07);
  --shadow: 0 12px 44px -14px rgba(0, 0, 0, .6);
  --line: rgba(255, 255, 255, .09);
  --chip: rgba(139, 140, 255, .14);
  --chip-ink: #C3C4FF;
    --pill-on: rgba(255, 255, 255, .14);
  --code-bg: #080A16;
  --inline-code: rgba(165, 166, 255, .12);
  --blob1: #3B3BB8; --blob2: #0F6E6A; --blob3: #4A2B8C;
  --grad-text: linear-gradient(100deg, #A5A6FF 0%, #C9A8FF 100%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(60vw 50vh at 0% 0%, #EEF0FF 0%, transparent 70%),
    radial-gradient(50vw 50vh at 100% 20%, #FFF1E6 0%, transparent 70%),
    radial-gradient(60vw 60vh at 40% 100%, #E9FBF3 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: var(--bg); } }
:root[data-theme="dark"] body { background: var(--bg); }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.bg span:nth-child(1) { width: 520px; height: 520px; background: var(--blob1); top: -160px; left: -140px; }
.bg span:nth-child(2) { width: 460px; height: 460px; background: var(--blob2); top: 30%; right: -180px; }
.bg span:nth-child(3) { width: 420px; height: 420px; background: var(--blob3); bottom: -160px; left: 25%; }

img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 16px; color: var(--ink2); }
strong { color: var(--ink); font-weight: 600; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; }
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.num, td, .tabular { font-variant-numeric: tabular-nums; }
code, pre, kbd { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
:not(pre) > code {
  font-size: .86em; background: var(--inline-code); color: var(--ink);
  padding: 2px 7px; border-radius: 8px; overflow-wrap: anywhere;
}
::selection { background: rgba(91, 91, 247, .25); }

:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Vidro ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--outline), var(--shadow), inset 0 1px 0 var(--hi);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .site-header, .toc { background: var(--glass-solid); }
}

/* ---------- Gelatina ---------- */
.jelly { transition: transform .35s var(--spring), box-shadow .35s ease, background-color .2s ease; will-change: transform; }
.jelly:hover { transform: translateY(-2px); }
.jelly:active { transform: scale(.97); transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .jelly:hover, .jelly:active { transform: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(91, 91, 247, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-glass {
  color: var(--ink); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border); box-shadow: 0 0 0 1px var(--outline), 0 6px 20px -10px rgba(14, 18, 32, .2), inset 0 1px 0 var(--hi);
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn .arrow { transition: transform .35s var(--spring); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: relative; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; } .site-header .container { flex-wrap: nowrap; min-height: 68px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; border-radius: 999px; padding: 4px 6px 4px 0; }
.brand svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 8px rgba(246, 185, 59, .45)); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line); }
.nav a {
  color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--pill-on); color: var(--ink); box-shadow: 0 2px 10px -4px rgba(14, 18, 32, .25); }
@media (max-width: 639px) {
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; padding: 8px 6px; font-size: 14px; }
  .nav .long { display: none; }
}
@media (min-width: 640px) { .nav .short { display: none; } }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 19px; margin-top: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 14px; font-weight: 600; color: var(--chip-ink); background: var(--chip);
  padding: 6px 14px; border-radius: 999px;
}
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: var(--ink2); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { padding: 28px; }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; font-size: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 91, 247, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.icon svg { width: 24px; height: 24px; }
.icon.amber { background: linear-gradient(135deg, #FFD37A, #F0A21E); color: #4A2E00; box-shadow: 0 8px 20px -8px rgba(240, 162, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.icon.mint { background: linear-gradient(135deg, #3DD598, #16A36A); box-shadow: 0 8px 20px -8px rgba(22, 163, 106, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ---------- Hero (apresentação) ---------- */
.hero { padding: 64px 0 40px; text-align: center; }
@media (min-width: 960px) { .hero { padding: 120px 0 72px; } }
.hero h1 { max-width: 920px; margin: 0 auto; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--ink3); }
.floaters { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 56px; }
.floater { display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 20px; text-align: left; }
.floater small { display: block; color: var(--ink3); font-size: 13px; line-height: 1.3; }
.floater b { display: block; font-size: 16px; color: var(--ink); line-height: 1.3; }
.floater .icon { width: 40px; height: 40px; border-radius: 14px; }
.floater .icon svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .floater { animation: bob 6s ease-in-out infinite; }
  .floater:nth-child(2) { animation-delay: -2s; }
  .floater:nth-child(3) { animation-delay: -4s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Fluxo (como funciona) ---------- */
.flow { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 960px) { .flow { grid-template-columns: minmax(0, 1fr) 136px minmax(0, 1fr) 136px minmax(0, 1fr); gap: 0; } }
.flow-node { padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow-node .icon { width: 64px; height: 64px; border-radius: 20px; }
.flow-node .icon svg { width: 30px; height: 30px; }
.flow-node h3 { margin: 18px 0 8px; }
.flow-node p { margin: 0; font-size: 16px; }
.step-n { font-size: 13px; font-weight: 600; color: var(--ink3); margin-top: 14px; }
.flow-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 4px 0; }
.flow-link svg { width: 28px; height: 56px; color: var(--iris); }
.flow-link span { font-size: 13px; font-weight: 600; color: var(--chip-ink); background: var(--chip); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
@media (min-width: 960px) { .flow-link svg { width: 72px; height: 28px; } .flow-link .v { display: none; } }
@media (max-width: 959px) { .flow-link .h { display: none; } }
.dash { stroke-dasharray: 5 6; }
@media (prefers-reduced-motion: no-preference) { .dash { animation: dash 1.2s linear infinite; } }
@keyframes dash { to { stroke-dashoffset: -22; } }

/* ---------- Celular (mock) ---------- */
.showcase { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .showcase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone {
  --brand: #0E9F94; --brand-ink: #fff; --brand-soft: rgba(14, 159, 148, .12);
  width: min(320px, 100%); aspect-ratio: 320 / 650; padding: 12px; border-radius: 48px;
  background: linear-gradient(160deg, #2A2F45, #0E1220);
  box-shadow: 0 40px 80px -30px rgba(14, 18, 32, .55), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone[data-brand="laranja"] { --brand: #E8590C; --brand-soft: rgba(232, 89, 12, .12); }
.phone[data-brand="azul"] { --brand: #1D4ED8; --brand-soft: rgba(29, 78, 216, .12); }
.phone-screen {
  height: 100%; border-radius: 38px; overflow: hidden; background: #F5F6FA; color: #0E1220;
  display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; position: relative;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-weight: 600; font-size: 12px; }
.ph-status i { display: inline-block; width: 16px; height: 8px; border-radius: 2px; border: 1.5px solid #0E1220; margin-left: 4px; position: relative; }
.ph-status i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #0E1220; border-radius: 1px; }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 10px 18px 12px; }
.ph-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 15px; transition: background-color .4s ease; }
.ph-top strong { display: block; font-size: 14px; color: #0E1220; }
.ph-top small { display: block; color: #5A6078; font-size: 11.5px; }
.ph-balance {
  margin: 0 14px; padding: 16px; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: var(--brand); transition: background-color .4s ease;
}
.ph-balance::after { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ph-balance small { opacity: .9; font-size: 11.5px; }
.ph-amount { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.ph-amount span { font-size: 15px; font-weight: 600; }
.ph-amount svg { width: 26px; height: 26px; }
.ph-gain { display: inline-block; font-size: 11.5px; background: rgba(255, 255, 255, .22); padding: 3px 9px; border-radius: 999px; }
.ph-title { display: flex; justify-content: space-between; padding: 16px 18px 8px; font-weight: 700; font-size: 14px; }
.ph-title a { color: var(--brand); font-weight: 600; font-size: 12px; text-decoration: none; pointer-events: none; }
.ph-coupons { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 8px; }
.ph-coupons li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 1px 0 rgba(14, 18, 32, .04), 0 4px 14px -8px rgba(14, 18, 32, .15); }
.ph-store { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ph-coupons b { display: block; font-size: 12.5px; color: #0E1220; }
.ph-coupons small { display: block; color: #5A6078; font-size: 11px; }
.ph-coupons div { min-width: 0; flex: 1; }
.ph-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; color: #6B4500; background: #FFF3D6; padding: 4px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ph-price svg { width: 13px; height: 13px; }
.ph-tabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px 18px; background: #fff; border-top: 1px solid rgba(14, 18, 32, .06); font-size: 10.5px; color: #6B7189; text-align: center; }
.ph-tabbar span::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 3px; border-radius: 6px; background: currentColor; opacity: .25; }
.ph-tabbar .on { color: var(--brand); font-weight: 600; }
.ph-tabbar .on::before { opacity: 1; }
.swatches { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--ink2); }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--glass-solid); cursor: pointer; box-shadow: 0 0 0 1px var(--outline), 0 4px 10px -4px rgba(14, 18, 32, .35); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), 0 4px 10px -4px rgba(14, 18, 32, .35); }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.points .icon { width: 40px; height: 40px; border-radius: 14px; flex: none; }
.points .icon svg { width: 20px; height: 20px; }
.points b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.points p { margin: 0; font-size: 15.5px; }

/* ---------- Chips (para quem é) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); font-size: 16px; }
.chip svg { width: 22px; height: 22px; color: var(--iris); }
.chip small { font-weight: 400; color: var(--ink3); font-size: 14px; }

/* ---------- Linha do tempo ---------- */
.timeline { display: grid; gap: 16px; counter-reset: t; }
@media (min-width: 960px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.timeline .card { position: relative; }
.when { display: inline-block; font-weight: 700; font-size: 14px; color: #6B4500; background: #FFF0CC; padding: 4px 12px; border-radius: 999px; }
.big-claim { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-align: center; margin: 40px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; color: var(--ink);
  position: relative; border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg);
  transition: transform .35s var(--spring);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; }
.faq details p { margin: 0; }

/* ---------- Chamada final ---------- */
.cta-box { text-align: center; padding: 56px 24px; position: relative; overflow: hidden; }
@media (min-width: 720px) { .cta-box { padding: 80px 48px; } }
.cta-box h2 { max-width: 720px; margin: 0 auto; }
.cta-box p { max-width: 560px; margin: 16px auto 0; font-size: 18px; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 40px 0 56px; color: var(--ink3); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer a { color: var(--ink2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* =========================================================
   Página de desenvolvedores
   ========================================================= */
.dev-hero { padding: 56px 0 24px; }
@media (min-width: 960px) { .dev-hero { padding: 88px 0 32px; } }
.dev-hero h1 { font-size: clamp(34px, 5.2vw, 56px); max-width: 860px; }
.dev-hero .lead { max-width: 700px; margin-top: 20px; }
.quick { display: grid; gap: 12px; margin-top: 36px; }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick .card { padding: 22px; }
.quick b { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
.quick p { margin: 8px 0 0; font-size: 15px; }
.n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--grad); }

.docs { display: grid; gap: 32px; padding-bottom: 96px; }
@media (min-width: 960px) { .docs { grid-template-columns: 248px minmax(0, 1fr); gap: 56px; } }
.docs main { min-width: 0; }

.toc {
  position: sticky; top: 8px; z-index: 40; align-self: start;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0 0 1px var(--outline), var(--shadow), inset 0 1px 0 var(--hi);
}
@media (min-width: 960px) { .toc { top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 16px 10px; } }
.toc-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; padding: 14px 18px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-radius: 20px;
}
.toc-toggle small { display: block; font-size: 12px; color: var(--ink3); font-weight: 500; }
.toc-toggle b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-toggle .chev { width: 10px; height: 10px; flex: none; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .35s var(--spring); margin-top: -4px; }
.toc[data-open="true"] .toc-toggle .chev { transform: rotate(225deg); margin-top: 4px; }
.toc-list { list-style: none; margin: 0; padding: 0 8px 10px; }
.toc-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 12px;
  color: var(--ink2); text-decoration: none; font-size: 15px; line-height: 1.35;
}
.toc-list a span { font-variant-numeric: tabular-nums; color: var(--ink3); font-size: 13px; min-width: 14px; }
.toc-list a:hover { background: var(--line); color: var(--ink); }
.toc-list a[aria-current="true"] { background: var(--chip); color: var(--chip-ink); font-weight: 600; }
.toc-list a[aria-current="true"] span { color: inherit; }
@media (max-width: 959px) {
  .toc-list { display: none; max-height: 60vh; overflow: auto; }
  .toc[data-open="true"] .toc-list { display: block; }
}
@media (min-width: 960px) { .toc-toggle { display: none; } .toc-list { padding: 0; } }
.toc-title { display: none; }
@media (min-width: 960px) { .toc-title { display: block; font-size: 13px; font-weight: 600; color: var(--ink3); padding: 4px 12px 8px; } }

.step { padding-top: 56px; }
.step:first-child { padding-top: 8px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-badge {
  width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff; background: var(--grad); font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -8px rgba(91, 91, 247, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.step h2 { font-size: clamp(26px, 3.4vw, 36px); }
.step h3 { margin: 32px 0 12px; }
.plain {
  display: flex; gap: 14px; padding: 20px 22px; margin: 0 0 24px; border-radius: 20px;
}
.plain .icon { width: 36px; height: 36px; border-radius: 12px; flex: none; }
.plain .icon svg { width: 18px; height: 18px; }
.plain b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.plain p { margin: 0; font-size: 16px; }
.plain p + p { margin-top: 8px; }

.endpoint { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 8px 14px 8px 8px; border-radius: 999px; max-width: 100%; }
.verb { font: 700 12px/1 "JetBrains Mono", monospace; padding: 7px 10px; border-radius: 999px; letter-spacing: .02em; }
.verb.post { background: #FFE7B0; color: #5C3B00; }
.verb.get { background: #CFF5E3; color: #0B5C3A; }
.path { font: 500 15px/1.4 "JetBrains Mono", monospace; color: var(--ink); overflow-wrap: anywhere; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; margin: 20px 0; }
.callout .icon { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.callout .icon svg { width: 16px; height: 16px; }
.callout p { margin: 0; font-size: 16px; }
.callout.warn { border-left: 4px solid var(--danger); }
.callout.warn .icon { background: linear-gradient(135deg, #FF7A7F, #D93036); box-shadow: none; }
.callout.tip .icon { box-shadow: none; }

.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts li { padding: 16px 18px; border-radius: 18px; }
.facts b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14.5px; color: var(--ink2); }

/* Glossário */
.gloss { display: grid; gap: 12px; }
@media (min-width: 720px) { .gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gloss .card { padding: 22px; }
.gloss dt { font-weight: 700; color: var(--ink); font-size: 17px; }
.gloss dd { margin: 6px 0 0; color: var(--ink2); font-size: 15.5px; }
.gloss dd em { display: block; margin-top: 8px; font-style: normal; color: var(--ink3); font-size: 14.5px; }

/* Caminho de cliques */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 20px; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.crumbs li span { background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: 0 0 0 1px var(--outline); padding: 6px 12px; border-radius: 999px; }
.crumbs li + li::before { content: "›"; color: var(--ink3); font-weight: 400; }
.crumbs li:last-child span { background: var(--grad); color: #fff; border-color: transparent; }

/* Tabelas */
.table-wrap { overflow-x: auto; border-radius: 20px; margin: 16px 0 24px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--ink); font-size: 14px; background: var(--line); }
td { color: var(--ink2); }
td code { white-space: nowrap; }
.req { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.req.yes { background: #FFE2E3; color: #9E1C21; }
.req.no { background: var(--line); color: var(--ink2); }

/* Código */
.code { position: relative; margin: 16px 0 24px; border-radius: 20px; background: var(--code-bg); color: var(--code-ink); box-shadow: 0 0 0 1px var(--outline), var(--shadow); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--code-line); min-height: 48px; }
.code-bar .label { font: 500 12.5px/1.2 "JetBrains Mono", monospace; color: var(--code-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; tab-size: 2; }
.code pre:focus-visible { outline: 3px solid var(--iris); outline-offset: -3px; border-radius: 0; }
.tok-c { color: var(--code-muted); font-style: italic; }
.tok-s { color: var(--code-str); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: rgba(255, 255, 255, .08); color: #E4E7F6; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 6px 14px; min-height: 34px; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .14); }
.copy svg { width: 14px; height: 14px; }
.copy.done { background: rgba(22, 163, 106, .25); border-color: rgba(79, 214, 154, .5); color: #CFF5E3; }

/* Abas */
.tabs .code { margin-top: 0; }
.tablist { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line); margin: 16px 0 12px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: none; font: 500 15px/1.2 Inter, system-ui, sans-serif; color: var(--ink2); cursor: pointer;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap; min-height: 40px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--pill-on); color: var(--ink); font-weight: 600; box-shadow: 0 2px 10px -4px rgba(14, 18, 32, .3); }
.tab:focus-visible { outline-offset: 0; border-radius: 999px; }
[role="tabpanel"][hidden] { display: none; }
.tab-note { font-size: 14.5px; color: var(--ink3); margin: -12px 0 24px; }

/* Checklist */
.checklist { list-style: none; padding: 8px; margin: 16px 0 0; border-radius: 24px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 14px; cursor: pointer; border-radius: 16px; }
.checklist label:hover { background: var(--line); }
.checklist input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; margin: 1px 0 0; border-radius: 8px; border: 2px solid var(--ink3); display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring), background-color .2s; }
.checklist input:checked { background: var(--ok); border-color: var(--ok); transform: scale(1.06); }
.checklist input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:active { transform: scale(.9); }
.checklist span { color: var(--ink2); font-size: 16px; }
.checklist span b { color: var(--ink); font-weight: 600; }
.checklist input:checked + span { color: var(--ink3); }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; color: var(--ink2); }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3DD598, #16A36A); border-radius: 999px; transition: width .45s var(--spring); }

/* =========================================================
   Downloads
   ========================================================= */
.dl-list { display: grid; gap: 16px; max-width: 820px; }
.dl { display: grid; gap: 16px 20px; padding: 24px; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
@media (min-width: 720px) { .dl { grid-template-columns: auto minmax(0, 1fr) auto; padding: 28px; } }
.dl .icon { width: 56px; height: 56px; border-radius: 18px; }
.dl h2 { font-size: 18px; letter-spacing: -.01em; font-family: "JetBrains Mono", monospace; font-weight: 600; overflow-wrap: anywhere; }
.dl p { margin: 6px 0 0; font-size: 15.5px; }
.dl .tag { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag.test { background: #FFF0CC; color: #6B4500; }
.tag.prod { background: #CFF5E3; color: #0B5C3A; }
.dl .btn { grid-column: 1 / -1; }
@media (min-width: 720px) { .dl .btn { grid-column: auto; } }
