/* Projeto Interativo — App theme (2026-12-03), shared by the 3D page (style.css) and the plan page (planta.css).
   Same look as the sales site: near-black drawing board, dark glass panels, ipê-yellow accent, Manrope + JetBrains Mono. */
:root {
  --bg: #0e0f12; --panel: rgba(18, 19, 23, 0.84); --panel-solid: #15161a; --ink: #f2efec; --mute: #a39ea6; --line: #2c2d34; --line-2: #3d3e46;
  --accent: #f0b323; --accent-ink: #16140f; --accent-soft: rgba(240, 179, 35, 0.16);
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --hand: "Architects Daughter", cursive;
}
html, body { font: 15px/1.4 var(--ui); }
.mono { font-family: var(--mono); }

/* buttons: dark glass, yellow when on */
button, .btn { font: inherit; font-weight: 600; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s; -webkit-tap-highlight-color: transparent; }
button:hover, .btn:hover { border-color: var(--line-2); }
button:active, .btn:active { transform: translateY(1px); }
button.on, .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button svg, .btn svg { display: block; flex: none; }
.ico-lbl { display: inline-flex; align-items: center; gap: 8px; }

/* checkboxes / sliders in panels */
input[type=checkbox], input[type=range] { accent-color: var(--accent); }

/* ---------- gate: loading + password, a drawing board where the plan gets drawn as the project loads ---------- */
#gate { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden;
  background: var(--bg); color: var(--ink); transition: opacity 0.5s ease; }
#gate.done { opacity: 0; pointer-events: none; }
#gate::before { content: ""; position: absolute; inset: 0; pointer-events: none;   /* CAD grid */
  background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px),
    linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%); }
#gate::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; border-radius: 50%; pointer-events: none;   /* warm blob */
  background: radial-gradient(circle, rgba(107, 74, 12, 0.55), rgba(58, 40, 6, 0.25) 45%, transparent 70%); filter: blur(40px); animation: gate-drift 18s ease-in-out infinite alternate; }
@keyframes gate-drift { to { transform: translate(30vmax, 40vmax) scale(1.1); } }
.gate-box { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(420px, 100%); text-align: center; }
#gate-draw { width: 320px; height: 210px; max-width: 100%; }
#gate h1 { margin: 6px 0 0; font: 800 30px/1.05 var(--ui); letter-spacing: -0.03em; color: var(--ink); }
.gate-cmd { margin: 0; font-size: 12px; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.gate-cmd b { color: var(--accent); font-weight: 500; }
.gate-cmd .blink { width: 7px; height: 13px; background: var(--accent); animation: gate-blink 1s steps(2) infinite; }
@keyframes gate-blink { 50% { opacity: 0; } }
.gate-bar { width: 220px; height: 4px; border-radius: 4px; background: #24252b; overflow: hidden; }
.gate-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 0.25s; }
#gate p#gate-msg { margin: 0; min-height: 1.4em; color: var(--mute); font-size: 14px; }
#gate-row { display: flex; gap: 8px; margin-top: 4px; }
#gate-pw { font: 500 18px var(--mono); width: 160px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; text-align: center;
  background: #18191e; color: var(--ink); -webkit-user-select: text; user-select: text; outline: none; }
#gate-pw:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#gate-row button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); padding: 10px 18px; min-height: 46px; }
#gate.bad #gate-pw { border-color: #ff5a4f; }
@media (prefers-reduced-motion: reduce) { #gate::after, .gate-cmd .blink { animation: none; } }

/* hover (user 2026-12-03): buttons lift a little, text/icon turn yellow, the icon does a small pop; the "options" sliders slide apart.
   Only on devices that really hover (no sticky hover on phones). */
button svg, .btn svg, #btn-3d svg { transition: transform 0.25s; }
button svg circle { transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
@media (hover: hover) {
  button:hover, .btn:hover, #btn-3d:hover { color: var(--accent); border-color: rgba(240, 179, 35, 0.45); transform: translateY(-1px); }
  button.on:hover, .btn.on:hover, #gate-row button:hover { color: var(--accent-ink); border-color: var(--accent); filter: brightness(1.08); }
  button:hover svg, .btn:hover svg, #btn-3d:hover svg { animation: ico-pop 0.45s ease; }
  #btn-menu:hover svg, #btn-opts:hover svg { animation: none; }
  #btn-menu:hover circle:nth-of-type(1), #btn-opts:hover circle:nth-of-type(1) { transform: translateX(-4px); }
  #btn-menu:hover circle:nth-of-type(2), #btn-opts:hover circle:nth-of-type(2) { transform: translateX(4px); }
}
@keyframes ico-pop { 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { button:hover svg, .btn:hover svg, #btn-3d:hover svg { animation: none !important; } }
