/* =========================================================
   DMachado — site institucional
   Mesma direção visual da landing do DMTrail: cartografia
   de trilha (papel, curvas de nível, marcos numerados)
   · laranja Moodle + azul petróleo.
   ========================================================= */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --surface: #fffdf8;
  --ink: #0f2a2e;
  --ink-soft: #3c5458;
  --muted: #5f7173;
  --line: rgba(15, 42, 46, .14);
  --line-strong: rgba(15, 42, 46, .28);
  --accent: #f98012;
  --accent-ink: #a94c00;       /* laranja legível sobre papel */
  --accent-soft: #fde3c7;
  --petrol: #0f2a2e;
  --petrol-2: #17403f;
  --moss: #5d7f55;
  --on-petrol: #f6f1e7;
  --on-petrol-muted: #b7c7c3;
  --topo: rgba(15, 42, 46, .09);
  --danger: #b4380a;
  --shadow: 0 1px 0 rgba(15,42,46,.06), 0 18px 40px -18px rgba(15,42,46,.35);
  --shadow-sm: 0 1px 0 rgba(15,42,46,.05), 0 8px 20px -12px rgba(15,42,46,.3);

  --f-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --f-body: "Figtree", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 18px;
  --r-sm: 10px;
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1a1c;
    --paper-2: #102426;
    --surface: #132b2d;
    --ink: #f1ebdf;
    --ink-soft: #c9d3cf;
    --muted: #9fb0ad;
    --line: rgba(241, 235, 223, .12);
    --line-strong: rgba(241, 235, 223, .26);
    --accent-ink: #ffa552;
    --accent-soft: rgba(249, 128, 18, .16);
    --petrol: #06100f;
    --petrol-2: #0f2526;
    --moss: #93b889;
    --topo: rgba(241, 235, 223, .06);
    --danger: #ff9b73;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 24px 50px -20px rgba(0,0,0,.7);
    --shadow-sm: 0 1px 0 rgba(0,0,0,.3), 0 10px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1a1c;
  --paper-2: #102426;
  --surface: #132b2d;
  --ink: #f1ebdf;
  --ink-soft: #c9d3cf;
  --muted: #9fb0ad;
  --line: rgba(241, 235, 223, .12);
  --line-strong: rgba(241, 235, 223, .26);
  --accent-ink: #ffa552;
  --accent-soft: rgba(249, 128, 18, .16);
  --petrol: #06100f;
  --petrol-2: #0f2526;
  --moss: #93b889;
  --topo: rgba(241, 235, 223, .06);
    --danger: #ff9b73;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 24px 50px -20px rgba(0,0,0,.7);
  --shadow-sm: 0 1px 0 rgba(0,0,0,.3), 0 10px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* grão sutil de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code {
  font-family: var(--f-mono);
  font-size: .85em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: .1em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem/1 var(--f-body);
  padding: 1rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #1a0d00; box-shadow: 0 10px 24px -10px rgba(249,128,18,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(249,128,18,.9); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--on-petrol); border-color: rgba(246,241,231,.35); }
.btn-ghost.on-dark:hover { border-color: var(--on-petrol); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-sm { padding: .65rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; white-space: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { font: 800 1.25rem/1 var(--f-display); letter-spacing: -.02em; }
.brand-dm {
  font: 500 .7rem/1 var(--f-mono);
  margin-left: 6px; padding: 3px 6px; border-radius: 6px;
  background: var(--accent); color: #1a0d00; vertical-align: 3px;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav.open { display: block; animation: drop .25s ease; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 8px; border-radius: 8px; font-size: 1.05rem; }
}
@media (max-width: 420px) { .hide-xs { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; isolation: isolate; }
.topo-lines {
  position: absolute; z-index: -1;
  width: 1100px; height: 1100px; max-width: none;
  right: -380px; top: -260px;
  color: var(--topo);
  stroke-width: 1.2;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; } .hero { padding: 80px 0 120px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8rem/1 var(--f-mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 4px color-mix(in srgb, var(--moss) 25%, transparent); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hero h1 em {
  font-style: normal; white-space: nowrap; color: var(--accent-ink);
  text-decoration: underline dashed var(--accent);
  text-decoration-thickness: .07em;
  text-underline-offset: .1em;
  text-decoration-skip-ink: none;
}
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-soft); max-width: 36em; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.badges li { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.badges li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* mockup */
.hero-visual { position: relative; max-width: 470px; width: 100%; margin: 0 auto; }
.mock-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-cover {
  position: relative; height: 120px; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #2d6f6a 0%, var(--petrol-2) 45%, #0b2124 100%);
}
.mock-cover svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; }
.mock-tag {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em;
  background: var(--accent); color: #1a0d00; padding: 6px 10px; border-radius: 999px;
}
.mock-body { padding: 20px 22px 24px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mock-kicker { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.mock-title { font: 600 1.18rem/1.2 var(--f-display); margin-top: 6px; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--paper-2); stroke-width: 5; }
.ring .ring-val {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: ring 1.6s .6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ring { to { stroke-dashoffset: calc(100 - var(--p)); } }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 .95rem/1 var(--f-display); }

.waypoints { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.waypoints li {
  position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px;
  padding: 10px 0;
}
.waypoints li:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; top: 30px; bottom: -10px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 8px);
}
.waypoints li.done:not(:last-child)::after { background: var(--accent); }
.wp {
  grid-row: span 2; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--surface); position: relative; z-index: 1;
}
.done .wp { background: var(--accent); border-color: var(--accent); }
.done .wp::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid #1a0d00; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.current .wp { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 2.2s ease-in-out infinite; }
.current .wp::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); }
.locked { opacity: .55; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }
.wp-name { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.wp-meta { font-size: .82rem; color: var(--muted); }
.current .wp-meta { color: var(--accent-ink); font-weight: 600; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip-cert { left: -28px; bottom: -22px; }
.chip-mail { right: -18px; top: 64px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 560px) {
  .chip-cert { left: -6px; bottom: -22px; }
  .chip-mail { right: -6px; top: 56px; }
}

/* entrada no carregamento */
.load-in { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Seções ---------- */
.section { padding: 88px 0; position: relative; }
@media (min-width: 980px) { .section { padding: 120px 0; } }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.12rem; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font: 500 .82rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.kicker span {
  color: var(--accent-ink); padding: 6px 10px; border-radius: 999px;
  border: 1px dashed currentColor;
}
.kicker.light { color: var(--on-petrol-muted); }
.kicker.light span { color: var(--accent); }

/* revelar ao rolar */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Problema x solução ---------- */
.versus { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .versus { grid-template-columns: 1fr 72px 1fr; } }
.versus-col { border-radius: var(--r); padding: 30px 28px; border: 1px solid var(--line); }
.versus-col h3 { font-size: 1.4rem; margin-bottom: 18px; }
.versus-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.versus-col li { position: relative; padding-left: 30px; }
.pain { background: transparent; color: var(--ink-soft); }
.pain h3 { color: var(--muted); }
.pain li::before {
  content: ""; position: absolute; left: 4px; top: .75em; width: 14px; height: 2px; background: var(--line-strong);
}
.gain { background: var(--petrol); color: var(--on-petrol); border-color: transparent; box-shadow: var(--shadow); }
.gain strong { color: #fff; }
.gain li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a0d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.versus-arrow { display: grid; place-items: center; color: var(--accent); }
.versus-arrow svg { width: 72px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 6; }
@media (max-width: 899px) { .versus-arrow svg { transform: rotate(90deg); width: 48px; } }

/* ---------- Números ---------- */
.numbers { background: var(--petrol); color: var(--on-petrol); padding: 56px 0; position: relative; overflow: hidden; }
.numbers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; position: relative; }
@media (min-width: 720px) { .numbers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .numbers-grid { grid-template-columns: repeat(6, 1fr); } }
.num { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 1px dashed rgba(246,241,231,.18); }
.num-val { font: 800 clamp(2.6rem, 2rem + 2.4vw, 3.6rem)/1 var(--f-display); color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num-label { color: var(--on-petrol-muted); font-size: .95rem; line-height: 1.35; }

/* ---------- Abas ---------- */
.tabs { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tablist {
  display: flex; gap: 4px; padding: 10px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
  scroll-snap-type: x proximity;
}
.tablist::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tablist { flex-wrap: wrap; overflow: visible; } }
.tablist button {
  flex: none; scroll-snap-align: start;
  font: 600 .92rem/1 var(--f-body); color: var(--ink-soft);
  padding: 12px 13px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tablist button:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tablist button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabpanel { display: grid; gap: 32px; padding: 32px 24px; }
.tabpanel[hidden] { display: none; }
.tabpanel:not([hidden]) { animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 1.6fr 1fr; padding: 48px; gap: 48px; } }
.panel-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; margin-bottom: 14px; }
.panel-copy > p { color: var(--ink-soft); margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a94c00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.panel-spec {
  align-self: start;
  border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 24px;
  background: var(--paper);
}
.spec-title { font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.spec-note { color: var(--ink-soft); font-size: .98rem; margin-top: 14px; }
.spec-title + .spec-note { margin-top: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 500 .8rem/1 var(--f-mono); padding: 8px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line);
}
.chips.mono li::before { content: "dmtrail:"; color: var(--muted); }
.mini-flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 0; }
.mini-flow li {
  counter-increment: f; position: relative; padding: 8px 0 8px 40px; font-weight: 600; font-size: .96rem;
}
.mini-flow li::before {
  content: counter(f); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 600 .78rem/1 var(--f-mono);
  background: var(--ink); color: var(--paper);
}
.mini-flow li:last-child::before { background: var(--accent); color: #1a0d00; }
.mini-flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; top: 32px; height: 14px; width: 2px; background: var(--line-strong);
}
.fake-field {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.fake-field:last-child { border-bottom: 0; }
.fake-field code { font-size: .9rem; }

/* ---------- Relatórios ---------- */
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reports { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reports { grid-template-columns: repeat(4, 1fr); } }
.report {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.report:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.r-n { display: block; font: 500 .78rem/1 var(--f-mono); color: var(--accent-ink); margin-bottom: 18px; }
.report h3 { font-size: 1.12rem; margin-bottom: 8px; }
.report p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
@media (min-width: 1000px) { .report.featured { grid-column: span 2; } }
.report.accent { background: var(--petrol); color: var(--on-petrol); border-color: transparent; }
.report.accent p { color: var(--on-petrol-muted); }
.report.accent .r-n { color: var(--accent); }
.funnel { margin-top: 18px; display: grid; gap: 6px; }
.funnel span { height: 12px; width: var(--w); border-radius: 6px; background: var(--accent); opacity: .35; }
.funnel span:nth-child(2) { opacity: .65; }
.funnel span:nth-child(3) { opacity: 1; }
.meter { margin-top: 18px; height: 14px; border-radius: 999px; background: rgba(246,241,231,.12); position: relative; }
.meter span { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--accent); }
.meter b { position: absolute; right: 0; top: 22px; font: 500 .8rem/1 var(--f-mono); color: var(--accent); }
.report.accent { padding-bottom: 44px; }
.reveal.in .funnel span, .reveal.in .meter span { animation: grow 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { width: 0; } }
.rb-note {
  margin-top: 28px; display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r); border: 1px dashed var(--line-strong);
}
.rb-note p { color: var(--ink-soft); }
.rb-note strong { color: var(--ink); }
.rb-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.rb-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; }

/* ---------- Compliance ---------- */
.compliance { background: var(--petrol); color: var(--on-petrol); overflow: hidden; }
.compliance .section-lead { color: var(--on-petrol-muted); }
.compliance .kicker { color: var(--on-petrol-muted); }
.compliance .kicker span { color: var(--accent); }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
@media (min-width: 860px) {
  .cycle { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .cycle::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  }
}
.cycle li { position: relative; padding: 0 0 0 72px; min-height: 56px; }
@media (min-width: 860px) { .cycle li { padding: 76px 0 0; } }
.c-step {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.3rem/1 var(--f-display);
  background: var(--petrol-2); border: 2px solid var(--accent); color: var(--accent);
}
.cycle li:last-child .c-step { background: var(--accent); color: #1a0d00; }
.cycle h3 { font-size: 1.25rem; margin-bottom: 6px; color: #fff; }
.cycle p { color: var(--on-petrol-muted); font-size: .98rem; }
.cycle-loop {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  font: 500 .88rem/1.2 var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .04em;
}
.cycle-loop svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Público ---------- */
.audience { display: grid; gap: 16px; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.aud {
  padding: 28px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.aud svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.aud h3 { margin-bottom: 10px; }
.aud p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Qualidade ---------- */
.quality-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .quality-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } .quality .section-head { margin-bottom: 0; position: sticky; top: 110px; } }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.q-list li { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 6px; }
.q-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.q-list li:nth-child(even) { padding-left: 20px; }
.q-list b { font: 800 1.9rem/1 var(--f-display); color: var(--accent-ink); letter-spacing: -.02em; }
.q-list span { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
@media (max-width: 400px) { .q-list { grid-template-columns: 1fr; } .q-list li:nth-child(odd) { border-right: 0; } .q-list li:nth-child(even) { padding-left: 0; } }

/* ---------- Passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { position: relative; padding: 28px 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.s-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font: 800 1.2rem/1 var(--f-display); margin-bottom: 20px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Preço ---------- */
.pricing { background:
  radial-gradient(60% 80% at 15% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  var(--paper-2); }
.pricing-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 940px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.price-card {
  background: var(--petrol); color: var(--on-petrol); border-radius: 26px; padding: 36px 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
@media (min-width: 720px) { .price-card { padding: 44px 40px; } }
.price-card::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -140px; top: -140px; border-radius: 50%;
  border: 1px dashed rgba(249,128,18,.45); box-shadow: 0 0 0 40px rgba(249,128,18,.04), 0 0 0 80px rgba(249,128,18,.03);
}
.price-title { font-size: 1.5rem; font-weight: 700; color: #fff; }
.price { display: flex; align-items: baseline; margin-top: 18px; font-family: var(--f-display); color: var(--accent); }
.price .cur { font-size: 1.5rem; font-weight: 600; margin-right: 6px; }
.price .val { font-size: clamp(3.8rem, 3rem + 4vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .cents { font-size: 1.6rem; font-weight: 600; }
.price-sub { color: var(--on-petrol-muted); margin-top: 4px; }
.price-list { list-style: none; margin: 28px 0; padding: 24px 0 0; border-top: 1px solid rgba(246,241,231,.14); display: grid; gap: 12px; }
.price-list li { position: relative; padding-left: 30px; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231a0d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-card code { background: rgba(249,128,18,.18); color: #fff; }
.price-foot { margin-top: 16px; text-align: center; color: var(--on-petrol-muted); font-size: .95rem; }
.price-foot a { color: var(--accent); }

.order-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .order-form { padding: 40px; } }
.order-form h3 { font-size: 1.6rem; font-weight: 700; }
.form-intro { color: var(--ink-soft); margin: 10px 0 24px; font-size: .98rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.form-error { color: var(--danger); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- Seletor do formulário ---------- */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23f98012' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}

/* ---------- Contato (cartão escuro) ---------- */
.contact-list { list-style: none; margin: 28px 0; padding: 24px 0 0; border-top: 1px solid rgba(246,241,231,.14); display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-list .ci {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(249,128,18,.14); border: 1px dashed rgba(249,128,18,.5);
}
.contact-list .ci svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list b { display: block; color: #fff; font-weight: 600; }
.contact-list span { color: var(--on-petrol-muted); font-size: .96rem; }
.contact-list a { color: var(--accent); }
.contact-mail { font: 800 clamp(1.4rem, 1.1rem + 1.4vw, 2rem)/1.15 var(--f-display); color: var(--accent); margin-top: 14px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-mail a { color: inherit; text-decoration: none; }
.contact-mail a:hover { text-decoration: underline; }

/* ---------- Solução (cartão de produto) ---------- */
.product-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 24px; border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .product-head { padding: 36px 48px; } }
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id img { width: 56px; height: 56px; flex: none; }
.product-id h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; }
.product-id p { color: var(--ink-soft); margin-top: 4px; }
.product-parts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product-parts li {
  font: 500 .78rem/1 var(--f-mono); padding: 7px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink);
}
.product-parts li b { color: var(--accent-ink); font-weight: 500; }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.product-price { font: 500 .85rem/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product-price b { display: block; font: 800 1.6rem/1 var(--f-display); color: var(--accent-ink); letter-spacing: -.02em; text-transform: none; margin-top: 4px; }
.tabs .tablist { border-top: 0; }

/* mini bloco "Minhas Trilhas" dentro da aba */
.mini-block { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini-block-head { padding: 12px 14px; font-weight: 700; font-size: .95rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mini-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-row:last-child { border-bottom: 0; }
.mini-row b { font-weight: 600; }
.mini-row em { font-style: normal; font: 500 .8rem/1.4 var(--f-mono); color: var(--accent-ink); }
.mini-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: inherit; }
.reveal.in .mini-bar span { animation: grow 1.2s .3s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- Valores ---------- */
.values { display: grid; gap: 16px; margin-bottom: 56px; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value {
  padding: 28px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.value .v-n { display: block; font: 500 .78rem/1 var(--f-mono); color: var(--accent-ink); margin-bottom: 18px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--ink-soft); font-size: .98rem; }
.eng-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .eng-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.eng-grid h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; }
.eng-grid > div > p { color: var(--ink-soft); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 600 1.15rem/1.3 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat;
  transition: transform .3s ease, background-color .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); }
.faq details[open] p { animation: rise .35s ease; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--petrol); color: var(--on-petrol); padding: 96px 0; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(246,241,231,.05) 46px 47px);
}
.final-inner { position: relative; text-align: center; max-width: 820px; }
.final-inner h2 { color: #fff; }
.final-inner p { color: var(--on-petrol-muted); margin-top: 16px; font-size: 1.15rem; }
.final-inner strong { color: var(--accent); }
.final-inner .hero-cta { justify-content: center; }
@media (max-width: 480px) { .final-inner .btn { width: 100%; white-space: normal; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--petrol); color: var(--on-petrol-muted); border-top: 1px solid rgba(246,241,231,.1); padding: 32px 0 40px; font-size: .92rem; }
.site-footer .brand { color: var(--on-petrol); }
.footer-inner { display: grid; gap: 14px; }
.site-footer a { color: var(--accent); }
.tm { font-size: .8rem; opacity: .75; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: auto 1fr; column-gap: 32px; align-items: center; } .footer-inner p:not(.tm) { text-align: right; } .tm { grid-column: 1 / -1; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
