/* ============================================================
   Orange Invest — sistema visual "Peel & Pulp"
   Peel (casca): seções escuras, quentes, envolvem o conteúdo
   Pulp (polpa): seções claras, onde a informação vive
   Assinatura: a Roda de Gomos — o wheel radial de 4 segmentos
   que espelha as 4 classes de ativo ensinadas na página
   ============================================================ */

:root{
  /* peel */
  --ink:        #16100A;
  --ink-soft:   #1F1710;
  --ink-line:   rgba(255,163,92,0.16);

  /* pulp */
  --paper:      #FBF3E7;
  --paper-alt:  #F3E7D6;
  --card:       #FFFFFF;

  /* citrus */
  --orange-700: #E24300;
  --orange-500: #FF5A1F;
  --orange-400: #FF7A33;
  --orange-300: #FFA35C;
  --orange-200: #FFC896;

  /* rind (accent secundário) */
  --rind-500:   #A8C23A;
  --rind-300:   #CFE26B;

  --text-on-ink:    #F7ECDD;
  --text-on-ink-mu: #C9B69E;
  --text-on-paper:  #1E1712;
  --text-muted:     #6B5D4E;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 18px 40px rgba(30,20,10,0.08);
  --shadow-cta:  0 16px 34px rgba(226,67,0,0.32);

  --font-display: 'Fraunces', 'Iowan Old Style', ui-serif, Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text-on-paper);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important}
}

a{color:inherit}
img{max-width:100%}
:focus-visible{outline:3px solid var(--orange-500); outline-offset:3px; border-radius:4px}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 28px}

/* ---------- eyebrow / label system ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.12em;
  text-transform:uppercase; font-weight:600;
  color:var(--orange-500);
}
.eyebrow .wedge-tick{width:14px; height:14px; flex:none}
.eyebrow--on-ink{color:var(--orange-300)}

/* ============================================================
   HEADER — peel
   ============================================================ */
.site-header{
  background:rgba(22,16,10,0.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--ink-line);
  position:sticky; top:0; z-index:100;
}
.header-inner{
  max-width:var(--wrap); margin:0 auto; padding:14px 28px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.logo{height:38px; width:38px; object-fit:contain; border-radius:50%; background:var(--paper); padding:3px}
.brand-word{font-family:var(--font-display); font-weight:600; font-size:1.15rem; color:var(--text-on-ink); letter-spacing:-0.01em}
.brand-word em{font-style:italic; color:var(--orange-400)}

.main-nav{display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0}
.main-nav a{
  text-decoration:none; color:var(--text-on-ink-mu); font-weight:600; font-size:0.92rem;
  padding:9px 14px; border-radius:999px; transition:color .2s ease, background .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible{color:var(--text-on-ink); background:rgba(255,122,51,0.12)}

.nav-cta{
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap; flex:none;
  background:var(--orange-500); color:#1a0c02 !important; font-weight:800; font-size:0.88rem;
  padding:10px 18px; border-radius:999px; text-decoration:none;
  box-shadow:0 8px 20px rgba(255,90,31,0.35);
  transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover{transform:translateY(-1px); box-shadow:0 12px 26px rgba(255,90,31,0.45)}

/* ============================================================
   HERO — peel
   ============================================================ */
.hero{
  background:
    radial-gradient(880px 520px at 82% -10%, rgba(255,122,51,0.22), transparent 60%),
    radial-gradient(600px 400px at -5% 90%, rgba(207,226,107,0.10), transparent 60%),
    var(--ink);
  color:var(--text-on-ink);
  padding:72px 0 96px;
  overflow:hidden;
}
.hero-inner{
  max-width:var(--wrap); margin:0 auto; padding:0 28px;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;
}
.hero-content .eyebrow{margin-bottom:18px}
.hero h1{
  font-family:var(--font-display); font-weight:600; font-size:clamp(2.4rem, 4.2vw, 3.6rem);
  line-height:1.06; letter-spacing:-0.015em; margin:0 0 20px;
  color:var(--text-on-ink);
}
.hero h1 em{font-style:italic; color:var(--orange-300); font-weight:500}
.hero .lead{
  font-size:1.1rem; color:var(--text-on-ink-mu); max-width:46ch; margin:0 0 30px;
}
.hero-actions{display:flex; flex-wrap:wrap; align-items:center; gap:18px}

.cta-large{
  display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
  background:linear-gradient(120deg, var(--orange-500), var(--orange-700));
  color:#1a0c02; font-weight:800; font-size:1rem;
  padding:16px 26px; border-radius:14px; text-decoration:none;
  box-shadow:var(--shadow-cta);
  transition:transform .2s ease, box-shadow .2s ease;
}
.cta-large:hover{transform:translateY(-2px); box-shadow:0 22px 44px rgba(226,67,0,0.4)}
.cta-large svg{width:18px; height:18px; flex:none}

.link-ghost{
  font-family:var(--font-mono); font-size:0.85rem; letter-spacing:0.04em;
  text-decoration:none; color:var(--text-on-ink-mu);
  border-bottom:1px dashed rgba(255,163,92,0.5); padding-bottom:2px;
  transition:color .2s ease, border-color .2s ease;
}
.link-ghost:hover{color:var(--orange-300); border-color:var(--orange-300)}

/* ---- wheel signature ---- */
.hero-visual{position:relative; display:flex; align-items:center; justify-content:center}
.wheel-wrap{position:relative; width:min(420px, 92%); aspect-ratio:1/1}
.wheel-svg{width:100%; height:100%; display:block; overflow:visible}
.wheel-seg-link{display:block; transition:filter .25s ease}
.wheel-seg-link:hover .wheel-seg, .wheel-seg-link:focus-visible .wheel-seg{filter:brightness(1.12)}
.wheel-seg{
  transform-origin:200px 200px;
  stroke:var(--ink); stroke-width:2;
  transition:filter .25s ease;
  opacity:0; transform:scale(.86);
}
.wheel-seg.draw{
  animation:drawSeg .7s cubic-bezier(.22,.7,.25,1) both;
}
.wheel-center{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  flex-direction:column; text-align:center; pointer-events:none;
}
.wheel-center .num{font-family:var(--font-mono); font-size:0.7rem; letter-spacing:.14em; color:var(--text-on-ink-mu)}
.wheel-center .word{font-family:var(--font-display); font-style:italic; font-size:1.05rem; color:var(--text-on-ink)}

.wheel-labels{position:absolute; inset:0; pointer-events:none}
.wheel-label{
  position:absolute; font-family:var(--font-mono); font-size:0.72rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--text-on-ink-mu); white-space:nowrap;
  transform:translate(-50%,-50%);
}
.wheel-label span{color:var(--orange-300)}

@keyframes drawSeg{
  from{ opacity:0; transform:scale(.86); }
  to{ opacity:1; transform:scale(1); }
}

/* ---------- ticker ---------- */
.ticker{
  background:var(--ink-soft); border-top:1px solid var(--ink-line); border-bottom:1px solid var(--ink-line);
  overflow:hidden; white-space:nowrap; padding:12px 0;
}
.ticker-track{display:inline-flex; gap:0; animation:ticker 38s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-item{
  font-family:var(--font-mono); font-size:0.82rem; color:var(--text-on-ink-mu);
  padding:0 28px; border-right:1px solid var(--ink-line);
}
.ticker-item b{color:var(--orange-300); font-weight:600}
@keyframes ticker{ from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ============================================================
   CONTENT SECTIONS — pulp
   ============================================================ */
.content-section{
  padding:88px 0; background:var(--paper); scroll-margin-top:76px;
}
.content-section.alt{background:var(--paper-alt)}
.content-grid{
  display:grid; grid-template-columns:0.95fr 1.05fr; gap:56px; align-items:start;
}
.content-grid.reverse .section-copy{order:2}
.content-grid.reverse .section-data{order:1}

.section-copy h2{
  font-family:var(--font-display); font-weight:600; font-size:clamp(1.8rem,2.6vw,2.3rem);
  margin:14px 0 18px; letter-spacing:-0.01em;
}
.section-copy p{color:#3E342A; margin:0 0 14px; max-width:56ch}
.section-copy p strong{color:var(--orange-700)}

.tag-row{display:flex; flex-wrap:wrap; gap:8px; margin-top:20px}

/* link secundário -- "saiba mais" para as páginas de conteúdo (educacao-*.html).
   Deliberadamente mais discreto que .cta-large/.nav-cta: a chamada forte do
   site inteiro é "Analisar ativo"; aprender é o passo anterior, não compete
   com ela. */
.link-arrow-row{margin:18px 0 0}
.link-arrow{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  color:var(--orange-700); font-weight:700; font-size:0.94rem;
  border-bottom:1px solid rgba(226,67,0,0.3); padding-bottom:2px;
  transition:color .18s ease, border-color .18s ease, gap .18s ease;
}
.link-arrow svg{width:16px; height:16px; flex:none; transition:transform .18s ease}
.link-arrow:hover{color:var(--orange-500); border-color:var(--orange-500); gap:11px}
.link-arrow:hover svg{transform:translateX(2px)}
.tag{
  font-family:var(--font-mono); font-size:0.76rem; letter-spacing:.03em;
  background:rgba(226,67,0,0.08); color:var(--orange-700);
  border:1px solid rgba(226,67,0,0.18); border-radius:999px; padding:6px 12px;
}

.data-card{
  background:var(--card); border-radius:var(--radius-lg); padding:26px 26px 22px;
  box-shadow:var(--shadow-card);
}
.data-card h3{
  font-family:var(--font-body); font-weight:700; font-size:0.95rem; margin:0 0 18px;
  color:var(--text-on-paper); display:flex; align-items:center; justify-content:space-between;
}
.data-card h3 .unit{font-family:var(--font-mono); font-weight:500; font-size:0.72rem; color:var(--text-muted)}

.mini-chart{width:100%}
.bar-row{display:flex; align-items:center; gap:12px; margin-bottom:12px}
.bar-row:last-child{margin-bottom:0}
.bar-label{width:120px; flex:none; font-size:0.85rem; color:#4A3F33}
.bar-track{flex:1; background:var(--paper-alt); border-radius:8px; height:12px; overflow:hidden}
.bar-fill{
  height:100%; border-radius:8px; width:0%;
  transition:width 1s cubic-bezier(.2,.7,.2,1);
  background:linear-gradient(90deg, var(--orange-700), var(--orange-300));
}
.bar-value{width:52px; flex:none; text-align:right; font-family:var(--font-mono); font-size:0.82rem; color:var(--text-muted)}

.legend{display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:16px}
.legend-item{display:flex; align-items:center; gap:8px; font-size:0.82rem; color:#4A3F33}
.legend-swatch{width:11px; height:11px; border-radius:3px; flex:none}

.card-two{display:grid; grid-template-columns:1fr 1fr; gap:20px}

/* segment divider between sections — echoes the wheel */
.gomo-divider{
  display:flex; align-items:center; justify-content:center; gap:0;
  padding:0; background:var(--paper);
}
.content-section.alt + .gomo-divider, .gomo-divider + .content-section.alt{background:var(--paper-alt)}

/* donut (fundos) */
.donut-wrap{display:flex; align-items:center; gap:22px; flex-wrap:wrap}
.donut{width:132px;height:132px;border-radius:50%;position:relative; flex:none}
.donut .hole{position:absolute; left:22%; top:22%; width:56%; height:56%; background:var(--card); border-radius:50%}
.donut-legend{font-size:0.86rem; flex:1; min-width:160px}
.donut-legend-item{display:flex; align-items:center; gap:8px; margin-bottom:8px}
.donut-legend-item:last-child{margin-bottom:0}

/* ---------- methods vs ---------- */
.methods-head{max-width:640px; margin:0 auto 44px; text-align:center}
.methods-head h2{font-family:var(--font-display); font-weight:600; font-size:clamp(1.8rem,2.6vw,2.3rem); margin:14px 0}
.methods-head p{color:#4A3F33}

.methods{
  max-width:var(--wrap); margin:0 auto; padding:0 28px;
  display:grid; grid-template-columns:1fr auto 1fr; gap:0; align-items:stretch;
}
.method{background:var(--card); border-radius:var(--radius-lg); padding:32px 30px; box-shadow:var(--shadow-card)}
.method .m-eyebrow{font-family:var(--font-mono); font-size:0.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--orange-700); font-weight:700}
.method h3{font-family:var(--font-display); font-weight:600; font-size:1.4rem; margin:8px 0 14px}
.method p{color:#4A3F33; margin:0 0 16px}
.method ul{margin:0; padding-left:18px; color:#4A3F33; font-size:0.94rem}
.method ul li{margin-bottom:6px}
.method--tech{border-top:4px solid var(--orange-500)}
.method--fund{border-top:4px solid var(--rind-500)}

.methods-vs{
  display:flex; align-items:center; justify-content:center; width:64px;
  font-family:var(--font-display); font-style:italic; font-size:1.3rem; color:var(--text-muted);
}

.compare{max-width:var(--wrap); margin:44px auto 0; padding:0 28px}
.compare .data-card h3{margin-bottom:16px}

/* ============================================================
   CTA — peel
   ============================================================ */
.cta-section{
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(255,122,51,0.22), transparent 65%),
    var(--ink);
  color:var(--text-on-ink);
  padding:96px 0; text-align:center;
}
.cta-section .eyebrow{justify-content:center; margin-bottom:16px}
.cta-section h2{
  font-family:var(--font-display); font-weight:600; font-size:clamp(2rem,3.6vw,2.8rem);
  margin:0 0 16px; letter-spacing:-0.01em;
}
.cta-section p{color:var(--text-on-ink-mu); max-width:52ch; margin:0 auto 34px; font-size:1.05rem}
.cta-hero{
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap;
  background:var(--orange-500); color:#1a0c02; font-weight:800; font-size:0.95rem;
  padding:14px 26px; border-radius:999px; text-decoration:none;
  box-shadow:0 10px 24px rgba(255,90,31,0.38);
  transition:transform .18s ease, box-shadow .18s ease;
}
.cta-hero svg{flex:none; width:16px; height:16px}
.cta-hero:hover{transform:translateY(-1px); box-shadow:0 14px 30px rgba(255,90,31,0.48)}
.disclaimer{
  margin-top:26px; font-family:var(--font-mono); font-size:0.76rem; color:rgba(247,236,221,0.45);
}

/* ============================================================
   FOOTER — peel
   ============================================================ */
.site-footer{background:var(--ink); border-top:1px solid var(--ink-line); padding:28px 0}
.footer-inner{
  max-width:var(--wrap); margin:0 auto; padding:0 28px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-inner p{margin:0; color:var(--text-on-ink-mu); font-size:0.85rem}
.footer-mark{display:flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:0.78rem; color:var(--text-on-ink-mu)}
.footer-mark svg{width:16px; height:16px}

/* ---------- fixed CTA ---------- */
.fixed-cta{
  position:fixed; right:22px; bottom:22px; z-index:999;
  display:inline-flex; align-items:center; gap:8px;
  background:var(--ink); color:var(--text-on-ink); font-weight:700; font-size:0.9rem;
  padding:14px 20px; border-radius:999px; text-decoration:none;
  border:1px solid rgba(255,163,92,0.3);
  box-shadow:0 18px 40px rgba(0,0,0,0.28);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fixed-cta::before{
  content:''; width:9px; height:9px; border-radius:50%; background:var(--orange-500);
  box-shadow:0 0 0 3px rgba(255,90,31,0.25);
}
.fixed-cta:hover{transform:translateY(-2px); background:var(--ink-soft)}

/* ---------- reveal-on-scroll ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease}
.reveal.is-visible{opacity:1; transform:none}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:960px){
  .hero-inner{grid-template-columns:1fr; gap:40px}
  .hero-visual{order:-1}
  .wheel-wrap{width:min(320px,80%)}
  .content-grid{grid-template-columns:1fr; gap:32px}
  .content-grid.reverse .section-copy, .content-grid.reverse .section-data{order:initial}
  .card-two{grid-template-columns:1fr}
  .methods{grid-template-columns:1fr}
  .methods-vs{width:100%; padding:14px 0}
}
@media (max-width:720px){
  .main-nav{display:none}
  .header-inner{padding:12px 20px}
  .hero{padding:52px 0 64px}
  .content-section{padding:60px 0}
  .fixed-cta span.txt{display:none}
}


/* item de carteira no menu principal — leva ao módulo de controle de ativos */
.main-nav .nav-carteira{
  color:var(--orange-300);
  border:1px solid rgba(255,163,92,0.34);
}
.main-nav .nav-carteira:hover, .main-nav .nav-carteira:focus-visible{
  color:var(--ink); background:var(--orange-300); border-color:var(--orange-300);
}
