/* PixTo.Money — site público. Paleta e gradiente herdados do painel (px-skin.css). */
:root {
    --navy: #1e3a8a;
    --blue: #2563eb;
    --cyan: #0ea5e9;
    --dark: #0e1522;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --soft: #f8fafc;
    --bg: #f1f5f9;
    --ok: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
    --radius: 1rem;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
    --shadow: 0 12px 32px rgba(15, 23, 42, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand img { height: 44px; display: block; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: #cbd5e1; text-decoration: none; padding: .5rem .9rem; border-radius: .6rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .btn { margin-left: .5rem; color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: .6rem; padding: .45rem .7rem; font-size: 1.1rem; cursor: pointer; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; padding: .75rem 1.4rem; border-radius: .8rem; background: var(--gradient); color: #fff; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.btn--outline { background: #fff; color: var(--blue); border: 1px solid var(--border); }
.btn--ok { background: linear-gradient(135deg, #15803d, #16a34a); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .45rem .9rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { background-color: var(--dark); background-image: radial-gradient(900px 400px at 85% 0, rgba(14, 165, 233, .35), transparent 60%), radial-gradient(700px 400px at 0 100%, rgba(37, 99, 235, .35), transparent 60%); color: #cbd5e1; padding: 5rem 0 6rem; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero h1 span { background: linear-gradient(90deg, #38bdf8, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; padding: 0; list-style: none; font-size: .9rem; }
.hero__badges li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: .3rem .9rem; }
.hero__card { background: #fff; border-radius: 1.2rem; padding: 1.5rem; box-shadow: var(--shadow); color: var(--text); }
.hero__card h2 { font-size: 1.15rem; }
.flow { display: grid; gap: .6rem; margin: 1rem 0; }
.flow div { display: flex; align-items: center; gap: .8rem; background: var(--soft); border: 1px solid var(--border); border-radius: .8rem; padding: .7rem 1rem; }
.flow b { color: var(--ink); }
.flow .ic { width: 2rem; height: 2rem; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }

/* ---------- Seções ---------- */
section { padding: 4.5rem 0; }
.section--white { background: #fff; }
.section-title { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-title p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section--white .card { background: var(--soft); }
.card .ic { width: 2.8rem; height: 2.8rem; border-radius: .8rem; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 2.6rem; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: -1rem; left: 1.5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 12px rgba(37, 99, 235, .4); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: .9rem 1.2rem; border-bottom: 1px solid var(--border); }
th { background: var(--soft); color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.fine { font-size: .85rem; color: var(--muted); }

.cta-band { background: var(--gradient); color: #e0f2fe; text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--navy); }

details { background: #fff; border: 1px solid var(--border); border-radius: .9rem; margin-bottom: .7rem; }
details summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 600; color: var(--ink); }
details[open] summary { border-bottom: 1px solid var(--border); }
details p { padding: 0 1.3rem; }
.faq { max-width: 50rem; margin-inline: auto; }

/* ---------- Páginas de texto ---------- */
.page-head { background: var(--dark); color: #cbd5e1; padding: 3rem 0; }
.page-head h1 { color: #fff; margin: 0 0 .3rem; }
.page-head p { margin: 0; }
.prose { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem clamp(1.2rem, 4vw, 3rem); margin: -2rem auto 3rem; max-width: 56rem; position: relative; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .3rem; }
.notice { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: .8rem; padding: 1rem 1.2rem; color: #1e40af; }

/* ---------- Swap ---------- */
[id] { scroll-margin-top: 88px; }
.swap-section { background: linear-gradient(180deg, #e0ecff 0%, var(--bg) 100%); }
.swap-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 3rem; align-items: start; }
.swap-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.swap-intro > p { font-size: 1.1rem; color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: .8rem; padding: .25rem .8rem; border-radius: 99px; background: #dbeafe; color: var(--navy); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

.swap-page { padding: 2.5rem 0 4rem; }
.swap-wrap { max-width: 600px; margin: 0 auto; }
.swap-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.swap-hero { background: var(--gradient); color: #fff; padding: 1.5rem 1.5rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
.swap-hero h1, .swap-hero h2 { color: #fff; font-size: 1.35rem; margin: 0 0 .25rem; }
.swap-hero p { margin: 0; opacity: .88; font-size: .92rem; }
.swap-hero .fine { color: #fff; opacity: .8; margin-top: .5rem; font-size: .8rem; }
.swap-body { padding: 1.5rem; }
.swap-notes { list-style: none; margin: 0 0 1.25rem; padding: .75rem 1rem; background: #f1f5f9; border-radius: .75rem; font-size: .85rem; color: #475569; }
.swap-notes li { padding: .25rem 0 .25rem 1.6rem; position: relative; }
.swap-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.swap-panel { background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.swap-panel__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.swap-amount { display: flex; align-items: center; margin-top: .75rem; background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: 0 1rem; }
.swap-amount:focus-within, .field input:focus, .picker__btn:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: 0; }
.swap-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.6rem; font-weight: 600; padding: .6rem 0; color: var(--ink); }
.swap-amount span { font-weight: 700; color: var(--muted); margin-left: .75rem; }
.hint { display: block; min-height: 1.1rem; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.swap-divider { display: grid; place-items: center; height: 0; position: relative; z-index: 1; }
.swap-divider button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 4px solid #fff; background: var(--gradient); color: #fff; cursor: pointer; font-size: 1.05rem; }
.estimate { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.estimate strong { color: var(--ink); font-size: 1.25rem; }

/* Seletor de tokens/redes com busca e ícone */
.picker { position: relative; }
.picker__btn { width: 100%; display: flex; align-items: center; gap: .5rem; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: .6rem .8rem; font: inherit; color: var(--ink); cursor: pointer; }
.picker__btn::after { content: "▾"; margin-left: auto; color: var(--muted); }
.picker__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--border); border-radius: .75rem; box-shadow: var(--shadow); min-width: 240px; }
.picker__menu[hidden] { display: none; }
.picker__search { width: calc(100% - 1rem); margin: .5rem; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: .6rem; font: inherit; }
.picker__list { list-style: none; margin: 0; padding: 0 0 .4rem; max-height: 260px; overflow-y: auto; }
.picker__list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; cursor: pointer; }
.picker__list li:hover, .picker__list li[aria-selected="true"] { background: #eff6ff; }
.picker__list .group { cursor: default; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: none !important; padding-bottom: .1rem; }
.picker img, .token-icon { width: 20px; height: 20px; border-radius: 50%; flex: none; }

.alert { border-radius: .75rem; padding: .8rem 1rem; margin-bottom: 1rem; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert[hidden] { display: none; }
.alert--info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.quote { margin-top: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; background: #fff; }
.quote[hidden], [hidden] { display: none !important; }
.quote__title { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.quote__row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.quote__row strong { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.timer { margin: 1rem 0; }
.timer__top { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--blue); transition: width 1s linear, background .3s; }
.section-step { margin: 1.25rem 0 .75rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.section-step b { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.field input { width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .75rem; font: inherit; }
.field small { color: var(--muted); font-size: .8rem; display: block; margin-top: .25rem; }
.stack > * + * { margin-top: .6rem; }

/* ---------- Acompanhamento ---------- */
.status-pill { display: inline-block; padding: .3rem .9rem; border-radius: 99px; font-weight: 700; font-size: .9rem; background: #e0f2fe; color: #075985; }
.status-pill[data-tone="ok"] { background: #dcfce7; color: #166534; }
.status-pill[data-tone="warn"] { background: #fef3c7; color: #92400e; }
.status-pill[data-tone="bad"] { background: #fee2e2; color: #991b1b; }
.kv { display: grid; gap: .2rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: 0; }
.kv dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.deposit-box { text-align: center; background: var(--soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin: 1rem 0; }
.deposit-box .amount { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.copy { background: var(--soft); border: 1px solid var(--border); border-radius: .5rem; cursor: pointer; padding: .15rem .6rem; font: inherit; font-size: .8rem; color: var(--blue); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 2.5rem 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer img { height: 34px; }
.site-footer p { margin: .3rem 0 0; max-width: 42rem; }

@media (max-width: 960px) {
    .swap-grid { grid-template-columns: 1fr; gap: 2rem; }
    .swap-wrap { width: 100%; }
}
@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 4rem; }
    .menu-toggle { display: block; }
    .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--dark); padding: .5rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
    .nav.open { display: flex; }
    .nav .btn { margin: .4rem 0 0; }
}
@media (max-width: 480px) {
    .row2 { grid-template-columns: 1fr; }
    .swap-body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Seção escura (Por que usar) ---------- */
.section--dark { background-color: var(--dark); background-image: radial-gradient(800px 360px at 100% 0, rgba(14, 165, 233, .25), transparent 60%), radial-gradient(700px 360px at 0 100%, rgba(37, 99, 235, .25), transparent 60%); color: #cbd5e1; }
.section--dark .section-title h2 { color: #fff; }
.section--dark .section-title p { color: #94a3b8; }
.section--dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: #cbd5e1; }

/* 3 cards por linha (2 em tablet, 1 em celular) */
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Taxas ---------- */
.section--taxas { position: relative; background-color: #eaf2ff; background-image: radial-gradient(700px 320px at 0 0, rgba(14, 165, 233, .22), transparent 65%), radial-gradient(700px 320px at 100% 100%, rgba(37, 99, 235, .22), transparent 65%), radial-gradient(rgba(30, 58, 138, .12) 1px, transparent 1px); background-size: auto, auto, 22px 22px; border-block: 1px solid #d5e3fb; }
.section--taxas .table-wrap { border: 0; box-shadow: var(--shadow); }
.section--taxas th, .section--taxas td { text-align: center; }
.section--taxas thead th { background: var(--blue); color: #fff; }
.section--taxas tbody td:first-child { text-align: left; }
.section--taxas tbody tr:nth-child(even) td { background: var(--soft); }
.section--taxas tbody td:nth-child(2) { font-weight: 700; color: var(--navy); }

/* ---------- Como funciona em 3 passos ---------- */
.section--passos { background: #e0f2fe; }
