/* Layout das seções e das páginas de serviços da Elumina IA. */

:where(.site-home, .reference-layout) {
    --display: "Bricolage Grotesque", "Schibsted Grotesk", sans-serif;
    --body: "Schibsted Grotesk", sans-serif;
    --heading-weight: 500;
    --heading-tracking: -0.03em;
}

.reference-layout {
    --bg: #ffffff;
    --bg-2: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #eef1f8;
    --line: rgba(15, 23, 42, 0.09);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text: #0b1020;
    --muted: #586174;
    --cobalt: #3655dc;
    --cobalt-hi: #2f4fe0;
    --cobalt-deep: #2541c4;

    --mono: "IBM Plex Mono", ui-monospace, monospace;

    --r-card: 8px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --wrap: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(96px, 12vw, 160px);
}

/* Base: substitui o tailwind-build.css, que estas páginas não carregam mais */
:where(.reference-layout) *, :where(.reference-layout) *::before, :where(.reference-layout) *::after { box-sizing: border-box; }
:where(.reference-layout) img, :where(.reference-layout) svg, :where(.reference-layout) canvas { display: block; max-width: 100%; }
:where(.reference-layout) button { font: inherit; }
:where(.reference-layout) h1, :where(.reference-layout) h2, :where(.reference-layout) h3, :where(.reference-layout) h4, :where(.reference-layout) p, :where(.reference-layout) figure { margin: 0; }

/* Classes de estado que o script.js compartilhado liga e desliga */
:where(.reference-layout) .hidden { display: none !important; }
:where(.reference-layout) .opacity-0 { opacity: 0 !important; }
:where(.reference-layout) .pointer-events-none { pointer-events: none !important; }
:where(.reference-layout) .-translate-y-4 { transform: translateY(-16px); }



.reference-layout {
    overflow-x: clip;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.reference-layout ::selection { background: var(--cobalt); color: #fff; }

.reference-layout h1, .reference-layout h2, .reference-layout h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-tracking);
    text-wrap: balance;
}

.reference-layout p { margin: 0; text-wrap: pretty; }
.reference-layout ul, .reference-layout ol { margin: 0; padding: 0; list-style: none; }
.reference-layout a { color: inherit; text-decoration: none; }
.reference-layout .mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0; }
.reference-layout .dim { color: var(--muted); }

:where(.reference-layout) .wrap {
    width: min(100%, var(--wrap));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.reference-layout a:focus-visible,
.reference-layout button:focus-visible {
    outline: 2px solid var(--cobalt-hi);
    outline-offset: 3px;
    border-radius: 4px;
}

:where(.reference-layout) .skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--text);
    color: var(--bg);
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
:where(.reference-layout) .skip-link:focus { transform: none; }

/* ── Botões ─────────────────────────────────────────────────────────── */
:where(.reference-layout) .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
:where(.reference-layout) .btn svg { width: 18px; height: 18px; stroke-width: 1.75; transition: transform 0.25s var(--ease); }
:where(.reference-layout) .btn:hover svg { transform: translate(2px, -2px); }
:where(.reference-layout) .btn-ghost:hover svg[data-lucide="arrow-down"] { transform: translateY(2px); }

.reference-layout .btn-primary { background: var(--cobalt); color: #fff; }
:where(.reference-layout) .btn-primary:hover { background: #2948d7; }
:where(.reference-layout) .btn-ghost { border-color: var(--line-strong); color: var(--text); }
:where(.reference-layout) .btn-ghost:hover { border-color: var(--muted); }
:where(.reference-layout) .btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
:where(.reference-layout) .btn-lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }

:where(.reference-layout) [data-magnetic] { will-change: transform; }

/* ── Navegação ──────────────────────────────────────────────────────── */
:where(.reference-layout) .nav-pill-wrap {
    position: fixed;
    z-index: 50;
    top: 16px;
    left: 50%;
    width: min(calc(100% - 24px), 1080px);
    transform: translateX(-50%);
    pointer-events: none;
}

:where(.reference-layout) .nav-bar,
:where(.reference-layout) .nav-mobile:not(.pointer-events-none) { pointer-events: auto; }

:where(.reference-layout) .nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
:where(.reference-layout) .nav-pill-compact .nav-bar { background: rgba(255, 255, 255, 0.9); border-color: var(--line-strong); }

:where(.reference-layout) .nav-logo img { display: block; width: auto; height: 34px; }

:where(.reference-layout) .nav-links { display: none; gap: 28px; margin-left: auto; font-size: 0.875rem; color: var(--muted); }
:where(.reference-layout) .nav-links a { transition: color 0.2s ease; }
:where(.reference-layout) .nav-links a:hover { color: var(--text); }

:where(.reference-layout) .nav-cta { display: none; }
:where(.reference-layout) .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}
:where(.reference-layout) .nav-toggle svg { width: 24px; height: 24px; }

:where(.reference-layout) .nav-mobile {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
:where(.reference-layout) .nav-mobile a:not(.btn) { padding: 12px; border-radius: 8px; color: var(--muted); }
:where(.reference-layout) .nav-mobile a:not(.btn):hover { background: var(--surface); color: var(--text); }
:where(.reference-layout) .nav-mobile .btn { margin-top: 8px; }

@media (min-width: 860px) {
    :where(.reference-layout) .nav-links, :where(.reference-layout) .nav-cta { display: inline-flex; }
    :where(.reference-layout) .nav-toggle, :where(.reference-layout) .nav-mobile { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
:where(.reference-layout) .hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 40px;
    isolation: isolate;
}

:where(.reference-layout) .beams {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 70%, transparent);
}

:where(.reference-layout) .hero-inner { padding-bottom: clamp(48px, 8vh, 96px); }

:where(.reference-layout) .hero-title {
    max-width: 15ch;
    font-size: clamp(3rem, 8.2vw, 7.5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}
:where(.reference-layout) .hero-title em { font-style: normal; color: var(--cobalt-hi); }

:where(.reference-layout) .hero-sub {
    max-width: 46ch;
    margin-top: 28px !important;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

:where(.reference-layout) .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* palavra a palavra, de borrado a nítido */
:where(.reference-layout) .split-word {
    display: inline-block;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(0.35em);
    animation: word-in 0.9s var(--ease) forwards;
    animation-delay: calc(var(--i) * 55ms + 0.1s);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

:where(.reference-layout) .fade-in {
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.9s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* fluxo Sinais → Ação */
/* .nv .flow vence o reset de listas (.nv ol), que zerava a margem automática e o
   espaço de cima: o bloco ia para a esquerda e a linha descolava dos pontos. */
.reference-layout .flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-inline: auto;
    padding: 28px var(--gutter) 0;
}
:where(.reference-layout) .flow li { position: relative; display: grid; gap: 2px; padding-top: 18px; }
:where(.reference-layout) .flow li::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--line-strong);
}
:where(.reference-layout) .flow li.is-live::before { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(79, 112, 255, 0.25); }
:where(.reference-layout) .flow .mono { color: var(--muted); }
:where(.reference-layout) .flow strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
:where(.reference-layout) .flow small { color: var(--muted); font-size: 0.875rem; }

/* a linha atravessa a tela inteira, de ponta a ponta, passando pelo centro dos pontos */
:where(.reference-layout) .flow-line {
    position: absolute;
    top: 28px;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    height: 1px;
    overflow: hidden;
    background: var(--line-strong);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
:where(.reference-layout) .flow-pulse {
    position: absolute;
    inset: 0 auto 0 0;
    width: 18%;
    background: linear-gradient(90deg, transparent, var(--cobalt-hi), transparent);
    animation: pulse-run 4.2s var(--ease) infinite;
}
@keyframes pulse-run { from { transform: translateX(-100%); } to { transform: translateX(560%); } }

@media (max-width: 719px) { :where(.reference-layout) .flow-line { display: none; } }
@media (min-width: 720px) {
    .reference-layout .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Marquee ────────────────────────────────────────────────────────── */
:where(.reference-layout) .marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
:where(.reference-layout) .marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
:where(.reference-layout) .marquee:hover .marquee-track { animation-play-state: paused; }
:where(.reference-layout) .marquee ul { display: flex; flex-shrink: 0; }
:where(.reference-layout) .marquee li {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 22px 0 22px 40px;
    color: var(--muted);
    font-family: var(--display);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
:where(.reference-layout) .marquee li::after { content: ""; width: 6px; height: 6px; background: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Seções ─────────────────────────────────────────────────────────── */
:where(.reference-layout) .section { position: relative; padding-block: var(--section-y); }
:where(.reference-layout) .section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

:where(.reference-layout) .section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
:where(.reference-layout) .section-head h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; }
:where(.reference-layout) .section-head p { max-width: 52ch; color: var(--muted); }

@media (min-width: 960px) {
    :where(.reference-layout) .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; }
    :where(.reference-layout) .section-head-row { grid-template-columns: 1fr auto; }
}

:where(.reference-layout) .tag {
    display: inline-block;
    color: var(--cobalt-hi);
    font-family: var(--mono);
    font-size: 0.8125rem;
}

/* revelação compartilhada com script.js */
.reference-layout .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reference-layout .reveal.is-visible { opacity: 1; transform: none; }

/* ── Holofote que segue o cursor ────────────────────────────────────── */
:where(.reference-layout) .spot { position: relative; isolation: isolate; }
:where(.reference-layout) .spot::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200px), rgba(79, 112, 255, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
:where(.reference-layout) .spot:hover::before { opacity: 1; }

/* ── Bento de soluções ──────────────────────────────────────────────── */
:where(.reference-layout) .bento { display: grid; gap: 16px; }
@media (min-width: 960px) {
    :where(.reference-layout) .bento { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
    :where(.reference-layout) .card-lg { grid-row: span 2; }
}

:where(.reference-layout) .card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    transition: border-color 0.3s ease;
}
:where(.reference-layout) .card:hover { border-color: var(--line-strong); }
:where(.reference-layout) .card > svg:first-child, :where(.reference-layout) .card-top > svg:first-child { width: 22px; height: 22px; color: var(--cobalt-hi); stroke-width: 1.5; }
:where(.reference-layout) .card-top { display: grid; gap: 16px; }
:where(.reference-layout) .card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
:where(.reference-layout) .card p { color: var(--muted); }

.reference-layout .ticks { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 0.9375rem; }
:where(.reference-layout) .ticks li { position: relative; padding-left: 22px; color: #3a4356; }
:where(.reference-layout) .ticks li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 10px;
    height: 1px;
    background: var(--cobalt-hi);
}

/* console do agente */
:where(.reference-layout) .console { margin: 8px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); overflow: hidden; }
:where(.reference-layout) .console-head { display: flex; align-items: center; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
:where(.reference-layout) .console-head span { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
:where(.reference-layout) .console-head b { margin-left: 8px; color: var(--muted); font-weight: 400; }
.reference-layout .console-log { display: grid; gap: 10px; min-height: 180px; padding: 18px 20px 20px; color: #3a4356; }
:where(.reference-layout) .console-log li { display: flex; gap: 10px; opacity: 0.18; transition: opacity 0.4s ease; }
:where(.reference-layout) .console-log li.is-on { opacity: 1; }
:where(.reference-layout) .console-log i { color: var(--cobalt-hi); font-style: normal; }
:where(.reference-layout) .console-log .is-human i { color: #e0573f; }

/* fios de integração */
:where(.reference-layout) .wires { width: 100%; height: auto; margin-top: auto; overflow: visible; }
:where(.reference-layout) .wires path {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1.25;
}
:where(.reference-layout) .wires circle { fill: var(--surface-2); stroke: var(--line-strong); }
:where(.reference-layout) .wires .hub { fill: var(--cobalt); stroke: none; }
:where(.reference-layout) .card:hover .wires path {
    stroke: var(--cobalt-hi);
    stroke-dasharray: 6 8;
    animation: wire-flow 1.2s linear infinite;
}
@keyframes wire-flow { to { stroke-dashoffset: -28; } }

/* ── Lista-índice de aplicações ─────────────────────────────────────── */
:where(.reference-layout) .index-list { border-top: 1px solid var(--line); }
:where(.reference-layout) .index-list li {
    display: grid;
    grid-template-columns: 48px 1fr 24px;
    gap: 8px 16px;
    align-items: baseline;
    padding: 28px 8px;
    border-bottom: 1px solid var(--line);
}
:where(.reference-layout) .index-list .mono { color: var(--muted); }
:where(.reference-layout) .index-list h3 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.1; transition: color 0.3s ease; }
:where(.reference-layout) .index-list p { grid-column: 2; max-width: 56ch; color: var(--muted); }
:where(.reference-layout) .index-list svg {
    grid-column: 3;
    grid-row: 1;
    width: 22px;
    height: 22px;
    color: var(--cobalt-hi);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
:where(.reference-layout) .index-list li:hover svg { opacity: 1; transform: none; }
:where(.reference-layout) .index-list li:hover h3 { color: var(--cobalt-hi); }

@media (min-width: 960px) {
    :where(.reference-layout) .index-list li { grid-template-columns: 80px 1fr 1fr 24px; padding: 36px 12px; }
    :where(.reference-layout) .index-list p { grid-column: 3; }
    :where(.reference-layout) .index-list svg { grid-column: 4; }
}

/* ── Exemplo: trilha que acende com a rolagem ───────────────────────── */
:where(.reference-layout) .stages-grid { display: grid; gap: 56px; }
:where(.reference-layout) .stages-head { display: grid; gap: 20px; align-content: start; }
:where(.reference-layout) .stages-head h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; }
:where(.reference-layout) .stages-head p { max-width: 44ch; color: var(--muted); }

@media (min-width: 960px) {
    :where(.reference-layout) .stages-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
    :where(.reference-layout) .stages-head { position: sticky; top: 140px; }
}

:where(.reference-layout) .stages-track { position: relative; display: grid; gap: 24px; padding-left: 40px; }
:where(.reference-layout) .stages-line { position: absolute; top: 12px; bottom: 12px; left: 7px; width: 1px; background: var(--line-strong); }
:where(.reference-layout) .stages-line span {
    position: absolute;
    inset: 0;
    background: var(--cobalt);
    transform-origin: top;
    transform: scaleY(var(--p, 0));
}

:where(.reference-layout) .stage {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    opacity: 0.35;
    transition: opacity 0.5s ease, border-color 0.5s ease;
}
:where(.reference-layout) .stage.is-on { opacity: 1; border-color: var(--line-strong); }
:where(.reference-layout) .stage h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.15; }
:where(.reference-layout) .stage p { color: var(--muted); }
:where(.reference-layout) .stage-dot {
    position: absolute;
    top: 32px;
    left: -40px;
    width: 15px;
    height: 15px;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--line-strong);
    transition: background-color 0.4s ease;
}
:where(.reference-layout) .stage.is-on .stage-dot { background: var(--cobalt); }

:where(.reference-layout) .chips { display: flex; flex-wrap: wrap; gap: 8px; }
:where(.reference-layout) .chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.875rem;
}
:where(.reference-layout) .chips svg { width: 16px; height: 16px; color: var(--cobalt-hi); }

/* ── Manifesto: palavras acendem com a rolagem ──────────────────────── */
:where(.reference-layout) .manifesto .tag { margin-bottom: 32px; }
:where(.reference-layout) .scrub {
    max-width: 30ch;
    font-family: var(--display);
    font-size: clamp(2rem, 4.6vw, 3.75rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
:where(.reference-layout) .scrub .w { color: var(--text); opacity: var(--o, 0.16); transition: opacity 0.15s linear; }

/* ── Método ─────────────────────────────────────────────────────────── */
:where(.reference-layout) .method-bar { height: 1px; margin-bottom: 40px; background: var(--line-strong); }
:where(.reference-layout) .method-bar span {
    display: block;
    height: 100%;
    background: var(--cobalt);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}
:where(.reference-layout) .method-steps { display: grid; gap: 40px; }
:where(.reference-layout) .method-steps li { display: grid; gap: 12px; align-content: start; }
:where(.reference-layout) .big-num {
    font-family: var(--display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    transition: -webkit-text-stroke-color 0.4s ease, color 0.4s ease;
}
:where(.reference-layout) .method-steps li.is-on .big-num { -webkit-text-stroke-color: var(--cobalt-hi); }
:where(.reference-layout) .method-steps h3 { font-size: 1.5rem; }
:where(.reference-layout) .method-steps p { color: var(--muted); font-size: 0.9375rem; }

@media (min-width: 720px) { :where(.reference-layout) .method-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { :where(.reference-layout) .method-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ── Destaques do blog gerados no build ────────────────────────────── */
:where(.reference-layout) .blog-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { :where(.reference-layout) .blog-grid { grid-template-columns: repeat(3, 1fr); } }

:where(.reference-layout) .insight-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    transition: border-color 0.3s ease;
}
:where(.reference-layout) .insight-card:hover { border-color: var(--line-strong); }
:where(.reference-layout) .insight-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; }
:where(.reference-layout) .insight-meta svg { width: 18px; height: 18px; color: var(--cobalt-hi); }
:where(.reference-layout) .insight-card h3 { margin-top: 24px; font-size: 1.5rem; line-height: 1.15; }
:where(.reference-layout) .insight-card p { color: var(--muted); font-size: 0.9375rem; }
.reference-layout .insight-card a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; color: var(--cobalt-hi); font-weight: 500; }
:where(.reference-layout) .insight-card a svg { width: 16px; height: 16px; }
:where(.reference-layout) .blog-empty { color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
@media (min-width: 960px) {
    :where(.reference-layout) .faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
    :where(.reference-layout) .faq-grid .section-head { display: grid; grid-template-columns: 1fr; position: sticky; top: 140px; }
}
:where(.reference-layout) .faq-list { border-top: 1px solid var(--line); }
:where(.reference-layout) .faq-item { border-bottom: 1px solid var(--line); }
:where(.reference-layout) .faq-button {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 4px;
    border: 0;
    background: none;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    letter-spacing: -0.02em;
    text-align: left;
    cursor: pointer;
}
:where(.reference-layout) .faq-button:hover { color: var(--cobalt-hi); }
:where(.reference-layout) .faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform 0.3s var(--ease); }
:where(.reference-layout) .faq-icon.rotate-45 { transform: rotate(45deg); }
:where(.reference-layout) .faq-answer p { max-width: 62ch; padding: 0 4px 24px; color: var(--muted); }
:where(.reference-layout) .faq-answer:not(.hidden) { animation: fade-up 0.4s var(--ease); }

/* ── CTA final ──────────────────────────────────────────────────────── */
:where(.reference-layout) .final { position: relative; overflow: hidden; padding-block: clamp(120px, 16vw, 220px); isolation: isolate; border-top: 1px solid var(--line); }
:where(.reference-layout) .beams-soft { opacity: 0.6; }
:where(.reference-layout) .final-inner { display: grid; justify-items: start; gap: 28px; }
:where(.reference-layout) .final h2 { max-width: 18ch; font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; }
:where(.reference-layout) .final p { max-width: 50ch; color: var(--muted); font-size: 1.125rem; }

/* ── Rodapé ─────────────────────────────────────────────────────────── */
:where(.reference-layout) .footer { padding-block: 56px 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
:where(.reference-layout) .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
:where(.reference-layout) .footer-logo { width: auto; height: 36px; }
:where(.reference-layout) .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 0.9375rem; }
:where(.reference-layout) .footer-links a:hover, :where(.reference-layout) .footer-base button:hover { color: var(--text); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-contact a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #d7dce7;
    border-radius: 10px;
    background: #fff;
}
.footer-contact a svg { display: block; fill: #354763; }
.footer-contact a:is(:hover, :focus-visible) { background: #eef2ff; border-color: #3655dc; }
.footer-contact a:is(:hover, :focus-visible) svg { fill: #2541c4; }
:where(.reference-layout) .footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}
:where(.reference-layout) .footer-base div { display: flex; gap: 20px; }
:where(.reference-layout) .footer-base button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

/* ── Modais: privacidade e termos ───────────────────────────────────── */
:where(.reference-layout) .modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

:where(.reference-layout) .modal-panel {
    display: flex;
    width: min(100%, 720px);
    max-height: min(84vh, 860px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    transition: transform 0.35s var(--ease);
}
:where(.reference-layout) .modal-panel.scale-95 { transform: translateY(12px) scale(0.98); }
:where(.reference-layout) .modal-panel.scale-100 { transform: none; }

:where(.reference-layout) .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 20px 32px;
    border-bottom: 1px solid var(--line);
}
:where(.reference-layout) .modal-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
:where(.reference-layout) .modal-close {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
:where(.reference-layout) .modal-close:hover { color: var(--text); border-color: var(--line-strong); }
:where(.reference-layout) .modal-close svg { width: 18px; height: 18px; }

:where(.reference-layout) .modal-body { overflow-y: auto; padding: 8px 32px 40px; overscroll-behavior: contain; scrollbar-color: var(--line-strong) transparent; }

/* texto jurídico: medida curta, títulos de seção bem separados do corpo */
:where(.reference-layout) .legal { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
:where(.reference-layout) .legal > * { max-width: 62ch; }
:where(.reference-layout) .legal .legal-date { margin: 16px 0 8px; color: var(--cobalt-hi); font-family: var(--mono); font-size: 0.8125rem; }
:where(.reference-layout) .legal h3 {
    margin: 40px 0 12px;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
:where(.reference-layout) .legal p + p, :where(.reference-layout) .legal p + ul, :where(.reference-layout) .legal ul + p { margin-top: 12px; }
:where(.reference-layout) .legal ul { display: grid; gap: 10px; margin-top: 12px; }
:where(.reference-layout) .legal li { position: relative; padding-left: 20px; }
:where(.reference-layout) .legal li::before { content: ""; position: absolute; top: 0.8em; left: 2px; width: 8px; height: 1px; background: var(--cobalt-hi); }
:where(.reference-layout) .legal strong { color: var(--text); font-weight: 500; }

@media (max-width: 599px) {
    :where(.reference-layout) .modal { padding: 0; place-items: end stretch; }
    :where(.reference-layout) .modal-panel { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
    :where(.reference-layout) .modal-head { padding-left: 20px; }
    :where(.reference-layout) .modal-body { padding: 8px 20px 32px; }
}

/* ── Cookies ────────────────────────────────────────────────────────── */

:where(.reference-layout) .cookie-banner {
    position: fixed;
    z-index: 70;
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    margin-inline: auto;
    padding: 16px 68px 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--muted);
    font-size: 0.875rem;
}
:where(.reference-layout) .cookie-copy { flex: 1 1 270px; }
:where(.reference-layout) .cookie-actions { display: flex; gap: 8px; }
:where(.reference-layout) .cookie-actions button {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: none;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}
:where(.reference-layout) .cookie-actions .cookie-accept { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
:where(.reference-layout) .cookie-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 599px) {
    :where(.reference-layout) .cookie-banner {
        right: 12px;
        left: 12px;
        display: grid;
        gap: 12px;
        padding: 14px;
        line-height: 1.4;
    }
    :where(.reference-layout) .cookie-copy { min-height: 36px; padding-right: 48px; }
    :where(.reference-layout) .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Movimento reduzido ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    :where(.reference-layout) .split-word, :where(.reference-layout) .fade-in { opacity: 1; filter: none; transform: none; animation: none; }
    :where(.reference-layout) .flow-pulse, :where(.reference-layout) .marquee-track, :where(.reference-layout) .card:hover .wires path { animation: none; }
    .reference-layout .reveal { opacity: 1; transform: none; transition: none; }
    :where(.reference-layout) .stage { opacity: 1; }
    :where(.reference-layout) .scrub .w { opacity: 1; }
    :where(.reference-layout) .console-log li { opacity: 1; }
}

/* ══ Blog ═══════════════════════════════════════════════════════════════ */
:where(.reference-layout) .nav-links a[aria-current="page"] { color: var(--text); }

:where(.reference-layout) .page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(160px, 22vw, 240px) 0 clamp(64px, 8vw, 104px);
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}
:where(.reference-layout) .page-hero .wrap { display: grid; gap: 24px; justify-items: start; }
:where(.reference-layout) .page-hero h1 {
    max-width: 14ch;
    font-size: clamp(3rem, 7.6vw, 6.75rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}
:where(.reference-layout) .page-hero p { max-width: 48ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

:where(.reference-layout) .section-tight { padding-block: clamp(56px, 7vw, 96px); }
:where(.reference-layout) .blog-loading { grid-column: 1 / -1; padding: 80px 0; color: var(--muted); text-align: center; }
@media (min-width: 640px) and (max-width: 899px) { :where(.reference-layout) .blog-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Artigo ─────────────────────────────────────────────────────────── */
:where(.reference-layout) .read-progress { position: fixed; z-index: 60; top: 0; right: 0; left: 0; height: 2px; }
:where(.reference-layout) .read-progress span {
    display: block;
    height: 100%;
    background: var(--cobalt);
    transform-origin: left;
    transform: scaleX(var(--read, 0));
}

:where(.reference-layout) .article-page { padding: clamp(120px, 14vw, 160px) 0 var(--section-y); }
:where(.reference-layout) .article-wrap { max-width: 920px; }

:where(.reference-layout) .back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(32px, 5vw, 56px);
    color: var(--muted);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}
:where(.reference-layout) .back-link:hover { color: var(--text); }
:where(.reference-layout) .back-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
:where(.reference-layout) .back-link:hover svg { transform: translateX(-3px); }

:where(.reference-layout) .article-state { display: grid; justify-items: center; gap: 16px; padding: 96px 0; color: var(--muted); text-align: center; }
:where(.reference-layout) .article-state.hidden { display: none; }
:where(.reference-layout) .article-state h1 { color: var(--text); font-size: clamp(2rem, 4vw, 3rem); }
:where(.reference-layout) .spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--cobalt);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

:where(.reference-layout) #article-container:not(.hidden) { animation: fade-up 0.8s var(--ease); }
:where(.reference-layout) .article-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
:where(.reference-layout) .article-head h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }

:where(.reference-layout) .article-cover {
    overflow: hidden;
    margin-bottom: clamp(40px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}
:where(.reference-layout) .article-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
:where(.reference-layout) .article-cover img[src=""] { display: none; }

/* corpo do texto: medida de leitura e ritmo próprio */
:where(.reference-layout) .prose { max-width: 68ch; color: #2c3446; font-size: 1.125rem; line-height: 1.75; }
.reference-layout .prose > * + * { margin-top: 1.25em; }
:where(.reference-layout) .prose h2 {
    margin-top: 2.4em;
    color: var(--text);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.12;
}
:where(.reference-layout) .prose h3 { margin-top: 2em; color: var(--text); font-size: 1.375rem; line-height: 1.2; }
:where(.reference-layout) .prose h2 + *, :where(.reference-layout) .prose h3 + * { margin-top: 0.75em; }
:where(.reference-layout) .prose strong { color: var(--text); font-weight: 600; }
:where(.reference-layout) .prose a { color: var(--cobalt-hi); text-decoration: underline; text-decoration-color: rgba(147, 166, 255, 0.4); text-underline-offset: 3px; }
:where(.reference-layout) .prose a:hover { text-decoration-color: currentColor; }
:where(.reference-layout) .prose ul, :where(.reference-layout) .prose ol { display: grid; gap: 0.6em; }
:where(.reference-layout) .prose ul li { position: relative; padding-left: 24px; }
:where(.reference-layout) .prose ul li::before { content: ""; position: absolute; top: 0.85em; left: 2px; width: 10px; height: 1px; background: var(--cobalt-hi); }
:where(.reference-layout) .prose ol { counter-reset: item; }
:where(.reference-layout) .prose ol li { position: relative; padding-left: 36px; counter-increment: item; }
:where(.reference-layout) .prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; color: var(--cobalt-hi); font-family: var(--mono); font-size: 0.8125rem; line-height: 2.2; }
:where(.reference-layout) .prose blockquote { margin-inline: 0; padding-left: 24px; border-left: 1px solid var(--cobalt); color: var(--text); font-family: var(--display); font-size: 1.375rem; line-height: 1.4; }
:where(.reference-layout) .prose img { border-radius: var(--r-card); }

:where(.reference-layout) .article-cta {
    display: grid;
    gap: 16px;
    justify-items: start;
    margin-top: clamp(64px, 9vw, 112px);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-card);
    background: var(--surface);
}
:where(.reference-layout) .article-cta h2 { max-width: 20ch; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.05; }
:where(.reference-layout) .article-cta p { max-width: 52ch; color: var(--muted); }
:where(.reference-layout) .article-cta .btn { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
    :where(.reference-layout) .spinner { animation-duration: 2.4s; }
    :where(.reference-layout) #article-container:not(.hidden) { animation: none; }
}

/* ══ Diagnóstico interativo ═════════════════════════════════════════════ */
html.diag-open { overflow: hidden; }
:where(.reference-layout) .diag {
    width: min(calc(100% - 24px), 640px);
    max-width: none;
    max-height: min(92vh, 760px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}
:where(.reference-layout) .diag::backdrop { background: rgba(15, 23, 42, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:where(.reference-layout) .diag[open] { animation: fade-up 0.4s var(--ease); }
:where(.reference-layout) .diag-panel { display: flex; max-height: inherit; flex-direction: column; }
:where(.reference-layout) .diag-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px 32px; }
.reference-layout .diag-head .diag-count { margin-top: 6px; color: var(--muted); }
:where(.reference-layout) .diag-progress { height: 2px; margin: 0 32px; background: var(--line); }
:where(.reference-layout) .diag-progress span { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); transition: transform 0.45s var(--ease); }

:where(.reference-layout) .diag-body { display: grid; gap: 20px; overflow-y: auto; padding: 32px; overscroll-behavior: contain; }
:where(.reference-layout) .diag-body h2 { font-size: clamp(1.75rem, 4vw, 2.375rem); line-height: 1.05; letter-spacing: -0.035em; }
.reference-layout .diag-sub { margin-top: -8px; color: var(--muted); }

:where(.reference-layout) .diag-options { display: grid; gap: 8px; }
@media (min-width: 560px) { :where(.reference-layout) .diag-options { grid-template-columns: 1fr 1fr; } }
:where(.reference-layout) .diag-option { position: relative; cursor: pointer; }
:where(.reference-layout) .diag-option input { position: absolute; opacity: 0; }
:where(.reference-layout) .diag-option span {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.35;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
:where(.reference-layout) .diag-option span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 1px solid var(--muted);
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
:where(.reference-layout) .diag-option input[type="radio"] + span::before { border-radius: 50%; }
:where(.reference-layout) .diag-option:hover span { border-color: var(--muted); }
:where(.reference-layout) .diag-option input:checked + span { border-color: var(--cobalt); background: rgba(79, 112, 255, 0.1); }
:where(.reference-layout) .diag-option input:checked + span::before { border-color: var(--cobalt); background: var(--cobalt); box-shadow: inset 0 0 0 3px var(--surface); }
:where(.reference-layout) .diag-option input:focus-visible + span { outline: 2px solid var(--cobalt-hi); outline-offset: 2px; }

:where(.reference-layout) .diag-field { display: grid; gap: 8px; color: var(--muted); font-size: 0.875rem; }
:where(.reference-layout) .diag-field input, :where(.reference-layout) .diag-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
}
:where(.reference-layout) .diag-field input:focus, :where(.reference-layout) .diag-field textarea:focus { outline: none; border-color: var(--cobalt); }

:where(.reference-layout) .diag-summary { display: grid; margin: 0; border-top: 1px solid var(--line); }
:where(.reference-layout) .diag-summary div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
:where(.reference-layout) .diag-summary dt { color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; }
:where(.reference-layout) .diag-summary dd { margin: 0; }

:where(.reference-layout) .diag-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 32px 24px; border-top: 1px solid var(--line); }
:where(.reference-layout) .diag-foot [data-diag-next] { margin-left: auto; }
:where(.reference-layout) .diag-foot .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
:where(.reference-layout) .diag-foot .btn[hidden] { display: none; }

@media (max-width: 559px) {
    :where(.reference-layout) .diag { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
    :where(.reference-layout) .diag-head { padding: 20px 16px 12px 20px; }
    :where(.reference-layout) .diag-progress { margin: 0 20px; }
    :where(.reference-layout) .diag-body { padding: 24px 20px; }
    :where(.reference-layout) .diag-foot { padding: 12px 20px 20px; }
}

/* ══ Demonstração do agente ═════════════════════════════════════════════ */
:where(.reference-layout) .demo-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { :where(.reference-layout) .demo-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
:where(.reference-layout) .demo-head { display: grid; gap: 20px; justify-items: start; }
:where(.reference-layout) .demo-head h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; }
:where(.reference-layout) .demo-head p { max-width: 44ch; color: var(--muted); }

:where(.reference-layout) .demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
:where(.reference-layout) .demo-tabs button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
:where(.reference-layout) .demo-tabs button:hover { color: var(--text); }
:where(.reference-layout) .demo-tabs button[aria-selected="true"] { border-color: var(--cobalt); background: rgba(79, 112, 255, 0.12); color: var(--text); }

:where(.reference-layout) .demo-phone {
    position: relative;
    display: flex;
    width: min(100%, 440px);
    min-height: 540px;
    flex-direction: column;
    justify-self: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--bg);
}
:where(.reference-layout) .demo-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
:where(.reference-layout) .demo-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--cobalt); color: #fff; }
:where(.reference-layout) .demo-avatar svg { width: 18px; height: 18px; }
:where(.reference-layout) .demo-bar strong { display: block; font-size: 0.9375rem; font-weight: 500; }
:where(.reference-layout) .demo-bar small { color: var(--muted); font-size: 0.8125rem; }

:where(.reference-layout) .demo-feed { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
:where(.reference-layout) .demo-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.45; animation: fade-up 0.35s var(--ease); }
:where(.reference-layout) .demo-in { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--surface-2); }
:where(.reference-layout) .demo-out { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--cobalt-deep); color: #fff; }
:where(.reference-layout) .demo-sys { align-self: flex-start; max-width: none; padding: 0 4px; color: var(--cobalt-hi); }
:where(.reference-layout) .demo-sys .mono { font-size: 0.75rem; }
:where(.reference-layout) .demo-event {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 10px;
    max-width: none;
    margin-top: 6px;
    border: 1px solid rgba(255, 128, 104, 0.35);
    border-radius: 10px;
    color: #b8412c;
    font-size: 0.875rem;
}
:where(.reference-layout) .demo-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #ff8068; }
:where(.reference-layout) .demo-typing { display: flex; gap: 4px; padding: 14px; }
:where(.reference-layout) .demo-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); animation: typing 1s ease-in-out infinite; }
:where(.reference-layout) .demo-typing span:nth-child(2) { animation-delay: 0.15s; }
:where(.reference-layout) .demo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

:where(.reference-layout) .demo-replay {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: 0 0 20px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font-size: 0.875rem;
    cursor: pointer;
}
:where(.reference-layout) .demo-replay:hover { color: var(--text); }
:where(.reference-layout) .demo-replay[hidden] { display: none; }
:where(.reference-layout) .demo-replay svg { width: 16px; height: 16px; }

/* ══ Botão flutuante de WhatsApp ════════════════════════════════════════ */
.reference-layout .wa-float {
    position: fixed;
    z-index: 40;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: var(--cobalt);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 12px 28px -12px rgba(37, 65, 196, 0.55);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), background-color 0.2s ease;
}
:where(.reference-layout) .wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
:where(.reference-layout) .wa-float:hover { background: #2948d7; }
:where(.reference-layout) .wa-float svg { width: 20px; height: 20px; }
.reference-layout:has(.cookie-banner) .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 599px) {
    :where(.reference-layout) .wa-float { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
    :where(.reference-layout) .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    :where(.reference-layout) .diag[open], :where(.reference-layout) .demo-msg, :where(.reference-layout) .demo-typing span { animation: none; }
}

/* ══ Páginas de serviço, 404 e links extras ═════════════════════════════ */
:where(.reference-layout) .card-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: var(--cobalt-hi);
    font-weight: 500;
}
:where(.reference-layout) .card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
:where(.reference-layout) .card-link:hover svg { transform: translateX(3px); }
:where(.reference-layout) .card-lg .card-link, :where(.reference-layout) .card > .wires + .card-link { margin-top: 4px; }

:where(.reference-layout) .footer-services { color: var(--text); }

:where(.reference-layout) .page-hero .hero-actions { margin-top: 12px; }
:where(.reference-layout) .page-404 { display: flex; min-height: 100svh; align-items: center; border-bottom: 0; }

:where(.reference-layout) .other-services { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); width: 100%; }
:where(.reference-layout) .other-services .mono { margin-right: 8px; color: var(--muted); }

/* ══ Símbolo da marca girando ═══════════════════════════════════════════ */
:where(.reference-layout) .hero-inner { display: grid; gap: 20px; align-items: center; }
:where(.reference-layout) .hero-symbol {
    position: relative;
    display: grid;
    width: min(32vw, 124px);
    order: -1;
    margin: 0;
    place-items: center;
}
:where(.reference-layout) .hero-symbol img,
:where(.reference-layout) .hero-symbol canvas {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    aspect-ratio: 252 / 440;
}
:where(.reference-layout) .symbol-poster { transition: opacity 0.3s ease; }
:where(.reference-layout) .symbol-glow {
    position: absolute;
    bottom: -6%;
    left: 50%;
    width: 120%;
    height: 14%;
    margin-left: -60%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(54, 85, 220, 0.32), rgba(54, 85, 220, 0.08) 60%, transparent);
    filter: blur(10px);
    pointer-events: none;
}

@media (min-width: 960px) {
    :where(.reference-layout) .hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; }
    :where(.reference-layout) .hero-title { font-size: clamp(3.25rem, 6.2vw, 6.25rem); }
    :where(.reference-layout) .hero-symbol { order: 0; width: min(100%, 300px); justify-self: center; }
}

/* logo do menu: o 8 vira uma faixa de 90 quadros (assets/motion/marca-pequena.webp);
   o resto do logo segue sendo o logo.png, recortado para esconder o 8 parado */
:where(.reference-layout) .nav-logo { position: relative; display: inline-block; line-height: 0; flex-shrink: 0; }
:where(.reference-layout) .nav-logo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 17%;
    background: url("../elumina-motion/marca-pequena.webp") 0 50% / 9000% 100% no-repeat;
}
:where(.reference-layout) .nav-logo img { clip-path: inset(0 0 0 17%); }
:where(.reference-layout) .nav-logo.is-turning::before { animation: brand-turn 2.4s steps(90, jump-none) 1; }
@keyframes brand-turn { to { background-position-x: 100%; } }

@media (prefers-reduced-motion: reduce) {
    :where(.reference-layout) .nav-logo.is-turning::before { animation: none; }
}


/* ══ Tema claro (dez/2026): sombras leves no lugar do contraste do fundo escuro ══ */
:where(.reference-layout) .nav-bar { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25); }
:where(.reference-layout) .cookie-banner, :where(.reference-layout) .modal-panel, :where(.reference-layout) .diag { box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35); }
:where(.reference-layout) .demo-phone { box-shadow: 0 30px 60px -30px rgba(37, 65, 196, 0.3); }
:where(.reference-layout) .demo-in { background: var(--surface-2); color: var(--text); }
:where(.reference-layout) .demo-typing span { background: rgba(255, 255, 255, 0.85); }
:where(.reference-layout) .console { background: var(--bg-2); }
:where(.reference-layout) .flow li.is-live::before { box-shadow: 0 0 0 4px rgba(54, 85, 220, 0.18); }
