/* =========================================================================
   PineUp — LANDING + HUB (raiz). Estilo "poster": preto profundo + verde
   pinheiro de acento. Layering por cima de tokens.css + poster.css.
   Identidade Opção 2: ~80% preto/branco/cinza, ~5% verde.
   ========================================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
a { color: inherit; }
.display { font-family: var(--font-display); letter-spacing: -.02em; }

/* Largura de conteúdo */
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.sec { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.sec-head { max-width: 760px; margin-bottom: 2.6rem; }
.sec-kicker { display:inline-flex; align-items:center; gap:.5rem; font:800 .76rem/1 var(--font-sans);
  letter-spacing:.14em; text-transform:uppercase; color: var(--brand); margin-bottom: .9rem; }
.sec-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 0 0 .8rem; }
.sec-lead { color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.6; margin: 0; }

/* =========================== TOPBAR ============================ */
.topbar {
  position: sticky; top: 0; z-index: 60; height: 64px;
  display: flex; align-items: center; gap: 1rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar .wrap { display: flex; align-items: center; gap: 1.2rem; width: min(1180px, 94vw); }
.tb-brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.tb-nav { display: flex; align-items: center; gap: .35rem; margin-left: .6rem; }
.tb-link { padding: .5rem .7rem; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem;
  color: var(--text-muted); text-decoration: none; transition: .15s var(--ease); white-space: nowrap; }
.tb-link:hover { color: var(--text); background: var(--surface-2); }
.tb-spacer { flex: 1 1 auto; }
.tb-tools { display: flex; align-items: center; gap: .5rem; }
.iconbtn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  height: 38px; min-width: 38px; padding: 0 .55rem; border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  cursor: pointer; font: 700 .82rem var(--font-sans); transition: .15s var(--ease); }
.iconbtn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.tb-cta { display:inline-flex; align-items:center; gap:.45rem; height: 38px; padding: 0 1rem;
  border-radius: var(--r-full); background: var(--brand); color: #fff; border: 0; cursor: pointer;
  font: 700 .9rem var(--font-sans); text-decoration: none; transition: .15s var(--ease); }
.tb-cta:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(34,197,94,.3); }
@media (max-width: 860px) { .tb-nav { display: none; } }

/* =========================== HERÓI ============================ */
.hero { position: relative; border-radius: 0; overflow: hidden; }
.hero-inner { padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; } }
.hero .kicker { margin-bottom: 1.2rem; }
.hero h1 { margin: 0 0 1.2rem; max-width: 14ch; }
.hero-sub { color: rgba(244,244,245,.82); font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.5;
  max-width: 46ch; margin: 0 0 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.9rem; }
.hero .flag-bar { max-width: 360px; margin-bottom: 2rem; }

/* Mini-stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1rem 1.1rem; }
.stat-num { font: 800 clamp(1.6rem, 3vw, 2.1rem)/1 var(--font-display); color: #fff; letter-spacing: -.02em; }
.stat-num .suf { color: var(--accent); }
.stat-lab { margin-top: .35rem; font-size: .78rem; color: rgba(244,244,245,.66); text-transform: uppercase; letter-spacing: .06em; }

/* Cartão "consola" do herói (mock de painel) */
.hero-card { padding: 1.3rem; }
.hc-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hc-row:last-child { border-bottom: 0; }
.hc-ic { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.16); color: var(--accent); flex: 0 0 auto; }
.hc-tt { font-weight: 700; color: #fff; font-size: .95rem; }
.hc-sub { font-size: .8rem; color: rgba(244,244,245,.6); }
.hc-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; flex: 1 1 auto; }
.hc-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hc-pct { font: 800 .9rem var(--font-display); color: var(--accent); flex: 0 0 auto; min-width: 3ch; text-align: right; }

/* =========================== CARTÕES GENÉRICOS ============================ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: .2s var(--ease); height: 100%; }
.card-hov:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-ic { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 1rem; }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.card p { color: var(--text-muted); font-size: .94rem; line-height: 1.55; margin: 0; }

/* Para quem / desafio */
.grid-auto { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Funcionalidades */
.feat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { display: flex; gap: .95rem; align-items: flex-start; }
.feat-ic { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); }
.feat h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin: 0 0 .3rem; }
.feat p { color: var(--text-muted); font-size: .88rem; line-height: 1.5; margin: 0; }

/* =========================== HUB ============================ */
.hub { background: var(--surface-2); border-block: 1px solid var(--border); }
.hub-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hub-card { display: flex; flex-direction: column; gap: .9rem; text-decoration: none; color: inherit; position: relative; }
.hub-card .hub-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); }
.hub-role { font: 800 .72rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.hub-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; margin: 0; letter-spacing: -.01em; }
.hub-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; margin: 0; flex: 1 1 auto; }
.hub-open { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--brand);
  margin-top: .3rem; transition: gap .15s var(--ease); }
.hub-card:hover .hub-open { gap: .7rem; }
.hub-card.is-dark .hub-ic { background: rgba(34,197,94,.14); }
/* Cartões utilitários (verify / slides) */
.hub-mini-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.1rem; }
.hub-mini { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.hub-mini .hub-ic { width: 48px; height: 48px; margin: 0; }
.hub-mini h3 { font-size: 1.04rem; }
.hub-mini p { font-size: .85rem; }

/* =========================== JORNADA ============================ */
.journey { display: grid; gap: 1.3rem 1.6rem; grid-template-columns: repeat(3, 1fr); counter-reset: jstep; }
@media (max-width: 880px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .journey { grid-template-columns: 1fr; } }
.jstep { display: flex; gap: .9rem; align-items: flex-start; }
.jstep .jbody h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: .2rem 0 .25rem; }
.jstep .jbody p { color: var(--text-muted); font-size: .86rem; line-height: 1.45; margin: 0; }
.jstep.is-final .step-num { box-shadow: 0 0 0 6px rgba(34,197,94,.18); }

/* =========================== CERTIFICAÇÃO ============================ */
.cert-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: center;
  border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 820px) { .cert-panel { grid-template-columns: 1fr; } }
.cert-panel h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 1rem; line-height: 1.08; }
.cert-panel p { color: #ECFDF5; opacity: .9; line-height: 1.6; margin: 0 0 1.5rem; max-width: 48ch; }
.cert-list { list-style: none; padding: 0; margin: 0 0 1.7rem; display: grid; gap: .7rem; }
.cert-list li { display: flex; align-items: center; gap: .6rem; color: #ECFDF5; font-weight: 600; font-size: .95rem; }
.cert-list li .ci { display: inline-flex; color: #fff; }
.cert-qr { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.cert-qr-card { background: #fff; border-radius: var(--r-lg); padding: 1.1rem; box-shadow: 0 18px 40px rgba(0,0,0,.3); text-align: center; }
.cert-code { font: 800 1rem var(--font-display); color: #0A0A0A; letter-spacing: .04em; margin-top: .6rem; }
.cert-code-lab { font-size: .72rem; color: #52525B; text-transform: uppercase; letter-spacing: .08em; }

/* =========================== PLANOS ============================ */
.plans { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.is-feat { border-color: var(--brand); box-shadow: 0 12px 34px rgba(34,197,94,.18); }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font: 700 .72rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan-name { font: 800 1.3rem var(--font-display); margin: 0 0 .2rem; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: .6rem 0 .2rem; }
.plan-price .amt { font: 800 clamp(1.8rem, 3vw, 2.4rem) var(--font-display); color: var(--text); letter-spacing: -.02em; }
.plan-price .per { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.plan-limits { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.plan-feats { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; flex: 1 1 auto; }
.plan-feats li { display: flex; align-items: flex-start; gap: .55rem; color: var(--text-muted); font-size: .9rem; line-height: 1.4; }
.plan-feats li .ci { color: var(--brand); display: inline-flex; flex: 0 0 auto; margin-top: 1px; }

/* =========================== ENTREGAS ============================ */
.deliver-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.deliver { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.deliver .hub-ic { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand); flex: 0 0 auto; }
.deliver h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; margin: 0 0 .2rem; }
.deliver p { color: var(--text-muted); font-size: .84rem; margin: 0; }

/* =========================== RODAPÉ ============================ */
.foot { background: var(--ink, #0A0A0A); color: #F4F4F5; padding: clamp(2.6rem, 5vw, 3.6rem) 0 2rem; }
html:not([data-theme="dark"]) .foot { background: #0A0A0A; }
.foot-top { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: space-between; align-items: flex-start;
  padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.foot-col h5 { font: 800 .74rem/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,244,245,.5); margin: 0 0 .8rem; }
.foot-col a { display: block; color: rgba(244,244,245,.82); text-decoration: none; font-size: .9rem; padding: .26rem 0; transition: color .15s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-brand-line { max-width: 280px; }
.foot-brand-line .fb-tag { color: rgba(244,244,245,.62); font-size: .88rem; line-height: 1.5; margin-top: .8rem; }
.foot-bot { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; align-items: center;
  margin-top: 1.4rem; font-size: .82rem; color: rgba(244,244,245,.55); }
.foot-note { display: inline-flex; align-items: center; gap: .45rem; }

/* glass tweak para tema claro do herói (o herói é sempre escuro) */
.poster .glass { background: rgba(255,255,255,.06); }

/* Cartão escuro reutilizável (desafio sobre poster, etc.) */
.dark-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); }
