/* ================================================================
     TOKENS — a camada de tema.
     Marca e superfície são conjuntos separados: trocar de cliente
     mexe só nas variáveis de marca, e claro/escuro segue funcionando.
     Tipografia: Inter, conforme o styleguide da Catalisa.
     ================================================================ */
  :root {
    --brand: #734B9C;
    --brand-deep: #4A3066;
    --brand-soft: #F3EEF8;
    --brand-on: #FFFFFF;
    --mark: #FDC234;
    --brand-lit: #B392DE;

    --paper: #FBFAFC;
    --surface: #FFFFFF;
    --surface-2: #F4F2F7;
    --ink: #17131E;
    --ink-2: #5C5569;
    --ink-3: #8F8899;
    --line: #E7E3ED;
    --line-2: #D6D0E0;
    --stage: #14101C;
    --shadow: 0 1px 2px rgba(23,19,30,.05), 0 18px 40px -30px rgba(74,48,102,.4);
    --shadow-lg: 0 2px 6px rgba(23,19,30,.07), 0 44px 90px -54px rgba(74,48,102,.55);

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --gutter: clamp(20px, 5vw, 68px);
    --r: 6px;
    --r-lg: 12px;
    --head-h: 64px;
  }

  :root[data-brand="mata"] { --brand: #0E7A4E; --brand-deep: #08432C; --brand-soft: #E9F4EE; --mark: #C6873B; --brand-lit: #57C48D; }
  :root[data-brand="cais"] { --brand: #1B4965; --brand-deep: #103043; --brand-soft: #E9F0F5; --mark: #C97B3E; --brand-lit: #7FB3D5; }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #0F0B16;
      --surface: #16111E;
      --surface-2: #1E1828;
      --ink: #F0ECF6;
      --ink-2: #ABA3BB;
      --ink-3: #7C748F;
      --line: #292234;
      --line-2: #372E45;
      --stage: #0A0710;
      --brand: #B392DE;
      --brand-deep: #D8C6F0;
      --brand-soft: rgba(179,146,222,.14);
      --brand-on: #190F23;
      --mark: #E9C15E;
      --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -30px rgba(0,0,0,.85);
      --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 44px 90px -54px rgba(0,0,0,.95);
    }
    :root:not([data-theme="light"])[data-brand="mata"] { --brand: #57C48D; --brand-deep: #A6E3C3; --brand-soft: rgba(87,196,141,.14); --brand-on: #062517; --mark: #E0A567; }
    :root:not([data-theme="light"])[data-brand="cais"] { --brand: #7FB3D5; --brand-deep: #BBD9EA; --brand-soft: rgba(127,179,213,.14); --brand-on: #08202E; --mark: #E0A567; }
  }

  :root[data-theme="dark"] {
    --paper: #0F0B16;
    --surface: #16111E;
    --surface-2: #1E1828;
    --ink: #F0ECF6;
    --ink-2: #ABA3BB;
    --ink-3: #7C748F;
    --line: #292234;
    --line-2: #372E45;
    --stage: #0A0710;
    --brand: #B392DE;
    --brand-deep: #D8C6F0;
    --brand-soft: rgba(179,146,222,.14);
    --brand-on: #190F23;
    --mark: #E9C15E;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -30px rgba(0,0,0,.85);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 44px 90px -54px rgba(0,0,0,.95);
  }
  :root[data-theme="dark"][data-brand="mata"] { --brand: #57C48D; --brand-deep: #A6E3C3; --brand-soft: rgba(87,196,141,.14); --brand-on: #062517; --mark: #E0A567; }
  :root[data-theme="dark"][data-brand="cais"] { --brand: #7FB3D5; --brand-deep: #BBD9EA; --brand-soft: rgba(127,179,213,.14); --brand-on: #08202E; --mark: #E0A567; }

/* ================================================================ */

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  img, video { max-width: 100%; display: block; }
  a { color: inherit; }
  ::selection { background: var(--brand); color: var(--brand-on); }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

  h1, h2, h3 { margin: 0; text-wrap: balance; }
  h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -.038em; }
  h2 { font-size: clamp(26px, 3.3vw, 40px); line-height: 1.09; font-weight: 800; letter-spacing: -.032em; }
  h3 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.3; font-weight: 700; letter-spacing: -.016em; }
  p { margin: 0; }

  .wrap { max-width: 1260px; margin-inline: auto; padding-inline: var(--gutter); }
  .measure { max-width: 58ch; }

  .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--brand); margin: 0; }
  .eyebrow.q { color: var(--ink-3); }
  .lede { font-size: clamp(16.5px, 1.35vw, 19px); color: var(--ink-2); }

  /* ---------- cabeçalho ---------- */
  header.top {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: saturate(1.5) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .35s ease, border-color .35s ease;
  }

  /* Sobre o hero o cabeçalho é parte da imagem; ao sair dele vira a barra sólida. */
  header.top.over { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
  header.top.over .logo { color: #FFFFFF; }
  header.top.over .logo span { color: rgba(255,255,255,.72); border-left-color: rgba(255,255,255,.34); }
  header.top.over nav.main button { color: rgba(255,255,255,.84); }
  header.top.over nav.main button:hover { color: #FFFFFF; background: rgba(255,255,255,.14); }
  header.top.over nav.main button[aria-current="page"] { color: #FFFFFF; }
  header.top.over .icon-btn { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.3); }
  header.top.over .icon-btn:hover { color: #FFFFFF; border-color: #FFFFFF; }
  header.top.over .brand-pick { border-color: rgba(255,255,255,.3); }
  header.top.over .brand-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(10,7,16,.55), 0 0 0 3.5px #FFFFFF; }
  header.top.over .btn.p { background: #FFFFFF; color: #17131E; }
  header.top.over .btn.p:hover { background: #EDE7F4; }
  .top-in { display: flex; align-items: center; gap: 12px; height: var(--head-h); max-width: 1260px; margin-inline: auto; padding-inline: var(--gutter); }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
  .logo svg { height: 20px; width: auto; }
  .logo span { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: 10px; }
  nav.main { display: flex; gap: 2px; margin-left: auto; }
  nav.main button { font: inherit; font-size: 13px; font-weight: 500; background: none; border: 0; cursor: pointer; color: var(--ink-2); padding: 6px 9px; border-radius: var(--r); white-space: nowrap; }
  nav.main button:hover { color: var(--ink); background: var(--surface-2); }
  nav.main button[aria-current="page"] { color: var(--ink); font-weight: 650; }
  nav.main button[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--brand); margin-top: 3px; border-radius: 2px; }

  .top-tools { display: flex; align-items: center; gap: 8px; }
  .icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); cursor: pointer; }
  .icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
  .icon-btn svg { width: 15px; height: 15px; }
  .brand-pick { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: var(--r); }
  .brand-pick button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
  .brand-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink-3); }

  .btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font: inherit; font-size: 14px; font-weight: 650; padding: 10px 18px; border-radius: var(--r);
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
  }
  .btn.p { background: var(--brand); color: var(--brand-on); }
  .btn.p:hover { background: var(--brand-deep); }
  .btn.o { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
  .btn.o:hover { border-color: var(--ink-3); }
  .btn.light { background: #FFFFFF; color: #17131E; }
  .btn.light:hover { background: #EDE7F4; }
  .btn.wire { border-color: rgba(255,255,255,.5); color: #FFFFFF; background: rgba(255,255,255,.13); backdrop-filter: blur(6px); }
  .btn.wire:hover { border-color: #FFFFFF; background: rgba(255,255,255,.1); }
  .btn:active { transform: translateY(1px); }
  .btn svg { width: 15px; height: 15px; }

  .proto { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--mark); border: 1px solid color-mix(in srgb, var(--mark) 45%, transparent); padding: 3px 9px; border-radius: 100px; white-space: nowrap; }

  /* ---------- hero ---------- */
  .hero { position: relative; display: grid; align-items: end; min-height: 100svh; margin-top: calc(-1 * var(--head-h)); overflow: hidden; background: var(--stage); }
  .hero-media { position: absolute; inset: 0; }
  .hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(96deg, rgba(9,6,14,.93) 4%, rgba(9,6,14,.74) 40%, rgba(9,6,14,.24) 82%),
                linear-gradient(0deg, rgba(9,6,14,.6), transparent 44%);
  }
  .hero-in { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--head-h) + clamp(40px, 6vh, 80px)); padding-bottom: clamp(44px, 7vh, 84px); }
  .hero-in .wrap { display: grid; gap: 20px; }
  .hero-in h1 { color: #FFFFFF; max-width: 14ch; }
  .hero-in .eyebrow { color: #D9C7F2; }
  .hero-in p { color: #DCD5E8; max-width: 46ch; font-size: clamp(16px, 1.35vw, 18.5px); }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
  .hero-foot { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(2px); }
  .hero-foot .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-foot .wrap > div { padding: 16px 0; color: #E7E1F0; font-size: 13px; display: flex; align-items: center; gap: 9px; }
  .hero-foot .wrap > div + div { border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; }
  .hero-foot svg { width: 15px; height: 15px; color: var(--mark); flex: none; }

  /* ---------- seções ---------- */
  section.band { padding-block: clamp(52px, 6.6vw, 96px); }
  section.band.tint { background: var(--surface); border-block: 1px solid var(--line); }
  .sec-head { display: grid; gap: 11px; margin-bottom: clamp(26px, 3.2vw, 44px); max-width: 46ch; }

  .who { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
  .who > div { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); aspect-ratio: 4 / 3.2; }
  .who img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .6s ease; }
  .who > div:hover img { transform: scale(1.035); }
  .who .cap { position: absolute; inset: auto 0 0 0; padding: 17px; background: linear-gradient(0deg, rgba(9,6,14,.94), rgba(9,6,14,.2) 72%, transparent); }
  .who .cap b { display: block; color: #FFFFFF; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .who .cap span { color: #CFC6DE; font-size: 13px; }

  .tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
  .tl article { display: grid; gap: 10px; align-content: start; }
  .tl figure { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2.1; background: var(--surface-2); }
  .tl figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
  .tl time { font-size: 12px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: .05em; }
  .tl h3 { font-size: 16px; }
  .tl p { font-size: 13.5px; color: var(--ink-2); }

  .shot { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
  .shot img { width: 100%; }
  .shot-cap { font-size: 12.5px; color: var(--ink-3); margin-top: 9px; }
  .shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
  .shots-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }

  .duo { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 4.2vw, 64px); align-items: center; }
  .duo.flip > figure { order: 2; }
  .duo figure { margin: 0; }
  .duo figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
  .duo figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

  .facts { display: grid; border-top: 1px solid var(--line); }
  .facts > div { display: grid; grid-template-columns: 220px 1fr; gap: clamp(16px, 3vw, 44px); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
  .facts p { color: var(--ink-2); font-size: 15px; max-width: 64ch; }

  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
  .card-h { padding: 12px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
  .card-b { padding: 19px 21px; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14.5px; margin: 0; }
  .kv dt { color: var(--ink-3); }
  .kv dd { margin: 0; }
  .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 100px; background: var(--brand-soft); color: var(--brand); }
  .tag.neutral { background: var(--surface-2); color: var(--ink-2); }

  /* ---------- faixa escura com vídeo ---------- */
  .stage-band { position: relative; background: var(--stage); color: #EFEAF6; overflow: hidden; }
  .stage-band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
  .stage-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,6,14,.6) 0%, rgba(9,6,14,.86) 55%, rgba(9,6,14,.94) 100%); }
  .stage-band .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 7vw, 104px); }
  .stage-band h2, .stage-band h1 { color: #FFFFFF; }
  .stage-band p { color: #D3CBE1; }
  .stage-band .eyebrow { color: #C9B6E8; }

  /* ---------- diagrama animado ---------- */
  .flow-wrap { position: relative; z-index: 2; }
  .flow { width: 100%; height: auto; overflow: visible; display: block; }
  .flow .node rect.box { fill: rgba(22,17,30,.72); stroke: rgba(255,255,255,.22); }
  .flow .node rect.ico { fill: rgba(255,255,255,.09); stroke: none; }
  .flow .node .ic { stroke: #D9CFEA; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .flow .node.key rect.box { fill: color-mix(in srgb, var(--brand-lit) 22%, rgba(22,17,30,.72)); stroke: var(--brand-lit); }
  .flow .node.key rect.ico { fill: rgba(255,255,255,.16); }
  .flow .node.key .ic { stroke: #FFFFFF; }
  .flow .t { fill: #FFFFFF; font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
  .flow .s { fill: #B7ADC8; font-family: var(--sans); font-size: 12px; }
  .flow .link { stroke: rgba(255,255,255,.3); stroke-width: 1.4; fill: none; }
  .flow .dash { stroke: var(--brand-lit); stroke-width: 2.2; fill: none; stroke-dasharray: 3 7; stroke-linecap: round; }
  .flow .tie { stroke: rgba(255,255,255,.18); stroke-width: 1.2; stroke-dasharray: 3 5; }
  .flow .rail rect { fill: rgba(22,17,30,.66); stroke: rgba(255,255,255,.2); }
  .flow .spark { fill: var(--mark); }

  .flow .node, .flow .rail { opacity: 0; transform: translateY(10px); }
  .flow.on .node, .flow.on .rail { animation: nodeIn .55s cubic-bezier(.2,.7,.3,1) forwards; }
  .flow.on .node:nth-of-type(1) { animation-delay: .05s; }
  .flow.on .node:nth-of-type(2) { animation-delay: .22s; }
  .flow.on .node:nth-of-type(3) { animation-delay: .39s; }
  .flow.on .node:nth-of-type(4) { animation-delay: .56s; }
  .flow.on .node:nth-of-type(5) { animation-delay: .73s; }
  .flow.on .rail { animation-delay: .9s; }
  @keyframes nodeIn { to { opacity: 1; transform: translateY(0); } }

  .flow .dash { opacity: 0; }
  .flow.on .dash { opacity: 1; animation: dashflow 1.1s linear infinite; }
  @keyframes dashflow { to { stroke-dashoffset: -24; } }

  .flow .spark { opacity: 0; }
  .flow.on .spark { animation: sparkRun 7s cubic-bezier(.5,0,.5,1) infinite; }
  .flow.on .spark:nth-of-type(2) { animation-delay: .1s; }
  @keyframes sparkRun {
    0% { opacity: 0; transform: translateX(0); }
    6% { opacity: 1; }
    82% { opacity: 1; transform: translateX(var(--run, 760px)); }
    92%, 100% { opacity: 0; transform: translateX(var(--run, 760px)); }
  }

  .flow-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: #B7ADC8; font-size: 13px; }
  .flow-legend b { color: #FFFFFF; font-weight: 650; }

  /* ---------- WhatsApp ---------- */
  .phone { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 600px; }
  .phone-h { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .phone-h .av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
  .phone-h b { font-size: 14px; font-weight: 650; }
  .phone-h span { font-size: 11.5px; color: var(--ink-3); display: block; }
  .thread { padding: 16px 15px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; }
  .msg { max-width: 88%; font-size: 14px; line-height: 1.48; padding: 9px 12px; border-radius: 11px; }
  .msg.out { align-self: flex-start; background: var(--surface-2); border-top-left-radius: 3px; }
  .msg.in { align-self: flex-end; background: var(--brand-soft); border-top-right-radius: 3px; }
  .msg .t { display: block; font-size: 10px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
  .msg a { color: var(--brand); font-weight: 650; }
  .typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; background: var(--surface-2); border-radius: 11px; }
  .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bob 1s infinite; }
  .typing i:nth-child(2) { animation-delay: .15s; }
  .typing i:nth-child(3) { animation-delay: .3s; }
  @keyframes bob { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
  .replies { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 15px; border-top: 1px solid var(--line); }
  .replies button { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
  .replies button:hover { border-color: var(--brand); color: var(--brand); }
  .replies:empty { display: none; }
  .chat-send { display: flex; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--line); }
  .chat-send input { flex: 1; min-width: 0; font: inherit; font-size: 14.5px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 100px; background: var(--paper); color: var(--ink); }
  .chat-send input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
  .chat-send button { padding: 9px 14px; border-radius: 100px; }

  /* ---------- demo ---------- */
  .demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(22px, 2.6vw, 36px); align-items: start; }
  form.start { display: grid; gap: 15px; }
  .field { display: grid; gap: 6px; }
  .field label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
  .field input { font: inherit; font-size: 15px; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink); }
  .field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
  .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
  .consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
  .form-note { font-size: 12px; color: var(--ink-3); }
  .err { font-size: 13px; color: #C0392B; }
  :root[data-theme="dark"] .err { color: #F1948A; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F1948A; } }

  .console { background: var(--stage); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
  .console-h { display: flex; align-items: center; gap: 9px; padding: 12px 17px; border-bottom: 1px solid rgba(255,255,255,.09); color: #CFC6DE; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
  .console-h .dot { width: 7px; height: 7px; border-radius: 50%; background: #4EC98A; box-shadow: 0 0 0 3px rgba(78,201,138,.2); }
  .log { padding: 12px 17px 18px; display: flex; flex-direction: column; max-height: 540px; overflow-y: auto; }
  .ev { display: grid; grid-template-columns: 52px 1fr; gap: 13px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #E4DEEE; animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .ev time { font-size: 11px; color: #8F86A3; font-variant-numeric: tabular-nums; padding-top: 2px; }
  .ev b { font-weight: 650; color: #FFFFFF; }
  .ev .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #B9A9D6; display: block; margin-bottom: 3px; }
  .ev code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 3px; color: #DCCBFA; }
  .ev p { color: #B8AFC8; font-size: 12.5px; margin-top: 3px; }

  .room { background: var(--stage); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
  .room-stage { position: relative; aspect-ratio: 16 / 10; background: #0A0710; }
  .room-stage img { width: 100%; height: 100%; object-fit: cover; }
  .room-self { position: absolute; right: 13px; bottom: 13px; width: 26%; aspect-ratio: 4/3; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); background: #16111E; display: grid; place-items: center; color: #8F86A3; font-size: 11.5px; }
  .cc { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 17px; background: linear-gradient(180deg, transparent, rgba(8,5,13,.92)); color: #F3EFF8; font-size: 14.5px; line-height: 1.42; }
  .cc b { color: #B9A9D6; font-weight: 650; }
  .tips { padding: 15px 17px; display: grid; gap: 10px; }
  .tip { border-left: 2px solid var(--brand); padding: 2px 0 2px 12px; color: #DDD5EA; font-size: 13.5px; animation: rise .35s ease both; }
  .tip span { display: block; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: #9B90B3; margin-bottom: 3px; font-weight: 700; }


  /* ---------- mock da sala (rooms) ---------- */
  .roomui { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--stage); box-shadow: 0 34px 80px -40px rgba(20,12,30,.65); }
  .roomui-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
  .rdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  .rdot.r { background: #F26D6D; }
  .rdot.y { background: #F5C24E; }
  .rdot.g { background: #6FCF97; }
  .rtitle { margin-left: 10px; font-size: 12.5px; color: #BEB4CE; }
  .rtitle b { color: #FFFFFF; font-weight: 650; }
  .rmeta { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .rrec { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #F58C7E; display: flex; align-items: center; gap: 6px; font-weight: 700; }
  .recdot { width: 7px; height: 7px; border-radius: 50%; background: #F26D6D; animation: pulse 1.6s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
  .rmeta .cap { font-size: 11px; color: #A79CBA; display: flex; align-items: center; gap: 6px; }
  .rmeta .cap svg { width: 14px; height: 14px; }
  .rmeta time { font-size: 12px; color: #CFC6DE; font-variant-numeric: tabular-nums; }

  .roomui-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
  .roomui-stage { padding: 16px; display: flex; flex-direction: column; gap: 13px; min-width: 0; }
  .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { position: relative; border-radius: 11px; overflow: hidden; background: #1C1526; aspect-ratio: 4 / 3; }
  .tile img { width: 100%; height: 100%; object-fit: cover; opacity: .95; }
  .tile .who { position: absolute; left: 9px; bottom: 9px; background: rgba(10,6,16,.72); color: #FFFFFF; font-size: 10.5px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
  .tile .live { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #6FCF97; box-shadow: 0 0 0 3px rgba(111,207,151,.22); }

  .roomui-cc { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; color: #EFEAF6; font-size: 14px; line-height: 1.45; }
  .roomui-cc b { color: #B9A9D6; font-weight: 650; }

  .ctrls { display: flex; gap: 9px; justify-content: center; align-items: center; flex-wrap: wrap; padding-top: 2px; }
  .ctl { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #FFFFFF; }
  .ctl svg { width: 17px; height: 17px; }
  .ctl.wide { width: auto; padding: 0 15px; height: 38px; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: #E7E1F0; }
  .ctl.end { background: #C6483F; color: #FFFFFF; }

  .roomui-side { border-left: 1px solid rgba(255,255,255,.1); padding: 15px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.03); min-width: 0; }
  .rs-tabs { display: flex; gap: 6px; margin-bottom: 2px; }
  .rt { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; color: #B4A9C4; border: 1px solid rgba(255,255,255,.15); }
  .rt.on { background: var(--brand-lit); color: #241635; border-color: var(--brand-lit); font-weight: 650; }
  .tipwrap { display: grid; gap: 10px; align-content: start; }
  .rtip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--brand-lit); border-radius: 9px; padding: 11px 12px; animation: rise .35s ease both; }
  .rtip span { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-lit); font-weight: 700; }
  .rtip p { font-size: 12.8px; color: #EDE4F5; line-height: 1.45; margin-top: 5px; }
  .rtip p b { color: #FFFFFF; font-weight: 600; }
  .rtip.risk { border-left-color: #E8A33D; }
  .rtip.risk span { color: #EBB95F; }
  .rtip.follow { border-left-color: #7FC9A6; }
  .rtip.follow span { color: #90D4B4; }

  .ficha { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 11px; display: flex; flex-direction: column; gap: 6px; }
  .ficha .dl { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #9B90AD; margin-bottom: 3px; font-weight: 700; }
  .ficha .dr { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #B4A9C4; }
  .ficha .dr b { color: #FFFFFF; font-weight: 550; }

  .afterroom { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 18px; }
  .ar { border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; background: var(--surface); }
  .ar span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 6px; font-weight: 700; }
  .ar p { font-size: 14px; color: var(--ink-2); }
  .ar b { color: var(--ink); font-weight: 650; }
  .ar.key { border-left: 3px solid var(--brand); border-radius: 4px 11px 11px 4px; background: var(--brand-soft); }

  @media (max-width: 980px) {
    .roomui-body { grid-template-columns: 1fr; }
    .roomui-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  }

  /* ---------- segurança ---------- */
  .qa-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
  .qa-aside { position: sticky; top: 92px; display: grid; gap: 14px; }
  .qa-aside p { color: var(--ink-2); font-size: 15px; }
  .qa-aside .count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

  .qa { display: grid; gap: 0; }
  .qa > article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); padding: clamp(20px, 2.4vw, 28px) 0; border-top: 1px solid var(--line); align-items: start; }
  .qa > article:last-child { border-bottom: 1px solid var(--line); }
  .qa .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
  .qa h3 { margin-bottom: 9px; }
  .qa p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
  .qa p + p { margin-top: 8px; }
  .qa b { color: var(--ink); font-weight: 650; }

  .basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
  .basic { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: clamp(18px, 2vw, 24px); display: grid; gap: 10px; align-content: start; }
  .basic .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
  .basic .ic svg { width: 17px; height: 17px; }
  .basic b { font-size: 15.5px; font-weight: 650; letter-spacing: -.012em; }
  .basic p { font-size: 14px; color: var(--ink-2); }

  .honest { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start;
            border: 1px solid var(--line); border-left: 3px solid var(--mark); border-radius: 4px 14px 14px 4px;
            background: var(--paper); padding: clamp(22px, 3vw, 36px); }
  .honest .mark { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--mark) 18%, transparent); display: grid; place-items: center; color: var(--mark); }
  .honest .mark svg { width: 18px; height: 18px; }
  .honest h3 { margin-bottom: 9px; }
  .honest p { color: var(--ink-2); font-size: 15.5px; max-width: 68ch; }

  @media (max-width: 980px) { .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 900px) {
    .qa-grid { grid-template-columns: 1fr; }
    .qa-aside { position: static; }
    .basics { grid-template-columns: 1fr; }
    .honest { grid-template-columns: 1fr; }
  }

  /* ---------- navegação móvel ---------- */
  .menu-btn { display: none; }
  .menu-panel { display: none; }

  @media (max-width: 1080px) {
    .menu-btn { display: grid; }
    .menu-panel[data-open="true"] {
      display: block; position: absolute; left: 0; right: 0; top: 100%;
      background: var(--paper); border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow-lg); padding: 14px var(--gutter) 20px;
      max-height: calc(100svh - var(--head-h)); overflow-y: auto;
    }
    .menu-panel nav { display: grid; }
    .menu-panel nav button {
      font: inherit; font-size: 16px; font-weight: 550; text-align: left;
      background: none; border: 0; border-bottom: 1px solid var(--line);
      color: var(--ink); padding: 13px 2px; cursor: pointer;
    }
    .menu-panel nav button[aria-current="page"] { color: var(--brand); font-weight: 700; }
    .menu-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; flex-wrap: wrap; }
    .menu-foot .btn { flex: 1; }
  }

  @media (max-width: 720px) {
    .top-tools > .brand-pick, .top-tools > .btn.p { display: none; }
  }

  .lanes svg.tall, .flow-scroll svg.tall { display: none; }
  @media (max-width: 760px) {
    .lanes svg.wide, .flow-scroll svg.flow:not(.tall) { display: none; }
    .lanes svg.tall, .flow-scroll svg.tall { display: block; min-width: 0; width: 100%; }
    .lanes, .flow-scroll { overflow-x: visible; }
  }

  /* ---------- diagrama: três pontas, uma linha ---------- */
  .lanes { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 26px) 6px; overflow-x: auto; box-shadow: var(--shadow); }
  .lanes svg { display: block; width: 100%; height: auto; min-width: 760px; }
  .lanescap { text-align: center; font-size: 15px; color: var(--ink-3); padding: 14px 12px 16px; line-height: 1.5; }
  .lanescap b { color: var(--ink); font-weight: 650; }

  .cp-n { font-family: var(--sans); font-size: 14.5px; font-weight: 700; fill: var(--ink); letter-spacing: -.015em; }
  .cp-s { font-family: var(--sans); font-size: 12px; fill: var(--ink-3); }
  .cp-k { font-family: var(--sans); font-size: 10.5px; font-weight: 700; fill: var(--ink-3); letter-spacing: .15em; text-transform: uppercase; }

  .cup-body { fill: var(--surface-2); stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; }
  .cup-mouth { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.6; }
  .cup-rib { stroke: var(--line-2); stroke-width: 1.2; fill: none; }
  .knot { fill: var(--ink-3); }
  .cup.live .cup-body { fill: var(--brand-soft); stroke: var(--brand); }
  .cup.live .cup-mouth { stroke: var(--brand); }
  .cup.live .cup-rib { stroke: var(--brand); opacity: .45; }
  .cup.live .knot { fill: var(--brand); }

  .wire { fill: none; stroke-linecap: round; }
  .wire.slack { stroke: var(--ink-3); stroke-width: 1.5; opacity: .5; }
  .wire.frayed { stroke: var(--ink-3); stroke-width: 1.4; opacity: .5; }
  .wire.taut { stroke: var(--brand); stroke-width: 2; opacity: .32; }
  .wire.pulse { stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 5 190; opacity: 0; }
  .lanes.on .wire.pulse { opacity: 1; animation: wirePulse 2.8s cubic-bezier(.45,.05,.55,.95) infinite; }
  .lanes.on .wire.pulse:nth-of-type(2) { animation-delay: .45s; }
  .lanes.on .wire.pulse:nth-of-type(3) { animation-delay: .9s; }
  .lanes.on .wire.pulse:nth-of-type(4) { animation-delay: 1.3s; }
  @keyframes wirePulse { from { stroke-dashoffset: 195; } to { stroke-dashoffset: 0; } }

  .divider { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 3 8; fill: none; }
  .hub { fill: var(--brand); }
  .hub-echo { fill: none; stroke: var(--brand); stroke-width: 1.6; opacity: 0; transform-origin: 884px 252px; }
  .lanes.on .hub-echo { animation: hubEcho 2.8s ease-out infinite; }
  @keyframes hubEcho { 0% { opacity: .55; transform: scale(.5); } 70%, 100% { opacity: 0; transform: scale(2.1); } }

  .cup { transition: transform .4s ease; }
  .lanes.on .cup.live { animation: talk 4.6s ease-in-out infinite; }
  .lanes.on .cup.live:nth-of-type(2) { animation-delay: .7s; }
  .lanes.on .cup.live:nth-of-type(3) { animation-delay: 1.4s; }
  @keyframes talk { 0%, 88%, 100% { transform: rotate(0deg); } 92% { transform: rotate(-1.4deg); } 96% { transform: rotate(1.1deg); } }

  .board .bd-body { fill: var(--surface-2); stroke: var(--brand); stroke-width: 1.6; }
  .board .bd-clip { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.4; }
  .board .bd-rule { stroke: var(--line-2); stroke-width: 1.6; stroke-linecap: round; fill: none; }
  .board .bd-check { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- perfis ---------- */
  .persona { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; padding: clamp(26px, 3vw, 42px) 0; border-bottom: 1px solid var(--line); }
  .persona:first-of-type { border-top: 1px solid var(--line); }
  .persona figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3.4; }
  .persona figure img { width: 100%; height: 100%; object-fit: cover; }
  .persona .body { display: grid; gap: 16px; }
  .ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 26px); }
  .ba > div { display: grid; gap: 6px; align-content: start; }
  .ba .lab { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .ba .lab.now { color: var(--brand); }
  .ba p { font-size: 15px; color: var(--ink-2); }
  .gain { border-left: 3px solid var(--brand); padding-left: 14px; font-size: 15px; color: var(--ink); }
  .gain b { font-weight: 650; }

  @media (prefers-reduced-motion: reduce) {
    .lanes.on .wire.pulse { opacity: .8; animation: none; }
    .lanes.on .hub-echo, .lanes.on .cup.live { animation: none; }
  }

  @media (max-width: 900px) { .persona, .ba { grid-template-columns: 1fr; } }

  /* ---------- modularidade ---------- */
  .modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
  .mode { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(18px, 2vw, 24px); display: grid; gap: 9px; align-content: start; }
  .mode.on { border-color: var(--brand); background: var(--brand-soft); }
  .mode .lab { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
  .mode.on .lab { color: var(--brand); }
  .mode b { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
  .mode p { font-size: 14px; color: var(--ink-2); }
  .mode .need { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 9px; margin-top: 3px; }
  .mode.on .need { border-top-color: color-mix(in srgb, var(--brand) 30%, transparent); }

  .modular-note { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; border-left: 3px solid var(--brand); background: var(--surface); padding: 16px 18px; border-radius: 4px 10px 10px 4px; }
  .modular-note svg { width: 16px; height: 16px; color: var(--brand); margin-top: 3px; }
  .modular-note p { font-size: 14.5px; color: var(--ink-2); }
  .modular-note b { color: var(--ink); font-weight: 650; }

  @media (max-width: 1080px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }

  .qa.faq > article { grid-template-columns: 1fr; gap: 0; }
  .qa.faq h3 { font-size: clamp(17px, 1.7vw, 20px); }

  /* ---------- dores, recorte da home ---------- */
  .pains { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 64px); }
  .pains > div { padding: clamp(18px, 2.2vw, 26px) 0; border-top: 1px solid var(--line); display: grid; gap: 7px; align-content: start; }
  .pains > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .pains q { font-size: clamp(17px, 1.7vw, 20.5px); font-weight: 650; letter-spacing: -.018em; line-height: 1.32; quotes: "“" "”"; }
  .pains p { font-size: 14.5px; color: var(--ink-2); }
  @media (max-width: 760px) {
    .pains { grid-template-columns: 1fr; }
    .pains > div:nth-child(2) { border-top: 1px solid var(--line); padding-top: clamp(18px, 2.2vw, 26px); }
  }

  /* ---------- três conversas lado a lado ---------- */
  .tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: start; }
  .chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
  .chat-h { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .chat-h .quem { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
  .chat-h b { font-size: 14.5px; font-weight: 650; display: block; }
  .chat-h .nota-painel { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.4; }
  .chat .thread { padding: 16px 15px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; height: 340px; }
  .chat .msg strong { font-weight: 650; }
  .chat .msg em { font-style: italic; }
  .chat .msg code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
  .chat .msg ul { margin: 6px 0 2px; padding-left: 18px; display: grid; gap: 3px; }
  .chat .msg li { line-height: 1.45; }
  .chat .msg.sys { align-self: center; max-width: 100%; background: none; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12.5px; text-align: center; }
  .chat .replies { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 15px 12px; }
  .chat .replies:empty { display: none; }
  .chat .replies button { font: inherit; font-size: 12.5px; padding: 6px 11px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
  .chat .replies button:hover { border-color: var(--brand); color: var(--brand); }
  .chat .chat-send { display: flex; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--line); }
  .chat .chat-send input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 100px; background: var(--paper); color: var(--ink); }
  .chat .chat-send input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
  .chat .chat-send button { padding: 9px 13px; border-radius: 100px; }
  .chat input:disabled, .chat button:disabled { opacity: .55; cursor: progress; }

  .porta { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
  .porta[hidden] { display: none; }
  .porta form { display: grid; gap: 14px; }
  .tri[hidden] { display: none; }
  @media (max-width: 900px) { .porta { grid-template-columns: 1fr; } }

  #hcaptcha-box[hidden] { display: none; }
  #hcaptcha-box { display: grid; justify-items: center; gap: 12px; margin-top: 26px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
  #hcaptcha-box p { font-size: 15px; font-weight: 600; }

  @media (max-width: 980px) { .tri { grid-template-columns: 1fr; } .chat .thread { height: 300px; } }

  footer.site { border-top: 1px solid var(--line); background: var(--surface); padding-block: 46px 32px; }
  .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
  .foot-grid .foot-h { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
  .foot-grid a, .foot-grid button.linky { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 4px 0; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
  .foot-grid a:hover, .foot-grid button.linky:hover { color: var(--brand); }
  .credits { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); line-height: 1.65; }
  .credits a { color: var(--ink-3); }

  .page { display: none; }
  .page[data-active="true"] { display: block; }

  .sub-hero { padding-block: clamp(38px, 4.6vw, 64px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
  .sub-hero .wrap { display: grid; gap: 18px; }

  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 32px); }
  .feat .rule { width: 28px; height: 2px; background: var(--brand); margin-bottom: 13px; }
  .feat h3 { margin-bottom: 6px; }
  .feat p { color: var(--ink-2); font-size: 14.5px; }

  .list-check { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
  .list-check li { display: grid; grid-template-columns: 18px 1fr; gap: 11px; font-size: 15px; color: var(--ink-2); }
  .list-check svg { width: 15px; height: 15px; color: var(--brand); margin-top: 4px; }
  .list-check b { color: var(--ink); font-weight: 650; }

  .sys { display: flex; flex-wrap: wrap; gap: 9px; }
  .sys span {
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
    border: 1px solid var(--line-2); border-radius: 100px; padding: 6px 14px; background: var(--surface);
  }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); align-items: start; }
  .path { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 30px); background: var(--surface); display: grid; gap: 14px; align-content: start; }
  .path.on { border-color: var(--brand); box-shadow: var(--shadow); }
  .path .badge { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
  .path p { color: var(--ink-2); font-size: 15px; }

  @media (max-width: 1080px) { nav.main { display: none; } }
  @media (max-width: 900px) {
    .who, .tl, .shots-3, .shots-2, .duo, .demo-grid, .grid-3, .foot-grid, .hero-foot .wrap, .split { grid-template-columns: 1fr; }
    .duo.flip > figure { order: 0; }
    .facts > div { grid-template-columns: 1fr; gap: 6px; }
    .hero-foot .wrap > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-left: 0; }
    .flow-scroll { overflow-x: auto; }
    .flow { min-width: 820px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .flow .node, .flow .rail { opacity: 1; transform: none; }
    .flow .dash { opacity: 1; }
  }

/* `[hidden]` só vale se ninguém declarar `display` depois. Um `.cbd{display:flex}`
   ganha por especificidade e o elemento "escondido" continua visível — foi assim
   que o corpo do chat apareceu embaixo do portão de identificação. */
[hidden]{display:none !important}
