/* Xcandle.ai — landing page
   Estilo claro inspirado no Attio: branco, grafite quase preto, cinzas azulados,
   trilhos finos emoldurando a página, quadros de produto sobre fundo pontilhado. */

:root {
  --bg-0: #ffffff;
  --bg-1: #fafafb;
  --bg-2: #f3f4f6;
  --bg-3: #edeff3;
  --bg-hover: #f3f4f6;
  --line: #eeeff1;
  --line-2: #e4e7ec;
  --line-3: #d3d8df;
  --text: #1c1d1f;
  --text-2: #505967;
  --text-3: #8f99a8;
  --text-4: #b5bdc9;
  --ink: #1c1d1f;
  --accent: #266df0;
  --accent-2: #245bc2;
  --accent-soft: #e8f0ff;
  --buy: #0db472;
  --buy-2: #0a9a61;
  --buy-soft: #e3f7ee;
  --sell: #f65351;
  --sell-2: #e03e3b;
  --sell-soft: #fdecec;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(28, 29, 31, .06), 0 0 0 1px rgba(28, 29, 31, .06);
  --shadow-lg: 0 24px 48px -16px rgba(28, 29, 31, .14), 0 0 0 1px rgba(28, 29, 31, .07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --frame: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-0); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #c8dcff; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.up { color: var(--buy-2); }
.down { color: var(--sell-2); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.grow { flex: 1; }
.small { font-size: 13px; }
.center { text-align: center; }

kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text-2); background: var(--bg-0); }

/* ---------------------------------------------------------------- primitivas */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-0); color: var(--text);
  cursor: pointer; font-weight: 500; white-space: nowrap; font-size: 14px;
  box-shadow: 0 1px 2px rgba(28,29,31,.05);
  transition: background .12s, border-color .12s, color .12s, transform .06s;
}
.btn:hover { background: var(--bg-1); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.dark:hover { background: #2e3238; border-color: #2e3238; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.buy { background: var(--buy); border-color: var(--buy); color: #fff; font-weight: 600; box-shadow: none; }
.btn.buy:hover { background: var(--buy-2); border-color: var(--buy-2); }
.btn.sell { background: var(--sell); border-color: var(--sell); color: #fff; font-weight: 600; box-shadow: none; }
.btn.sell:hover { background: var(--sell-2); border-color: var(--sell-2); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--bg-2); color: var(--text-2); white-space: nowrap; border: 1px solid var(--line-2); }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 0 rgba(13,180,114,.5); animation: ping 2s infinite; }
.pill.sim { background: #fff7e0; color: #ad7c00; border-color: #f7e4a8; }
.pill.real { background: var(--sell-soft); color: var(--sell-2); border-color: #f9d0cf; }
.pill.free { background: var(--buy-soft); color: var(--buy-2); border-color: #bfe9d6; font-weight: 600; }
.pill.pro { background: var(--accent-soft); color: var(--accent-2); border-color: #c8dcff; font-weight: 600; }
@keyframes ping { 70% { box-shadow: 0 0 0 6px rgba(13,180,114,0); } 100% { box-shadow: 0 0 0 0 rgba(13,180,114,0); } }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--bg-0); color: var(--text); box-shadow: var(--shadow); }
.seg.tiny button { padding: 2px 7px; font-size: 11px; cursor: default; }

.input { height: 32px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-0); outline: none; width: 100%; color: var(--text); font-size: 13px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #266df033; }
.input.num { text-align: right; }

.card { background: var(--bg-0); border-radius: 12px; padding: 16px 18px; position: relative; min-width: 0; box-shadow: var(--shadow); }
.card-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.card-label { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ---------------------------------------------------------------- moldura da página */

.announce { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; background: #000; color: #fff; font-size: 14px; font-weight: 500; }
.announce:hover span { transform: translateX(3px); }
.announce span { transition: transform .15s; }

.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.frame > section { border-bottom: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- nav */

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line-2); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; max-width: var(--frame); margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.brand .dot-ai { color: var(--text-3); font-weight: 500; }
.brand.mini { font-size: 12.5px; gap: 6px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 9px; border-radius: 8px; color: var(--text); font-size: 14.5px; font-weight: 450; white-space: nowrap; }
.nav-links a:hover { background: var(--bg-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 96px 0 0; position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 45%, #f6f7fb 100%); }
.hero-copy { max-width: 860px; margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; position: relative; }
.badge-link { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 1px 2px rgba(28,29,31,.05); }
.badge-link:hover { border-color: var(--line-3); }
.free-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 3px var(--buy-soft); }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.045em; line-height: 1.02; font-weight: 600; }
.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--text-3); max-width: 620px; line-height: 1.5; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.os-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: -4px; font-size: 14px; }
.os { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 500; }
a.os:hover { color: var(--text); }
.os svg { width: 15px; height: 15px; fill: currentColor; }
.muted-os { color: var(--text-3); font-weight: 400; }
.os-sep { width: 1px; height: 14px; background: var(--line-3); }

.hero-stage { position: relative; margin-top: 64px; padding: 0 40px; }
.hero-stage::before {
  content: ''; position: absolute; inset: 40px 0 0; pointer-events: none;
  background-image: radial-gradient(#d3d8df 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
  mask-image: linear-gradient(180deg, transparent, #000 30%);
}

.app-shot {
  position: relative; max-width: 1100px; margin: 0 auto; border-radius: 14px 14px 0 0; overflow: hidden;
  background: #f3f4f6; padding: 8px 8px 0; box-shadow: 0 0 0 1px rgba(28,29,31,.08), 0 30px 80px -20px rgba(28,29,31,.18);
}
.app-shot > * { background: #fff; }
.app-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; border-radius: 8px 8px 0 0; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-nav { display: flex; gap: 4px; }
.app-nav > * { padding: 3px 9px; border-radius: 6px; color: var(--text-2); font-weight: 500; }
.app-nav b { background: var(--bg-2); color: var(--text); }
.app-bar .pill { height: 20px; font-size: 11px; }
.app-body { display: grid; grid-template-columns: 190px 1fr 220px; height: 420px; }
.app-wl, .app-boleta { background: var(--bg-1); border-right: 1px solid var(--line); min-width: 0; }
.app-boleta { border-right: 0; border-left: 1px solid var(--line); padding-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.p-head { height: 32px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.app-chart { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.chart-top { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11px; }
.legend i { width: 10px; height: 2px; border-radius: 1px; display: inline-block; }
#heroChart { flex: 1; width: 100%; min-height: 0; display: block; }
.app-status { display: flex; align-items: center; gap: 14px; height: 28px; padding: 0 12px; border-top: 1px solid var(--line); font-size: 11px; }
.app-status .pill { height: 18px; font-size: 10.5px; padding: 0 7px; }

.wl { display: flex; flex-direction: column; }
.wl-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.wl-row.on { background: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.wl-row b { font-weight: 600; }
.wl-row .r { text-align: right; }
.wl-range { position: relative; height: 2px; width: 50px; background: var(--line-2); border-radius: 2px; align-self: center; }
.wl-range i { position: absolute; top: -2px; width: 2px; height: 6px; background: var(--text-2); border-radius: 1px; transition: left .4s; }
.wl-chg { font-size: 11px; }

.quote { display: grid; grid-template-columns: 1fr 30px 1fr; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin: 0 12px; }
.q { border: 0; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.q span { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.q b { font-size: 14px; font-weight: 500; }
.q.sell { background: var(--sell-soft); color: var(--sell-2); }
.q.buy { background: var(--buy-soft); color: var(--buy-2); align-items: flex-end; text-align: right; }
.q-spread { display: grid; place-items: center; font-size: 11px; color: var(--text-3); background: #fff; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.mini-btns { display: grid; gap: 6px; margin: 0 12px; }
.mini-btns .btn { height: 30px; font-size: 12px; cursor: default; }
.mini-pos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: auto 12px 0; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; font-size: 11px; }
.mini-pos div { display: flex; flex-direction: column; gap: 2px; }
.mini-pos b { font-size: 13px; font-weight: 500; }
.flash-up { animation: fu .5s; }
.flash-down { animation: fd .5s; }
@keyframes fu { from { color: var(--buy-2); } }
@keyframes fd { from { color: var(--sell-2); } }

/* ---------------------------------------------------------------- números */

.strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line-2); }
.strip > div:last-child { border-right: 0; }
.strip b { font-size: 28px; font-weight: 500; color: var(--text); letter-spacing: -0.04em; }
.strip span { font-size: 13.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- seções de recurso */

.feat { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 520px; }
.feat.rev .feat-copy { order: 2; border-right: 0; border-left: 1px solid var(--line-2); }
.feat-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 72px 56px; border-right: 1px solid var(--line-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.tag-pro { font-size: 11px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); border: 1px solid #c8dcff; padding: 1px 6px; border-radius: 5px; }
.feat h2, .sec-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.15; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.045em; }
h2 .mute { color: var(--text-3); }
.feat-copy p { color: var(--text-2); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 14.5px; }
.checks li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 10px; height: 5.5px; border-left: 1.7px solid var(--text); border-bottom: 1.7px solid var(--text); transform: rotate(-45deg); }
.checks li b { color: var(--text); font-weight: 600; }

.stage {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 48px; min-width: 0;
  background-color: var(--bg-1);
  background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 16px 16px;
}
.stage > * { width: 100%; max-width: 600px; }
.stage.wide { padding: 48px; border-top: 1px solid var(--line-2); }
.stage.wide > * { max-width: none; }

.block { padding: 0; }
.sec-head { max-width: 860px; display: flex; flex-direction: column; gap: 16px; padding: 88px 56px 56px; }
.sec-head.center { margin: 0 auto; text-align: center; align-items: center; }
.sec-head p { font-size: 16px; }

.widget { background: #fff; border-radius: 12px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); min-width: 0; }
.w-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.w-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.w-canvas { display: block; width: 100%; height: 300px; }

/* ordens arrastáveis */
.drag-chart { position: relative; height: 320px; touch-action: none; }
.drag-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hint-drag { font-size: 12px; }
.tline { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed; display: flex; align-items: center; gap: 6px; padding-left: 10px; cursor: ns-resize; }
.tline::after { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 24px; }
.tline > * { position: relative; z-index: 1; transform: translateY(-50%); margin-top: -1px; font-size: 11.5px; height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 5px; font-weight: 600; }
.tline .val { margin-left: auto; margin-right: 8px; }
.tline.tp { border-color: var(--buy); }
.tline.tp > * { background: var(--buy-soft); color: var(--buy-2); }
.tline.sl { border-color: var(--sell); }
.tline.sl > * { background: var(--sell-soft); color: var(--sell-2); }
.tline.entry { border-color: var(--text-2); border-top-style: solid; cursor: default; }
.tline.entry > * { background: var(--ink); color: #fff; }
.tline.dragging > * { box-shadow: 0 0 0 1px currentColor; }

/* boleta */
.boleta { display: flex; flex-direction: column; padding-bottom: 14px; }
.stage > .boleta { max-width: 460px; }
.boleta .quote { margin: 14px 14px 0; }
.quote.big .q { cursor: pointer; padding: 10px 12px; transition: filter .12s; }
.quote.big .q:hover { filter: brightness(.97); }
.quote.big .q b { font-size: 20px; }
.bl-row { display: flex; gap: 10px; padding: 12px 14px 0; align-items: flex-end; }
.bl-row.two > * { flex: 1; }
.bl-row.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.bl-row .btn { height: 38px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.field em { font-style: normal; color: var(--text-4); }
.field small { font-size: 11.5px; text-align: right; }
.stepper { display: flex; align-items: stretch; height: 32px; }
.stepper button { width: 30px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--text-2); cursor: pointer; font-size: 15px; }
.stepper button:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.stepper button:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.stepper button:hover { color: var(--text); background: var(--bg-2); }
.stepper b { display: grid; place-items: center; min-width: 54px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-weight: 500; font-size: 13px; }
.chips { display: flex; gap: 4px; margin-left: auto; }
.chips button { height: 32px; min-width: 36px; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; color: var(--text-2); cursor: pointer; font-family: var(--mono); font-size: 12.5px; }
.chips button.on { border-color: var(--ink); color: var(--text); box-shadow: inset 0 0 0 1px var(--ink); }
.bl-oco { margin: 14px 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.bl-oco .bl-row { padding: 10px 0 0; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .box { width: 30px; height: 18px; border-radius: 9px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.toggle .box::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + .box { background: var(--accent); }
.toggle input:checked + .box::after { transform: translateX(12px); }
.toggle input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-oco.off .bl-row { opacity: .4; pointer-events: none; }
.bl-pos { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 14px 0; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); gap: 8px; }
.bl-pos div { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; }
.bl-pos b { font-size: 15px; font-weight: 500; }
.toast-slot { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: 92%; }
.toast { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(28,29,31,.25); font-size: 13px; animation: toast-in .18s ease-out; }
.toast .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--buy); }
.toast.err .bar { background: var(--sell); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* desenhos + indicadores */
.duo { display: grid; grid-template-columns: 1.2fr 1fr; border-top: 1px solid var(--line-2); }
.cell { display: flex; flex-direction: column; gap: 8px; padding: 40px 40px 48px; min-width: 0; background-color: var(--bg-1); background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 16px 16px; }
.cell + .cell { border-left: 1px solid var(--line-2); }
.cell h3 { font-size: 18px; letter-spacing: -0.02em; }
.cell > p { font-size: 15px; margin-bottom: 20px; }
.draw-wrap { display: grid; grid-template-columns: 44px 1fr; height: 330px; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-right: 1px solid var(--line); overflow: auto; background: var(--bg-1); }
.rail button { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--text-2); cursor: pointer; }
.rail button:hover { background: var(--bg-2); color: var(--text); }
.rail button.on { color: var(--accent-2); background: var(--accent-soft); }
.rail .sep { width: 20px; height: 1px; background: var(--line-2); margin: 4px 0; }
.draw-svg { width: 100%; height: 100%; display: block; }
.draw-svg .shape { opacity: 0; animation: draw-in .5s ease-out forwards; }
@keyframes draw-in { from { opacity: 0; } to { opacity: 1; } }
.ind-list { display: flex; flex-direction: column; max-height: 330px; overflow: auto; }
.ind-group { padding: 10px 14px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ind { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.ind:hover { background: var(--bg-1); }
.ind b { font-size: 13.5px; font-weight: 500; }
.ind span { grid-column: 1; font-size: 12px; color: var(--text-3); }
.ind .add { grid-column: 2; grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; font-style: normal; transition: all .15s; }
.ind.on .add { background: var(--ink); border-color: var(--ink); color: #fff; }

/* workspace */
.grid-ws { display: grid; gap: 6px; padding: 10px; height: 340px; transition: grid-template-columns .3s; background: var(--bg-1); }
.grid-ws[data-l="1"] { grid-template-columns: 1fr; }
.grid-ws[data-l="2"] { grid-template-columns: 1fr 1fr; }
.grid-ws[data-l="3"] { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-ws[data-l="3"] .pane:first-child { grid-row: span 2; }
.grid-ws[data-l="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pane { border: 1px solid var(--line-2); border-radius: 8px; background: #fff; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; animation: toast-in .25s ease-out; }
.pane-tab { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; background: var(--bg-1); }
.pane-tab b { font-weight: 600; }
.pane-tab .ctl { margin-left: auto; display: flex; gap: 6px; color: var(--text-4); }
.pane canvas { flex: 1; width: 100%; min-height: 0; display: block; }

/* desempenho */
.perf { display: flex; flex-direction: column; gap: 16px; }
.perf-top { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.hero-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hero-num { font-size: 38px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.hero-sub { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.hero-sub b { font-weight: 500; margin-left: 4px; }
.winbar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.winbar i { display: block; }
.winbar .w { background: var(--buy); }
.winbar .l { background: var(--sell); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.kpi { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kpi b { font-size: 19px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.kpi small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eq { position: relative; height: 240px; }
.eq svg { width: 100%; height: 100%; display: block; overflow: visible; }
.eq .axis-t { font-family: var(--mono); font-size: 11px; fill: var(--text-3); }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: 0 10px 30px rgba(28,29,31,.25); white-space: nowrap; }
.tip .faint { color: #a4adba; }
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, 1fr); gap: 3px; }
.cal-cell { aspect-ratio: 1; border-radius: 3px; min-height: 10px; transition: transform .1s; }
.cal-cell:hover { outline: 1px solid var(--text-2); outline-offset: 1px; }
.cal-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; margin-top: 10px; }
.cal-legend span { margin: 0 4px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; }
.bars { display: flex; gap: 4px; height: 170px; }
.bar-col { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bar-track { position: relative; flex: 1; }
.bar { position: absolute; left: 12%; right: 12%; border-radius: 3px; transform-origin: bottom; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bar.pos { background: var(--buy); }
.bar.neg { background: var(--sell); }
.bar-zero { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.bar-label { text-align: center; font-size: 10.5px; font-family: var(--mono); }
.bar-col:hover .bar { filter: brightness(.92); }
.symtab { display: flex; flex-direction: column; gap: 14px; }
.symrow { display: grid; grid-template-columns: 70px 1fr 110px; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; font-size: 13px; }
.symrow .meta { grid-column: 1 / 3; font-size: 11.5px; }
.symrow .r { text-align: right; grid-column: 3; grid-row: 1 / span 2; }
.symbar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.symbar i { display: block; height: 100%; border-radius: 3px; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.symbar i.pos { background: var(--buy); }
.symbar i.neg { background: var(--sell); }

/* IA */
.ai { display: flex; flex-direction: column; }
.ai-ctx { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chip-s { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); color: var(--text-2); font-family: var(--mono); }
.ai-msgs { display: flex; flex-direction: column; gap: 12px; padding: 14px; height: 300px; overflow: auto; scroll-behavior: smooth; }
.msg { max-width: 92%; font-size: 14px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--bg-2); padding: 8px 12px; border-radius: 12px; }
.msg.bot { color: var(--text); }
.msg.bot b { color: var(--text); font-weight: 600; }
.msg.bot .caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-sugs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 12px; }
.ai-sugs button { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); cursor: pointer; text-align: left; }
.ai-sugs button:hover { border-color: var(--line-3); color: var(--text); background: var(--bg-1); }
.ai-sugs button:disabled { opacity: .4; cursor: default; }
.ai-input { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; height: 42px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 13.5px; box-shadow: 0 1px 2px rgba(28,29,31,.05); }
.ai-input .send { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; }

/* mac e windows */
.os-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.os-card { display: flex; flex-direction: column; gap: 12px; padding: 44px 48px 48px; }
.os-card + .os-card { border-left: 1px solid var(--line-2); }
.os-ico { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); margin-bottom: 6px; }
.os-ico svg { width: 24px; height: 24px; fill: var(--ink); }
.os-card h3 { font-size: 24px; letter-spacing: -0.03em; }
.os-card > p { font-size: 15px; max-width: 440px; }
.os-card .checks { margin-bottom: 12px; }
.os-card .btn { margin-top: auto; max-width: 280px; }

.bridge-wrap { padding: 56px 48px 40px; border-top: 1px solid var(--line-2); background-color: var(--bg-1); background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 16px 16px; }
.bridge { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr; align-items: center; max-width: 900px; margin: 0 auto; }
.bridge-note { text-align: center; max-width: 620px; margin: 32px auto 0; font-size: 15px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; }
.node b { font-size: 14px; font-weight: 600; margin-top: 8px; }
.node-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font-family: var(--mono); font-weight: 500; color: var(--text-2); font-size: 15px; }
.node-ico.ea { color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 1px #c8dcff; }
.node.on .node-ico { box-shadow: 0 0 0 1px var(--ink), 0 0 0 6px var(--bg-3); }
.wire { position: relative; height: 1.5px; background: var(--line-3); margin: 0 8px 36px; }
.wire i { position: absolute; top: -2.25px; left: 0; width: 22px; height: 6px; border-radius: 3px; background: var(--accent); animation: flow 1.8s linear infinite; }
.wire:nth-child(4) i { animation-delay: .9s; }
.wire span { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 11.5px; white-space: nowrap; }
@keyframes flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 22px); opacity: 0; } }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.step { display: flex; flex-direction: column; gap: 10px; padding: 36px 40px; }
.step + .step { border-left: 1px solid var(--line-2); }
.step-n { color: var(--text-3); font-size: 13px; }
.step h3 { font-size: 18px; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 14.5px; }
.accts { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; padding: 56px 48px 64px; border-top: 1px solid var(--line-2); }
.menu-mock { padding: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu-label { padding: 8px 10px 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-size: 13.5px; }
.menu-item b { flex: 1; font-weight: 500; }
.menu-item:first-of-type { background: var(--bg-2); }
.menu-item .faint { font-size: 12px; }
.acct-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.acct-dot.on { background: var(--buy); }
.accts-copy { display: flex; flex-direction: column; gap: 14px; }
.accts-copy h3 { font-size: 24px; letter-spacing: -0.03em; }
.theme-sw { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 14px; }
.th { width: 68px; height: 44px; border-radius: 8px; padding: 6px; display: grid; grid-template-columns: 12px 1fr; grid-template-rows: 1fr 1fr; gap: 3px; box-shadow: var(--shadow); flex-shrink: 0; }
.th i { border-radius: 2px; }
.th i:first-child { grid-row: span 2; }
.th.dark { background: #0e0e0d; }
.th.dark i { background: #22221e; }
.th.dark i:nth-child(2) { background: #e3a33b; }
.th.light { background: #f6f5f1; }
.th.light i { background: #e4e2da; }
.th.light i:nth-child(2) { background: #c7861f; }

/* preços */
.pricing { padding-bottom: 72px; }
.pricing .sec-head { padding-bottom: 36px; }
.bill-toggle { display: flex; width: max-content; margin: 0 auto 32px; padding: 3px; gap: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.bill-toggle button { border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 500; font-size: 14px; padding: 7px 16px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bill-toggle button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.save-tag { font-size: 11.5px; font-weight: 600; color: var(--buy-2); background: var(--buy-soft); padding: 2px 7px; border-radius: 6px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 20px; margin: 0 24px 24px; }
.plan { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 360px)); align-items: start; }
.plan { position: relative; }
.plan.best { box-shadow: 0 0 0 2px var(--ink), 0 28px 56px -20px rgba(28,29,31,.28); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.pill.ultra { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.tag-pro.tag-ultra { color: #fff; background: var(--ink); border-color: var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 46px; font-weight: 500; letter-spacing: -.05em; }
.price span { color: var(--text-3); }
.plan-note { margin: -6px 0 4px; color: var(--text-3); font-size: 14px; min-height: 21px; }
.plan .checks { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

/* CTA */
.cta { padding: 112px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; background-color: var(--bg-1); background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 16px 16px; }
.cta .lead { color: var(--text-2); }
.frame > section.cta { border-bottom: 0; }
.foot { border-top: 1px solid var(--line-2); font-size: 13px; }
.foot-in { max-width: var(--frame); margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* revelar ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- logo (images/xcandle_logo_vector.svg, colorido por máscara) */
.logo-mark {
  display: inline-block; flex-shrink: 0; height: 17px; aspect-ratio: 1199 / 554;
  background: var(--ink);
  -webkit-mask: url(images/xcandle_logo_vector.svg) center / contain no-repeat;
  mask: url(images/xcandle_logo_vector.svg) center / contain no-repeat;
}
.brand.mini .logo-mark { height: 11px; }
.brand.small { gap: 8px; font-size: 15px; }
.brand.small .logo-mark { height: 12px; }
.node-ico .logo-mark { height: 20px; }

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .app-body { grid-template-columns: 160px 1fr 200px; }
  .perf-top { grid-template-columns: 1fr; }
  .feat-copy { padding: 56px 40px; }
  .stage { padding: 44px 32px; }
}

@media (max-width: 860px) {
  .hero { padding-top: 64px; }
  .hero-stage { padding: 0 16px; margin-top: 44px; }
  .app-body { grid-template-columns: 1fr; height: 300px; }
  .app-wl, .app-boleta { display: none; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip > div:nth-child(3) { border-right: 0; }
  .strip > div:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .feat, .duo, .perf-grid, .tri, .accts, .os-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .feat-copy, .feat.rev .feat-copy { order: 0; border: 0; border-bottom: 1px solid var(--line-2); padding: 48px 24px; }
  .stage { padding: 36px 16px; }
  .stage.wide { padding: 24px 16px; }
  .sec-head { padding: 56px 24px 36px; }
  .cell { padding: 32px 16px; }
  .cell + .cell, .os-card + .os-card, .step + .step { border-left: 0; border-top: 1px solid var(--line-2); }
  .os-card { padding: 36px 24px; }
  .step { padding: 28px 24px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .bridge-wrap { padding: 40px 24px 32px; }
  .bridge { grid-template-columns: 1fr; gap: 0; }
  .wire { width: 1.5px; height: 56px; margin: 12px auto; }
  .wire i { width: 6px; height: 18px; left: -2.25px; top: 0; animation-name: flow-v; }
  .wire span { top: 50%; left: 16px; right: auto; transform: translateY(-50%); }
  .accts { gap: 28px; padding: 40px 24px 48px; }
  .plans, .plans.plans-3 { grid-template-columns: 1fr; margin: 0 16px 24px; }
  .plans-3 .plan.best { order: -1; margin-top: 12px; }
  .cta { padding: 80px 24px; }
}
@keyframes flow-v { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 18px); opacity: 0; } }

@media (max-width: 560px) {
  .announce { font-size: 12.5px; padding: 0 16px; text-align: center; }
  .nav-in { padding: 0 16px; gap: 12px; }
  .nav-actions .btn:first-child { display: none; }
  .hero-copy { padding: 0 16px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { padding: 22px 16px; border-right: 1px solid var(--line-2) !important; border-top: 1px solid var(--line-2); }
  .strip > div:nth-child(2n) { border-right: 0 !important; }
  .strip > div:nth-child(-n+2) { border-top: 0; }
  .strip > div:last-child { grid-column: span 2; border-right: 0 !important; }
  .bl-row { flex-wrap: wrap; }
  .chips { margin-left: 0; }
  .bl-row.three .btn { font-size: 12px; padding: 0 6px; }
  .kpi b { font-size: 16px; }
  .hero-num { font-size: 30px; }
  .draw-wrap { height: 280px; }
  .symrow { grid-template-columns: 60px 1fr 96px; }
  .w-canvas { height: 240px; }
  .grid-ws { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wire i, .pill.live::before, .msg.bot .caret { animation: none; }
}

/* ---------------------------------------------------------------- ajustes */
section[id] { scroll-margin-top: 64px; }
.lead { max-width: 680px; }
.sec-head { max-width: 1040px; }
.sec-head h2 { font-size: clamp(24px, 2.7vw, 34px); }
/* números grandes em Inter tabular, como no Attio; o mono fica para cotações e eixos */
.price b, .hero-num, .strip b, .kpi b, .bl-pos b { font-family: var(--font); font-feature-settings: 'tnum', 'cv11'; }
.price b { font-weight: 600; letter-spacing: -0.045em; }
.hero-num, .strip b { font-weight: 600; }
.kpi b { font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 560px) { .os-row .os-sep:last-of-type { display: none; } .announce { height: auto; min-height: 40px; padding: 8px 16px; } }
.app-body { overflow: hidden; }
.app-wl, .app-boleta, .app-chart { overflow: hidden; min-height: 0; }
.app-status { position: relative; z-index: 1; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--text); }

/* boleta da landing no formato da v0.7 do app */
.bl-total { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 0; font-size: 12px; color: var(--text-3); }
.bl-total b { color: var(--text-2); font-weight: 500; }
.btn.buy-outline { background: var(--buy-soft, #e7f7ef); border-color: color-mix(in srgb, var(--buy) 40%, transparent); color: var(--buy-2); font-weight: 600; box-shadow: none; }
.btn.sell-outline { background: var(--sell-soft, #feeceb); border-color: color-mix(in srgb, var(--sell) 40%, transparent); color: var(--sell-2); font-weight: 600; box-shadow: none; }
.btn.danger-soft { color: var(--sell-2); border-color: color-mix(in srgb, var(--sell) 30%, transparent); background: var(--sell-soft, #feeceb); }
.btn.block { width: 100%; }
.bl-oco-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.units { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.units button { border: 0; background: #fff; padding: 4px 8px; font: 500 11.5px var(--font); color: var(--text-3); cursor: pointer; }
.units button.on { background: var(--bg-2); color: var(--text); }
.bl-oco-body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.bl-oco.off .bl-oco-body { opacity: .4; pointer-events: none; }
.bl-strat { height: 32px; font-size: 13px; }
.bl-slide { display: grid; grid-template-columns: 40px 84px 1fr; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.bl-slide.stop span { color: var(--sell-2); }
.bl-slide.gain span { color: var(--buy-2); }
.bl-slide .input { height: 32px; text-align: right; }
.bl-slide input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c) var(--pct, 0%), var(--line-2) var(--pct, 0%)); outline: none; }
.bl-slide.stop input[type=range] { --c: var(--sell); }
.bl-slide.gain input[type=range] { --c: var(--buy); }
.bl-slide input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--c); cursor: pointer; }
.bl-detail { text-align: right; font-size: 11px; }
.bl-rr { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 12px; }
.bl-rr b { font-size: 14px; }
.bl-pos.four { grid-template-columns: repeat(2, 1fr); }
.boleta .tag-pro { font-size: 9.5px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }

/* indicador 039 */
.i039-w { padding-bottom: 12px; }
.i039-state { font-size: 12px; font-weight: 600; color: var(--text-3); }
.i039-chart { display: block; width: 100%; height: 240px; }
.i039-label { padding: 6px 14px 4px; font-size: 11px; color: var(--text-3); }
.i039-hist { display: block; width: calc(100% - 28px); height: 34px; margin: 0 14px; border-radius: 4px; }

/* boleta do mock do topo, no formato da v0.7 do app */
.app-body { height: 520px; }
.app-boleta { gap: 7px; padding-bottom: 10px; }
.app-boleta .quote b { font-size: 13px; }
.mb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 10px; font-size: 9.5px; }
.mb-grid > div { display: flex; flex-direction: column; gap: 3px; }
.mb-step { display: grid; grid-template-columns: 16px 1fr 16px; height: 22px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; overflow: hidden; }
.mb-step i { display: grid; place-items: center; font-style: normal; color: var(--text-3); font-size: 11px; }
.mb-step b { display: grid; place-items: center; font-size: 10.5px; font-weight: 500; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.mb-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 10px; }
.mb-chips span { height: 18px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; font: 9.5px var(--mono); color: var(--text-3); background: #fff; }
.mb-chips span.on { border-color: var(--ink); color: var(--text); }
.mini-btns.two { grid-template-columns: 1fr 1fr; margin: 0 10px; gap: 5px; }
.mini-btns.two .btn { height: 24px; font-size: 9.5px; padding: 0 4px; white-space: nowrap; }
.mini-btns .btn.buy-o { background: var(--buy-soft); border-color: color-mix(in srgb, var(--buy) 40%, transparent); color: var(--buy-2); font-weight: 600; box-shadow: none; }
.mini-btns .btn.sell-o { background: var(--sell-soft); border-color: color-mix(in srgb, var(--sell) 40%, transparent); color: var(--sell-2); font-weight: 600; box-shadow: none; }
.mini-btns.ghost .btn { background: #fff; color: var(--text-2); font-weight: 500; }
.mb-risk { margin: 0 10px; padding-top: 7px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; font-size: 9.5px; }
.mb-risk-head { display: flex; align-items: center; gap: 5px; color: var(--text-2); }
.mb-risk-head .grow { flex: 1; }
.mb-toggle { width: 18px; height: 10px; border-radius: 5px; background: var(--accent); position: relative; }
.mb-toggle::after { content: ''; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.mb-units { display: flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.mb-units > * { padding: 1px 4px; font-size: 8.5px; color: var(--text-3); }
.mb-units b { background: var(--bg-2); color: var(--text); font-weight: 600; }
.mb-slide { display: grid; grid-template-columns: 26px 38px 1fr; align-items: center; gap: 6px; }
.mb-slide span { font-weight: 600; }
.mb-slide.stop span { color: var(--sell-2); }
.mb-slide.gain span { color: var(--buy-2); }
.mb-slide b { height: 18px; display: grid; place-items: center end; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-weight: 500; font-size: 10px; }
.mb-slide i { position: relative; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--c) var(--p), var(--line-2) var(--p)); }
.mb-slide i::after { content: ''; position: absolute; left: var(--p); top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--c); transform: translate(-50%, -50%); }
.mb-slide.stop i { --c: var(--sell); }
.mb-slide.gain i { --c: var(--buy); }
.mb-rr { display: flex; justify-content: space-between; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.mini-pos.four { margin: 0 10px; padding: 7px; font-size: 9.5px; gap: 5px; }
.mini-pos.four b { font-size: 11px; }

/* dúvidas em balões flutuantes */
.faq { padding-bottom: 72px; }
.faq-cloud { position: relative; height: 600px; margin: 8px auto 0; max-width: 1120px; }
.faq-b { position: absolute; left: 0; top: 0; max-width: 250px; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(28, 29, 31, .08); cursor: default; outline: none; will-change: transform; transition: max-width .25s ease, box-shadow .2s, border-color .2s; }
.faq-b:nth-child(3n) { border-radius: 18px 18px 4px 18px; }
.faq-b:nth-child(3n+2) { background: #f4f8ff; border-color: #d6e4ff; }
.faq-q { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; color: var(--text); }
.faq-a { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 13.5px; line-height: 1.55; color: var(--text-2); transition: max-height .3s ease, opacity .25s, margin-top .25s; }
.faq-b:hover, .faq-b:focus, .faq-b.open { z-index: 10; max-width: 340px; border-color: var(--accent); box-shadow: 0 18px 48px rgba(38, 109, 240, .18); }
.faq-b:hover .faq-a, .faq-b:focus .faq-a, .faq-b.open .faq-a { max-height: 220px; opacity: 1; margin-top: 8px; }
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .faq-cloud { height: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
  .faq-b { position: relative; max-width: none; transform: none !important; }
  .faq-b:nth-child(even) { align-self: flex-end; }
  .faq-b:hover, .faq-b:focus, .faq-b.open { max-width: none; }
}
.plans-3 .plan-note { min-height: 2.9em; }
