@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Figtree:wght@400;500;700;800&family=JetBrains+Mono:wght@400&display=swap");

/* Tipografia: os componentes usam as classes de estilo de tokens.css (label, label-l, kicker, data, heading-*, kpi, body-*).
   Este arquivo cuida de layout, cor e estado. Regra de forma: a marca é quadrada (o ponto, o ez., os símbolos de produto);
   a interface é macia (raios radius-control, radius-card e radius-pill, tons suaves, como no workspace da plataforma EZ Chart). */

/* ---------- vertical da página: troca o acento (inclusive dentro de seções com outro data-theme) ---------- */
:root, [data-theme] { --accent-hover: var(--ink-2); --accent-hover-filter: none; }
[data-vertical="resources"], [data-vertical="resources"] [data-theme] { --accent: var(--resources); --accent-ink: var(--resources-ink); --accent-soft: var(--resources-soft); --on-accent: var(--on-resources); --accent-hover: var(--resources); --accent-hover-filter: brightness(1.06); }
[data-vertical="chart"], [data-vertical="chart"] [data-theme] { --accent: var(--chart); --accent-ink: var(--chart-ink); --accent-soft: var(--chart-soft); --on-accent: var(--on-chart); --accent-hover: var(--chart); --accent-hover-filter: brightness(1.06); }
[data-vertical="engine"], [data-vertical="engine"] [data-theme] { --accent: var(--engine); --accent-ink: var(--engine-ink); --accent-soft: var(--engine-soft); --on-accent: var(--on-engine); --accent-hover: var(--engine); --accent-hover-filter: brightness(1.06); }

/* ---------- base ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--ink); }
[data-theme] { background: var(--bg); color: var(--ink); }
::selection { background: var(--accent-soft); color: var(--ink); }
.kicker { text-transform: uppercase; }
.data, .kpi { font-variant-numeric: tabular-nums; }
.ez-preview { padding: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.ez-preview--col { flex-direction: column; align-items: stretch; }
.ez-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ez-btn:focus-visible, .ez-chip:focus-visible, .ez-header a:focus-visible, .ez-header button:focus-visible, .ez-stack__row:focus-visible, .ez-chart button:focus-visible,
.ez-field__input:focus-visible, .ez-scene__replay:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---------- Logo e ProductMark: desenho da marca (Figtree só aqui) ---------- */
.ez-logo { display: inline-flex; align-items: flex-end; color: var(--brand-ink); text-decoration: none; line-height: 1; }
.ez-logo__symbol { display: block; flex: none; overflow: visible; }
.ez-logo__name { font-family: var(--font-brand); font-weight: 500; color: var(--logo-name); letter-spacing: -0.02em; line-height: 0.72; white-space: nowrap; }
.ez-logo__rule { flex: none; width: 1px; background: var(--brand-ink); align-self: flex-end; }
.ez-logo__descriptor { font-family: var(--font-brand); font-weight: 400; color: var(--brand-ink); white-space: pre-line; letter-spacing: -0.005em; }
.ez-product { display: inline-flex; align-items: center; color: var(--brand-ink); text-decoration: none; }
.ez-product__symbol { display: block; flex: none; }
.ez-product__text { display: flex; flex-direction: column; }
.ez-product__name { font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; color: var(--brand-ink); }
.ez-product__by { font-family: var(--font-sans); font-weight: 500; color: var(--ink-3); line-height: 1.2; white-space: nowrap; }
/* Acacia, marca endossada: nome na serifa editorial do próprio portal (fonte do sistema, sem download). */
.ez-product__name--endorsed { font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; font-weight: 400; letter-spacing: 0; }

/* ---------- Button ---------- */
.ez-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius-control); text-decoration: none; white-space: nowrap; cursor: pointer; background: transparent; color: var(--ink); font-weight: 600;
  transition: filter var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.ez-btn--lg { min-height: 52px; padding: 13px 22px; }
.ez-btn--primary { background: var(--accent); color: var(--on-accent); }
.ez-btn--primary:hover { background: var(--accent-hover); filter: var(--accent-hover-filter); }
.ez-btn--secondary { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-card); }
.ez-btn--secondary:hover { border-color: var(--line-strong); background: var(--bg-alt); }
.ez-btn--ghost { padding-left: 4px; padding-right: 4px; color: var(--accent-ink); }
.ez-btn--ghost:hover { color: var(--ink); }
.ez-btn__arrow { display: inline-block; transition: transform var(--duration-fast) var(--ease-out); }
.ez-btn:hover .ez-btn__arrow { transform: translateX(3px); }
.ez-btn:disabled, .ez-btn[aria-disabled="true"] { background: var(--bg-alt); border-color: var(--line); color: var(--ink-disabled); cursor: not-allowed; filter: none; box-shadow: none; }
.ez-btn--ghost:disabled, .ez-btn--ghost[aria-disabled="true"] { background: transparent; border-color: transparent; }

/* ---------- Chip ---------- */
.ez-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ez-chip { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); white-space: nowrap; cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.ez-chip:hover { border-color: var(--line-strong); color: var(--ink); }
/* Selecionado: fundo tingido, contorno de 1,5px em accent-ink e texto em ink (não depende só da cor). */
.ez-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-ink); box-shadow: inset 0 0 0 0.5px var(--accent-ink); color: var(--ink); font-weight: 600; }
@media (forced-colors: active) { .ez-chip[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; } }

/* ---------- Field ---------- */
.ez-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); max-width: 420px; }
.ez-field__label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.ez-field__input { box-sizing: border-box; min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: 400 15px/22px var(--font-sans); transition: border-color var(--duration-fast) var(--ease-out); }
textarea.ez-field__input { min-height: 112px; resize: vertical; }
.ez-field__input::placeholder { color: var(--ink-3); }
.ez-field__input:hover { border-color: var(--ink-3); }
.ez-field__input[aria-invalid="true"] { border-color: var(--danger); }
.ez-field__hint { font: 400 13px/20px var(--font-sans); color: var(--ink-3); }
.ez-field__error { display: flex; align-items: center; gap: 6px; font: 500 13px/20px var(--font-sans); color: var(--danger); }

/* ---------- Tag ---------- */
.ez-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font: 500 12.5px/18px var(--font-sans); background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.ez-tag__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink-3); }
.ez-tag--resources { background: var(--resources-soft); color: var(--resources-ink); } .ez-tag--resources .ez-tag__dot { background: var(--resources); }
.ez-tag--chart { background: var(--chart-soft); color: var(--chart-ink); } .ez-tag--chart .ez-tag__dot { background: var(--chart); }
.ez-tag--engine { background: var(--engine-soft); color: var(--engine-ink); } .ez-tag--engine .ez-tag__dot { background: var(--engine-ink); }
.ez-tag--success { background: var(--success-soft); color: var(--success); } .ez-tag--success .ez-tag__dot { background: var(--success); }
.ez-tag--warning { background: var(--warning-soft); color: var(--warning); } .ez-tag--warning .ez-tag__dot { background: var(--warning); }
.ez-tag--danger { background: var(--danger-soft); color: var(--danger); } .ez-tag--danger .ez-tag__dot { background: var(--danger); }
.ez-tag__glyph { font-size: 10px; line-height: 1; }

/* ---------- SiteHeader ---------- */
.ez-header { font-family: var(--font-sans); background: var(--bg); color: var(--ink); }
.ez-header--sticky { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.ez-groupbar { display: flex; align-items: center; gap: var(--space-6); min-height: 36px; padding: 0 var(--layout-gutter); background: var(--bg-alt); color: var(--ink-3); font-size: 13px; }
.ez-groupbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; padding: 8px 0; }
.ez-groupbar a:hover { color: var(--ink); }
.ez-groupbar__dot { width: 8px; height: 8px; flex: none; }
.ez-groupbar__home { margin-right: auto; }
.ez-groupbar__verticals { display: flex; gap: var(--space-6); }
.ez-header__main { display: flex; align-items: center; gap: var(--space-8); min-height: 72px; padding: 0 var(--layout-gutter); border-bottom: 1px solid var(--line); }
.ez-header__nav { display: flex; gap: var(--space-2); margin-left: auto; }
.ez-header__nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-control); transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.ez-header__nav a:hover { background: var(--bg-alt); color: var(--ink); }
/* Página atual: fundo tingido e peso 600 (não depende só da cor). */
.ez-header__nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.ez-groupbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.ez-header__actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.ez-header__nav + .ez-header__actions { margin-left: 0; }
.ez-header__lang { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font: 600 12px/16px var(--font-sans); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.ez-header__lang:hover { border-color: var(--line-strong); color: var(--ink); }
@media (max-width: 720px) {
  .ez-header__nav, .ez-header__lang { display: none; }
  .ez-header__main { gap: var(--space-3); }
  .ez-header__actions, .ez-header__nav + .ez-header__actions { margin-left: auto; }
  .ez-groupbar, .ez-groupbar__verticals { gap: var(--space-4); }
}

/* ---------- SectionHeading ---------- */
.ez-section-heading { display: flex; flex-direction: column; gap: var(--space-4); max-width: 900px; font-family: var(--font-sans); }
.ez-section-heading__kicker { color: var(--accent-ink); }
.ez-section-heading__title { margin: 0; color: var(--ink); text-wrap: balance; }
.ez-section-heading__lead { margin: 0; max-width: var(--layout-measure); color: var(--ink-2); }

/* ---------- VerticalStack: as camadas são cards macios; o quadrado de cada vertical é o ponto da marca ---------- */
.ez-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-sans); }
.ez-stack__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--space-6); align-items: center; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.ez-stack__row:hover { background: var(--accent-soft); border-color: var(--accent-ink); }
.ez-stack__dot { width: 40px; height: 40px; background: var(--accent); transition: transform var(--duration-fast) var(--ease-out); }
.ez-stack__row:hover .ez-stack__dot { transform: scale(1.1); }
.ez-stack__name { margin: 0; }
.ez-stack__line { margin: 4px 0 0; color: var(--ink-2); }
.ez-stack__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--ink-3); }
.ez-stack__go { color: var(--accent-ink); font-weight: 600; }
/* Entrada de baixo para cima: Resources (base) primeiro, Engine (topo) por último. */
@media (prefers-reduced-motion: no-preference) {
  .ez-stack--animate .ez-stack__row { animation: ez-rise var(--duration-reveal) var(--ease-out) both; }
  .ez-stack--animate li:nth-last-child(2) .ez-stack__row { animation-delay: 120ms; }
  .ez-stack--animate li:nth-last-child(3) .ez-stack__row { animation-delay: 240ms; }
}
@keyframes ez-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .ez-stack__row { grid-template-columns: 32px minmax(0, 1fr); padding: var(--space-4); } .ez-stack__dot { width: 24px; height: 24px; } .ez-stack__meta { grid-column: 2; align-items: flex-start; } }

/* ---------- StatTile ---------- */
.ez-stat { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-2); min-width: 220px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); font-family: var(--font-sans); }
.ez-stat--blue { background: var(--tint-blue); border-color: transparent; }
.ez-stat--violet { background: var(--tint-violet); border-color: transparent; }
.ez-stat--amber { background: var(--tint-amber); border-color: transparent; }
.ez-stat--green { background: var(--tint-green); border-color: transparent; }
.ez-stat__label { color: var(--ink-2); }
.ez-stat__value { margin: 4px 0 0; color: var(--ink); }
.ez-stat__value--missing { color: var(--ink-3); min-height: 40px; display: flex; align-items: center; }
.ez-stat__delta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13px/20px var(--font-sans); }
.ez-stat__delta--good { color: var(--success); } .ez-stat__delta--bad { color: var(--danger); } .ez-stat__delta--flat { color: var(--ink-2); }
.ez-stat__verdict { padding: 0 8px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 35%, transparent); font-size: 12px; line-height: 20px; }
.ez-stat__period { font-weight: 400; color: var(--ink-3); }
.ez-stat__spark { display: block; margin-top: var(--space-2); }

/* ---------- BarChart ---------- */
/* width 100% e min-width 0: o gráfico mede o contêiner, não o próprio SVG (senão ele nunca encolhe numa coluna estreita). */
.ez-chart { position: relative; width: 100%; min-width: 0; font-family: var(--font-sans); color: var(--ink); }
.ez-chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.ez-chart__title { margin: 0; }
.ez-chart__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.ez-chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.ez-chart__key { width: 10px; height: 10px; flex: none; border-radius: var(--radius-data); }
.ez-chart svg { display: block; overflow: visible; }
.ez-chart__tick { fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ez-chart__bar { transition: opacity var(--duration-instant) linear; }
.ez-chart--hovering .ez-chart__bar { opacity: 0.45; }
.ez-chart--hovering .ez-chart__bar.is-active { opacity: 1; }
.ez-chart__tip { position: absolute; pointer-events: none; min-width: 140px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--surface); box-shadow: var(--shadow-overlay); font: 400 13px/20px var(--font-sans); color: var(--ink); transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; }
.ez-chart__tip strong { display: block; font-weight: 600; }
.ez-chart__tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ez-chart__empty { margin: 0; padding: var(--space-8) 0; color: var(--ink-3); border-top: 1px solid var(--line); }
.ez-chart__toggle { margin-top: var(--space-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ez-chart__toggle:hover { border-color: var(--line-strong); color: var(--ink); }
.ez-chart table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; }
.ez-chart th, .ez-chart td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); text-align: right; }
.ez-chart th:first-child, .ez-chart td:first-child { text-align: left; }
.ez-chart thead th { font-weight: 500; color: var(--ink-2); }
.ez-chart tbody th { font-weight: 500; color: var(--ink); }

/* ---------- Cenas do site: StackIntro e VerticalScene ---------- */
.ez-scene { margin: 0; width: 100%; container-type: inline-size; font-family: var(--font-sans); color: var(--ink); }
.ez-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.ez-scene--idle .ez-scene__in { opacity: 0; }
.ez-scene--idle .ez-scene__flow { stroke-dashoffset: 1; }
.ez-scene--idle .ez-scene__cover { opacity: 1; }
.ez-scene__out { opacity: 0; }
.ez-scene__shift, .ez-scene__token { transform-box: fill-box; transform-origin: center; }
.ez-scene__replay { margin-top: var(--space-3); min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ez-scene__replay:hover { border-color: var(--line-strong); color: var(--ink); }
.ez-scene__replay[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.ez-scene__caption { margin: var(--space-3) 0 0; color: var(--ink-2); }
.ez-scene__wire { fill: none; stroke: var(--line); stroke-width: 2; }
.ez-scene__flow { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ez-scene__pill { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.ez-scene__pill--accent { fill: var(--accent-soft); stroke: var(--accent-ink); }
.ez-scene__text { font: 500 15px var(--font-sans); fill: var(--ink); }
.ez-scene__text--strong { font-weight: 600; }
.ez-scene__kicker { font: 600 12px var(--font-sans); letter-spacing: 0.08em; fill: var(--ink-3); }
.ez-scene__ring { fill: none; stroke: var(--accent-ink); stroke-width: 2; rx: 6px; transform-box: fill-box; transform-origin: center; }
.ez-scene__cover { fill: var(--line); }
.ez-scene__core { fill: var(--accent); stroke: var(--accent-ink); stroke-width: 2; }
.ez-scene__board { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ez-scene__board-on { fill: none; stroke: var(--accent-ink); stroke-width: 2; }
.ez-scene__slot { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ez-scene__person-bg { fill: var(--accent-soft); stroke: var(--accent-ink); stroke-width: 1.5; }
.ez-scene__person { fill: var(--accent-ink); }
.ez-scene__mod { fill: color-mix(in srgb, var(--accent) 36%, var(--bg)); }
.ez-scene--idle .ez-scene__mod { fill: var(--line); }
.ez-scene__pain { fill: none; stroke: var(--danger); stroke-width: 1.6; stroke-dasharray: 4 4; }
.ez-scene__measure { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-dasharray: 1; }
.ez-scene__piece { fill: var(--accent); }
.ez-scene__tick { fill: none; stroke: var(--on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ez-scene__ripple { fill: none; stroke: var(--accent-ink); stroke-width: 2.5; }
.ez-scene__note { font: 600 13px var(--font-sans); fill: var(--ink); }
.ez-scene__note--muted { fill: var(--ink-3); }
.ez-scene__note--accent { fill: var(--accent-ink); font-size: 11.5px; }
.ez-scene__note--small { fill: var(--ink-3); font-weight: 500; font-size: 11px; }
.ez-scene__axis { stroke: var(--line-strong); stroke-width: 1; }
.ez-scene__bar { fill: color-mix(in srgb, var(--accent) 32%, var(--bg)); }
.ez-scene__bar--hi { fill: var(--accent); }
.ez-scene__tagtext { font: 700 12.5px var(--font-sans); fill: var(--on-accent); }
.ez-scene__gear { fill: var(--accent-soft); stroke: var(--accent-ink); stroke-width: 2; stroke-linejoin: round; }
.ez-scene--idle .ez-scene__gear { fill: var(--surface); stroke: var(--line-strong); }
.ez-scene__gear--core { fill: var(--accent); }
.ez-scene__hubhole { fill: var(--bg); stroke: var(--accent-ink); stroke-width: 2; }
/* Cenas das verticais desenhadas (VerticalScene): a paleta da página de estudos aprovada por Patrick em 23/11/2026
   (design-system/exploracoes/cenas-verticais.html). Os neutros são os tokens; estas cores valem só dentro das cenas. */
:root, [data-theme="light"] { --sc-idle: #c5ccd9; --sc-pain: #d92d3a; --sc-resources: #ef5b18; --sc-resources-ink: #b23c06; --sc-resources-soft: #fde6da; --sc-chart: #2d5bff; --sc-chart-ink: #1f44d6; --sc-chart-soft: #c9d5ff; --sc-engine: #a6f236; --sc-engine-ink: #3f6b00; --sc-engine-soft: #e9f9cf; }
[data-theme="dark"] { --sc-idle: #3a4760; --sc-pain: #ff6b6b; --sc-resources: #ff7a3d; --sc-resources-ink: #ff9a6a; --sc-resources-soft: #3a2418; --sc-chart: #5b7fff; --sc-chart-ink: #9db2ff; --sc-chart-soft: #26356b; --sc-engine: #a6f236; --sc-engine-ink: #b9f560; --sc-engine-soft: #27351a; }
.ez-scene[data-vertical="resources"] { --sc-acc: var(--sc-resources); --sc-acc-ink: var(--sc-resources-ink); --sc-acc-soft: var(--sc-resources-soft); }
.ez-scene[data-vertical="chart"] { --sc-acc: var(--sc-chart); --sc-acc-ink: var(--sc-chart-ink); --sc-acc-soft: var(--sc-chart-soft); }
.ez-scene[data-vertical="engine"] { --sc-acc: var(--sc-engine); --sc-acc-ink: var(--sc-engine-ink); --sc-acc-soft: var(--sc-engine-soft); }
.ez-scene--drawn svg * { transform-box: fill-box; transform-origin: center; }
.ez-scene--drawn text { font-family: var(--font-sans); }
.ez-scene__replay + .ez-scene__replay { margin-left: var(--space-2); }
@container (max-width: 520px) { .ez-scene__txt--cap { font-size: 17px; } .ez-scene__txt--sm { font-size: 14px; } .ez-scene__txt--tag { font-size: 15px; } }
.ez-intro__grid { stroke: var(--line); stroke-width: 1.5; }
.ez-intro__route { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ez-intro__route--spoke { stroke-width: 2; stroke: var(--ink-3); }
.ez-intro__node { transform-box: fill-box; transform-origin: center; }
.ez-intro__dot { fill: var(--line-strong); }
.ez-intro__dot--lit { fill: var(--accent-ink); }
.ez-intro__label { font: 500 15px var(--font-sans); fill: var(--ink-2); }
.ez-intro__head { transform-box: fill-box; transform-origin: center; }
.ez-intro__desc text { font: 500 26px var(--font-sans); fill: var(--logo-name); }
.ez-intro__tagline { font: 500 20px var(--font-sans); fill: var(--ink-2); }
/* Cena estreita (celular, painel do login): texto maior em unidades da cena, e os rótulos do meio da montagem trocam de lado para não encostar. */
@container (max-width: 520px) {
  .ez-scene__text, .ez-intro__label, .ez-intro__tagline { font-size: 22px; }
  .ez-scene__kicker { font-size: 18px; }
  .ez-intro__label--down { transform: translateY(54px); }
  .ez-intro__label--up { transform: translateY(-54px); }
}

/* ---------- movimento reduzido: hovers sem deslocamento ---------- */
@media (prefers-reduced-motion: reduce) {
  .ez-btn__arrow, .ez-stack__dot { transition: none; }
  .ez-btn:hover .ez-btn__arrow, .ez-stack__row:hover .ez-stack__dot { transform: none; }
}

/* ---------- Telas de produto: AppShell, PageHeader, EmptyState, AuthLayout ----------
   Referência de layout e de forma: o workspace da plataforma EZ Chart (nov/2026). */
.ez-app { position: relative; display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; font-family: var(--font-sans); background: var(--bg); color: var(--ink); }
.ez-app a:focus-visible, .ez-app button:focus-visible, .ez-app input:focus-visible, .ez-auth a:focus-visible, .ez-auth button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.ez-app__skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--radius-control); background: var(--ink); color: var(--on-ink); text-decoration: none; }
.ez-app__skip:focus { left: 8px; }
.ez-app__side { position: sticky; top: 0; box-sizing: border-box; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-6); padding: 28px 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.ez-app__brand { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-2); }
.ez-app__close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font: 400 22px/1 var(--font-sans); cursor: pointer; }
.ez-app__org { display: flex; align-items: center; gap: var(--space-3); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.ez-app__org-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-control); background: var(--accent-soft); color: var(--accent-ink); font: 700 14px/1 var(--font-sans); }
.ez-app__org-text { display: flex; flex-direction: column; min-width: 0; }
.ez-app__org-label { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.ez-app__org-name { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-app__nav { display: flex; flex-direction: column; gap: var(--space-6); }
.ez-app__group-label { margin: 0 0 var(--space-2); padding: 0 var(--space-2); color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ez-app__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ez-app__link { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 10px; border-radius: var(--radius-control); color: var(--ink-2); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.ez-app__link:hover { background: var(--bg-alt); color: var(--ink); }
/* Página atual: fundo tingido, peso 600, ícone e texto em accent-ink e um ponto redondo (não depende só da cor). */
.ez-app__link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ez-app__link[aria-current="page"]::after { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent-ink); }
.ez-app__icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ez-app__icon svg { width: 18px; height: 18px; }
.ez-app__link-text { flex: 1; min-width: 0; }
.ez-app__badge { min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 20px; text-align: center; }
.ez-app__side-theme { display: none; margin-top: auto; }
.ez-app__side-search { display: none; }
.ez-app__scrim { display: none; }
/* Tablet: a barra lateral aparece e o seletor de tema vai para ela, para a barra superior caber. */
@media (min-width: 721px) and (max-width: 1024px) { .ez-app__tools .ez-themes { display: none; } .ez-app__side-theme { display: block; } }
.ez-app__body { display: flex; flex-direction: column; min-width: 0; }
.ez-app__top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: var(--space-4); min-height: 64px; padding: 0 var(--space-8); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.ez-app__menu { display: none; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); cursor: pointer; }
.ez-app__menu-glyph { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.ez-app__crumbs { min-width: 0; font-size: 13px; }
.ez-app__crumbs ol { list-style: none; display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0; color: var(--ink-3); white-space: nowrap; }
.ez-app__crumbs li { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ez-app__crumbs li + li::before { content: "›"; margin-right: var(--space-2); color: var(--ink-3); }
.ez-app__crumbs a { color: var(--ink-3); text-decoration: none; }
.ez-app__crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ez-app__crumbs a:focus-visible { outline-offset: -2px; }
.ez-app__crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.ez-app__tools { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.ez-app__search-input { box-sizing: border-box; width: clamp(140px, 18vw, 260px); min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
.ez-app__search-input::placeholder { color: var(--ink-3); }
.ez-app__search-input:hover { border-color: var(--line-strong); }
.ez-themes { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg); }
.ez-themes__btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-3); cursor: pointer; }
.ez-themes__btn:hover { color: var(--ink); }
.ez-themes__btn[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.ez-app__avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ez-app__main { flex: 1; box-sizing: border-box; width: 100%; max-width: var(--bp-wide); padding: 36px 34px 44px; display: flex; flex-direction: column; gap: var(--space-6); outline: none; }
.ez-app__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding: var(--space-4) 34px; color: var(--ink-3); font-size: 13px; }
.ez-app__foot a { color: inherit; }
@media (max-width: 720px) {
  .ez-app { grid-template-columns: minmax(0, 1fr); }
  .ez-app__side { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(300px, 86vw); height: 100%; transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow-overlay); border-radius: 0 var(--radius-card) var(--radius-card) 0; }
  .ez-app__side--open { transform: none; visibility: visible; }
  .ez-app__scrim { display: block; position: fixed; inset: 0; z-index: 15; background: var(--overlay); }
  .ez-app__menu { display: inline-grid; }
  .ez-app__top { gap: var(--space-3); padding: 0 var(--space-4); }
  .ez-app__search, .ez-app__crumbs li:not(:last-child), .ez-app__tools .ez-themes { display: none; }
  .ez-app__side-theme { display: block; }
  .ez-app__side-search { display: block; }
  .ez-app__side-search .ez-app__search-input { width: 100%; }
  .ez-app__crumbs li + li::before { content: none; }
  .ez-app__main { padding: var(--space-6) var(--space-4); }
  .ez-app__foot { padding: var(--space-4); }
}
/* Abrir: visível na hora (o foco entra na navegação). Fechar: some depois do deslize. */
@media (prefers-reduced-motion: no-preference) {
  .ez-app__side { transition: transform var(--duration-base) var(--ease-out), visibility 0s linear var(--duration-base); }
  .ez-app__side--open { transition: transform var(--duration-base) var(--ease-out), visibility 0s; }
}

.ez-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-8); font-family: var(--font-sans); }
.ez-page-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 72ch; }
.ez-page-head__kicker { color: var(--accent-ink); }
.ez-page-head__title { margin: 0; color: var(--ink); text-wrap: balance; }
.ez-page-head__lead { margin: 0; color: var(--ink-2); }
.ez-page-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.ez-page-head__meta { color: var(--ink-3); }
.ez-page-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 720px) { .ez-page-head__side { align-items: flex-start; } }

.ez-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: 40px var(--space-6) 44px; text-align: center; font-family: var(--font-sans); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.ez-empty__mark { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-2); border-radius: var(--radius-card); background: var(--accent-soft); color: var(--accent-ink); }
.ez-empty__dot { width: 12px; height: 12px; background: var(--accent); }
.ez-empty__title { margin: 0; color: var(--ink); }
.ez-empty__text { margin: 0; max-width: 46ch; color: var(--ink-2); }
.ez-empty .ez-btn { margin-top: var(--space-3); }

.ez-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; font-family: var(--font-sans); background: var(--bg); color: var(--ink); }
.ez-auth__form { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-8) clamp(24px, 6vw, 96px); }
.ez-auth__box { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: 380px; margin: auto 0; }
.ez-auth__title { margin: 0; color: var(--ink); }
.ez-auth__lead { margin: 0 0 var(--space-2); color: var(--ink-2); }
.ez-auth__note { margin: 0; color: var(--ink-3); }
.ez-auth__note a { color: inherit; }
.ez-auth__aside { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); margin: 16px; padding: var(--space-14) clamp(24px, 5vw, 80px); border-radius: var(--radius-card); background: var(--accent-soft); color: var(--ink); }
.ez-auth__kicker { color: var(--accent-ink); }
.ez-auth__aside-title { margin: 0; max-width: 14ch; text-wrap: balance; }
.ez-auth__aside-text { margin: 0; max-width: 44ch; color: var(--ink-2); }
.ez-auth__aside-closing { margin: var(--space-6) 0 0; color: var(--ink-3); }
@media (max-width: 720px) { .ez-auth { grid-template-columns: minmax(0, 1fr); } .ez-auth__aside { display: none; } }

@container (max-width: 520px) { .ez-scene__note { font-size: 17px; } .ez-scene__note--accent, .ez-scene__note--small { font-size: 14px; } .ez-scene__tagtext { font-size: 15px; } }
