/* freecryptotips — desenho C "Graphite bento" (v1.3, 31-10-2026) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #111214;
  --card: #1A1C20;
  --card-2: #22252A;
  --line: #2A2D33;
  --line-2: #24272C;
  --ink: #F2F3F5;
  --ink-2: #D9DCE1;
  --ink-3: #C2C7CF;
  --muted: #A0A6B0;
  --lime: #C8F65D;
  --lime-ink: #111214;
  --pos: #4ADE9B;
  --neg: #FF8466;
  --buy: #7AB0FF;
  --usdc: #3987e5;
  --warn: #E8B44A;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--lime); }
a:hover { color: #E2FFA0; }
h1, h2, h3 { letter-spacing: -0.01em; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 14px; } }

/* cabeçalho */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; display: flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--ink); }
.nav a.pill { color: var(--lime-ink); background: var(--lime); border-radius: 999px; padding: 0 16px; min-height: 40px; font-weight: 700; }
.nav a.pill:hover { background: #D6FA80; }

.status { padding: 96px 0; color: var(--muted); margin: 0; }
.status.err { color: var(--neg); }

/* grelha de blocos */
.bento { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
@media (max-width: 480px) { .card { padding: 18px 16px; border-radius: 18px; } }
.card h2 { margin: 0; font-size: 20px; font-weight: 700; }
.sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.card-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.card-head p { margin: 0; font-size: 12px; color: var(--muted); }
.w-hero { flex: 7 1 520px; }
.w-stats { flex: 5 1 380px; }
.w-full { flex: 1 1 100%; }
.w-8 { flex: 8 1 600px; }
.w-4 { flex: 4 1 300px; }
.w-6 { flex: 6 1 440px; }

/* resultado */
.hero { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-value { margin: 12px 0 0; font-family: var(--mono); font-weight: 500; font-size: clamp(60px, 10vw, 116px); line-height: 1; letter-spacing: -0.05em; color: var(--lime); }
.hero-since { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; }
.hero-line { flex: 1 1 260px; margin: 0; font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.spark { flex: 1 1 200px; min-width: 0; }
.spark svg { display: block; width: 100%; height: 72px; }
.spark p { margin: 4px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }

.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stats dt { font-size: 13px; line-height: 1.3; color: var(--muted); }
.stats dd { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.stats .v { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.stats .s { font-size: 13px; color: var(--muted); }

/* aviso de alavancagem */
.warn { display: flex; gap: 14px; align-items: flex-start; padding: 16px 22px; border-radius: 18px; border: 1px solid var(--warn); background: #1E1A12; color: #F2E6CC; }
.warn svg { flex: none; color: var(--warn); margin-top: 1px; }
.warn p { margin: 0; font-size: 15px; line-height: 1.5; }
.warn strong { color: #FFD98A; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { appearance: none; min-height: 40px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px/1 var(--mono); cursor: pointer; }
.chip.sans { font-family: var(--sans); font-size: 14px; }
.chip:hover { color: var(--ink); border-color: #3A3E45; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--lime-ink); border-color: var(--ink); }
.chip:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* gráfico */
.chart-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chart-sum { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.chart { display: grid; grid-template-columns: minmax(0, 1fr) 54px; margin-top: 20px; }
.plot { position: relative; height: 270px; }
.yaxis { position: relative; height: 270px; }
@media (max-width: 480px) { .plot, .yaxis { height: 210px !important; } .chart { grid-template-columns: minmax(0, 1fr) 46px; } }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grid-line { position: absolute; left: 0; right: -54px; border-top: 1px solid var(--line-2); }
.zero-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #4A4F57; }
.yaxis span { position: absolute; right: 0; transform: translateY(-115%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.xaxis { position: relative; height: 20px; margin-top: 8px; }
.xaxis span { position: absolute; top: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.rug { position: relative; height: 14px; border-radius: 4px; background: var(--bg); }
.rug span { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1px; border-radius: 2px; }
.rug-label { padding-left: 8px; font-size: 12px; line-height: 14px; color: var(--muted); }
.hover-line { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(242, 243, 245, 0.35); pointer-events: none; }
.hover-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lime); border: 2px solid var(--card); pointer-events: none; }
.tip { position: absolute; top: 8px; background: var(--ink); color: var(--lime-ink); padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.35; pointer-events: none; white-space: nowrap; }
.tip .d { color: #4A4F57; }
.tip .v { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.overlay { position: absolute; inset: 0; cursor: crosshair; touch-action: pan-y; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.bar { width: 14px; }

/* círculo da carteira */
.pf-donut { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pf-donut h2 { align-self: flex-start; }
.donut { position: relative; width: 220px; height: 220px; }
.donut svg { display: block; width: 220px; height: 220px; }
.donut path { fill: none; cursor: pointer; transition: opacity .12s; }
.donut-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; text-align: center; pointer-events: none; }
.donut-center .v { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.donut-center .l { margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.donut-legend { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.donut-legend span:nth-child(2) { flex: 1 1 auto; }
.donut-legend span:last-child { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.pf-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* como seguir */
.guide-intro { margin: 8px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.rule { background: var(--card-2); border-radius: 16px; padding: 16px 18px; }
.rule .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 14px; }
.rule h3 { margin: 10px 0 0; font-size: 16px; }
.rule p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.guide-cols { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.story { flex: 1 1 380px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.story h3, .posts h3, .start h3 { margin: 0; font-size: 16px; }
.story ol { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.story li { position: relative; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.story li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.story li.now::before { border-color: var(--lime); background: var(--lime); }
.story li b { color: var(--ink); font-weight: 600; }
.story .when { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 6px; }
.posts { flex: 1 1 380px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.post-ex { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.post-ex div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.post-ex div:last-child { border-bottom: 0; padding-bottom: 0; }
.post-ex .q { font-size: 14px; font-weight: 600; color: var(--ink); }
.post-ex .a { font-size: 14px; color: var(--ink-3); }
.start { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.start .lead { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); max-width: 75ch; }
table.ex { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.ex th { text-align: right; padding: 0 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ex th:first-child, .ex td:first-child { text-align: left; padding-left: 0; }
.ex td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ex td:first-child { font-family: var(--sans); font-weight: 700; font-size: 14px; }
.ex td.buy { color: var(--lime); }
.start .then { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.start .alt { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
.good { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
.good li::before { content: '· '; color: var(--lime); }
.scroll-x { overflow-x: auto; }

/* tabela dos potes */
table.slices { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.slices th[scope=col] { padding: 0 8px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; text-align: right; }
.slices th[scope=col]:first-child { text-align: left; padding-left: 0; }
.slices th[scope=col]:nth-child(2) { text-align: left; }
.slices tbody th { text-align: left; padding: 7px 8px 7px 0; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.slices tbody td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); }
.slices td.num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.slices td.barcell { width: 100%; min-width: 100px; }
.slices tr.lit { background: var(--card-2); }
.slices .sw { width: 9px; height: 9px; margin-right: 8px; border-radius: 2px; border: 1px solid transparent; }
.slices tfoot th, .slices tfoot td { padding: 10px 8px 0; }
.slices tfoot th { text-align: left; padding-left: 0; font-weight: 700; }
.slices tfoot td.num { font-weight: 600; }
.sbar { display: flex; gap: 2px; height: 10px; }
.sbar span { display: block; height: 10px; border-radius: 3px; }
.legend.pots { margin-top: 10px; }

/* registo */
.filters { margin-top: 12px; }
.day { margin: 22px 0 0; padding-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.trades { list-style: none; margin: 0; padding: 0; }
.trades li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.trades .tm { width: 44px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.badge { min-width: 54px; text-align: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge.buy { background: #22324A; color: #A9C9FF; }
.badge.sell { background: var(--ink); color: var(--lime-ink); }
.trades .what { flex: 1 1 200px; min-width: 0; }
.trades .sym { font-size: 16px; font-weight: 700; }
.trades .desc { font-size: 13px; color: var(--ink-3); }
.trades .right { margin-left: auto; text-align: right; }
.trades .res { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.trades .px { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.more { margin-top: 18px; display: flex; justify-content: center; }
.btn { appearance: none; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--lime-ink); font: 700 15px/1 var(--sans); cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* doações */
.support { background: var(--lime); color: var(--lime-ink); border-radius: var(--r); padding: 24px; }
@media (max-width: 480px) { .support { padding: 18px 16px; border-radius: 18px; } }
.support h2 { margin: 0; font-size: 20px; font-weight: 700; }
.support .lead { margin: 6px 0 0; font-size: 15px; color: #2C3A0E; }
.wallets { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.wallet { flex: 1 1 260px; min-width: 0; background: var(--bg); color: var(--ink); border-radius: 16px; padding: 14px; }
.wallet .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.wallet .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: var(--lime-ink); padding: 2px 8px; border-radius: 999px; }
.wallet .note { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.wallet .row { display: flex; gap: 12px; align-items: flex-start; }
.qr { width: 96px; height: 96px; flex: none; background: #FFFFFF; border-radius: 10px; padding: 6px; }
.qr svg { display: block; width: 100%; height: 100%; }
.wallet .addr { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet code { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.45; background: var(--card-2); border-radius: 8px; padding: 10px 12px; word-break: break-all; color: var(--ink-2); }
.btn-ghost { align-self: flex-start; appearance: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.soon { margin: 14px 0 0; font-size: 14px; color: #2C3A0E; }

/* contacto */
.contact-intro { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.cform { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.frow { display: flex; flex-direction: column; gap: 6px; }
.frow label { font-size: 14px; font-weight: 600; }
.cform input[type=email], .cform textarea { width: 100%; font: 400 16px/1.45 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 44px; }
.cform textarea { resize: vertical; min-height: 110px; }
.cform input::placeholder, .cform textarea::placeholder { color: #7C828C; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
.cform [aria-invalid=true] { border-color: var(--neg); }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.factions .fine { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { padding-top: 22px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
footer p { margin: 0; max-width: 90ch; }
footer strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .donut path { transition: none; } }
