/* ==========================================================================
   CARRM — site institucional
   Fonte da verdade das cores: brand/BRAND-GUIDELINES.md (seção 2).
   Assinatura visual: o corte de 20° do R. Aparece na palavra cortada do título,
   no marcador "slash" (eyebrow) e no wordmark do rodapé.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/geist-mono.woff2") format("woff2"); }

:root {
  --carmim: #E11D2F;
  --carmim-600: #C0132A;
  --carmim-700: #9C0F23;
  --carmim-dark: #FF5765;
  --tinta: #18181C;
  --asfalto: #0E0E11;
  --neve: #F8F8FA;
  --branco: #FFFFFF;
  --n-100: #F1F1F4;
  --n-200: #E5E5EA;
  --n-300: #D2D2DA;
  --n-400: #A0A0AC;
  --n-500: #71717F;
  --n-600: #52525E;
  --n-700: #3F3F48;
  --n-800: #27272E;
  --n-900: #18181C;
  --snow: #F4F4F6;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-btn: 10px;
  --radius-card: 14px;
  --shadow-1: 0 1px 2px rgba(16, 16, 20, .06);
  --shadow-3: 0 30px 60px -20px rgba(16, 16, 20, .35), 0 12px 24px -12px rgba(16, 16, 20, .25);
  --ease: cubic-bezier(.2, 0, 0, 1);

  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--neve);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "calt", "kern";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--carmim); color: #fff; }

:focus-visible { outline: 3px solid var(--carmim); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--snow); }

.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--n-600);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--carmim); transform: rotate(-20deg); flex: none; }
.on-dark .eyebrow { color: var(--n-400); }
.on-dark .eyebrow::before { background: var(--carmim-dark); }

.h-display {
  font-weight: 800; letter-spacing: -.045em; line-height: .96;
  font-size: clamp(2.7rem, 1.2rem + 6.4vw, 6.4rem);
  text-wrap: balance;
}
.h-hero {
  font-weight: 800; letter-spacing: -.042em; line-height: 1;
  font-size: clamp(2.5rem, 1.35rem + 4.1vw, 4.75rem);
  text-wrap: balance;
}
.h-section {
  font-weight: 800; letter-spacing: -.038em; line-height: 1.03;
  font-size: clamp(2rem, 1.1rem + 3.3vw, 3.6rem);
  text-wrap: balance;
}
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.55; color: var(--n-700); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--n-600); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--carmim); color: #fff; }
.btn--primary:hover { background: var(--carmim-600); }
.btn--ghost { background: transparent; color: var(--tinta); border-color: var(--n-300); }
.btn--ghost:hover { border-color: var(--tinta); }
.on-dark .btn--ghost { color: var(--snow); border-color: var(--n-700); }
.on-dark .btn--ghost:hover { border-color: var(--snow); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--glow {
  background: var(--carmim); color: #fff;
  box-shadow: 0 0 22px 2px rgba(225, 29, 47, .5);
  transition: background-color .15s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn--glow:hover { background: var(--carmim-600); box-shadow: 0 0 34px 6px rgba(225, 29, 47, .62); }
.btn--glow svg { transition: transform .15s var(--ease); }
.btn--glow:hover svg { transform: translateX(3px); }
.btn--enter { background: transparent; color: var(--carmim); border-color: var(--carmim); }
.btn--enter:hover { background: var(--carmim); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .nav .btn--glow { animation: glow-pulse 2.8s ease-in-out infinite; }
  .nav .btn--glow:hover { animation: none; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px 1px rgba(225, 29, 47, .42); }
  50% { box-shadow: 0 0 30px 5px rgba(225, 29, 47, .66); }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--neve) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--n-200); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--n-700);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:not(.btn):hover { color: var(--tinta); background: var(--n-100); }
.nav a[aria-current="page"] { color: var(--tinta); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav .nav__enter { margin-left: 12px; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1.5px solid var(--n-300); border-radius: 10px; background: transparent; cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .i-close { display: none; }
  .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--neve); border-bottom: 1px solid var(--n-200); padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .js .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--n-200); border-radius: 0; }
  .nav a:not(.btn):hover { background: transparent; }
  .nav .btn, .nav .nav__enter { margin: 12px 0 0; }
  .nav .nav__enter { margin-top: 20px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 12px; }
}

/* ---------- Palavra cortada (assinatura) ---------- */
.cut { position: relative; display: inline-block; margin-left: -.035em; margin-right: -.04em; color: var(--carmim); white-space: nowrap; --gap: .04em; --slide: .06em; --center: 50%; }
.cut__a, .cut__b { display: inline-block; }
.cut__a {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(160deg, #000 calc(var(--center) - var(--gap)), transparent calc(var(--center) - var(--gap)));
          mask-image: linear-gradient(160deg, #000 calc(var(--center) - var(--gap)), transparent calc(var(--center) - var(--gap)));
  transform: translate(calc(var(--slide) * .94), calc(var(--slide) * -.34));
}
.cut__b {
  -webkit-mask-image: linear-gradient(160deg, transparent calc(var(--center) + var(--gap)), #000 calc(var(--center) + var(--gap)));
          mask-image: linear-gradient(160deg, transparent calc(var(--center) + var(--gap)), #000 calc(var(--center) + var(--gap)));
  transform: translate(calc(var(--slide) * -.94), calc(var(--slide) * .34));
}
@media (prefers-reduced-motion: no-preference) {
  .cut__a { animation: cut-a .9s .25s var(--ease) both; }
  .cut__b { animation: cut-b .9s .25s var(--ease) both; }
}
@keyframes cut-a { from { transform: translate(.5em, -.18em); opacity: 0; } 40% { opacity: 1; } }
@keyframes cut-b { from { transform: translate(-.5em, .18em); opacity: 0; } 40% { opacity: 1; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy > * + * { margin-top: 28px; }
.hero__copy .eyebrow { margin-bottom: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px !important; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.hero__note { font: 500 .8125rem/1.5 var(--mono); color: var(--n-500); letter-spacing: .01em; }
.store {
  display: inline-flex; align-items: center; gap: 11px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: var(--radius-btn); text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.store:active { transform: translateY(1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__t { display: grid; gap: 3px; }
.store__t small { font-size: .6875rem; line-height: 1; font-weight: 500; opacity: .8; }
.store__t b { font-size: 1.0625rem; line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.store--apple { background: #000; color: #fff; }
.store--apple:hover { background: var(--n-800); }
.store--play { background: #fff; color: #1F1F1F; border-color: var(--n-300); }
.store--play:hover { border-color: var(--tinta); }
.hero__stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero__line {
  position: absolute; left: 0; right: -60%; top: 58%; height: 3px; background: var(--carmim);
  transform: rotate(-20deg); transform-origin: 0 50%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 48%, #000 75%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, transparent 30%, #000 48%, #000 75%, transparent 100%);
}
@media (max-width: 520px) { .hero__actions .btn, .stores .store { width: 100%; justify-content: center; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__stage { min-height: 0; padding-top: 24px; }
  .hero__line { top: 62%; }
}

/* ---------- Telefone (mock do app) ---------- */
.phone {
  position: relative; width: 300px; height: 620px; flex: none;
  background: var(--asfalto); border-radius: 48px; padding: 10px; box-shadow: var(--shadow-3);
}
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 24px; background: var(--asfalto); border-radius: 999px; z-index: 5; }
.phone__screen { position: relative; width: 100%; height: 100%; background: var(--neve); border-radius: 39px; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; }
.ph-status { display: flex; justify-content: space-between; padding: 16px 26px 0; font: 600 12px/1 var(--sans); flex: none; }
.ph-status span:last-child { letter-spacing: .1em; font-size: 10px; }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 34px 16px 12px; border-bottom: 1px solid var(--n-200); background: var(--branco); flex: none; }
.ph-head--plain { padding-top: 40px; }
.ph-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--n-800); color: #fff; display: grid; place-items: center; font: 600 12px/1 var(--sans); flex: none; }
.ph-title { font-weight: 700; font-size: 14px; line-height: 1.2; }
.ph-sub { color: var(--n-500); font-size: 11.5px; line-height: 1.3; }
.ph-chip { margin-left: auto; font: 600 10px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: #ffe0e3; color: var(--carmim-700); }
.ph-body { flex: 1; min-height: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: var(--neve); }
.ph-day { align-self: center; font: 500 10px/1 var(--mono); color: var(--n-500); letter-spacing: .04em; text-transform: uppercase; padding: 4px 0 2px; }
.bubble { max-width: 82%; padding: 9px 12px 7px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.bubble time { display: block; margin-top: 3px; text-align: right; font: 500 9.5px/1 var(--mono); opacity: .6; }
.bubble--in { align-self: flex-start; background: var(--branco); border: 1px solid var(--n-200); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--n-900); color: #fff; border-bottom-right-radius: 4px; }
.veh { display: flex; gap: 10px; align-items: center; align-self: flex-end; width: 88%; background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; padding: 9px; }
.plate { width: 58px; flex: none; border-radius: 4px; overflow: hidden; border: 1px solid var(--n-300); background: #fff; text-align: center; box-shadow: var(--shadow-1); }
.plate i { display: block; font: 700 5.5px/1 var(--sans); letter-spacing: .14em; color: #fff; background: #1c3f94; padding: 2.5px 0; font-style: normal; }
.plate b { display: block; font: 700 12px/1 var(--mono); letter-spacing: .04em; padding: 5px 0 5px; color: var(--tinta); }
.veh__t { font-weight: 700; font-size: 12px; line-height: 1.25; }
.veh__s { color: var(--n-500); font-size: 10.5px; line-height: 1.35; margin-top: 2px; }
.ph-composer { flex: none; display: flex; gap: 8px; padding: 8px 12px 10px; background: var(--branco); border-top: 1px solid var(--n-200); }
.ph-composer span { flex: 1; height: 34px; border-radius: 999px; background: var(--n-100); color: var(--n-500); display: flex; align-items: center; padding: 0 14px; font-size: 12px; }
.ph-composer i { width: 34px; height: 34px; border-radius: 50%; background: var(--carmim); display: grid; place-items: center; }
.ph-composer svg { width: 15px; height: 15px; }
.ph-tabs { flex: none; display: flex; padding: 8px 6px 20px; background: var(--branco); border-top: 1px solid var(--n-200); }
.ph-tabs li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--n-500); position: relative; }
.ph-tabs li.is-on { color: var(--carmim); font-weight: 700; }
.ph-tabs svg { width: 21px; height: 21px; }
.ph-badge { position: absolute; top: -3px; left: calc(50% + 6px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--carmim); color: #fff; font: 700 9px/15px var(--sans); text-align: center; }

/* mock: fila e painel */
.q-group { background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; overflow: hidden; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--n-200); }
.q-row:first-child { border-top: 0; }
.q-row b { font-size: 13px; font-weight: 700; }
.q-row small { display: block; color: var(--n-500); font-size: 11px; line-height: 1.3; }
.q-n { margin-left: auto; font: 700 15px/1 var(--mono); }
.q-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--n-300); }
.q-dot--now { background: var(--carmim); }
.q-dot--soon { background: #e8930c; }
.ph-notif { display: none; position: absolute; top: 44px; left: 10px; right: 10px; z-index: 4; padding: 9px 12px; background: var(--branco); border-radius: 14px; box-shadow: 0 6px 18px -6px rgba(16, 16, 20, .35); opacity: 0; }
.ph-notif b { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ph-notif span { display: block; font-size: 11.5px; color: var(--n-600); line-height: 1.3; }
.ph-h { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--n-500); margin: 6px 2px 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; padding: 11px 12px; }
.tile small { display: block; color: var(--n-500); font-size: 10.5px; line-height: 1.3; }
.tile b { display: block; font: 800 24px/1.1 var(--sans); letter-spacing: -.03em; margin-top: 4px; }
.bars { background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; padding: 10px 12px; display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 54px 1fr 20px; align-items: center; gap: 8px; font-size: 11px; }
.bar i { display: block; height: 7px; border-radius: 99px; background: var(--n-200); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--n-800); border-radius: 99px; }
.bar span:last-child { font: 600 11px/1 var(--mono); text-align: right; }

/* ---------- Faixa da tese (escura) ---------- */
.on-dark { background: var(--asfalto); color: var(--snow); }
.thesis { padding: clamp(72px, 10vw, 152px) 0; position: relative; overflow: hidden; }
.thesis .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.thesis__q { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.2rem, 1rem + 5vw, 5rem); text-wrap: balance; margin-top: 28px; }
.thesis__q em { font-style: normal; color: var(--carmim-dark); }
.thesis__side { display: grid; gap: 22px; color: var(--n-400); font-size: 1.0625rem; }
.thesis__side strong { color: var(--snow); font-weight: 600; }
.thesis__where { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.thesis__where li { font: 500 .8125rem/1 var(--mono); padding: 9px 12px; border: 1px solid var(--n-700); border-radius: 999px; color: var(--n-300); }
@media (max-width: 960px) { .thesis .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Produto: demo do sistema ---------- */
.section { padding: clamp(72px, 10vw, 144px) 0; }
.section--tight { padding-block: clamp(56px, 8vw, 112px); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg { width: 12px; height: 12px; flex: none; stroke: none; }
.lg--wa { fill: #25D366; }
.lg--ms { fill: #4B9BFF; }
.lg--ig { color: #E4405F; fill: currentColor; }

.showcase__head { max-width: 44em; display: grid; gap: 20px; }
.demo { margin-top: clamp(32px, 4vw, 56px); min-width: 0; }

/* janela do sistema */
.app { background: var(--branco); border: 1px solid var(--n-300); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-3); font-size: 13px; line-height: 1.4; }
.app__bar { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--n-100); border-bottom: 1px solid var(--n-200); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--n-300); }
.addr { flex: 0 1 280px; margin-inline: auto; transform: translateX(-24px); text-align: center; font: 500 12px/1 var(--mono); color: var(--n-500); background: var(--branco); border: 1px solid var(--n-200); border-radius: 6px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__body { display: flex; height: 540px; min-width: 0; }
.d-side { width: 188px; flex: none; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px 12px; border-right: 1px solid var(--n-200); background: var(--branco); }
.d-side img { height: 22px; width: auto; margin: 0 6px; }
.d-side ul { display: grid; gap: 2px; }
.d-side li { position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--n-600); font-size: 13px; }
.d-side li .ic { width: 18px; height: 18px; }
.d-side li em { margin-left: auto; font: 700 12px/18px var(--sans); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--carmim); color: #fff; text-align: center; }
.d-side li.is-on { background: var(--n-100); color: var(--tinta); font-weight: 600; }
.d-side li.is-on .ic { color: var(--carmim); }
.d-side li.is-on::before { content: ""; position: absolute; left: -12px; top: 7px; width: 3px; height: 24px; border-radius: 0 2px 2px 0; background: var(--carmim); }
.d-user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--n-200); color: var(--n-700); font-size: 13px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--n-800); color: #fff; display: grid; place-items: center; font: 600 12px/1 var(--sans); flex: none; }
.av--2 { background: #7E8794; }
.av--3 { background: var(--n-600); }
.d-user .av { width: 28px; height: 28px; }
.d-main { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--neve); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.demo-panel { height: 100%; grid-area: 1 / 1; min-width: 0; min-height: 0; background: var(--neve); }
/* troca por crossfade: a tela antiga fica opaca por baixo até a nova terminar de entrar */
.demo-panel[hidden], .screen[hidden] { display: block; visibility: hidden; }
.demo-panel:not([hidden]), .screen:not([hidden]) { z-index: 1; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .demo-panel[hidden], .screen[hidden] { transition: visibility 0s .7s; }
  .demo-panel:not([hidden]), .screen:not([hidden]) { animation: panel-in .7s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes panel-in { from { opacity: 0; } }
.dp { height: 100%; }

.chip { display: inline-block; font: 600 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; text-align: center; }
.chip--ok { background: #e3f6ea; color: #0a6b36; }
.chip--res { background: #fdf0d9; color: #8a5a06; }
.chip--sold { background: var(--n-800); color: #fff; }

/* Atendimento */
.cx { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100%; }
.cl { background: var(--branco); border-right: 1px solid var(--n-200); display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; }
.cl__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; font-weight: 700; font-size: 14px; }
.cl__c { font: 500 12px/1 var(--mono); color: var(--n-500); }
.cl__f { display: flex; gap: 6px; padding: 0 14px 10px; }
.fl { font: 600 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--n-100); color: var(--n-600); white-space: nowrap; }
.fl.is-on { background: var(--tinta); color: #fff; }
.cv { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--n-100); }
.cv .av { width: 36px; height: 36px; }
.cv.is-on { background: var(--neve); }
.cv.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--carmim); }
.cv__b { min-width: 0; }
.cv__r1, .cv__r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cv__n { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv__t { font: 500 12px/1 var(--mono); color: var(--n-500); flex: none; }
.cv__p { flex: 1; min-width: 0; color: var(--n-500); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv__u { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--carmim); color: #fff; font: 700 12px/18px var(--sans); text-align: center; }
.sel { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font: 600 12px/1 var(--sans); padding: 3px 8px 3px 6px; border-radius: 999px; background: var(--n-100); color: var(--n-600); }
.cc { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cc__h { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--branco); border-bottom: 1px solid var(--n-200); }
.cc__t { min-width: 0; }
.cc__t b { display: block; font-size: 14px; line-height: 1.2; }
.cc__t small { display: block; color: var(--n-500); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__h .ph-chip { font-size: 12px; padding: 6px 10px; flex: none; }
.mini { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--n-300); border-radius: 8px; background: var(--branco); font: 600 12px/1 var(--sans); }
.mini .ic { width: 14px; height: 14px; color: #12a150; stroke-width: 2.2; }
.cc__v { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--branco); border-bottom: 1px solid var(--n-200); }
.cc__vt { flex: 1; min-width: 0; }
.cc__vt b { display: block; font-size: 13px; line-height: 1.25; }
.cc__vt small { color: var(--n-500); font-size: 12px; }
.cc__m { flex: 1; min-height: 0; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cc__m .bubble { max-width: min(62%, 420px); }
.cc__m .bubble time { font-size: 12px; }
.cc__m .veh { width: min(380px, 80%); }
.cc__m .veh__s { font-size: 12px; }
.cc .ph-composer span { font-size: 13px; }
.m-typing { display: none; align-self: flex-end; gap: 4px; align-items: center; padding: 11px 14px; }
.m-typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; }

/* Funil e Estoque: cabeçalhos */
.fn, .es, .pn { height: 100%; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fn__top, .es__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.fn__t b { display: block; font-size: 16px; line-height: 1.2; }
.fn__t small { color: var(--n-500); font-size: 12px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--n-600); }
.legend span, .own { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.o-r { background: #2F6FED; }
.o-c { background: #E8930C; }
.o-d { background: #12A150; }
.fn__cols { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.fc { min-width: 0; min-height: 0; overflow: hidden; background: var(--n-100); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.fc__h { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; font-weight: 700; font-size: 12px; }
.fc__n { background: var(--branco); border-radius: 999px; padding: 3px 8px; font: 600 12px/1 var(--mono); }
.cnt { display: inline-grid; }
.cnt i { grid-area: 1 / 1; font-style: normal; text-align: center; }
.cnt__o { opacity: 0; }
.kc { background: var(--branco); border: 1px solid var(--n-200); border-radius: 10px; padding: 9px 10px; display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.kc b { font-size: 12.5px; line-height: 1.25; }
.kc small { font-size: 12px; color: var(--n-500); line-height: 1.3; }
.kc__f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; font: 600 12px/1.2 var(--mono); color: var(--n-700); }
.kc__f .own { font: 500 12px/1 var(--sans); color: var(--n-600); }
.kc--go { max-height: 0; opacity: 0; margin-block: -4px; padding-block: 0; border-width: 0; overflow: hidden; }
.kc--arrive { border-color: #9bd8b3; }

/* Estoque */
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--n-600); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); flex: none; }
.es__tbl { background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; overflow: hidden; }
.er { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px 110px 104px; grid-template-areas: "pl m k p c"; align-items: center; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--n-100); }
.er > :nth-child(1) { grid-area: pl; }
.er > :nth-child(2) { grid-area: m; }
.er > :nth-child(3) { grid-area: k; }
.er > :nth-child(4) { grid-area: p; }
.er > :nth-child(5) { grid-area: c; }
.er--h { background: var(--n-100); border-top: 0; font: 500 12px/1 var(--mono); color: var(--n-500); padding-block: 10px; }
.er__m { min-width: 0; }
.er__m b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.er__m small { color: var(--n-500); font-size: 12px; }
.er__k { color: var(--n-600); font-size: 12.5px; }
.er__p { font: 600 12.5px/1 var(--mono); text-align: right; }
.er__c .chip { min-width: 92px; }
.chips { display: inline-grid; }
.chips .chip { grid-area: 1 / 1; }
.chip--o { opacity: 0; }
.toast { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 12px 16px; border-radius: 12px; background: var(--tinta); color: #fff; font-size: 13px; box-shadow: var(--shadow-3); }
.toast .ic { color: var(--carmim-dark); }
.toast b { font-weight: 700; }

/* Painel */
.pn-tabs { flex: none; display: flex; gap: 4px; border-bottom: 1px solid var(--n-200); }
.pn-tabs span { padding: 8px 12px; font-size: 13px; color: var(--n-500); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pn-tabs .is-on { color: var(--tinta); font-weight: 600; border-bottom-color: var(--carmim); }
.pn .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); flex: none; }
.pn .tile small { font-size: 12px; }
.pn-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; }
.ch-card { background: var(--branco); border: 1px solid var(--n-200); border-radius: 12px; padding: 12px 14px; min-width: 0; overflow: hidden; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 13px; }
.ch-leg { display: flex; gap: 10px; font-weight: 400; font-size: 12px; color: var(--n-500); }
.ch-leg span { display: inline-flex; align-items: center; gap: 5px; }
.ch-leg i { width: 8px; height: 8px; border-radius: 2px; background: var(--n-800); }
.ch-leg span + span i { background: var(--carmim); }
.cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 170px; margin-top: 14px; border-bottom: 1px solid var(--n-200); }
.col { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.col i { width: 36%; max-width: 16px; height: var(--h); border-radius: 3px 3px 0 0; background: var(--n-800); transform-origin: bottom; }
.col i + i { background: var(--carmim); }
.cdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 6px; text-align: center; font: 500 12px/1 var(--mono); color: var(--n-500); }
.rk { display: grid; grid-template-columns: minmax(0, 1.1fr) .8fr minmax(0, 1.5fr) .8fr; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--n-100); font-size: 13px; }
.rk--h { margin-top: 8px; padding: 6px 0; border-top: 0; font: 500 12px/1 var(--mono); color: var(--n-500); }
.rk__n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rk__a, .rk__s { font: 600 13px/1 var(--mono); text-align: right; }
.rk--h .rk__a, .rk--h .rk__s { font-weight: 500; font-size: 12px; }
.rk__b { display: flex; align-items: center; gap: 8px; }
.rk__b i { flex: 1; height: 7px; border-radius: 99px; background: var(--n-200); position: relative; overflow: hidden; }
.rk__b i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--n-800); border-radius: 99px; transform-origin: left; }
.rk__b em { font: 600 12px/1 var(--mono); font-style: normal; width: 34px; text-align: right; }
.rk__s.is-bad { color: var(--carmim-600); }

/* cartões que trocam a parte do sistema */
.demo__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dtab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; min-height: 64px; padding: 16px; text-align: left; cursor: pointer; background: var(--n-100); border: 2px solid var(--n-200); border-radius: 14px; transition: color .3s ease, border-color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.dtab__i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--branco); border: 1px solid var(--n-200); color: var(--n-700); flex: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.dtab__x { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.dtab__x b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.dtab__d { font-size: .875rem; line-height: 1.4; color: var(--n-600); }
.dtab__go { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; color: var(--n-400); transition: transform .15s var(--ease), color .15s var(--ease); }
.dtab:hover { background: var(--branco); border-color: var(--tinta); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16, 16, 20, .4); }
.dtab:hover .dtab__go { transform: translateX(3px); color: var(--tinta); }
.dtab:focus-visible { outline: 3px solid var(--carmim); outline-offset: 3px; border-radius: 14px; }
.dtab[aria-selected="true"] { background: var(--branco); border-color: var(--carmim); transform: none; box-shadow: none; }
.dtab[aria-selected="true"] .dtab__i { color: var(--carmim); background: #ffe0e3; border-color: #ffe0e3; }
.dtab[aria-selected="true"] .dtab__go { color: var(--carmim); }
.dtab[aria-selected="true"]::before { content: ""; position: absolute; top: -9px; left: 26px; width: 14px; height: 14px; background: var(--branco); border-left: 2px solid var(--carmim); border-top: 2px solid var(--carmim); transform: rotate(45deg); border-top-left-radius: 3px; }

/* animações da demo: o estado base é o final */
@media (prefers-reduced-motion: no-preference) {
  .demo.in .demo-panel:not([hidden]) .m1 { animation: pop .5s var(--ease) .15s both; }
  .demo.in .demo-panel:not([hidden]) .m-typing { display: flex; animation: typing .7s .5s both; }
  .demo.in .demo-panel:not([hidden]) .m-typing i { animation: dotb .35s ease-in-out 2; }
  .demo.in .demo-panel:not([hidden]) .m-typing i:nth-child(2) { animation-delay: .1s; }
  .demo.in .demo-panel:not([hidden]) .m-typing i:nth-child(3) { animation-delay: .2s; }
  .demo.in .demo-panel:not([hidden]) .m3 { animation: pop .5s var(--ease) 1.2s both; }
  .demo.in .demo-panel:not([hidden]) .m4 { animation: pop .5s var(--ease) 1.8s both; }
  .demo.in .demo-panel:not([hidden]) .m5 { animation: pop .5s var(--ease) 2.4s both; }

  .demo.in .demo-panel:not([hidden]) .kc--go { animation: kc-out .7s var(--ease) .4s both; }
  .demo.in .demo-panel:not([hidden]) .kc--arrive { animation: kc-in .8s var(--ease) 1.1s both; }
  .demo.in .demo-panel:not([hidden]) .cnt__o { animation: cnt-o .1s linear 1.1s both; }
  .demo.in .demo-panel:not([hidden]) .cnt__n { animation: cnt-n .1s linear 1.1s both; }

  .demo.in .demo-panel:not([hidden]) .chip--o { animation: chip-o .4s var(--ease) .6s both; }
  .demo.in .demo-panel:not([hidden]) .chip--n { animation: chip-n .4s var(--ease) .6s both; }
  .demo.in .demo-panel:not([hidden]) .toast { animation: toast-in .6s var(--ease) 1.3s both; }

  .demo.in .demo-panel:not([hidden]) .col i { animation: grow-y .8s var(--ease) calc(.15s + var(--i, 0) * .08s) both; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(1) i { animation-delay: .15s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(2) i { animation-delay: .23s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(3) i { animation-delay: .31s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(4) i { animation-delay: .39s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(5) i { animation-delay: .47s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(6) i { animation-delay: .55s; }
  .demo.in .demo-panel:not([hidden]) .col:nth-child(7) i { animation-delay: .63s; }
  .demo.in .demo-panel:not([hidden]) .rk__b i::after { animation: grow-x .9s var(--ease) .6s both; }

  /* barra de progresso da troca automática (data-auto) */
  .dtab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 12px 12px; background: var(--carmim); transform-origin: left; animation: dtab-fill var(--dwell, 3000ms) linear both; }
}
@keyframes dtab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes typing {
  0% { opacity: 0; max-height: 0; margin-block: -4px; }
  12%, 88% { opacity: 1; max-height: 36px; margin-block: 0; }
  100% { opacity: 0; max-height: 0; margin-block: -4px; }
}
@keyframes dotb { 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes kc-out {
  0%, 25% { max-height: 100px; opacity: 1; margin-block: 0; padding-block: 9px; border-width: 1px; transform: none; }
  100% { max-height: 0; opacity: 0; margin-block: -4px; padding-block: 0; border-width: 0; transform: translateX(36px); }
}
@keyframes kc-in { from { opacity: 0; transform: translateX(-36px); } 70% { box-shadow: 0 0 0 3px rgba(18, 161, 80, .3); } 100% { box-shadow: none; } }
@keyframes cnt-o { from { opacity: 1; } to { opacity: 0; } }
@keyframes cnt-n { from { opacity: 0; } to { opacity: 1; } }
@keyframes chip-o { from { opacity: 1; } to { opacity: 0; } }
@keyframes chip-n { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; translate: -50% 12px; } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
/* no estado base o contador antigo some e o novo aparece; durante a animação a ordem se inverte */
.cnt__n { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .demo.in .demo-panel:not([hidden]) .cnt__o { opacity: 1; }
  .demo.in .demo-panel:not([hidden]) .cnt__n { opacity: 0; }
}

@media (max-width: 800px) {
  .demo__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .dtab { flex-direction: row; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; }
  .dtab__i { width: 34px; height: 34px; }
  .dtab__x b { font-size: .9375rem; }
  .dtab__d, .dtab__go { display: none; }
  .dtab[aria-selected="true"]::before { left: 22px; }
  .app { border-radius: 14px; }
  .app__bar { height: 32px; }
  .addr { transform: none; flex: 1 1 auto; max-width: 180px; padding: 5px 10px; }
  .app__body { height: 440px; }
  .d-side { display: none; }
  .cx { grid-template-columns: minmax(0, 1fr); }
  .cl { display: none; }
  .cc__h { padding: 10px 12px; }
  .cc__t small, .cc__v .chip, .cc__m .ph-day { display: none; }
  .cc__v { padding: 8px 12px; }
  .cc__m { padding: 12px; }
  .cc__m .bubble { max-width: 86%; }
  .cc__m .veh { width: 92%; }
  .fn, .es, .pn { padding: 12px; gap: 10px; }
  .legend { display: none; }
  .fn__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fc:nth-child(-n+3) { display: none; }
  .fc { padding: 8px 6px; gap: 6px; }
  .kc { padding: 8px; }
  .kc__f > span:first-child { display: none; }
  .er { grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: "pl m p" "pl m c"; gap: 2px 10px; padding: 8px 10px; }
  .er--h, .er__k { display: none; }
  .er:nth-child(n+7) { display: none; }
  .er .plate { width: 58px; }
  .er__p { font-size: 12px; }
  .er__c .chip { min-width: 0; padding: 5px 8px; }
  .toast { bottom: 10px; padding: 10px 12px; font-size: 12px; }
  .pn-tabs, .ch-leg { display: none; }
  .pn .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pn .tile { padding: 8px 10px; }
  .pn .tile b { font-size: 20px; margin-top: 2px; }
  .pn-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
  .pn-rank { order: -1; }
  .ch-card { padding: 10px 12px; }
  .cols { height: 64px; margin-top: 10px; }
  .rk { padding: 7px 0; gap: 8px; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.3fr) 44px; }
  .rk__b em { width: 32px; }
}
@media (max-width: 380px) {
  .rk { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.2fr) 36px; }
  .dtab { padding: 8px 10px; gap: 8px; }
}

/* ---------- Alternância Vendedor / Gestor ---------- */
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; background: var(--n-200); border-radius: 12px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 44px; padding: 0 22px; border-radius: 9px; font-weight: 600; font-size: .9375rem; color: var(--n-600); cursor: pointer; transition: color .3s ease, background-color .3s ease, box-shadow .3s ease; }
.seg button[aria-selected="true"] { background: var(--branco); color: var(--tinta); font-weight: 700; box-shadow: 0 2px 8px -2px rgba(16, 16, 20, .28), 0 0 0 1px var(--n-300); }
.screen { grid-area: 2 / 1; min-width: 0; min-height: 0; }
.pains__phone .seg { grid-area: 1 / 1; }

/* troca de conteúdo sem pular o layout: todos os filhos ocupam a mesma célula */
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; min-width: 0; }
.swap > [hidden] { display: block; visibility: hidden; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .swap > * { transition: opacity .5s ease, visibility 0s; }
  .swap > [hidden] { transition: opacity .35s ease, visibility 0s .35s; }
}

/* animações dos telefones: o estado base é o final; reiniciam ao sair de [hidden] */
@media (prefers-reduced-motion: no-preference) {
  .screen:not([hidden]) .tiles .tile { animation: tile-pop .4s var(--ease) both; }
  #tela-gestor:not([hidden]) .tile:nth-child(1) { animation-delay: 0s; }
  #tela-gestor:not([hidden]) .tile:nth-child(2) { animation-delay: .1s; }
  #tela-gestor:not([hidden]) .tile:nth-child(3) { animation-delay: .2s; }
  #tela-gestor:not([hidden]) .tile:nth-child(4) { animation-delay: .3s; }
  #tela-gestor:not([hidden]) .bar i::after { transform-origin: left; animation: ph-grow .7s var(--ease) both; }
  #tela-gestor:not([hidden]) .bar:nth-child(1) i::after { animation-delay: .35s; }
  #tela-gestor:not([hidden]) .bar:nth-child(2) i::after { animation-delay: .45s; }
  #tela-gestor:not([hidden]) .bar:nth-child(3) i::after { animation-delay: .55s; }
  #tela-vendedor:not([hidden]) .q-row { animation: q-in .4s var(--ease) both; }
  #tela-vendedor:not([hidden]) .q-row:nth-child(1) { animation-delay: 0s; }
  #tela-vendedor:not([hidden]) .q-row:nth-child(2) { animation-delay: .12s; }
  #tela-vendedor:not([hidden]) .q-row:nth-child(3) { animation-delay: .24s; }
  #tela-vendedor:not([hidden]) .q-dot--now { animation: dot-pulse 1s ease-in-out .5s 3; }
  #tela-vendedor:not([hidden]) .tile:nth-child(1) { animation-delay: .4s; }
  #tela-vendedor:not([hidden]) .tile:nth-child(2) { animation-delay: .5s; }
  #tela-vendedor:not([hidden]) .tile:nth-child(3) { animation-delay: .6s; }
  #tela-vendedor:not([hidden]) .tile:nth-child(4) { animation-delay: .7s; }
  #tela-vendedor:not([hidden]) .ph-notif { display: block; animation: notif 3.6s var(--ease) 0s both; }
}
@keyframes tile-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes ph-grow { from { transform: scaleX(0); } }
@keyframes q-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes dot-pulse { 50% { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(225, 29, 47, .22); } }
@keyframes notif {
  0%, 30.5% { opacity: 0; transform: translateY(-90px); }
  36%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-90px); }
}

/* ---------- Onde a loja perde venda ---------- */
.pains { background: var(--branco); border-block: 1px solid var(--n-200); }
.pains__head { max-width: 44em; display: grid; gap: 20px; }
.pains__body { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pains__phone { display: grid; justify-items: center; gap: 22px; min-width: 0; }
.pains__phone .phone { max-width: 100%; }
@media (min-width: 961px) and (min-height: 860px) { .pains__phone { position: sticky; top: calc(var(--header-h) + 24px); } }
.pain { padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--n-300); }
.pain__t { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pain__i { flex: none; display: grid; place-items: center; color: var(--carmim); }
.pain__i .ic { width: 32px; height: 32px; stroke-width: 2.6; }
.pains__list { min-width: 0; }
.pain:first-child { border-top: 0; padding-top: 0; }
.pain:last-child { border-bottom: 1px solid var(--n-300); }
.pain h3 { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; }
.pain p { margin-top: 10px; padding-left: 48px; color: var(--n-700); max-width: 36em; text-wrap: pretty; }
.pains__foot { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); font-weight: 600; }
@media (max-width: 960px) {
  .pains__body { grid-template-columns: minmax(0, 1fr); }
  .pain p { padding-left: 0; }
}

/* ---------- Depoimentos (números de quem usa) ---------- */
.proof { background: #FFF4F5; }
.proof__head { display: grid; gap: 16px; justify-items: center; max-width: 52em; margin-inline: auto; text-align: center; }
.proof__head .lede { margin-inline: auto; }
.proof__hl { color: var(--carmim); background: #FFE3E6; border-radius: 8px; padding: 0 .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.proof__list { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proof__c { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--branco); border: 1px solid #F3B8BE; border-radius: 20px; }
.proof__media { position: relative; aspect-ratio: 1 / 1; background: var(--n-100); }
.proof__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proof__stat { position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px; color: #fff; background: linear-gradient(180deg, rgba(14, 14, 17, 0), rgba(14, 14, 17, .86)); container-type: inline-size; }
.proof__n { font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-size: 2rem; }
@supports (font-size: 1cqi) { .proof__n { font-size: clamp(1.75rem, 13cqi, 2.75rem); } }
.proof__l { margin-top: 6px; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.proof__b { flex: 1; display: flex; flex-direction: column; padding: 22px 20px 26px; }
.proof__stars { display: flex; gap: 3px; color: #F5A400; }
.proof__stars svg { width: 20px; height: 20px; fill: currentColor; }
.proof__name { margin-top: 12px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.028em; line-height: 1.15; }
.proof__q { margin-top: 10px; color: var(--n-700); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.proof__cta { margin-top: clamp(28px, 4vw, 44px); display: flex; justify-content: center; }
.proof__dots { display: none; }
@media (max-width: 1000px) {
  .proof__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    gap: 12px; scrollbar-width: none;
  }
  .proof__list::-webkit-scrollbar { display: none; }
  .proof__c { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .proof__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .proof__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--n-300); transition: background-color .2s var(--ease); }
  .proof__dots i.is-on { background: var(--carmim); }
}
@media (max-width: 520px) { .proof__cta .btn { width: 100%; } }

/* ---------- Canais (faixa clara sob a demo) ---------- */
.chans { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 14px; min-width: 0; }
.chans__k { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .02em; color: var(--n-600); }
.chans__l { display: flex; flex-wrap: wrap; gap: 10px; }
.chans__l li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--n-300); border-radius: 999px; background: var(--branco); color: var(--tinta); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.chans__l .lg { width: 22px; height: 22px; }
.chans__l .lg--wa { fill: #25D366; }
.chans__l .lg--ms { fill: #0084FF; }
.chans__l .lg--ig { fill: currentColor; }

/* Produto: subtítulo trocável e, no celular, subtítulo colado ao cartão tocado */
.demo-subs .lede { max-width: 46em; }
@media (min-width: 801px) { .showcase__head { max-width: 50em; } }
@media (max-width: 800px) {
  .showcase .wrap { display: flex; flex-direction: column; }
  .showcase__head { display: contents; }
  .showcase__head .h-section { order: 0; }
  .showcase .demo { order: 1; }
  .showcase .demo-subs { order: 2; margin-top: 20px; }
  .showcase .chans { order: 3; }
}

/* ---------- Preço ---------- */
.price { background: var(--branco); border-block: 1px solid var(--n-200); }
.plan { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--n-200); border-radius: 18px; overflow: hidden; background: var(--branco); }
.plan__a { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 4vw, 48px); min-width: 0; }
.plan__k { color: var(--n-400); font-size: 1.125rem; font-weight: 500; }
.plan__free { margin-top: 6px; font-weight: 800; letter-spacing: -.045em; line-height: .96; font-size: clamp(2.6rem, 1.4rem + 5vw, 4.75rem); text-wrap: balance; overflow-wrap: anywhere; }
.plan__then { margin-top: 28px; color: var(--n-400); font-size: 1.125rem; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.plan__price b { font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.plan__price span { color: var(--n-400); font-size: 1.25rem; font-weight: 500; }
.plan__a .btn { margin-top: 32px; }
.plan__note { margin-top: 14px; color: var(--n-400); font-size: .875rem; line-height: 1.5; }
.plan__b { padding: clamp(24px, 4vw, 48px); min-width: 0; }
.plan__b h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -.028em; line-height: 1.15; }
.plan__l { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.plan__l li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; line-height: 1.4; font-size: 1rem; color: var(--n-800); }
.plan__l span { min-width: 0; overflow-wrap: anywhere; }
.plan__l .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--carmim); stroke-width: 2.2; }
@media (max-width: 800px) {
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan__a .btn { width: 100%; }
}
@media (max-width: 560px) { .plan__l { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chamada final ---------- */
.cta { text-align: left; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta__actions { display: grid; gap: 12px; justify-items: start; }
.cta__actions .mono { color: var(--n-600); }
@media (max-width: 960px) { .cta .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--asfalto); color: var(--n-400); padding-top: clamp(56px, 7vw, 96px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 3.4fr) repeat(2, minmax(0, 1.7fr)) minmax(0, 3fr); gap: 40px clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin-top: 20px; font-size: .9375rem; line-height: 1.6; max-width: 26em; }
.foot-col h2 { font: 500 .6875rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--n-500); margin-bottom: 18px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { color: var(--snow); text-decoration: none; font-size: .9375rem; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-col p { font-size: .9375rem; color: var(--n-400); line-height: 1.55; }
.foot-contact a, .foot-contact span { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; line-height: 1.4; }
.foot-contact span { color: var(--n-400); }
.foot-contact svg { width: 18px; height: 18px; flex: none; color: var(--n-400); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--n-800); font: 500 .75rem/1.5 var(--mono); color: var(--n-500); position: relative; z-index: 1; }
.foot-mark { display: block; width: min(1200px, 100%); margin: 0 auto -.5vw; padding-inline: var(--gutter); opacity: .95; pointer-events: none; user-select: none; }
.foot-mark img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%); }
@media (max-width: 1040px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Revelar ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .hero__copy > *, .hero__phone { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .hero__copy > :nth-child(5) { animation-delay: .28s; }
  .hero__phone { animation-delay: .2s; animation-name: rise-phone; }
  .hero__line { animation: draw 1.2s .5s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes rise-phone { from { opacity: 0; transform: translateY(40px); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ==========================================================================
   Páginas internas — legal e contato
   ========================================================================== */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-head .wrap { display: grid; gap: 24px; }
.page-head h1 { max-width: 14em; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.plate-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.plate-meta li { font: 500 .8125rem/1 var(--mono); letter-spacing: .02em; padding: 10px 14px; border-radius: 8px; background: var(--branco); border: 1px solid var(--n-300); color: var(--n-700); }

.doc { padding-bottom: clamp(72px, 9vw, 128px); }
.doc .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h2 { font: 500 .6875rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--n-500); margin-bottom: 16px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--n-300); }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: block; padding: 7px 0 7px 16px; text-decoration: none; font-size: .9375rem; line-height: 1.35; color: var(--n-600); }
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font: 500 .6875rem var(--mono); color: var(--n-400); white-space: pre; }
.toc a:hover { color: var(--tinta); }
.toc a.is-active { color: var(--tinta); font-weight: 600; }
.toc a.is-active::after { content: ""; position: absolute; left: -2px; top: 50%; width: 14px; height: 3px; margin-top: -1.5px; background: var(--carmim); transform: rotate(-20deg); transform-origin: left center; }

.prose { max-width: 46rem; counter-reset: sec; }
.summary { background: var(--branco); border: 1px solid var(--n-200); border-left: 4px solid var(--carmim); border-radius: 4px var(--radius-card) var(--radius-card) 4px; padding: 26px 28px; margin-bottom: 56px; }
.summary h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--n-600); margin-bottom: 16px; }
.summary ul { display: grid; gap: 10px; }
.summary li { position: relative; padding-left: 22px; }
.summary li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2.5px; background: var(--carmim); transform: rotate(-20deg); }
.prose section { counter-increment: sec; padding-top: 8px; margin-bottom: 52px; }
.prose section h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 18px; }
.prose section h2::before { content: counter(sec, decimal-leading-zero); display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; color: var(--carmim); margin-bottom: 12px; }
.prose h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--n-800); }
.prose p + p { margin-top: 14px; }
.prose p { text-wrap: pretty; }
.prose a { color: var(--carmim-600); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--carmim-700); }
.prose ul.list, .prose ol.list { margin: 14px 0; display: grid; gap: 8px; }
.prose ul.list li { position: relative; padding-left: 22px; }
.prose ul.list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 11px; height: 2.5px; background: var(--n-400); transform: rotate(-20deg); }
.prose ol.list { counter-reset: it; }
.prose ol.list li { position: relative; padding-left: 30px; counter-increment: it; }
.prose ol.list li::before { content: counter(it, lower-alpha) ")"; position: absolute; left: 0; font: 500 .8125rem/1.9 var(--mono); color: var(--n-500); }
.prose strong { font-weight: 600; color: var(--tinta); }
.table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--n-200); border-radius: var(--radius-card); background: var(--branco); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th { text-align: left; font: 500 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--n-600); padding: 14px 16px; background: var(--n-100); border-bottom: 1px solid var(--n-200); white-space: nowrap; }
.prose td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--n-200); color: var(--n-800); }
.prose tr:first-child td { border-top: 0; }
.prose td:first-child { font-weight: 600; color: var(--tinta); width: 22%; }
.prose .contact-card { margin-top: 18px; padding: 22px 24px; border: 1px solid var(--n-300); border-radius: var(--radius-card); background: var(--branco); display: grid; gap: 4px; }
.prose .contact-card p + p { margin-top: 0; }
@media (max-width: 960px) {
  .doc .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 24px; }
  .toc a { padding-left: 0; border-bottom: 1px solid var(--n-200); }
  .toc a.is-active::after { display: none; }
}
@media (max-width: 560px) { .toc ol { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contact { padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 9vw, 128px); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact__h { font-size: clamp(3rem, 1.5rem + 6.5vw, 6.5rem); margin-top: 20px; }
.channels { margin-top: clamp(32px, 5vw, 64px); display: grid; container-type: inline-size; }
.channel { padding: 28px 0; border-top: 1px solid var(--n-300); display: grid; gap: 6px; }
.channel:last-child { border-bottom: 1px solid var(--n-300); }
.channel__k { font: 500 .9375rem/1 var(--mono); letter-spacing: .01em; color: var(--n-600); }
.channel__v { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; font-size: clamp(1.375rem, .5rem + 2.9vw, 2.125rem); overflow-wrap: anywhere; text-decoration: none; }
@supports (font-size: 1cqi) { .channel__v { font-size: clamp(1.125rem, 6.1cqi, 2.375rem); } .channel--place .channel__v { font-size: clamp(1.25rem, 5cqi, 1.75rem); } }
a.channel__v:hover { color: var(--carmim); }
.channel__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.copy-btn { position: relative; }
.copy-btn[data-state="ok"] { border-color: #12a150; color: #0a6b36; }
.channel--place .channel__v { font-size: clamp(1.25rem, .8rem + 1.8vw, 1.75rem); letter-spacing: -.02em; }

.composer { background: var(--branco); border: 1px solid var(--n-200); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-1); position: sticky; top: calc(var(--header-h) + 24px); }
.composer h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.composer > p { color: var(--n-600); margin-top: 8px; font-size: 1rem; }
.composer fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.composer legend { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--n-500); padding: 0; margin-bottom: 12px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topics span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--n-300); border-radius: 999px; font-weight: 500; font-size: .9375rem; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease); }
.topics input:hover + span { border-color: var(--tinta); }
.topics input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.topics input:focus-visible + span { outline: 3px solid var(--carmim); outline-offset: 3px; }
.field { margin-top: 20px; display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field textarea, .field input[type="text"] { width: 100%; font: inherit; color: var(--tinta); background: var(--neve); border: 1.5px solid var(--n-300); border-radius: 10px; padding: 12px 14px; transition: border-color .15s var(--ease); }
.field textarea { min-height: 128px; resize: vertical; }
.field textarea:hover, .field input:hover { border-color: var(--n-500); }
.field textarea:focus-visible, .field input:focus-visible { outline: 3px solid var(--carmim); outline-offset: 1px; border-color: var(--tinta); }
.composer__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 24px; }
.composer__actions .btn { white-space: nowrap; }
.composer__note { margin-top: 16px; font-size: .8125rem; line-height: 1.5; color: var(--n-500); }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; } .composer { position: static; } }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h) - 120px); display: grid; align-items: center; padding: 48px 0; }
.nf .wrap { display: grid; gap: 28px; justify-items: start; }
.nf .h-display { font-size: clamp(4rem, 2rem + 12vw, 11rem); }

/* ---------- Impressão ---------- */
@media print {
  .site-header, .site-footer, .toc, .skip, .meta-row .btn, .hero__line { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.5; }
  .doc .wrap { display: block; }
  .prose { max-width: none; }
  .prose section { break-inside: avoid-page; margin-bottom: 24pt; }
  .prose a { color: inherit; text-decoration: underline; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .summary { border-left-color: #000; }
}
