/*
  CSS da página inicial da Tenanci: só o que fica dentro de um visual e o kit não tem (a janela do hero,
  a cena 3D, o painel, o simulador de teste A/B e as telas pequenas dos cards), mais a troca de idioma.
  Tudo o resto é do sistema (assets/system.css, ui/cards.css, layout/layout.css).
*/

/* ---------------------------------------------------------------- logo e idioma */
.nav__logo img, .footer .nav__logo img { display: block; height: 28px; width: auto; }
.tn-lang { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: 999px; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.tn-lang:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- alturas dos painéis, uma por grupo */
#marca .panel { --p-h: 336px; }
#seguranca .panel { --p-h: 300px; }
@media (max-width: 639px) { #marca .panel, #seguranca .panel { --p-h: 220px; } }

/* ---------------------------------------------------------------- telas do produto (dentro de .ui) */
.tn-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--u-fill-2); color: var(--u-text-2); }
.tn-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.tn-chip[data-st="live"] { background: color-mix(in oklab, #1f9d63 14%, var(--u-bg)); color: #14744a; }
.tn-chip[data-st="live"]::before { opacity: 1; }
.tn-host { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: -.01em; }
.tn-fav { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--u-fill-2); font-size: 12px; font-weight: 600; color: var(--u-ink); flex: none; }
.tn-fav[data-tone="1"] { background: #fde7c7; } .tn-fav[data-tone="2"] { background: #d7ecd9; } .tn-fav[data-tone="3"] { background: #d9e6f7; }
.tn-fav[data-tone="4"] { background: #f7dcd9; } .tn-fav[data-tone="5"] { background: #e6e3da; }
.tn-btn { display: inline-flex; align-items: center; height: 30px; font-size: 13px; font-weight: 500; color: var(--u-accent-text); white-space: nowrap; }
.tn-btn::after { content: "\2192"; margin-left: 6px; }
.tn-btn--quiet { color: var(--u-muted); } .tn-btn--quiet::after { content: none; }

/* a janela do hero: a lista de domínios do projeto e o domínio que acabou de entrar no ar */
.tn-win { background: var(--u-bg); color: var(--u-ink); border-radius: 12px; overflow: hidden; font: 400 13px/1.4 var(--font-text); box-shadow: var(--u-shadow); text-align: left; }
.tn-win__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); }
.tn-win__bar b { font-weight: 500; color: var(--u-ink); }
.tn-win__dots { display: flex; gap: 6px; } .tn-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--u-fill-3); }
.tn-win__bar .sp { flex: 1; }
.tn-win__body { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 420px; }
.tn-win__list { border-right: 1px solid var(--u-line); padding: 10px; display: grid; align-content: start; gap: 2px; }
.tn-win__list > p { display: flex; justify-content: space-between; padding: 4px 8px 8px; font-size: 12px; color: var(--u-muted); }
.tn-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; }
.tn-row.is-on { background: var(--u-fill-2); }
.tn-row .tn-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-win__open { padding: 14px 18px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.tn-win__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tn-win__head .tn-host { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-steps { display: grid; gap: 2px; }
.tn-step { display: flex; align-items: center; gap: 10px; min-height: 30px; color: var(--u-text-2); }
.tn-step time { margin-left: auto; font-size: 12px; color: var(--u-muted); font-variant-numeric: tabular-nums; }
.tn-tick { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--u-ink); color: var(--u-bg); flex: none; }
.tn-tick svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tn-step:last-child .tn-tick { background: var(--u-accent); color: var(--u-accent-ink); }
.tn-step:last-child { color: var(--u-ink); font-weight: 500; }
.tn-acts { display: flex; gap: 8px; margin-top: 2px; }
@media (max-width: 767px) { .tn-win__body { grid-template-columns: minmax(0, 1fr); } .tn-win__list { display: none; } .tn-win__bar .sp ~ span { display: none; } .tn-step time { display: none; } }

/* ---------------------------------------------------------------- a cena 3D de "Como funciona" */
.tn-scene { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 380px; isolation: isolate;
  background: radial-gradient(60% 80% at 50% 50%, #2a2350 0%, #17142b 62%); color: #fff; }
.tn-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tn-scene__labels { position: absolute; inset: 0; pointer-events: none; font: 400 12px/1.3 var(--font-mono); }
.tn-tag, .tn-scene__at { position: absolute; left: 0; top: 0; will-change: transform; }
.tn-tag { display: grid; grid-template-columns: auto; justify-items: end; gap: 1px; margin: -15px 0 0 -22px; translate: -100% 0; white-space: nowrap; }
.tn-tag i { display: none; }
.tn-tag b { font-weight: 500; color: #fff; }
.tn-tag em { font-style: normal; font-size: 11px; color: rgb(255 255 255 / .62); }
.tn-tag[data-state="live"] em { color: #b9f2d3; }
.tn-scene__at { display: grid; justify-items: center; gap: 2px; text-align: center; translate: -50% 0; white-space: nowrap; }
.tn-scene__at b { font: 500 14px/1.3 var(--font-text); color: #fff; }
.tn-scene__at span { font-size: 11px; color: rgb(255 255 255 / .66); }
.tn-scene__at[data-scene-at="edge"] { margin-top: 84px; }
.tn-scene__at[data-scene-at="app"] { margin-top: 62px; }
[data-scene-flow="down"] .tn-tag { justify-items: center; translate: -50% 0; margin: -44px 0 0; }
[data-scene-flow="down"] .tn-tag b { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
[data-scene-flow="down"] .tn-scene__at[data-scene-at="edge"] { margin-top: 44px; }
[data-scene-flow="down"] .tn-scene__at[data-scene-at="app"] { margin-top: 36px; }
.tn-scene__counts { position: absolute; right: var(--s-6); top: var(--s-5); display: flex; gap: var(--s-6); margin: 0; }
.tn-scene__counts div { display: grid; gap: 2px; }
.tn-scene__counts dt { font-size: 13px; color: rgb(255 255 255 / .66); }
.tn-scene__counts dd { margin: 0; font: 500 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tn-scene__ctl { position: absolute; left: var(--s-5); bottom: var(--s-5); right: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: center; }
.tn-scene__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .06); color: #fff; font: 500 14px/1 var(--font-text); cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); }
.tn-scene__btn:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .5); }
.tn-scene__btn:active { transform: scale(.97); }
.tn-scene__btn:disabled { opacity: .45; cursor: default; }
.tn-scene__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tn-scene__btn--icon { position: absolute; right: 0; bottom: 0; width: 40px; padding: 0; justify-content: center; }
.tn-scene__btn[aria-pressed="true"] .i-pause, .tn-scene__btn[aria-pressed="false"] .i-play { display: none; }
/* sem WebGL (ou antes de a cena montar): o mesmo desenho, parado, em CSS */
.tn-scene__still { position: absolute; inset: 88px var(--s-6) 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-6); font: 400 12px/1.4 var(--font-mono); }
.tn-scene__still ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; justify-items: start; }
.tn-scene__still li::after { content: " \2192"; opacity: .5; }
.tn-scene__still > b { display: grid; place-items: center; width: 132px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); background: radial-gradient(#6e4ff7 0 38%, transparent 39%); font: 500 14px/1 var(--font-text); }
.tn-scene__still > span { justify-self: end; padding: 18px 20px; border: 1px solid rgb(255 255 255 / .6); border-radius: 8px; }
[data-scene-on] .tn-scene__still { display: none; }
.tn-scene:not([data-scene-on]) :is(.tn-scene__labels, .tn-scene__btn--icon) { display: none; }
@media (max-width: 639px) {
  .tn-scene { min-height: 440px; }
  .tn-scene__counts { gap: var(--s-4); right: auto; left: var(--s-4); top: var(--s-4); } .tn-scene__counts dd { font-size: 18px; } .tn-scene__counts dt { font-size: 12px; }
  .tn-scene__ctl { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); } .tn-scene__btn { padding: 0 12px; font-size: 13px; }
  .tn-scene__still { grid-template-columns: 1fr; justify-items: center; inset: 96px var(--s-4) 80px; } .tn-scene__still ul { display: none; } .tn-scene__still > span { justify-self: center; }
}

/* ---------------------------------------------------------------- o painel (app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.tn-dom { display: grid; align-content: start; gap: 16px; padding: 18px 20px; font: 400 13px/1.4 var(--font-text); color: var(--u-ink); background: var(--u-bg); }
.tn-dom__head { display: flex; align-items: center; gap: 10px; }
.tn-dom__head .tn-host { font-size: 16px; font-weight: 500; }
.tn-dom__head .sp { flex: 1; }
.tn-dom__tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; }
.tn-dom__tabs span { padding-bottom: 9px; border-bottom: 2px solid transparent; }
.tn-dom__tabs .is-on { color: var(--u-ink); font-weight: 500; border-color: var(--u-accent); }
.tn-dom__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.tn-kpi { display: grid; align-content: start; gap: 4px; padding: 14px; border: 1px solid var(--u-line-2); border-radius: 10px; min-width: 0; }
.tn-kpi > span { color: var(--u-muted); font-size: 12px; }
.tn-kpi > strong { font: 500 26px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tn-kpi > small { font-size: 12px; color: var(--u-text-2); }
.tn-kpi--wide { grid-row: span 2; }
.tn-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 96px; margin-top: 10px; }
.tn-bars i { display: block; border-radius: 4px 4px 0 0; background: var(--u-fill-3); height: calc(var(--v) * 1%); }
.tn-bars i:last-of-type { background: var(--u-accent); }
.tn-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; font-size: 11px; color: var(--u-muted); text-align: center; }
.tn-table { display: grid; gap: 0; }
.tn-table > p { font-weight: 500; padding-bottom: 6px; }
.tn-table div { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; padding: 8px 0; border-top: 1px solid var(--u-line); }
.tn-table div span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--u-text-2); }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .tn-dom { padding: 14px; } .tn-dom__grid { grid-template-columns: minmax(0, 1fr); } .tn-kpi--wide { grid-row: auto; }
  .tn-dom__head .tn-btn { display: none; }
}

/* ---------------------------------------------------------------- o simulador de teste A/B */
.tn-ab { display: grid; align-content: start; gap: 16px; padding: 24px; background: var(--u-bg); color: var(--u-ink); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); font: 400 13px/1.4 var(--font-text); }
.tn-ab__head { display: flex; align-items: center; gap: 10px; }
.tn-ab__head b { font-size: 15px; font-weight: 500; }
.tn-ab__head .sp { flex: 1; }
.tn-ab__flow { position: relative; height: clamp(132px, 22vh, 220px); border-radius: 10px; background: var(--u-fill); overflow: hidden; }
.tn-ab__flow canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tn-ab__flow span { position: absolute; right: 12px; font: 500 12px/1 var(--font-mono); color: var(--u-muted); }
.tn-ab__flow span:nth-of-type(1) { top: 22%; } .tn-ab__flow span:nth-of-type(2) { top: 72%; }
.tn-ab__vers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-ver { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--u-line-2); border-radius: 10px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.tn-ver.is-win { border-color: var(--u-accent); box-shadow: inset 0 0 0 1px var(--u-accent); }
.tn-ver__name { display: grid; gap: 1px; }
.tn-ver__name b { font-weight: 500; }
.tn-ver__name span { color: var(--u-muted); font-size: 12px; }
.tn-ver dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: 0; }
.tn-ver dt { font-size: 12px; color: var(--u-muted); }
.tn-ver dd { margin: 0; font: 500 18px/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tn-ab__chance { display: grid; gap: 6px; }
.tn-ab__chance p { display: flex; justify-content: space-between; gap: 12px; }
.tn-ab__chance output { font-weight: 500; font-variant-numeric: tabular-nums; }
.tn-meter { position: relative; height: 8px; border-radius: 99px; background: var(--u-fill-2); }
.tn-meter i { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 99px; background: var(--u-ink); transition: width .35s var(--ease), background-color .3s var(--ease); }
.tn-meter::after { content: ""; position: absolute; left: 95%; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--u-accent); }
.tn-ab.is-done .tn-meter i { background: var(--u-accent); }
.tn-ab__note { min-height: 20px; color: var(--u-muted); }
.tn-ab.is-done .tn-ab__note { color: var(--u-ink); font-weight: 500; }
.tn-ab__ctl { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--u-line); }
.tn-ab__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.tn-ab__row label { color: var(--u-ink); font-size: 13px; cursor: pointer; }
.tn-ab__ctl output { font-weight: 500; font-variant-numeric: tabular-nums; }
.tn-ab__ctl input[type="range"] { grid-column: 1 / -1; width: 100%; height: 20px; margin: 0; accent-color: var(--u-ink); cursor: pointer; }
.tn-ab__ctl input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--u-ink); cursor: pointer; }
.tn-ab__btns { display: flex; gap: 20px; }
.tn-ab__btn { height: 32px; padding: 0; border: 0; background: none; font: 500 13px/1 var(--font-text); color: var(--u-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--u-line-2); cursor: pointer; }
.tn-ab__btn:hover { text-decoration-color: currentColor; }
@media (max-width: 639px) { .tn-ab { padding: 14px; gap: 12px; } .tn-ab__flow { height: 96px; } .tn-ver dd { font-size: 16px; } .tn-ver__name span, .tn-ab__head .tn-host { display: none; } }

/* ---------------------------------------------------------------- telas pequenas dos cards */
.tn-card { display: grid; align-content: start; gap: 12px; padding: 16px; background: var(--u-bg); color: var(--u-ink); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); font: 400 13px/1.4 var(--font-text); }
.tn-card__head { display: flex; align-items: center; gap: 8px; }
.tn-card__head b { font-weight: 500; font-size: 14px; }
.tn-card__head .sp { flex: 1; }
.tn-card__head small { font-size: 12px; color: var(--u-muted); }
.tn-field { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 32px; }
.tn-field > span:first-child { color: var(--u-muted); }
.tn-swatch { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--u-line-2); border-radius: 8px; font-family: var(--font-mono); font-size: 12px; }
.tn-swatch i { width: 20px; height: 20px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.tn-logo { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px dashed var(--u-line-2); border-radius: 8px; font-weight: 600; }
.tn-logo i { width: 22px; height: 22px; border-radius: 50%; background: #e2742a; }
.tn-range { position: relative; height: 4px; border-radius: 4px; background: var(--u-fill-3); }
.tn-range i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: 4px; background: var(--u-accent); }
.tn-range i::after { content: ""; position: absolute; right: -8px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--u-bg); box-shadow: 0 0 0 1px var(--u-line-2), 0 2px 4px rgb(0 0 0 / .18); }
.tn-serp { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--u-fill); }
.tn-serp__site { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--u-text-2); }
.tn-serp__site i { width: 22px; height: 22px; border-radius: 50%; background: #e2742a; }
.tn-serp__t { font-size: 16px; line-height: 1.3; color: #1a0dab; }
.tn-serp__d { color: var(--u-text-2); }
.tn-pwa { display: flex; align-items: center; gap: 12px; }
.tn-pwa > i { width: 48px; height: 48px; border-radius: 12px; background: #e2742a; display: grid; place-items: center; color: #fff; font: 600 18px/1 var(--font-text); font-style: normal; flex: none; }
.tn-pwa > span { display: grid; min-width: 0; } .tn-pwa > span b { font-weight: 500; font-size: 14px; } .tn-pwa > span small { color: var(--u-muted); font-size: 12px; }
.tn-list { display: grid; margin: 0; padding: 0; list-style: none; }
.tn-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--u-line); }
.tn-list li .tn-tick { background: var(--u-fill-3); color: var(--u-ink); }
.tn-up { display: grid; gap: 8px; }
.tn-up p { display: flex; justify-content: space-between; }
.tn-up p b { font-weight: 500; }
.tn-up__days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 28px; }
.tn-up__days i { border-radius: 2px; background: var(--u-ink); opacity: .78; }
.tn-up__days i.is-part { background: var(--u-accent); opacity: 1; }
.tn-up small { display: flex; justify-content: space-between; color: var(--u-muted); font-size: 12px; }
.tn-grid { display: grid; gap: 0; }
.tn-grid > div { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 112px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--u-line); }
.tn-grid > div:first-child { border-top: 0; padding-top: 0; font-size: 12px; color: var(--u-muted); }
.tn-grid > div > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tn-grid .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tn-grid .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-src { display: inline-flex; align-items: center; gap: 6px; }
.tn-src img { width: 16px; height: 16px; object-fit: contain; }
.tn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tn-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--u-line-2); border-radius: 10px; font-size: 12px; }
.tn-tile img { width: 24px; height: 24px; object-fit: contain; }
.tn-tile.is-on { border-color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-ink); }
.tn-tile--text { align-content: center; color: var(--u-muted); }
.tn-input { display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--u-line-2); border-radius: 8px; font-family: var(--font-mono); font-size: 12.5px; }
/* as telas das abas ("Para quem") ficam inteiras na moldura, uma por vez */
#publicos .frame > .stage > [role="tabpanel"], #publicos .tn-screen { position: absolute; inset: 40px 40px auto; }
#publicos .tn-screen[hidden] { display: none; }
@media (max-width: 639px) { #publicos .tn-screen { inset: 16px 16px auto; } .tn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tn-grid > div { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 56px; } }

/* ---------------------------------------------------------------- integrações e preços */
#integracoes .frame .dg { position: absolute; inset: 0; }
.tn-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter, 24px); }
.tn-plans .card--plan { grid-column: auto; }
.tn-plans .price .t-stat { font-size: 36px; }
.tn-plans .card--plan { gap: var(--s-3); }
@media (max-width: 1279px) { .tn-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tn-plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- a frase: no meio da tela, maior no desktop */
#white-label > .wrap { justify-content: center; gap: var(--s-5); }
@media (min-width: 1024px) { #white-label .mo-wh__text { font-size: clamp(48px, 4.2vw, 64px); line-height: 1.1; max-width: 1180px; } }

/* ---------------------------------------------------------------- telas altas da segunda fileira de cards */
.tn-sec { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--u-line); }
.tn-sec > p { font-size: 12px; color: var(--u-muted); }
.ui-toggles > .tn-sec { margin: 0 16px; padding-bottom: 12px; }
.tn-list li .sp { flex: 1; }
.tn-list li small { color: var(--u-muted); font-size: 12px; }
.tn-list--steps li { border-top: 0; padding: 5px 0; }
.tn-list--steps li.is-done .tn-tick { background: var(--u-ink); color: var(--u-bg); }
.tn-list--steps li:not(.is-done) { color: var(--u-muted); }
.tn-list--steps li:not(.is-done) .tn-tick svg { opacity: 0; }
.tn-list--inc li { align-items: flex-start; }
.tn-list--inc li > small { width: 48px; flex: none; padding-top: 1px; }
.tn-list--inc li > span { display: grid; gap: 1px; } .tn-list--inc b { font-weight: 500; }
.tn-rec { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--u-fill); }
.tn-rec span { display: grid; gap: 1px; } .tn-rec small { font-size: 11px; color: var(--u-muted); } .tn-rec b { font-weight: 500; }
.tn-card .tn-bars { height: 64px; margin-top: 0; }
.tn-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; border-radius: 8px; background: var(--u-fill-2); text-align: center; }
.tn-seg span { padding: 6px 0; border-radius: 6px; } .tn-seg .is-on { background: var(--u-bg); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.tn-maint { display: grid; gap: 4px; padding: 16px; border-radius: 8px; background: var(--u-fill); text-align: center; }
.tn-maint b { font-weight: 500; font-size: 15px; } .tn-maint span { color: var(--u-text-2); font-size: 12px; }
.tn-up__days { grid-template-columns: repeat(45, 1fr); }
.tn-phone { display: grid; align-content: start; background: var(--u-bg); color: var(--u-ink); border: 8px solid #1c1a2e; border-bottom: 0; border-radius: 40px 40px 0 0; min-height: 620px; overflow: hidden; box-shadow: var(--u-shadow); font: 400 13px/1.4 var(--font-text); }
.tn-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 8px; font-size: 12px; font-weight: 500; }
.tn-phone__bar .tn-host { font-weight: 400; color: var(--u-muted); font-size: 11px; }
.tn-phone__sheet { display: grid; gap: 12px; margin: 4px 10px 0; padding: 14px; border-radius: 16px; background: var(--u-bg); box-shadow: 0 0 0 1px var(--u-line-2), 0 10px 24px -10px rgb(0 0 0 / .3); }
.tn-phone__body { display: grid; gap: 8px; padding: 18px 16px; }
.tn-phone__body > small { color: var(--u-muted); font-size: 12px; }
.tn-appt { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: #fbf1e4; }
.tn-appt b { font-weight: 500; font-size: 15px; } .tn-appt .tn-btn { justify-self: start; margin-top: 4px; }
.tn-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tn-kpis span { display: grid; gap: 2px; } .tn-kpis small { color: var(--u-muted); font-size: 12px; } .tn-kpis b { font: 500 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
#publicos .tn-screen { display: grid; gap: 16px; }
#publicos .tn-screen > .ui-code { width: 100%; }

/* ---------------------------------------------------------------- o rodapé: o nome de linha a linha */
#contact .closing__cta h2 { max-width: none; }
#contact .section-head--split > div { max-width: none; }
#publicos .frame--split { --ratio: 76%; }
@media (max-width: 639px) { #publicos .frame--split { --ratio: 130%; } }
.tn-social { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }

/* ---------------------------------------------------------------- celular */
.tn-dom > *, .tn-dom__head > .tn-host { min-width: 0; }
.tn-dom__head > .tn-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

[data-scene-flow="down"] .tn-tag { margin-top: -34px; }
[data-scene-flow="down"] .tn-tag em, [data-scene-flow="down"] .tn-scene__at span { display: none; }
[data-scene-flow="down"] .tn-scene__at[data-scene-at="edge"] { margin-top: 46px; }
[data-scene-flow="down"] .tn-scene__at[data-scene-at="app"] { margin-top: 24px; }
@media (max-width: 639px) {
  .tn-scene__counts { right: var(--s-4); justify-content: space-between; }
  .tn-scene__btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .tn-scene__btn:not(.tn-scene__btn--icon) svg { display: none; }
  .tn-scene__ctl { justify-content: flex-start; flex-wrap: nowrap; }
  .tn-scene__btn--icon { width: 36px; }
  .tn-ab__vers { grid-template-columns: minmax(0, 1fr); }
  .tn-ver { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .tn-ver dl { gap: 14px; }
  .tn-ver__name span { display: block; }
}

[data-scene-flow="down"] .tn-tag b { font-size: 0; max-width: none; }
[data-scene-flow="down"] .tn-tag b::after { content: attr(data-short); font-size: 11px; }
.tn-card > *, .tn-card__head > * { min-width: 0; }
.tn-card__head > .tn-chip, .tn-card__head > .tn-btn, .tn-card__head > .tn-fav { flex: none; }
.tn-card__head > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-field > * { min-width: 0; } .tn-swatch, .tn-logo, .tn-input { overflow: hidden; white-space: nowrap; }
@media (max-width: 639px) {
  .tn-scene__counts dt { font-size: 11px; white-space: nowrap; }
  .tn-ab__flow { height: 200px; }
  #publicos .frame--split { --ratio: 160%; }
  .tn-field { grid-template-columns: 84px minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- ajustes do verificador */
.tn-win, .tn-dom, .tn-ab, .tn-card, .tn-phone { --fx-bg: #ffffff; --fx-surface: #f4f4f6; --fx-ink: #17142b; --fx-muted: #56556a; --fx-accent: #6e4ff7; --fx-accent-ink: #ffffff; }
.tn-dom.ui-panel { border: 0; border-radius: 0; box-shadow: none; }
.tn-phone.ui-panel { border: 8px solid #1c1a2e; border-bottom: 0; border-radius: 40px 40px 0 0; }
.tn-plan__head { display: flex; align-items: center; gap: var(--s-2); }
#publicos .frame--fill > .stage > .tn-screen { inset: 0; padding: 40px; align-content: center; }
@media (max-width: 639px) {
  #publicos .grid.fill, #integracoes .grid.fill { flex: none; }
  #testes .grid.fill { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); }
  #testes .tn-ab__flow { height: 300px; }
  #publicos .frame--split, #integracoes .frame--split { --ratio: 100%; flex: none; }
  #publicos .frame--split { --ratio: 128%; }
  #publicos .frame--fill > .stage > .tn-screen { padding: 12px; }
  #who-s0 .ui-code__pre { font-size: 11px; }
  #marca .panel { --p-h: 184px; } #seguranca .panel { --p-h: 136px; }
  .panel .tn-sec, .panel .tn-rec, .panel .tn-card > .tn-btn, .tn-phone__body, .tn-dom__grid > .tn-kpi:not(.tn-kpi--wide), .tn-dom > .tn-table { display: none; }
  .tn-ver { grid-template-columns: minmax(0, 1fr); }
  .tn-plans .card--plan > p:not(.price):not(.t-small) { display: none; }
  .tn-plans .card--plan > p:not(.price) { min-height: 0; }
  .tn-plans .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); }
  .footer__legal { align-items: flex-start; }
}
@media (max-width: 359px) {
  .nav__bar > .nav__actions > .btn { display: none; }
  #integracoes .checks { display: none; }
}

.app .ui-win__nav.is-on { background: none; font-weight: 500; }
.tn-pay { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-small); color: var(--ink); max-width: 320px; }
.tn-pay img { width: 48px; height: 24px; object-fit: contain; }
.tn-contact { display: flex; align-items: center; gap: var(--s-3); }
.tn-contact img { width: 28px; height: 28px; }

@media (max-width: 639px) {
  .tn-pay { display: none; }
  .tn-plans { gap: var(--s-3); }
  .tn-plans .card--plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-5); }
  .tn-plans .card--plan > * { grid-column: 1 / -1; }
  .tn-plans .card--plan > .tn-plan__head { grid-column: 1; grid-row: 1; }
  .tn-plans .card--plan > .price { grid-column: 2; grid-row: 1; justify-self: end; }
  .tn-plans .price .t-stat { font-size: 28px; }
  .tn-plans .checks { margin-top: 0; font-size: 14px; }
}

@media (max-width: 639px) { .tn-plan__head .badge { display: none; } }

.nav__actions > .tn-lang { align-self: flex-start; justify-self: start; width: auto; flex: none; }

/* ---------------------------------------------------------------- API Gateway e AuthMesh
   As duas explicações à esquerda e, à direita, as duas rotas pela Tenanci: o que chega à API do
   cliente e o que sai do app dele. */
.tn-defs { display: grid; gap: var(--s-5); }
.tn-defs > div { display: grid; gap: var(--s-2); }
.tn-defs h3 { font: 560 18px/26px var(--font-text); letter-spacing: -0.012em; }
.tn-defs p { color: var(--ink); max-width: 52ch; }
.tn-lanes { gap: 20px; padding: 24px; --fx-bg: #ffffff; --fx-surface: #f4f4f6; --fx-ink: #17142b; --fx-muted: #56556a; --fx-accent: #6e4ff7; --fx-accent-ink: #ffffff; }
.tn-lane { display: grid; gap: 12px; }
.tn-lane + .tn-lane { padding-top: 20px; border-top: 1px solid var(--u-line); }
.tn-lane__t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tn-lane__t b { font-weight: 500; font-size: 15px; } .tn-lane__t small { color: var(--u-text-2); font-size: 13px; }
.tn-lane__row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; }
.tn-node { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 72px; padding: 12px 14px; border: 1px solid var(--u-line-2); border-radius: 10px; font-weight: 500; line-height: 1.3; }
.tn-node small { font-weight: 400; font-size: 12px; color: var(--u-text-2); }
.tn-node.is-edge { background: var(--u-ink); border-color: var(--u-ink); color: var(--u-bg); }
.tn-node.is-edge small { color: inherit; opacity: .82; }
.tn-arrow { position: relative; align-self: center; height: 1px; margin: 0 5px; background: var(--u-muted); }
.tn-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--u-muted); border-right: 1px solid var(--u-muted); transform: rotate(45deg); }
.tn-lane__note { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; border-radius: 8px; background: var(--u-fill); }
.tn-lane__note small { color: var(--u-text-2); font-size: 12px; } .tn-lane__note .sp { flex: 1; }
.tn-lane__facts li:first-child { border-top: 0; }
/* no desktop o quadro vai até o pé da tela, como o simulador de teste A/B; numa tela baixa saem as listas */
@media (min-width: 1024px) {
  #apis .grid.fill > :last-child { align-self: stretch; display: flex; }
  #apis .tn-lanes { flex: 1 1 auto; grid-auto-rows: 1fr; }
  #apis .tn-lane { align-content: center; }
}
@media (min-width: 1024px) and (max-height: 839px) { .tn-lane__facts { display: none; } }
@media (max-width: 1023px) { .tn-lane__facts { display: none; } }
@media (max-width: 639px) {
  #apis .grid.fill { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--s-6); }
  #apis .grid.fill > :last-child { flex: 1 1 auto; display: flex; }
  .tn-lanes { flex: 1 1 auto; align-content: space-between; padding: 16px; }
  .tn-lane__row { grid-template-columns: minmax(0, 1fr); }
  .tn-node { min-height: 58px; }
  .tn-arrow { width: 1px; height: 16px; justify-self: center; margin: 5px 0; }
  .tn-arrow::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
}

/* ---------------------------------------------------------------- o rodapé
   Discreto, na mesma faixa clara das outras seções: a frase com o botão de sempre numa linha,
   as colunas e a linha legal. Tem a altura do conteúdo, sem tela inteira nem vazio no meio. */
#contact { height: auto; min-height: 0; display: block; padding-block: var(--s-10) 72px; }
#contact > .wrap { height: auto; row-gap: var(--s-9); grid-template-rows: auto auto; }
#contact .section-head--split { align-items: center; }
@media (max-width: 639px) {
  #contact { padding-block: var(--s-9) var(--s-7); }
  #contact > .wrap { row-gap: var(--s-8); }
}

/* ---------------------------------------------------------------- o menu num notebook pequeno (1024 a 1239)
   Com o logo, cinco palavras, o idioma, Entrar e o botão, a barra centrada não cabe: as palavras
   encostam nas ações. Sai "Dúvidas" (continua no rodapé) e a barra deixa de centrar as palavras. */
@media (min-width: 1024px) and (max-width: 1239px) {
  .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav--centre .nav__links > .nav__item:last-child { display: none; }
  .nav--centre .nav__actions { gap: var(--s-2); }
}

/* o diagrama das integrações fica parado: sem transição de cor ao montar quando entra na tela */
#integracoes .dg-node, #integracoes .dg-node * { transition: none; }
/* celular: o logo novo é mais largo; na altura de 22px a barra volta a caber entre as duas margens */
@media (max-width: 639px) { .nav__logo img { height: 22px; } }

/* ---------------------------------------------------------------- "Para quem": a dor de hoje e o que muda com a Tenanci */
.tn-ps { display: grid; gap: var(--s-4); margin: 0; }
.tn-ps > div { display: grid; gap: var(--s-1); }
.tn-ps > div + div { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.tn-ps dt { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--muted); }
.tn-ps .is-fix dt { font-weight: 600; color: var(--ink); }
.tn-ps dd { margin: 0; max-width: 52ch; color: var(--ink); }
.tn-ps .is-fix dd { font-weight: 500; }

/* ---------------------------------------------------------------- telas baixas (um notebook de 768px de altura)
   Do desktop largo para cima o kit fixa cada seção em uma tela. Quando a tela é baixa o conteúdo não cabe
   (os planos, por exemplo) e cobria a seção seguinte: aqui a seção passa a crescer com o conteúdo. */
@media (min-width: 1280px) and (max-height: 879px) {
  main > :is(section, .section):not(.hero, .section--hero) { height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}

/* ---------------------------------------------------------------- páginas de texto (privacidade, termos)
   À esquerda o título, a data e o índice, que acompanha a leitura; à direita o texto numa coluna. */
.tn-doc { padding-block: calc(var(--nav, 72px) + var(--s-9)) var(--s-10); }
.tn-doc__head { display: grid; gap: var(--s-4); align-content: start; }
.tn-doc__head h1 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.08; }
.tn-doc__date { font-size: var(--t-small); color: var(--muted); }
.tn-doc__toc ol { display: grid; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; list-style: none; font-size: var(--t-small); }
.tn-doc__toc a { color: var(--muted); text-decoration: none; }
.tn-doc__toc a:hover, .tn-doc__toc a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tn-doc__body { display: grid; gap: var(--s-8); max-width: 68ch; }
.tn-doc__body section { display: grid; gap: var(--s-4); scroll-margin-top: calc(var(--nav, 72px) + var(--s-6)); }
.tn-doc__body h2 { font: 560 24px/1.25 var(--font-display); letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav, 72px) + var(--s-6)); }
.tn-doc__body h3 { font: 560 18px/1.35 var(--font-text); letter-spacing: -0.012em; margin-top: var(--s-3); }
.tn-doc__body p, .tn-doc__body li { font-size: 17px; line-height: 1.6; color: var(--ink); }
.tn-doc__body ul { display: grid; gap: var(--s-2); margin: 0; padding-left: 1.2em; list-style: disc; }
.tn-doc__body ul ul { margin-top: var(--s-2); list-style: circle; }
.tn-doc__body strong { font-weight: 600; }
.tn-doc__box { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg, 16px); background: var(--surface); }
.tn-doc__box p, .tn-doc__box li { font-size: 14px; line-height: 1.6; }
@media (min-width: 1024px) { .tn-doc__head { position: sticky; top: calc(var(--nav, 72px) + var(--s-7)); } }
@media (max-width: 1023px) {
  .tn-doc { padding-block: calc(var(--nav, 64px) + var(--s-7)) var(--s-9); }
  .tn-doc .grid { row-gap: var(--s-7); }
  .tn-doc__toc { display: none; }
}
