  /* =====================================================================
     CONFORMIDE — DOSSIÊ EDITORIAL INSTITUCIONAL
     Paleta oficial: docs/brand/CONFORMIDE_CORES.pdf
     ===================================================================== */
  :root {
    --azul:        #1F4E8C;
    --azul-deep:   #163866;
    --azul-ink:    #0F2748;
    --azul-luz:    #E7EDF6;
    --azul-fio:   #C9D5E6;
    --gelo:        #F2F4F6;
    --branco:      #FFFFFF;
    --papel:       #FAFAF7;
    --preto:       #1A1A1A;
    --grafite:     #3D4452;
    --fumaca:      #6B7280;
    --fino:        #D9DCE0;
    --linha:       #E5E7EB;
    --verde:       #1E6F3D;
    --verde-luz:   #E6F0EA;
    --amarelo:     #F2C300;
    --amarelo-luz: #FFF4CC;

    /* Brand é Amsi Pro (paga); Manrope é o alike geométrico free mais próximo.
       Os três aliases apontam pra mesma família — a hierarquia editorial vem
       de weight + size + letter-spacing, não de famílias diferentes. */
    --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono:  "Manrope", ui-monospace, "SF Mono", Menlo, monospace;

    --shadow-sm: 0 1px 0 rgba(15, 39, 72, .04), 0 1px 2px rgba(15, 39, 72, .06);
    --shadow-md: 0 8px 24px -12px rgba(15, 39, 72, .18), 0 2px 6px rgba(15, 39, 72, .06);

    --rule: 1px solid var(--linha);
    --rule-strong: 1px solid var(--azul-fio);

    --maxw: 1320px;

    /* Per-fase accent — default = fase 2 / jurídico */
    --fase-accent:     var(--azul);
    --fase-accent-ink: var(--azul-ink);
    --fase-accent-luz: var(--azul-luz);
    --fase-accent-fio: var(--azul-fio);
    --fase-accent-on:  var(--branco);
  }

  /* Fase 1 — Comercial — amarelo (texto sempre preto sobre amarelo) */
  body[data-fase="1"] {
    --fase-accent:     var(--amarelo);
    --fase-accent-ink: var(--preto);
    --fase-accent-luz: var(--amarelo-luz);
    --fase-accent-fio: #F0DC7A;
    --fase-accent-on:  var(--preto);
  }
  /* Fase 2 — Jurídico — azul (default) */
  body[data-fase="2"] {
    --fase-accent:     var(--azul);
    --fase-accent-ink: var(--azul-ink);
    --fase-accent-luz: var(--azul-luz);
    --fase-accent-fio: var(--azul-fio);
    --fase-accent-on:  var(--branco);
  }
  /* Fase 3 — Operacional — verde */
  body[data-fase="3"] {
    --fase-accent:     var(--verde);
    --fase-accent-ink: var(--verde);
    --fase-accent-luz: var(--verde-luz);
    --fase-accent-fio: #B6D5C2;
    --fase-accent-on:  var(--branco);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--sans);
    color: var(--preto);
    background: var(--gelo);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
  }

  ::selection { background: var(--amarelo); color: var(--preto); }

  a { color: var(--azul); text-decoration: none; border-bottom: 1px solid currentColor; }
  a:hover { color: var(--azul-deep); }

  /* ============== Classification strip (top) ============== */
  .classif {
    background: var(--azul-ink);
    color: var(--branco);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 9px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 3px solid var(--amarelo);
  }
  .classif .flag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .classif .flag img {
    display: block;
    height: 20px;
    width: auto;
  }
  .classif .flag .divider {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.2);
  }
  .classif .right { display: flex; gap: 22px; opacity: .85; }
  .classif .right span::before { content: "·"; margin-right: 14px; opacity: .5; }
  .classif .right span:first-child::before { content: ""; margin: 0; }

  /* ============== Brand bar ============== */
  .brandbar {
    background: var(--branco);
    border-bottom: var(--rule);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brandlogo {
    display: inline-flex; align-items: center; gap: 14px;
    text-decoration: none;
    border: 0;
  }
  .brandlogo img {
    display: block;
    height: 28px;
    width: auto;
  }
  .brandlogo .vertical {
    height: 28px;
    width: 1px;
    background: var(--linha);
  }
  .brandlogo .vertical-suffix {
    background: var(--amarelo);
    color: var(--preto);
    padding: 4px 12px 4px 12px;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: var(--sans);
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
  .breadcrumb-wrap { position: relative; }
  .breadcrumb {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--fumaca);
    letter-spacing: .04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .breadcrumb b { color: var(--azul-deep); font-weight: 700; }

  /* === Product switcher trigger === */
  .product-switcher {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 6px 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--azul-deep);
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease;
  }
  .product-switcher:hover {
    background: var(--azul-luz);
    border-color: var(--azul-fio);
  }
  .product-switcher[aria-expanded="true"] {
    background: var(--azul-ink);
    border-color: var(--azul-ink);
    color: var(--branco);
  }
  .product-switcher[aria-expanded="true"] b,
  .product-switcher[aria-expanded="true"] .chev {
    color: var(--branco);
  }
  .product-switcher .chev {
    display: inline-block;
    transition: transform .2s ease;
    font-size: 10px;
    line-height: 1;
    opacity: .65;
  }
  .product-switcher[aria-expanded="true"] .chev { transform: rotate(-180deg); opacity: 1; }
  .product-switcher kbd {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: var(--branco);
    margin-left: 2px;
    text-transform: lowercase;
  }
  .product-switcher:not([aria-expanded="true"]) kbd {
    background: var(--azul-luz);
    border-color: var(--azul-fio);
    color: var(--fumaca);
  }

  /* === Switcher panel === */
  .switcher-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(540px, 92vw);
    background: var(--branco);
    border: 1px solid var(--azul-fio);
    border-radius: 10px;
    box-shadow:
      0 24px 60px -20px rgba(15, 39, 72, .35),
      0 4px 12px rgba(15, 39, 72, .08);
    z-index: 50;
    overflow: hidden;
    transform-origin: top right;
    animation: swOpen .18s cubic-bezier(.2,.8,.2,1);
  }
  .switcher-panel[hidden] { display: none; }
  @keyframes swOpen {
    from { opacity: 0; transform: scale(.96) translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .switcher-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--linha);
    background: var(--gelo);
  }
  .switcher-head svg {
    flex: 0 0 16px;
    color: var(--fumaca);
  }
  .switcher-head input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--azul-ink);
    padding: 4px 0;
  }
  .switcher-head input::placeholder { color: var(--fumaca); }
  .switcher-head .keyhint {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fumaca);
    padding: 3px 8px;
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: 3px;
  }
  .switcher-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
  }
  .switcher-list::-webkit-scrollbar { width: 8px; }
  .switcher-list::-webkit-scrollbar-thumb { background: var(--azul-fio); border-radius: 4px; }
  .switcher-group {
    padding: 12px 18px 6px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--azul-ink);
    border-top: 1px solid var(--linha);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .switcher-list > .switcher-group:first-child { border-top: 0; }
  .switcher-group span:last-child { color: var(--fumaca); font-weight: 400; }
  .switcher-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px 18px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background .1s ease, border-color .1s ease;
  }
  .switcher-item .code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--azul-deep);
    background: var(--azul-luz);
    padding: 4px 8px;
    border-radius: 3px;
    text-align: center;
    line-height: 1;
  }
  .switcher-item .name {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--azul-ink);
    font-weight: 500;
    line-height: 1.3;
  }
  .switcher-item .meta {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fumaca);
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }
  .switcher-item .meta .origens {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
  }
  .origem-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 3px;
    background: rgba(31, 78, 140, .1);
    color: var(--azul-deep);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: help;
    transition: background .12s ease, color .12s ease;
  }
  .origem-tag:hover { background: var(--azul-ink); color: var(--branco); }
  .origem-tag[data-tip]::before,
  .origem-tag[data-tip]::after {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease .15s;
  }
  .origem-tag[data-tip]::before {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--azul-ink);
    color: var(--branco);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    box-shadow: 0 6px 18px -4px rgba(15, 39, 72, .28);
    z-index: 100;
  }
  .origem-tag[data-tip]::after {
    content: "";
    position: absolute;
    right: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--azul-ink);
    z-index: 100;
  }
  .origem-tag:hover::before,
  .origem-tag:hover::after,
  .origem-tag:focus-visible::before,
  .origem-tag:focus-visible::after { opacity: 1; }
  .switcher-item[aria-current="true"] {
    background: linear-gradient(90deg, var(--amarelo-luz) 0%, rgba(255,244,204,0) 100%);
    border-left-color: var(--amarelo);
  }
  .switcher-item[aria-current="true"] .code { background: var(--amarelo); color: var(--preto); }
  .switcher-item.is-focused,
  .switcher-item:hover {
    background: var(--azul-luz);
    border-left-color: var(--azul);
  }
  .switcher-item.is-focused .code,
  .switcher-item:hover .code { background: var(--azul); color: var(--branco); }
  .switcher-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-top: 1px solid var(--linha);
    background: var(--gelo);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fumaca);
  }
  .switcher-foot kbd {
    font-family: var(--mono);
    font-size: 10px;
    padding: 1px 6px;
    border: 1px solid var(--linha);
    border-radius: 3px;
    background: var(--branco);
    color: var(--azul-deep);
    text-transform: none;
    letter-spacing: 0;
  }
  .switcher-empty {
    padding: 32px 18px;
    text-align: center;
    color: var(--fumaca);
    font-family: var(--sans);
    font-size: 14px;
  }

  @media (max-width: 780px) {
    .switcher-panel {
      position: fixed;
      top: 60px; left: 12px; right: 12px;
      width: auto;
    }
  }

  /* ============== Hero ============== */
  .hero-wrap {
    max-width: var(--maxw);
    margin: 28px auto 0;
    padding: 0 28px;
  }
  .hero {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 64px 64px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: end;
    background: linear-gradient(180deg, var(--azul-deep) 0%, var(--azul-ink) 100%);
    box-shadow:
      0 30px 80px -40px rgba(15, 39, 72, .55),
      0 2px 0 rgba(255,255,255,.06) inset;
    isolation: isolate;
  }
  .hero > * { position: relative; z-index: 2; }
  .hero .arcs {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  /* hero gets a thin yellow ribbon at top, like the brand book cover */
  .hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--verde) 0 33%, var(--amarelo) 33% 66%, rgba(255,255,255,.7) 66% 100%);
    z-index: 3;
  }

  .hero .eyebrow-stack {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .hero .eyebrow-stack .top,
  .hero .eyebrow-stack .bot {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    line-height: 1;
  }
  .hero .eyebrow-stack .top { color: rgba(255,255,255,.75); font-weight: 300; letter-spacing: .32em; }
  .hero .eyebrow-stack .bot {
    color: var(--amarelo);
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .hero .eyebrow-stack .bot .code {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--preto);
    font-size: 11px;
    background: var(--amarelo);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: .12em;
  }
  .hero .eyebrow-stack .bot .sep {
    width: 14px; height: 1px; background: rgba(242,195,0,.5);
  }

  .hero h1 {
    font-family: var(--sans);
    font-weight: 900;
    font-size: clamp(44px, 6.4vw, 84px);
    line-height: .92;
    letter-spacing: -.025em;
    margin: 0 0 26px;
    color: var(--branco);
    text-transform: none;
    text-wrap: balance;
  }
  .hero h1 .light {
    display: block;
    font-weight: 300;
    color: rgba(255,255,255,.78);
    letter-spacing: -.015em;
  }
  .hero h1 em {
    font-weight: 500;
    color: var(--amarelo);
  }
  .hero .promessa {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
    max-width: 56ch;
    border-left: 3px solid var(--amarelo);
    padding: 6px 0 6px 20px;
    margin: 0 0 32px;
  }

  /* meta stamps strip — glass on blue hero */
  .stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
  }
  .stamp {
    padding: 14px 20px;
    display: flex; flex-direction: column;
    gap: 5px;
    border-right: 1px solid rgba(255,255,255,.1);
    min-width: 0;
  }
  .stamp:last-child { border-right: 0; }
  .stamp .k {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
  }
  .stamp .v {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--branco);
    white-space: nowrap;
  }
  .stamp.status .v {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .stamp.status .v::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--amarelo);
    border-radius: 50%;
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(242,195,0,.55); }
    50%      { box-shadow: 0 0 0 6px rgba(242,195,0,0); }
  }

  /* carimbo (stamp) — rubber-stamp em preto sobre papel (como o brand book) */
  .carimbo {
    position: relative;
    padding: 22px;
    border: 2px solid var(--preto);
    color: var(--preto);
    border-radius: 8px;
    transform: rotate(-6deg);
    background: var(--papel);
    box-shadow:
      inset 0 0 0 4px var(--papel),
      inset 0 0 0 5px var(--preto),
      var(--shadow-md);
    text-align: center;
    font-family: var(--sans);
    width: 280px;
    justify-self: end;
  }
  .carimbo .stamp-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .25em;
    margin-bottom: 6px;
    opacity: .8;
  }
  .carimbo .stamp-big {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.02em;
  }
  .carimbo .stamp-meta {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    line-height: 1.5;
    opacity: .85;
  }

  /* ============== Phase nav (sticky) ============== */
  .phases-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 250, 247, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-top: var(--rule);
    border-bottom: var(--rule);
    margin-top: 24px;
  }
  .phases {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .phase {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 12px 14px;
    background: var(--branco);
    border: var(--rule);
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
  }
  .phase:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--azul-fio);
  }
  .phase .num {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--fumaca);
    width: 32px;
    display: flex; align-items: center;
    border-right: var(--rule);
    padding-right: 12px;
  }
  .phase .meta { flex: 1; min-width: 0; }
  .phase .meta .label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--azul-ink);
    line-height: 1.1;
  }
  .phase .meta .hint {
    font-size: 11.5px;
    color: var(--fumaca);
    margin-top: 3px;
  }
  .phase .bullet {
    width: 10px; height: 10px;
    border-radius: 50%;
    align-self: center;
  }
  .phase[data-color="amarelo"] .bullet { background: var(--amarelo); }
  .phase[data-color="azul"]    .bullet { background: var(--azul); }
  .phase[data-color="verde"]   .bullet { background: var(--verde); }
  .phase[data-color="preto"]   .bullet { background: var(--preto); }

  .phase.active {
    background: var(--azul-ink);
    border-color: var(--azul-ink);
  }
  .phase.active .num { color: var(--amarelo); border-right-color: rgba(255,255,255,.1); }
  .phase.active .meta .label { color: var(--branco); }
  .phase.active .meta .hint  { color: rgba(255,255,255,.7); }
  .phase.active .bullet { box-shadow: 0 0 0 4px rgba(242,195,0,.25); }

  /* Active phase tab takes on its own fase color */
  .phase.active[data-color="amarelo"] {
    background: var(--amarelo);
    border-color: var(--amarelo);
  }
  .phase.active[data-color="amarelo"] .num     { color: var(--preto); }
  .phase.active[data-color="amarelo"] .meta .label { color: var(--preto); }
  .phase.active[data-color="amarelo"] .meta .hint  { color: rgba(0,0,0,.6); }
  .phase.active[data-color="amarelo"] .bullet { background: var(--preto); box-shadow: 0 0 0 4px rgba(0,0,0,.15); }
  .phase.active[data-color="verde"] {
    background: var(--verde);
    border-color: var(--verde);
  }
  .phase.active[data-color="verde"] .num     { color: var(--amarelo); }
  .phase.active[data-color="verde"] .bullet  { box-shadow: 0 0 0 4px rgba(30,111,61,.35); }
  .phase.active[data-color="preto"] {
    background: var(--preto);
    border-color: var(--preto);
  }
  .phase.active[data-color="preto"] .num     { color: var(--amarelo); }

  /* Fase ribbon between hero and phase nav */
  .fase-ribbon {
    max-width: var(--maxw);
    margin: 14px auto 0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .fase-ribbon .bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--fase-accent);
    position: relative;
    overflow: hidden;
  }
  .fase-ribbon .bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  }
  .fase-ribbon .label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fase-accent-ink);
    font-weight: 700;
    white-space: nowrap;
  }
  .fase-ribbon .label .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fase-accent);
    margin-right: 8px;
    vertical-align: middle;
  }
  @media (max-width: 780px) {
    .fase-ribbon { padding: 0 18px; gap: 10px; }
    .fase-ribbon .label { font-size: 10px; letter-spacing: .16em; }
  }

  /* ============== Main layout ============== */
  main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 28px 96px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 200px;
    gap: 56px;
    align-items: start;
  }

  /* ============== Sidebar (TOC) ============== */
  aside.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    border-top: 2px solid var(--azul-ink);
    padding-top: 18px;
  }
  aside.toc h6 {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--azul);
  }
  aside.toc ol {
    list-style: none;
    margin: 0; padding: 0;
    counter-reset: toc;
  }
  aside.toc li {
    counter-increment: toc;
    padding: 9px 0;
    border-bottom: var(--rule);
    font-size: 13.5px;
    color: var(--grafite);
    line-height: 1.35;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: color .15s ease, padding .15s ease;
  }
  aside.toc li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--mono);
    font-weight: 500;
    color: var(--fumaca);
    font-size: 11px;
    letter-spacing: .06em;
    padding-top: 2px;
  }
  aside.toc li:hover {
    color: var(--azul-ink);
    padding-left: 4px;
  }
  aside.toc li.current {
    color: var(--azul-ink);
    font-weight: 700;
  }
  aside.toc li.current::before { color: var(--azul-ink); }

  aside.toc .toc-meta {
    margin-top: 24px;
    padding: 16px;
    background: var(--azul-luz);
    border: 1px solid var(--azul-fio);
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  aside.toc .toc-meta dt {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--azul-deep);
    margin-top: 10px;
  }
  aside.toc .toc-meta dt:first-child { margin-top: 0; }
  aside.toc .toc-meta dd {
    margin: 2px 0 0;
    color: var(--azul-ink);
    font-weight: 500;
  }

  aside.toc .actions {
    margin-top: 18px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .btn {
    display: inline-flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--azul-ink);
    background: var(--azul-ink);
    color: var(--branco);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
  }
  .btn:hover { background: var(--amarelo); border-color: var(--amarelo); color: var(--preto); }
  .btn.ghost { background: transparent; color: var(--azul-ink); }
  .btn.ghost:hover { background: var(--azul-ink); color: var(--branco); }
  .btn .arrow {
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1;
  }

  /* ============== Article body ============== */
  article {
    max-width: 720px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--preto);
  }
  article > section + section { margin-top: 64px; }
  section { scroll-margin-top: 120px; }

  section header.sec-header {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 20px;
    align-items: baseline;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--azul-ink);
  }
  section header.sec-header .secnum {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 56px;
    line-height: .9;
    color: var(--amarelo);
    -webkit-text-stroke: 1px var(--azul-ink);
    text-stroke: 1px var(--azul-ink);
  }
  section header.sec-header h2 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    color: var(--azul-ink);
    letter-spacing: -.01em;
  }
  section header.sec-header .secsub {
    grid-column: 2;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--azul-ink);
    margin-top: 6px;
  }

  article p { margin: 0 0 16px; }
  article p.lead {
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1.55;
    color: var(--azul-ink);
  }
  article p.lead::first-letter {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 64px;
    float: left;
    line-height: .85;
    padding: 6px 12px 0 0;
    color: var(--azul-ink);
  }

  article strong { color: var(--azul-ink); }
  article em { font-style: italic; }

  article h3 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 22px;
    color: var(--azul-ink);
    margin: 36px 0 14px;
    letter-spacing: -.005em;
  }

  /* ============== Tables (normativos / precedentes) ============== */
  .table-block { margin: 24px 0 28px; }
  .table-block .caption {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fumaca);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .table-block .caption::before {
    content: ""; width: 24px; height: 1px; background: var(--azul-ink);
  }
  table.dossier {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: var(--branco);
    border: var(--rule-strong);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  table.dossier thead th {
    text-align: left;
    background: var(--azul-luz);
    color: var(--azul-ink);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid var(--azul-fio);
    font-family: var(--mono);
  }
  table.dossier tbody td {
    padding: 12px 14px;
    border-top: var(--rule);
    vertical-align: top;
  }
  table.dossier tbody tr:hover td { background: rgba(231, 237, 246, .35); }
  table.dossier tbody tr:first-child td { border-top: 0; }

  /* tribunal chip inside tables */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--azul-ink);
    color: var(--branco);
  }
  .chip[data-court="STJ"]  { background: var(--preto); }
  .chip[data-court="TRF1"] { background: var(--verde); }
  .chip[data-court="CTN"]  { background: var(--grafite); }
  .chip.muted { background: var(--azul-luz); color: var(--azul-ink); }

  .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .badge.fav   { background: var(--verde-luz); color: var(--verde); }
  .badge.bind  { background: var(--amarelo); color: var(--preto); }
  .badge.persuasive { background: var(--azul-luz); color: var(--azul-deep); }
  .badge.alta  { background: var(--preto); color: var(--branco); }
  .badge.media { background: var(--amarelo); color: var(--preto); }
  .badge.baixa { background: var(--verde-luz); color: var(--verde); }

  /* ============== Jurisprudência cards ============== */
  .jp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 12px;
  }
  .jp {
    background: var(--branco);
    border: var(--rule-strong);
    border-radius: 6px;
    padding: 18px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .jp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .jp::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--azul-ink);
    border-radius: 6px 6px 0 0;
  }
  .jp[data-court="STJ"]::before  { background: var(--preto); }
  .jp[data-court="TRF1"]::before { background: var(--verde); }
  .jp .jp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .jp .jp-proc {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--azul-ink);
  }
  .jp .jp-tese {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    color: var(--azul-ink);
    margin: 10px 0 14px;
    padding-left: 14px;
    border-left: 2px solid var(--amarelo);
  }
  .jp .jp-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--fumaca);
  }
  .jp .jp-foot strong { color: var(--azul-ink); }

  /* ============== Promessa permitida (diptych) ============== */
  .diptych {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: var(--rule-strong);
    border-radius: 6px;
    overflow: hidden;
    background: var(--branco);
    margin: 22px 0;
  }
  .diptych .col {
    padding: 22px 24px;
  }
  .diptych .evitar {
    background: linear-gradient(180deg, var(--linha) 0%, transparent 100%);
    border-right: var(--rule-strong);
  }
  .diptych .usar {
    background: linear-gradient(180deg, var(--verde-luz) 0%, #E6F0EA00 100%);
  }
  .diptych h5 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 12px;
    display: flex; align-items: center; gap: 10px;
  }
  .diptych .evitar h5 { color: var(--preto); }
  .diptych .usar h5   { color: var(--verde); }
  .diptych h5::before {
    content: ""; width: 18px; height: 1px; background: currentColor;
  }
  .diptych ul { margin: 0; padding: 0; list-style: none; }
  .diptych li {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    color: var(--azul-ink);
    padding: 10px 0;
    border-top: 1px dashed var(--linha);
  }
  .diptych li:first-child { border-top: 0; }
  .diptych li::before {
    content: "“";
    font-family: var(--sans);
    font-size: 24px;
    line-height: 0;
    color: var(--azul-ink);
    margin-right: 6px;
    vertical-align: -4px;
  }

  /* ============== Risco rows ============== */
  .risk-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: var(--rule);
    border-radius: 6px;
    background: var(--branco);
    margin-bottom: 10px;
    transition: border-color .15s ease;
  }
  .risk-row:hover { border-color: var(--azul-fio); }
  .risk-row .label {
    font-family: var(--sans);
    font-weight: 500;
    line-height: 1.4;
  }
  .risk-row .label small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--fumaca);
    font-family: var(--sans);
  }
  .risk-row .meter {
    height: 6px;
    border-radius: 3px;
    background: var(--linha);
    position: relative;
    overflow: hidden;
  }
  .risk-row .meter::after {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    background: var(--azul);
  }
  .risk-row[data-prob="alta"]  .meter::after { width: 85%; background: var(--preto); }
  .risk-row[data-prob="media"] .meter::after { width: 55%; background: var(--amarelo); }
  .risk-row[data-prob="baixa"] .meter::after { width: 25%; background: var(--verde); }
  .risk-row .meter-cell {
    display: flex; flex-direction: column; gap: 6px;
  }
  .risk-row .meter-cell .meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fumaca);
  }

  /* ============== Callouts ============== */
  .callout {
    margin: 24px 0;
    padding: 22px 24px;
    background: var(--azul-ink);
    color: var(--branco);
    border-radius: 6px;
    position: relative;
    box-shadow: var(--shadow-md);
  }
  .callout::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--amarelo);
    border-radius: 6px 0 0 6px;
  }
  .callout .label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amarelo);
    margin-bottom: 8px;
  }
  .callout p {
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1.5;
    margin: 0;
    color: var(--branco);
  }

  /* ============== Strategy list (numbered) ============== */
  .strategy {
    list-style: none;
    counter-reset: strat;
    padding: 0;
    margin: 18px 0;
  }
  .strategy li {
    counter-increment: strat;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: var(--rule);
    align-items: start;
  }
  .strategy li:first-child { border-top: 2px solid var(--azul-ink); }
  .strategy li::before {
    content: counter(strat, decimal-leading-zero);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--azul-ink);
    background: var(--amarelo);
    padding: 6px 0;
    text-align: center;
    border-radius: 4px;
    align-self: start;
  }
  .strategy h4 {
    margin: 0 0 4px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--azul-ink);
    letter-spacing: .02em;
  }
  .strategy p { font-size: 14px; color: var(--grafite); margin: 0; }

  /* ============== Annotations (right margin) ============== */
  .annotations {
    position: sticky;
    top: 96px;
    align-self: start;
    border-top: 2px solid var(--amarelo);
    padding-top: 18px;
  }
  .annotations h6 {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--azul-ink);
  }
  .anno {
    padding: 14px;
    background: var(--amarelo-luz);
    border: 1px dashed #E0BE3A;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--azul-ink);
    margin-bottom: 12px;
    position: relative;
  }
  .anno strong {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--azul-ink);
    margin-bottom: 6px;
  }
  .anno::after {
    content: "";
    position: absolute;
    top: 14px; left: -6px;
    width: 12px; height: 12px;
    background: var(--amarelo);
    transform: rotate(45deg);
    border-left: 1px dashed #E0BE3A;
    border-bottom: 1px dashed #E0BE3A;
  }

  /* ============== Checklist (final criteria) ============== */
  .checklist {
    margin: 24px 0 0;
    padding: 24px;
    background: var(--branco);
    border: var(--rule-strong);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
  }
  .checklist h4 {
    margin: 0 0 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--azul);
  }
  .checklist ul { list-style: none; margin: 0; padding: 0; }
  .checklist li {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-top: var(--rule);
    align-items: center;
  }
  .checklist li:first-child { border-top: 0; }
  .checklist li .mark {
    width: 22px; height: 22px;
    border: 1.5px solid var(--verde);
    background: var(--verde);
    color: var(--branco);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
  }

  /* Generated checklist (from markdown - [ ] / - [x]) */
  .md-checklist {
    list-style: none;
    margin: 18px 0;
    padding: 20px 22px;
    background: var(--branco);
    border: var(--rule-strong);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
  }
  .md-checklist li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: var(--rule);
    align-items: center;
    line-height: 1.4;
  }
  .md-checklist li:first-child { border-top: 0; }
  .md-checklist li .cb {
    width: 22px; height: 22px;
    border: 1.5px solid var(--linha);
    background: var(--branco);
    color: var(--verde);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 13px;
  }
  .md-checklist li.is-checked .cb {
    background: var(--verde);
    border-color: var(--verde);
    color: var(--branco);
  }

  /* Article body: lists and tables overflow handling */
  article ul:not(.md-checklist),
  article ol {
    margin: 14px 0;
    padding-left: 22px;
  }
  article li { margin: 6px 0; }
  article ul:not(.md-checklist) li::marker { color: var(--azul-ink); }
  article ol li::marker { color: var(--azul); font-weight: 700; font-family: var(--mono); }
  article .table-block { overflow-x: auto; }
  article h3 + p { margin-top: 6px; }
  article hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px dashed var(--azul-fio);
  }
  article blockquote {
    margin: 20px 0;
    padding: 16px 22px;
    background: var(--azul-luz);
    border-left: 3px solid var(--azul);
    font-family: var(--sans);
    color: var(--azul-ink);
    border-radius: 0 6px 6px 0;
  }

  /* ============== Footer ============== */
  footer.docfoot {
    margin-top: 0;
    background: var(--azul-ink);
    color: var(--branco);
    padding: 56px 28px 32px;
    position: relative;
    overflow: hidden;
  }
  footer.docfoot::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
      var(--verde) 0 33%,
      var(--amarelo) 33% 66%,
      var(--branco) 66% 100%);
  }
  footer.docfoot::after {
    content: "CONFORMIDE";
    position: absolute;
    right: -40px; bottom: -110px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 260px;
    color: rgba(255,255,255,.04);
    letter-spacing: -.04em;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
  }
  footer.docfoot .foot-arcs {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }
  footer.docfoot .foot-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
  }
  footer.docfoot h5 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amarelo);
    margin: 0 0 14px;
  }
  footer.docfoot p, footer.docfoot li {
    color: rgba(255,255,255,.78);
    font-size: 13.5px;
    line-height: 1.6;
  }
  footer.docfoot ul { list-style: none; margin: 0; padding: 0; }
  footer.docfoot li { padding: 4px 0; }
  footer.docfoot .legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    display: flex;
    justify-content: space-between;
  }
  footer.docfoot .quote {
    font-family: var(--sans);
    font-size: 22px;
    line-height: 1.4;
    color: var(--branco);
    margin: 0 0 18px;
  }
  footer.docfoot .quote b {
    color: var(--amarelo);
    font-weight: 500;
  }
  footer.docfoot .foot-logo {
    display: block;
    height: 36px;
    width: auto;
    margin-bottom: 22px;
    opacity: .95;
  }
  footer.docfoot .foot-stamp {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin: 0;
  }

  /* ============== Reveal animation ============== */
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: reveal 700ms cubic-bezier(.2,.7,.1,1) forwards;
  }
  @keyframes reveal {
    to { opacity: 1; transform: none; }
  }
  .reveal.d1 { animation-delay: 60ms; }
  .reveal.d2 { animation-delay: 140ms; }
  .reveal.d3 { animation-delay: 220ms; }
  .reveal.d4 { animation-delay: 300ms; }
  .reveal.d5 { animation-delay: 380ms; }

  /* ============== Responsive ============== */
  @media (max-width: 1080px) {
    main { grid-template-columns: 240px minmax(0, 1fr); }
    .annotations { display: none; }
    .hero { grid-template-columns: 1fr; padding: 48px 40px 36px; }
    .carimbo { justify-self: start; }
    footer.docfoot .foot-inner { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 780px) {
    main { grid-template-columns: 1fr; padding: 32px 18px 64px; gap: 32px; }
    aside.toc { position: static; }
    .phases { grid-template-columns: repeat(2, 1fr); }
    .hero-wrap { padding: 0 18px; margin-top: 18px; }
    .hero { padding: 36px 24px 24px; border-radius: 10px; }
    .hero h1 { font-size: 44px; }
    .jp-grid { grid-template-columns: 1fr; }
    .diptych { grid-template-columns: 1fr; }
    .diptych .evitar { border-right: 0; border-bottom: var(--rule-strong); }
    .classif, .brandbar { padding-left: 18px; padding-right: 18px; }
    footer.docfoot .foot-inner { grid-template-columns: 1fr; }
  }

  /* ============== Print ============== */
  @media print {
    body { background: white; }
    .phases-wrap, aside.toc, .annotations, .actions, footer.docfoot::after { display: none !important; }
    main { grid-template-columns: 1fr; padding: 0; }
    .classif { background: none; color: black; border-bottom: 1px solid black; }
    .callout { background: none; color: black; border: 1px solid black; }
    .callout p, .callout .label { color: black !important; }
  }
