/* Visitas 3D · demo interna Outsmartis para o Grupo L&F. Tokens + layout partilhados. */
:root {
  --bg: #f6f5f1; --surface: #ffffff; --fg: #1d2430; --muted: #5d6676; --line: #e1e0d9;
  --accent: #2f6f6a; --accent-ink: #ffffff; --chip: #e7efee; --warn: #9a5b12; --warn-bg: #fbf1e3;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif; --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #15191f; --surface: #1d222a; --fg: #eceef1; --muted: #a2aab6; --line: #2d343e;
  --accent: #6cc3bb; --accent-ink: #0f1a19; --chip: #22332f; --warn: #e2a95f; --warn-bg: #2d251a; color-scheme: dark } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding-block: 16px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

nav.top { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; margin-bottom: 18px; color: var(--muted); }
nav.top a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.top a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
nav.top .brand { font-family: var(--display); font-weight: 600; color: var(--fg); margin-right: 6px; }

header.page { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.2vw, 30px); margin: 2px 0 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 28px 0 8px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 10px; max-width: 70ch; }
.demo { font-size: 12px; background: var(--chip); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; border-radius: 10px; overflow: hidden; background: #0d1014; touch-action: none; }
.stage canvas { display: block; width: 100% !important; height: 100% !important; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(13,16,20,.82); text-align: center; padding: 20px; font-size: 14px; z-index: 4; }
.overlay .bar { width: min(320px, 70%); height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 10px; }
.overlay .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
[hidden] { display: none !important; }
.tag { position: absolute; right: 12px; top: 12px; z-index: 3; background: rgba(20,24,30,.72); color: #fff; backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 8px; font-family: var(--display); font-weight: 500; font-size: 15px; pointer-events: none; }
.hint { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 3; color: #fff; font-size: 12px; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }
.stats { position: absolute; left: 12px; top: 12px; z-index: 3; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; background: rgba(20,24,30,.6); padding: 4px 8px; border-radius: 6px; }
.pad { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
.pad button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,24,30,.6); color: #fff; font-size: 16px; cursor: pointer; }
.pad button:active { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .pad { display: none; } }

.switch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.scene { flex: 1 1 220px; min-width: 0; border: 2px solid transparent; border-radius: 8px; padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: left; color: var(--fg); font: inherit; }
.scene b { display: block; font-family: var(--display); font-weight: 500; font-size: 15px; }
.scene small { color: var(--muted); font-size: 12px; }
.scene[aria-current="true"] { border-color: var(--accent); }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.ctl button { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.card p, .card li { font-size: 14px; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; }
.card b { color: var(--fg); font-weight: 600; }
.card .cta { display: inline-block; margin-top: 8px; font-weight: 600; }
.notes { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.notes p, .notes li { font-size: 14px; color: var(--muted); margin: 0; max-width: 60ch; }
.notes ul { margin: 0; padding-left: 18px; }
.notes b { color: var(--fg); font-weight: 600; }

.callout { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0; max-width: 80ch; }
.tablewrap { overflow-x: auto; margin: 8px 0 4px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.rec td { background: var(--chip); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.step .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.step .v { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 2px 0; font-variant-numeric: tabular-nums; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; }
footer { margin-top: 32px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
