/* Portal de marca Dextra Labs. Valores do GUIA_DE_MARCA.md e de brand-kit/design-tokens/produto.css:
   creme é o chão, branco é a superfície; vermelho só no ponto. */
:root {
  --green: #006437; --green-shade: #00482A; --green-soft: #E6EFEA; --green-tint: #CDE0D5;
  --red: #CE2B37; --tagline: #888885; --cream: #F8F4EB; --cream-dark: #EFE8D9;
  --ground: #F8F4EB; --surface: #FFFFFF; --sunken: #F1EBDD;
  --ink: #111111; --ink-2: #3D423A; --ink-3: #55554F;
  --line: #E3DCCC; --line-strong: #CFC5B1;
  --warn: #7A5300; --warn-soft: #F6ECD2; --danger: #A3222C; --danger-soft: #F8E3E4;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
code { font: 500 0.88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunken); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; margin: 32px 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.4; }

/* ── Barra ──────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(248, 244, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 16px; }
.bar .sep { width: 1px; height: 22px; background: var(--line-strong); }
.bar .what { color: var(--ink-3); font-size: 15px; }
.bar .grow { flex: 1; }
.bar a.btn { padding: 8px 14px; }

/* Lockup em HTML (mesmo desenho do 01-logo/logo-web-snippet.html) */
.lk { display: inline-flex; flex-direction: column; align-items: flex-end; font-family: var(--font); line-height: 1; color: var(--green); text-decoration: none; }
.lk .wm { font-weight: 400; letter-spacing: -0.01em; white-space: nowrap; }
.lk .wm b { font-weight: 600; }
.lk .wm i { font-style: normal; color: var(--red); }
.lk .tg { color: var(--tagline); font-size: .3em; margin-top: .3em; letter-spacing: .02em; }
.bar .lk { font-size: 25px; }

/* ── Layout com índice lateral ──────────────────────────────────────────── */
.layout { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: 84px; align-self: start; padding: 32px 0; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.toc li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-3); text-decoration: none; }
.toc li a:hover { background: var(--sunken); color: var(--ink); }
.toc li a.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
.toc .n { display: inline-block; width: 22px; color: var(--tagline); font-variant-numeric: tabular-nums; }
.toc li a.on .n { color: var(--green); }
main { min-width: 0; padding-bottom: 64px; }
@media (max-width: 920px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; padding: 16px 0 0; min-width: 0; }
  .toc ol { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
  .toc li a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .bar .what { display: none; }
}

section.s { padding: 56px 0 8px; border-top: 1px solid var(--line); }
section.s:first-of-type { border-top: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 720px; margin: 12px 0 24px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(32px, 7vw, 88px) clamp(24px, 6vw, 80px); display: grid; place-items: center; margin: 28px 0; }
.hero-art img { width: min(560px, 100%); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fact b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }

/* ── Peças comuns ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .art { display: grid; place-items: center; padding: 28px 24px; min-height: 180px; background: var(--cream); border-bottom: 1px solid var(--line); }
.card .art.green { background: var(--green); }
.card .art.ink { background: #1B211C; }
.card .art.white { background: #FFFFFF; }
.card .art.check { background: repeating-conic-gradient(#ECE7DC 0 25%, #FAF8F3 0 50%) 0 0 / 18px 18px; }
.card .art img { max-height: 120px; width: auto; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .body h4 { margin: 0; font-size: 17px; font-weight: 600; }
.card .body p { font-size: 15px; color: var(--ink-3); margin: 0; }
.card .dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font); padding: 9px 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--green); color: var(--green); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-shade); color: #fff; }
.btn svg { width: 15px; height: 15px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 18px; margin: 16px 0; max-width: 760px; }
.rule.red { border-left-color: var(--red); }
.rule b:first-child { display: block; margin-bottom: 2px; }
ul.list { padding-left: 20px; margin: 8px 0 16px; max-width: 760px; }
ul.list li { margin: 4px 0; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table th, .table td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--sunken); font-weight: 600; font-size: 13px; color: var(--ink-2); border-top: 0; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.figure figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* Essência */
.quote { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 500; color: var(--green); max-width: 780px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.senses { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.sense { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sense b { display: block; font-size: 18px; color: var(--green); font-weight: 600; margin-bottom: 4px; }

/* Tamanho mínimo */
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mini .stage { height: 72px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 10px; }
.mini b { font-size: 22px; font-weight: 600; }

/* Don'ts */
.donts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1180px) { .donts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dont .art { min-height: 150px; position: relative; overflow: hidden; }
.dont .art::after { content: ""; position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dont .lk { font-size: 24px; }
.dont .art { padding: 20px 12px; }
.dont .body h4 { font-size: 15px; }
.dont .body h4 .n { color: var(--danger); margin-right: 4px; }

/* Cores */
.colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.color { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.color .chip { height: 130px; padding: 14px; display: flex; align-items: flex-end; font-weight: 600; font-size: 15px; }
.color dl { margin: 0; padding: 12px 16px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.color dt { color: var(--ink-3); }
.color dd { margin: 0; font-variant-numeric: tabular-nums; }
.copy { all: unset; cursor: pointer; border-bottom: 1px dashed var(--line-strong); }
.copy:hover { color: var(--green); border-color: var(--green); }
.copy:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ratio { display: flex; height: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 12px 0 6px; }
.ratio div { display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 600; }
.pair { display: inline-grid; place-items: center; width: 64px; height: 40px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); }
.ok { color: var(--green); font-weight: 600; }
.no { color: var(--danger); font-weight: 600; }

/* Tipografia */
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.specimen .big { font-size: clamp(64px, 11vw, 120px); line-height: 1; letter-spacing: -0.03em; color: var(--green); }
.weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.weights > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.weights > div > span { display: block; font-size: 40px; line-height: 1.1; color: var(--green); margin-bottom: 6px; }
.scale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.scale > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 20px; border-top: 1px solid var(--line); }
.scale > div:first-child { border-top: 0; }
.scale .meta { font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .scale > div { grid-template-columns: 1fr; gap: 4px; } }

/* Voz */
.saywrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.say { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.say h4 { margin: 0 0 8px; font-size: 15px; }
.say.yes h4 { color: var(--green); }
.say.no h4 { color: var(--danger); }
.say ul { margin: 0; padding-left: 18px; }
.say li { margin: 4px 0; }

/* Submarcas */
.brand-tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.model .fmt { font-size: 15px; background: var(--sunken); border-radius: 8px; padding: 8px 12px; }
.model .ex { display: flex; flex-direction: column; gap: 6px; }
.model .ex span { font-size: 20px; color: var(--green); }
.model .ex span b { font-weight: 600; }
.model .ex small { color: var(--ink-3); font-size: 13px; }

/* Aplicações */
.app .art { padding: 0; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.app .art { background: #ECE7DC; }
.app .art img { width: 100%; height: 100%; object-fit: contain; max-height: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); vertical-align: 2px; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.mock-header { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.mock-header .lk { font-size: 25px; }
.mock-header .sep { width: 1px; height: 22px; background: var(--line-strong); }
.mock-header .nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; color: var(--ink-3); }
.mock-header .cta { background: var(--green); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
@media (max-width: 640px) { .mock-header .nav span { display: none; } }
.favs { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.favs figure { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.favs img { margin: 0 auto 6px; image-rendering: auto; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.download { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.download:hover { border-color: var(--green); }
.download .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; color: var(--green); flex: none; }
.download .ic svg { width: 20px; height: 20px; }
.download b { display: block; font-weight: 600; }
.download small { color: var(--ink-3); font-size: 13px; }

/* Rodapé (versão invertida, como no site) */
footer.foot { background: var(--green-shade); color: #D7E8DE; margin-top: 48px; }
footer.foot .in { max-width: 1240px; margin: 0 auto; padding: 48px 16px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
footer.foot .lk { color: #fff; font-size: 34px; }
footer.foot .lk .tg { color: rgba(255, 255, 255, .7); }
footer.foot p { margin: 0; font-size: 14px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* Ícones de produto (§10) */
.prod-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.prod-icons figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px 10px; text-align: center; font-size: 13px; color: var(--ink-3); }
.prod-icons img { width: 56px; height: 56px; margin: 0 auto 8px; }
