/* Válvula Redutora de Pressão Mod. 42 LP — site interativo
   Identidade visual: Escola Aplicar (verde da logo) */
:root {
  --bg: #0f1420; --card: #1a2233; --card2: #222c42; --line: #313d57;
  --fg: #e7ecf4; --muted: #93a1bd;
  /* Identidade Aplicar — verde da logo */
  --brand: #20BD67; --brand-dark: #199450; --brand-darker: #11703C;
  --accent: #20BD67; --accent2: #34d399; --info: #4aa3ff;
  --danger: #f87171; --warn: #fbbf24; --radius: 12px;
}
@media (prefers-color-scheme: light) {
  :root { --bg:#f4f6fb; --card:#fff; --card2:#f0f3f9; --line:#dce3f0; --fg:#16203a; --muted:#5a6b8c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 100; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); border-top: 3px solid var(--brand);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .logo { height: 30px; width: auto; display: block; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 650; }
.topbar h1 .muted { display: block; }
.muted { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Nav âncoras */
.subnav { position: sticky; top: 58px; z-index: 90; background: var(--card);
  border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 4px; padding: 8px 12px; }
.subnav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; }
.subnav a:hover { color: var(--fg); background: var(--card2); }
.subnav a.active { color: #06121f; background: var(--brand); font-weight: 600; }

main { max-width: 1180px; margin: 0 auto; padding: 20px; }
section { scroll-margin-top: 110px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--card), var(--card2));
  border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin: 8px 0 20px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.hero .kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 6px; }
.hero h2 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; font-weight: 800; }
.hero p { color: var(--muted); margin: 0 0 16px; font-size: 15px; max-width: 46ch; }
.hero .maker { font-size: 12.5px; color: var(--muted); }
.hero .maker b { color: var(--fg); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); }
.tag.brand { border-color: var(--brand); color: var(--brand); }
.hero-figure { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat span { display: block; font-size: 11.5px; color: var(--muted); }
.stat b { font-size: 22px; font-weight: 800; }
.stat small { color: var(--muted); font-weight: 500; font-size: 12px; }

.card { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
h2.sec { font-size: 20px; margin: 26px 0 12px; font-weight: 720; scroll-margin-top: 110px; }
h2.sec .em { color: var(--brand); }
.lead { color: var(--muted); max-width: 78ch; margin: 0 0 16px; }

/* Seletor de bitola */
.dnbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dnbtn { background: var(--card2); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; font-size: 15px; cursor: pointer; font-family: inherit;
  font-weight: 600; transition: .15s; }
.dnbtn:hover { border-color: var(--accent); }
.dnbtn.active { background: var(--accent); color: #06121f; border-color: var(--accent); }
.selpanel { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; }
.selcell { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.selcell span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.selcell b { font-size: 21px; font-weight: 800; }
.selcell small { color: var(--muted); font-weight: 500; font-size: 12px; }
.passtag { display: inline-block; margin-top: 6px; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--info); color: var(--info); }

/* Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.data thead th { background: var(--card2); position: sticky; top: 0; font-weight: 650; }
table.data th:first-child, table.data td:first-child { text-align: left; font-weight: 600; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: rgba(32,189,103,.07); }
table.data tbody tr.sel { background: rgba(32,189,103,.16); box-shadow: inset 3px 0 0 var(--brand); }
.tnote { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.tnote b { color: var(--fg); }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-wrap { position: relative; min-height: 320px; }
.chart-card h3 { font-size: 15px; margin: 0 0 4px; font-weight: 650; }
.chart-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* Spec grid (dados técnicos / materiais) */
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; text-align: right; }

/* Cards de funcionamento / particularidades */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feature h4 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.feature .ico { color: var(--brand); }
.feature p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Accordion */
.acc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: none; }
.acc summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 14.5px; list-style: none;
  display: flex; align-items: center; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before { content: "+"; color: var(--brand); font-weight: 800; font-size: 18px; width: 16px; }
.acc details[open] summary::before { content: "–"; }
.acc summary .num { background: var(--brand); color: #06121f; font-size: 12px; font-weight: 800;
  min-width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.acc .body { padding: 0 18px 16px 54px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.acc .body b { color: var(--fg); }

/* Notas */
.note { border-left: 3px solid var(--warn); background: rgba(251,191,36,.08);
  border-radius: 8px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; margin: 0; }
.note.brand { border-left-color: var(--brand); background: rgba(32,189,103,.08); }
.note b { color: var(--fg); }

/* Créditos / footer */
.credits { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--card);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.credits .maker-block b { font-size: 15px; }
.credits .maker-block p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); max-width: 60ch; }
.disclaimer { max-width: 1180px; margin: 16px auto 0; padding: 12px 16px; border: 1px solid var(--warn);
  border-radius: 10px; background: rgba(251,191,36,.08); color: var(--fg); font-size: 12.5px; line-height: 1.5; }
.disclaimer b { color: var(--warn); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px; }
.foot a { color: var(--brand); text-decoration: none; }

/* Banner promocional (idêntico ao do Recalque; utm_source=vrp) */
.promo-banner {
  position: fixed; right: 20px; bottom: 20px; width: 380px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--brand); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.55); z-index: 200; animation: promoUp .5s ease;
}
@keyframes promoUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.promo-logo { height: 26px; width: auto; margin-bottom: 12px; display: block; }
.promo-fechar { position: absolute; top: 8px; right: 12px; background: none; border: none; color: var(--muted);
  font-size: 24px; cursor: pointer; line-height: 1; padding: 4px; }
.promo-fechar:hover { color: var(--fg); }
.promo-titulo { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--fg); }
.promo-texto { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.55; }
.promo-texto b { color: var(--fg); }
.promo-cta { display: inline-block; margin-top: 6px; color: #fff; font-weight: 700; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-size: 14px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 26px rgba(23,151,74,.35); }
.promo-cta:hover { filter: brightness(1.06); }
@media (max-width: 480px) { .promo-banner { right: 12px; left: 12px; bottom: 12px; width: auto; } }

@media (max-width: 900px) {
  .hero, .chart-grid, .spec-cols, .two-col { grid-template-columns: 1fr; }
  .hero h2 { font-size: 25px; }
}
