/* GridSentinel — site
   Layout: faixa noturna (sala de controle) com o tour como peça central; seções em "papel de projeto"
   alternadas; tipografia condensada de painel elétrico + Plex para leitura e TAGs. */
/* Inter (SIL OFL 1.1), hospedada no próprio site */
@font-face { font-family: "GS Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GS Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  --night: #071322;      /* fundo sala de controle */
  --night-2: #0c1c30;    /* painéis sobre a noite */
  --night-line: rgba(150, 190, 230, .16);
  --app: #033874;        /* azul da barra lateral do próprio sistema */
  --app-bg: #f8f9fc;     /* fundo das telas do sistema */
  --signal: #56c6ef;     /* ciano do logotipo */
  --signal-ink: #062033;
  --violet: #8a7cf6;     /* fim do degradê do logotipo, uso pontual */
  --paper: #eef2f6;      /* papel de projeto */
  --paper-2: #ffffff;
  --ink: #0f1d2e;
  --ink-soft: #4b5b6f;
  --line: #d3dce7;
  --on-night: #e7eef6;
  --on-night-soft: #9fb2c6;
  --ok: #1fa774;
  --fault: #e5534b;
  --whats: #1fa774;

  --f-display: "GS Inter Display", "Inter Display", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "GS Inter", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--night); overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: pretty; letter-spacing: -.018em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #7ad5f4; }
.btn-ghost { border-color: var(--night-line); color: var(--on-night); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(86,198,239,.55); }
.btn-ink { background: var(--app); color: #fff; }
.btn-ink:hover { background: #0a4a94; }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: #26b882; }

/* topo */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: var(--on-night); transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.topbar.is-scrolled, .topbar.nav-open { background: rgba(7, 19, 34, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--night-line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.wordmark span { background: linear-gradient(90deg, #4fa8f0 0%, #56c6ef 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.footer .wordmark { font-size: 1rem; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--on-night-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--on-night); border-bottom-color: var(--signal); }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: var(--on-night); margin: 6px 0; transition: transform .2s; }
.nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 520px at 78% -10%, rgba(86,198,239,.08), transparent 60%), radial-gradient(900px 500px at 0% 30%, rgba(138,124,246,.06), transparent 60%), var(--night); color: var(--on-night); padding-block: calc(110px + env(safe-area-inset-top, 0px)) 72px; overflow: hidden; }
.hero-trace { display: block; width: 100%; height: 120px; margin: -8px 0 22px; pointer-events: none; opacity: .85; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.hero-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; max-width: 21ch; color: #fff; }
.hero h1 em, .cost h2 em { font-style: normal; color: var(--signal); }
.hero-main { display: grid; gap: 18px; min-width: 0; }
.hero-kicker, .cost-kicker { margin: 0; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.hero-proof { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255,255,255,.03); font-size: .86rem; color: var(--on-night); }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.hero-side { display: grid; gap: 24px; }
.hero-side p { color: var(--on-night-soft); font-size: 1.04rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero { padding-bottom: 0; }
.hero .hero-trace { margin-bottom: 0; }
.section.tour-sec { background: radial-gradient(1100px 420px at 50% 0%, rgba(86,198,239,.05), transparent 70%), var(--night); color: var(--on-night); scroll-margin-top: 70px; }
.nav-cta { display: none; }

/* ===== TOUR ===== */
.tour { position: relative; outline: none; }
.tour-chapters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--night-line); margin-bottom: 18px; }
.tour-chapters::-webkit-scrollbar { display: none; }
.tour-chapters button { flex: 0 0 auto; display: grid; text-align: left; gap: 0; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px 12px 0; margin-right: 18px; color: var(--on-night-soft); }
.tour-chapters button span { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.tour-chapters button small { font-size: .74rem; color: #6f849b; }
.tour-chapters button:hover { color: var(--on-night); }
.tour-chapters button[aria-selected="true"] { color: var(--on-night); border-bottom-color: var(--signal); }

.tour-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tour-stage { min-width: 0; }
.gs-window { border-radius: 12px; overflow: hidden; background: var(--app-bg); box-shadow: 0 0 0 1px rgba(150,190,230,.22), 0 40px 90px -30px rgba(0,0,0,.7), 0 0 120px -40px rgba(86,198,239,.35); }
.tour-stage:fullscreen { background: var(--night); display: grid; place-items: center; padding: 2vh 2vw; }
.tour-stage:fullscreen .gs-window { width: 100%; max-width: 177vh; }

.gs-chrome { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 10px 0 14px; background: #e6ebf1; border-bottom: 1px solid #d5dce5; color: #45556a; font-size: 12.5px; }
.gs-dots { display: flex; gap: 6px; }
.gs-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c3ccd7; }
.gs-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: #fff; border: 1px solid #d5dce5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-mono); font-size: 12px; }
.gs-addr svg { width: 12px; height: 12px; flex: none; fill: none; stroke: #6b7b8f; stroke-width: 1.4; }
.gs-addr b { color: #9aa7b6; font-weight: 400; }
.gs-addr-page { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.gs-tools { display: flex; gap: 6px; }
.gs-tools button { height: 26px; border: 1px solid #cbd4df; background: #fff; border-radius: 6px; padding: 0 9px; font-size: 12px; color: #34465c; display: inline-flex; align-items: center; }
.gs-tools button[aria-pressed="true"] { background: var(--app); color: #fff; border-color: var(--app); }
.gs-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.gs-viewport { position: relative; overflow: hidden; aspect-ratio: 2.2 / 1; background: #f8f9fc; touch-action: pan-y; }
.gs-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .95s cubic-bezier(.65, .02, .2, 1), opacity .3s; will-change: transform; }
.gs-layer iframe { display: block; width: 1440px; border: 0; background: #f8f9fc; }
.gs-focus { z-index: 2; }
.gs-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.gs-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(3,56,116,.18); border-top-color: #033874; animation: gsspin .8s linear infinite; }
@keyframes gsspin { to { transform: rotate(360deg); } }
@media (hover: none) { .gs-layer iframe { pointer-events: none; } .is-explore .gs-layer iframe { pointer-events: auto; } }
.is-diag .gs-addr-host { color: #0b64d8; }
.gs-layer.no-anim { transition: none; }
.gs-layer.is-swapping { opacity: 0; transition: opacity .2s; }
.gs-focus { position: absolute; border-radius: calc(8px * var(--inv, 1)); box-shadow: 0 0 0 calc(2px * var(--inv, 1)) var(--signal), 0 0 0 calc(7px * var(--inv, 1)) rgba(86,198,239,.22), 0 0 0 100000px rgba(8, 22, 39, .38); transition: left .95s cubic-bezier(.65,.02,.2,1), top .95s cubic-bezier(.65,.02,.2,1), width .95s cubic-bezier(.65,.02,.2,1), height .95s cubic-bezier(.65,.02,.2,1); pointer-events: none; }
.gs-layer.no-anim .gs-focus { transition: none; }
.gs-spacer { width: 1px; height: 0; pointer-events: none; }
.is-explore .gs-viewport { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #9aa9bb transparent; }
.gs-mode { display: inline-flex; border: 1px solid #cbd4df; border-radius: 7px; overflow: hidden; background: #fff; }
.gs-tools .gs-mode button { border: 0; border-radius: 0; height: 26px; padding: 0 10px; background: #fff; color: #34465c; }
.gs-tools .gs-mode button + button { border-left: 1px solid #cbd4df; }
.gs-tools .gs-mode button[aria-pressed="true"] { background: var(--app); color: #fff; }
.gs-explore-chip { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(3, 56, 116, .92); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(3, 20, 45, .35); }
.gs-explore-chip svg { width: 14px; height: 14px; fill: #fff; }
.gs-explore-chip:hover { background: #0a4a94; }
.is-explore .gs-explore-chip { display: none; }
.is-explore .tour-progress { visibility: hidden; }
.reduce-motion .gs-layer, .reduce-motion .gs-focus { transition: none !important; }

.tour-panel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px 40px; padding: 20px 24px; border: 1px solid var(--night-line); border-radius: 12px; background: linear-gradient(180deg, rgba(14,30,50,.85), rgba(9,20,36,.85)); }
.tour-text { display: grid; gap: 6px; min-width: 0; align-content: start; }
.tour-ctl { display: grid; gap: 12px; align-content: start; }
.tour-meta { font-family: var(--f-mono); font-size: .78rem; color: var(--signal); font-variant-numeric: tabular-nums; }
.tour-title { font-size: 1.65rem; font-weight: 600; color: #fff; }
.tour-desc { color: var(--on-night-soft); font-size: 1rem; max-width: 70ch; min-height: 3.2em; }
.tour-controls { display: flex; gap: 8px; }
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); color: var(--on-night); }
.tbtn:hover { border-color: rgba(86,198,239,.5); }
.tbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn-play { flex: 1; background: var(--signal); color: var(--signal-ink); border-color: var(--signal); font-weight: 600; }
.tbtn-play:hover { background: #7ad5f4; }
.tbtn-play svg { fill: currentColor; stroke: none; }
.tbtn-play .i-pause { display: none; fill: none; stroke: currentColor; stroke-width: 2.4; }
.is-playing .tbtn-play .i-play { display: none; }
.is-playing .tbtn-play .i-pause { display: block; }
.tour-progress { height: 2px; background: var(--night-line); border-radius: 2px; overflow: hidden; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--signal); }
.tour-steps { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 6px; counter-reset: st; }
.tour-steps li { counter-increment: st; }
.tour-steps button { display: inline-flex; align-items: baseline; gap: 7px; background: rgba(255,255,255,.03); border: 1px solid var(--night-line); border-radius: 999px; padding: 4px 12px 5px 10px; font-size: .83rem; color: var(--on-night-soft); line-height: 1.3; }
.tour-steps button::before { content: counter(st); font-family: var(--f-mono); font-size: .7rem; color: #6f849b; }
.tour-steps button:hover { color: var(--on-night); border-color: rgba(86,198,239,.4); }
.tour-steps button[aria-current="step"] { background: rgba(86,198,239,.14); border-color: rgba(86,198,239,.6); color: #fff; }
.tour-steps button[aria-current="step"]::before { color: var(--signal); }
.tour-hint { font-size: .78rem; color: #6f849b; }

/* ===== seções ===== */
.section { padding-block: clamp(64px, 9vw, 112px); background: var(--paper-2); color: var(--ink); }
.section.paper { background: var(--paper); }
.section.cost { position: relative; overflow: hidden; color: var(--on-night); background: radial-gradient(1000px 300px at 72% 112%, rgba(240,140,60,.32), transparent 70%), radial-gradient(1100px 380px at 20% 120%, rgba(86,198,239,.07), transparent 70%), linear-gradient(180deg, var(--night) 0%, #0a1a2d 100%); }
.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.cost-copy { display: grid; gap: 16px; min-width: 0; }
.cost h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.022em; max-width: 22ch; color: #fff; }
.cost-copy > p:not(.cost-kicker) { margin: 0; color: var(--on-night-soft); font-size: 1.05rem; max-width: 52ch; }
.cost-copy strong { color: #fff; font-weight: 600; }
.cost-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.cost-col { border: 1px solid var(--night-line); border-radius: 12px; padding: 20px 20px 22px; background: rgba(255,255,255,.025); }
.cost-col h3 { font-size: 1.12rem; margin-bottom: 14px; }
.cost-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: c; }
.cost-col li { position: relative; padding-left: 30px; font-size: .94rem; line-height: 1.45; counter-increment: c; }
.cost-col li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; }
.cost-before h3 { color: #c4cfdb; }
.cost-before li { color: #93a4b8; }
.cost-before li::before { border: 1px solid #4a5d74; color: #93a4b8; }
.cost-after { border-color: rgba(86,198,239,.45); background: linear-gradient(180deg, rgba(86,198,239,.10), rgba(86,198,239,.03)); box-shadow: 0 0 60px -30px rgba(86,198,239,.6); }
.cost-after h3 { color: var(--signal); }
.cost-after li { color: var(--on-night); }
.cost-after li::before { background: var(--signal); color: var(--signal-ink); font-weight: 700; }
.section.night { background: var(--night); color: var(--on-night); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }
.night .section-head p { color: var(--on-night-soft); }

/* fluxo da ocorrência */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.flow li { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 26px 26px 0 0; }
.flow li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.flow-n { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--app); }
.flow h3 { font-size: 1.4rem; }
.flow p { color: var(--ink-soft); font-size: .95rem; }
.flow code { justify-self: start; margin-top: 6px; font-family: var(--f-mono); font-size: .8rem; padding: 6px 10px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); color: var(--app); overflow-wrap: anywhere; }

/* módulos */
.module { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.module + .module { border-top: 1px solid var(--line); }
.module-flip .module-shot { order: 2; }
.module-shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(15, 29, 46, .45); background: var(--app-bg); aspect-ratio: 16 / 10; }
.module-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.module-copy { display: grid; gap: 14px; min-width: 0; }
.module-sys { justify-self: start; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(3,56,116,.08); color: var(--app); }
.module-sys-diag { background: rgba(11,100,216,.1); color: #0b64d8; }
.module-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.module-copy > p { color: var(--ink-soft); }
.module-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.module-copy li { position: relative; padding-left: 22px; font-size: .96rem; }
.module-copy li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--signal); box-shadow: 0 0 0 1px rgba(3,56,116,.15); }
.link-btn { justify-self: start; background: none; border: 0; padding: 4px 0; font-weight: 600; color: var(--app); border-bottom: 2px solid var(--signal); }
.link-btn:hover { color: #0a4a94; }

.specs { margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 3vw, 34px); border-radius: 12px; background: var(--paper); }
.specs h3 { font-size: 1.4rem; margin-bottom: 18px; }
.specs dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.specs dt { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--app); }
.specs dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .93rem; }

/* licenças */
.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); overflow: hidden; }
.edition { padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; }
.edition + .edition { border-left: 1px solid var(--line); }
.edition h3 { font-size: 1.5rem; }
.edition p { color: var(--ink-soft); font-size: .93rem; }
.edition-top { background: var(--app); color: #fff; }
.edition-top p { color: #c4d3e6; }
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); }
.lic { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.lic th, .lic td { padding: 12px 14px; border-bottom: 1px solid #e5ebf2; text-align: center; }
.lic thead th { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; background: #f4f7fa; color: var(--ink); position: sticky; top: 0; }
.lic thead th:first-child, .lic tbody th { text-align: left; }
.lic tbody th { font-weight: 500; }
.lic tbody tr:last-child th, .lic tbody tr:last-child td { border-bottom: 0; font-weight: 600; }
.lic th:nth-child(5), .lic td:nth-child(5) { background: rgba(3, 56, 116, .05); }
.lic .qty { color: var(--app); }
.yes, .no { display: inline-block; width: 18px; height: 18px; vertical-align: middle; border-radius: 50%; position: relative; }
.yes { background: var(--ok); }
.yes::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.no::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: #b4c0cd; }
.lic-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.lic-cta p { color: var(--ink-soft); }

/* vídeos */
.videos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .62fr); gap: 16px; align-items: stretch; }
.video { position: relative; border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; background: var(--night-2); padding: 0; aspect-ratio: 16 / 10; text-align: left; }
.video:not(.video-wide) { aspect-ratio: auto; min-height: 220px; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s; }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,19,34,.92)); }
.video-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 8px rgba(86,198,239,.18); }
.video-play svg { width: 20px; height: 20px; fill: var(--signal-ink); margin-left: 3px; }
.video-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; color: #fff; }
.video-cap b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.video-cap small { color: var(--on-night-soft); font-size: .82rem; }

/* perguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 96px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border: solid var(--app); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 64ch; }

/* contato */
.contact { background: radial-gradient(800px 420px at 15% 50%, rgba(86,198,239,.07), transparent 65%), var(--night); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.contact-brand { display: flex; justify-content: center; align-items: center; min-width: 0; }
.contact-logo { position: relative; display: block; width: 230px; height: 302px; max-width: 100%; margin: 0 auto; flex: 0 0 auto; }
.contact-logo::before { content: ""; position: absolute; inset: -22% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(86,198,239,.12), rgba(86,198,239,.04) 55%, transparent 100%); pointer-events: none; }
.contact-logo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; position: relative; filter: drop-shadow(0 0 14px rgba(86,198,239,.22)); }
.contact-copy { display: grid; gap: 18px; min-width: 0; }
.contact-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; }
.contact-copy > p { color: var(--on-night-soft); max-width: 58ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; border-top: 1px solid var(--night-line); padding-top: 22px; }
.contact-list dt { font-size: .8rem; color: #6f849b; }
.contact-list dd { margin: 2px 0 0; color: var(--on-night); overflow-wrap: anywhere; user-select: all; }

.footer { background: #06111f; color: #6f849b; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .86rem; border-top: 1px solid var(--night-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand { color: var(--on-night); font-size: 1.05rem; }
.footer .brand img { width: 28px; height: 28px; }
.footer-inner p:last-child { margin-left: auto; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4, 12, 22, .86); backdrop-filter: blur(8px); }
.modal-box { width: min(1100px, 100%); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; }
.modal.is-vertical .modal-box { width: min(420px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; color: var(--on-night); font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.modal-close { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--night-line); background: none; color: var(--on-night); font-size: 1.4rem; line-height: 1; }
.modal video { display: block; width: 100%; max-height: 80vh; background: #000; }

/* ===== responsivo ===== */
@media (max-width: 1100px) {
  .specs dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { position: absolute; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: var(--night); border-bottom: 1px solid var(--night-line); box-shadow: 0 30px 60px rgba(0,0,0,.5); display: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--night-line); font-size: 1rem; }
  .nav-open .nav { display: flex; }
  .menu-toggle { display: block; }
  .topbar-cta { display: none; }
  .nav .nav-cta { display: block; margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 8px; background: var(--signal); color: var(--signal-ink); font-weight: 600; text-align: center; }
  .hero-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow li { padding-bottom: 26px; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .module, .module-flip { grid-template-columns: minmax(0, 1fr); }
  .module-flip .module-shot { order: 0; }
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition:nth-child(3) { border-left: 0; }
  .edition:nth-child(n+3) { border-top: 1px solid var(--line); }
  .videos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .video-wide { grid-column: 1 / -1; }
  .video:not(.video-wide) { aspect-ratio: 4 / 3; }
  .faq-grid, .contact-grid, .cost-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
  .contact-brand { width: 100%; }
  .contact-logo { width: 150px; height: 197px; }
}
@media (max-width: 760px) {
  .tour-panel { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .tour-hint { display: none; }
  .tour-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tour-steps button { white-space: nowrap; }
  .gs-viewport { aspect-ratio: 4 / 3; }
  .gs-tools .gs-mode button { padding: 0 7px; font-size: 11px; }
  .gs-addr { display: none; }
  .gs-chrome { gap: 10px; }
}
@media (max-width: 560px) {
  .cost-compare { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 1.95rem; max-width: none; }
  .cost h2, .section-head h2, .contact-copy h2 { font-size: 1.6rem; max-width: none; }
  .hero, .section.tour-sec, .contact { background: var(--night); }
  .section.cost { background: radial-gradient(600px 220px at 70% 110%, rgba(240,140,60,.22), transparent 70%), var(--night); }
  body { font-size: 15px; }
  .hero { padding-block: calc(92px + env(safe-area-inset-top, 0px)) 0; }
  .hero-trace { height: 90px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li, .flow li + li { padding-left: 0; border-left: 0; }
  .flow li + li { border-top: 1px solid var(--line); }
  .editions { grid-template-columns: minmax(0, 1fr); }
  .edition + .edition { border-left: 0; border-top: 1px solid var(--line); }
  .specs dl, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .gs-dots { display: none; }
  .tour-title { font-size: 1.5rem; }
  .footer-inner p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
