/* =========================================================
   TRIBUNAL DO FRANCHISING — Estilos
   ========================================================= */
:root {
  --bg: #08090c;
  --bg-2: #0c0e13;
  --panel: #11141b;
  --panel-2: #161a23;
  --line: rgba(212, 175, 95, 0.14);
  --line-2: rgba(212, 175, 95, 0.3);
  --gold: #d4af5f;
  --gold-2: #f0d695;
  --gold-3: #a47f36;
  --gold-grad: linear-gradient(135deg, #f6e2a8 0%, #d4af5f 45%, #a47f36 100%);
  --text: #efe9dc;
  --muted: #aaa393;
  --dim: #7a7466;
  --ok: #86cfa7;
  --bad: #e79a89;
  --serif: "Cinzel", "Times New Roman", serif;
  --serif-2: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --hdr: 76px;
  --tabbar: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--tabbar);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; color: #f6eedb; }
svg:not([viewBox]) { width: 1em; height: 1em; flex: none; }
::selection { background: rgba(212, 175, 95, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 48px); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #1a1408; font-weight: 700; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ambient background (static — no repaint cost) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(212, 175, 95, 0.08), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(212, 175, 95, 0.04), transparent 60%);
}

/* ---------------- type ---------------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold-grad); }
.h1, .h2, .hero-title { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; margin: 0 0 18px; color: #f7f1e3; text-wrap: balance; }
.h1 { font-size: clamp(34px, 5.2vw, 64px); }
.h2 { font-size: clamp(28px, 3.6vw, 46px); }
.h1 i, .h2 i, .hero-title i {
  font-family: var(--serif-2); font-style: italic; font-weight: 500; letter-spacing: 0;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em;
}
.lead { font-size: clamp(16px, 1.3vw, 18.5px); color: #d0c9b9; max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------------- animations (simple + cheap: opacity/transform only) ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.3s; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .task[data-reveal].in:hover, .js .doc-card[data-reveal].in:hover { transform: translateY(-4px); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.02em 0.1em; margin-bottom: -0.1em; }
[data-split] .w > span { display: inline-block; transform: translateY(102%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 40ms); }
[data-split].in .w > span { transform: none; }
.no-js [data-reveal], .no-js [data-split] .w > span { opacity: 1; transform: none; }

/* hero entrance — CSS only, runs once on load */
.a1, .a2, .a3, .a4, .a5 { animation: up 0.9s var(--ease) both; }
.a2 { animation-delay: 0.15s; animation-name: fadeScale; }
.a3 { animation-delay: 0.35s; }
.a4 { animation-delay: 0.45s; }
.a5 { animation-delay: 0.6s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.94); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* view transitions */
#app { transition: opacity 0.18s ease, transform 0.25s var(--ease); outline: none; }
#app.leave { opacity: 0; transform: translateY(6px); }

/* ---------------- buttons ---------------- */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background-color 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap; overflow: hidden; isolation: isolate; text-align: center;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 13px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 15px; }
.btn.full { width: 100%; }
.btn-gold { background: var(--gold-grad); color: #1b150a; box-shadow: 0 8px 24px -10px rgba(212, 175, 95, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-110%); transition: transform 0.7s var(--ease); }
.btn-gold:hover::after { transform: translateX(110%); }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(212, 175, 95, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(212, 175, 95, 0.07); }
.btn-wa { background: #25d366; color: #06290f; box-shadow: 0 8px 24px -10px rgba(37, 211, 102, 0.55); }
.btn-wa:hover { background: #2ee673; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.75); }
.btn-link { color: var(--gold-2); padding: 0 4px; min-height: 40px; }
.btn-link:hover { color: #fff; }

/* ---------------- progress ---------------- */
#progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
#progress i { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }

/* ---------------- header ---------------- */
#header { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; transition: transform 0.45s var(--ease); }
#header.hidden { transform: translateY(-130%); }
.nav {
  width: min(1280px, 100% - 24px); margin-inline: auto; height: 64px; padding: 0 8px 0 10px;
  display: flex; align-items: center; gap: 16px; border-radius: 999px;
  background: rgba(12, 14, 19, 0.72); border: 1px solid rgba(212, 175, 95, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s;
}
#header.scrolled .nav { background: rgba(10, 11, 15, 0.9); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, rgba(212, 175, 95, 0.18), rgba(212, 175, 95, 0.03)); border: 1px solid var(--line-2); color: var(--gold); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-txt { display: grid; line-height: 1.15; }
.brand-txt b { font-family: var(--serif); font-weight: 700; font-size: 15.5px; letter-spacing: 0.03em; white-space: nowrap; }
.brand-txt small { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; }
.nav-links > li > a, .mega-btn {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #cfc8b7; transition: color 0.2s, background-color 0.2s; white-space: nowrap;
}
.nav-links > li > a:hover, .mega-btn:hover, .mega-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-links a.active, .mega-btn.active { color: var(--gold-2); }
.nav-links a.active::after, .mega-btn.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.mega-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.mega-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 420px; padding: 10px; border-radius: var(--r-lg);
  background: rgba(14, 16, 22, 0.97); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background-color 0.2s; }
.mega a:hover, .mega a:focus-visible { background: rgba(212, 175, 95, 0.08); }
.m-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(212, 175, 95, 0.08); border: 1px solid var(--line); color: var(--gold); flex: none; }
.m-ic svg { width: 20px; height: 20px; }
.mega b { display: block; font-size: 14px; line-height: 1.3; }
.mega small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mega .mega-all { justify-content: space-between; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; font-size: 13px; font-weight: 700; color: var(--gold-2); padding: 14px 12px 8px; }
.mega .mega-all svg { width: 16px; height: 16px; }

.nav-cta { display: flex; gap: 8px; flex: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; margin-left: auto; flex: none; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: var(--gold-2); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 26px; }
.menu-open .burger i:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 22px; transform: rotate(-45deg); }

#mobileMenu {
  position: fixed; inset: 0; z-index: 95; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(8, 9, 12, 0.98); padding: calc(var(--hdr) + 28px) 0 calc(40px + var(--tabbar));
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s;
}
.menu-open #mobileMenu { opacity: 1; visibility: visible; transition-delay: 0s; }
.mm-inner { width: min(520px, 100% - 32px); margin-inline: auto; display: grid; gap: 2px; }
.mm-label { margin: 18px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.mm-label:first-child { margin-top: 0; }
.mm-inner > a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 14px; font-size: 17px; font-weight: 600; color: #ece4d1; transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s, background-color 0.2s; }
.mm-inner > a svg { width: 20px; height: 20px; color: var(--gold); }
.mm-inner > a:hover, .mm-inner > a.active { background: rgba(212, 175, 95, 0.08); }
.menu-open .mm-inner > a { transform: none; opacity: 1; transition-delay: calc(var(--k, 0) * 25ms); }
.mm-cta { display: grid; gap: 10px; margin-top: 22px; }
.menu-open { overflow: hidden; }

/* ---------------- views ---------------- */
.view { display: none; }
.view.active { display: block; }

/* ---------------- HERO ---------------- */
.hero { position: relative; padding: calc(var(--hdr) + 64px) 0 56px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px 600px at 78% 45%, rgba(212, 175, 95, 0.14), transparent 65%),
  linear-gradient(180deg, transparent 70%, var(--bg)); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: radial-gradient(rgba(212, 175, 95, 0.18) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; min-height: min(620px, calc(100svh - var(--hdr) - 220px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin: 0 0 24px; border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 20, 27, 0.7); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212, 175, 95, 0.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(212, 175, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 95, 0); } }
.hero-title { font-size: clamp(36px, 4.8vw, 62px); margin-bottom: 22px; }
.hero-lead { font-size: clamp(16px, 1.35vw, 19px); color: #d2cbbb; max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.hero-link svg { width: 18px; height: 18px; color: var(--gold); }
.hero-link u { text-decoration-color: rgba(212, 175, 95, 0.5); text-underline-offset: 4px; color: var(--gold-2); }
.hero-link:hover { color: var(--text); }

.hero-art { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.hero-art .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 80s linear infinite; will-change: transform; }
.hero-art .ring text { font-family: var(--serif); font-size: 15px; letter-spacing: 6px; fill: rgba(212, 175, 95, 0.5); }
#bigScale { position: absolute; inset: 12% 12% 8%; width: 76%; height: 80%; overflow: visible; }

.trust { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(13, 15, 20, 0.75); overflow: hidden; }
.trust li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: rgba(212, 175, 95, 0.08); color: var(--gold); }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.trust b { display: block; font-size: 14.5px; margin-bottom: 2px; }

/* ---------------- sections ---------------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(212, 175, 95, 0.025) 30%, rgba(212, 175, 95, 0.025) 70%, transparent); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 54px); }
.sec-head .lead { margin: 0; }
.center-link { text-align: center; margin: 28px 0 0; }

.card { position: relative; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--panel-2), var(--bg-2)); border: 1px solid var(--line); isolation: isolate; overflow: hidden; transition: border-color 0.3s, transform 0.35s var(--ease), opacity 0.7s var(--ease); }
@media (hover: hover) {
  .card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 95, 0.12), transparent 50%); }
  .card:hover::before { opacity: 1; }
}
.ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: linear-gradient(145deg, rgba(212, 175, 95, 0.16), rgba(212, 175, 95, 0.02)); border: 1px solid var(--line-2); flex: none; }
.ic svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* tasks */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task { display: flex; flex-direction: column; gap: 8px; padding: 26px; min-height: 220px; }
.task .ic { margin-bottom: 10px; }
.task b { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; }
.task small { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.task .go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold-2); }
.task .go svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.task:hover { border-color: var(--line-2); transform: translateY(-4px); }
.task:hover .go svg { transform: translateX(4px); }

/* institucional */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--bg-2); padding: 20px 22px; }
.stats b { display: block; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1; margin-bottom: 8px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 13px; color: var(--muted); }
.cert-wrap { display: grid; justify-items: center; gap: 14px; }
.cert { width: min(420px, 100%); padding: 26px; border-radius: var(--r-xl); position: relative; background: radial-gradient(120% 70% at 50% 0%, rgba(212, 175, 95, 0.12), transparent 60%), linear-gradient(170deg, #161a23, #0b0d12); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.cert::after { content: ""; position: absolute; inset: 10px; border-radius: 24px; border: 1px solid rgba(212, 175, 95, 0.14); pointer-events: none; }
.cert-head { display: flex; gap: 14px; align-items: center; padding: 6px 4px 18px; border-bottom: 1px solid var(--line); }
.cert-head b { display: block; font-family: var(--serif); font-size: 16px; }
.cert-head small { font-size: 11px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.cert-body { margin: 0; padding: 14px 4px 20px; display: grid; gap: 10px; }
.cert-body div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding-bottom: 10px; border-bottom: 1px dashed rgba(212, 175, 95, 0.12); }
.cert-body dt { color: var(--muted); }
.cert-body dd { margin: 0; font-weight: 600; text-align: right; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: 0.03em; }
.ok { color: var(--ok) !important; display: inline-flex; align-items: center; gap: 6px; }
.ok svg { width: 15px; height: 15px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 4px; }
.qr { width: 76px; height: 76px; border-radius: 12px; padding: 8px; background: #f3ead2; }
.qr::before { content: ""; display: block; width: 100%; height: 100%; opacity: 0.85; background: conic-gradient(from 90deg at 30% 30%, #111 0 25%, transparent 0) 0 0 / 12px 12px, linear-gradient(#111 0 0) 0 0 / 18px 18px no-repeat, linear-gradient(#111 0 0) 100% 0 / 18px 18px no-repeat, linear-gradient(#111 0 0) 0 100% / 18px 18px no-repeat; }
.wax { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; color: #4a3510; background: radial-gradient(circle at 35% 30%, #f3d98f, #b4892f 55%, #6e4f17); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.35), inset 0 4px 8px rgba(255, 255, 255, 0.3), 0 10px 24px -8px rgba(212, 175, 95, 0.5); }
.wax svg { width: 44px; height: 44px; }
.cert-cap { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.cert-cap a { color: var(--gold-2); display: inline-flex; align-items: center; gap: 4px; }
.cert-cap svg { width: 14px; height: 14px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.bento .ic { margin-bottom: 12px; }
.bento-a { grid-row: span 2; }
.bento-a h3 { font-size: 24px; }
.bento-a p { font-size: 16px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(212, 175, 95, 0.05); font-size: 13px; color: #e3d8bf; }
.bento .excl { grid-column: span 2; border-style: dashed; background: transparent; }
.excl h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #f0c4b8; }
.excl h3 svg { width: 18px; height: 18px; }

/* timeline */
.flow-wrap, .faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--hdr) + 40px); }
.sticky-head .btn { margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; }
.timeline::before { background: rgba(212, 175, 95, 0.14); }
.timeline::after { background: var(--gold-grad); transform-origin: top; transform: scaleY(var(--p)); }
.timeline li { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.tl-n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold); background: var(--panel); border: 1px solid var(--line-2); transition: background 0.4s, color 0.4s, box-shadow 0.4s; }
.timeline li.lit .tl-n { background: var(--gold-grad); color: #1b150a; box-shadow: 0 0 30px -6px rgba(212, 175, 95, 0.6); }
.timeline li > div { flex: 1; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(17, 20, 27, 0.7); }
.timeline h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.timeline p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.timeline small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* flows */
.flows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.flow { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.flow p { flex: 1; margin-bottom: 14px; }
.fl-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 8px; }
.fl-st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #d6ccb6; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.fl-st svg { width: 16px; height: 16px; color: var(--gold); }
.fl-st.good { color: #cdeedb; border-color: rgba(134, 207, 167, 0.3); }
.fl-st.good svg { color: var(--ok); }

/* organs */
.organs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.organ { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.organ .ic { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 8px; }
.organ .ic svg { width: 21px; height: 21px; }
.organ h3 { font-size: 15.5px; margin: 0; }
.organ p { font-size: 13.5px; line-height: 1.5; }
.organ small { margin-top: auto; padding-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); border: 1px solid var(--line); background: rgba(17, 20, 27, 0.7); transition: border-color 0.25s, background-color 0.25s; }
.faq details[open] { border-color: var(--line-2); background: rgba(22, 26, 35, 0.85); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px; background: var(--gold); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary i { background: rgba(212, 175, 95, 0.12); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--gold-2); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); font-size: 15px; animation: up 0.4s var(--ease); }
.faq details p { margin: 0; }
.faq a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(500px 400px at 100% 0%, rgba(212, 175, 95, 0.14), transparent 65%), linear-gradient(160deg, #13161e, #0a0c10); }
.contact-info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-size: 15px; word-break: break-word; }
.contact-info svg { width: 20px; height: 20px; color: var(--gold); }
.contact-info a { color: var(--gold-2); }
.contact-topics { display: grid; gap: 10px; }
.topic { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease); }
.topic > svg:first-child { width: 22px; height: 22px; color: var(--gold); }
.topic span { flex: 1; display: grid; }
.topic b { font-size: 15px; }
.topic small { font-size: 13px; color: var(--muted); }
.topic .arr { width: 18px; height: 18px; color: var(--gold-2); transition: transform 0.3s var(--ease); }
.topic:hover { border-color: var(--gold); background: rgba(212, 175, 95, 0.06); }
.topic:hover .arr { transform: translateX(4px); }

/* ---------------- page hero / crumbs ---------------- */
.page-hero { padding: calc(var(--hdr) + 52px) 0 28px; position: relative; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .crumbs { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs b { color: var(--gold-2); font-weight: 600; }

/* normas hub */
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 100px; }
.doc-card { display: flex; gap: 20px; padding: 26px; }
.doc-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.doc-card .ic { width: 56px; height: 56px; border-radius: 18px; }
.doc-card .ic svg { width: 26px; height: 26px; }
.doc-card div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.doc-card small.k { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.doc-card h3 { margin: 0; }
.doc-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.doc-card .meta span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: #d9cfb8; }
.doc-card .go { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--gold-2); display: inline-flex; align-items: center; gap: 6px; }
.doc-card .go svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.doc-card:hover .go svg { transform: translateX(4px); }

/* ---------------- DOCUMENT VIEW ---------------- */
.doc-hero { padding: calc(var(--hdr) + 52px) 0 30px; }
.doc-hero .h1 { font-size: clamp(30px, 4.2vw, 54px); max-width: 22ch; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.doc-meta div { padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(17, 20, 27, 0.7); }
.doc-meta small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.doc-meta b { font-size: 14px; font-weight: 600; }
.doc-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 12, 16, 0.9); flex: 1; min-width: min(360px, 100%); max-width: 520px; transition: border-color 0.2s, box-shadow 0.2s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 95, 0.12); }
.search svg { width: 18px; height: 18px; color: var(--gold); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--dim); }
.search kbd { font: 600 11px var(--sans); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.search .count { font-size: 12.5px; color: var(--gold-2); white-space: nowrap; }
.search.sm { height: 44px; max-width: 320px; min-width: 240px; }

.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; padding-bottom: 80px; align-items: start; }
.doc-layout > *, .split > *, .flow-wrap > *, .faq-wrap > *, .contact > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); max-height: calc(100vh - var(--hdr) - 48px); overflow: auto; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(12, 14, 19, 0.85); scrollbar-width: thin; scrollbar-color: rgba(212, 175, 95, 0.3) transparent; }
.toc h4 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; gap: 8px; }
.toc h4 span { color: var(--dim); letter-spacing: 0.05em; text-transform: none; font-weight: 600; }
.toc-prog { height: 2px; background: rgba(212, 175, 95, 0.12); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.toc-prog i { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); }
.toc a { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: baseline; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; color: #b8b09f; line-height: 1.35; position: relative; transition: background-color 0.2s, color 0.2s; }
.toc a em { font-style: normal; font-family: var(--serif); font-size: 11.5px; color: var(--gold-3); }
.toc a:hover { color: var(--text); background: rgba(212, 175, 95, 0.05); }
.toc a.on { color: #fff; background: rgba(212, 175, 95, 0.1); }
.toc a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gold); }
.toc a.dim { opacity: 0.3; }

.chapter { margin-bottom: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(16, 19, 26, 0.75); overflow: hidden; scroll-margin-top: calc(var(--hdr) + 24px); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.chapter-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 22px; text-align: left; transition: background-color 0.2s; }
.chapter-head:hover { background: rgba(212, 175, 95, 0.04); }
.chapter.open .chapter-head { border-bottom: 1px solid var(--line); }
.ch-num { flex: none; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--gold-2); background: rgba(212, 175, 95, 0.08); border: 1px solid var(--line-2); }
.ch-t { flex: 1; min-width: 0; }
.ch-t small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.ch-t b { font-family: var(--serif); font-size: clamp(15.5px, 1.6vw, 19px); font-weight: 600; line-height: 1.3; display: block; }
.ch-count { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.ch-chev { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--gold); transition: transform 0.35s var(--ease); }
.ch-chev svg { width: 16px; height: 16px; }
.chapter.open .ch-chev { transform: rotate(180deg); }
.ch-body { display: none; }
.chapter.open .ch-body { display: block; }
.art { padding: 22px 24px 18px; border-top: 1px solid rgba(212, 175, 95, 0.07); position: relative; scroll-margin-top: calc(var(--hdr) + 24px); transition: background-color 0.4s; }
.art:first-child { border-top: 0; }
.art.flash { background: rgba(212, 175, 95, 0.1); }
.art-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.art-n { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--gold); letter-spacing: 0.03em; white-space: nowrap; }
.art-t { font-family: var(--serif-2); font-size: 19px; font-style: italic; font-weight: 500; color: #f0e6cd; }
.art-body { font-family: var(--serif-2); font-weight: 500; font-size: clamp(17.5px, 1.4vw, 19.5px); line-height: 1.7; color: #e2dac8; max-width: 72ch; }
.art-body p { margin: 0 0 0.7em; }
.art-body ul, .art-body ol { margin: 0.2em 0 0.9em; padding: 0; list-style: none; }
.art-body li { position: relative; padding-left: 24px; margin-bottom: 0.35em; }
.art-body ul > li::before { content: "◆"; position: absolute; left: 3px; top: 0.2em; font-size: 9px; color: var(--gold); }
.art-body ol.roman > li { padding-left: 0; }
.art-body ol.roman > li > b:first-child { font-family: var(--serif); font-size: 0.85em; color: var(--gold-2); }
.art-body .note { margin-top: 1em; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(212, 175, 95, 0.05); font-style: italic; }
.art-actions { display: flex; gap: 6px; margin-top: 6px; opacity: 0.55; transition: opacity 0.2s; }
.art:hover .art-actions, .art-actions:focus-within { opacity: 1; }
.art-actions button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.art-actions button:hover { color: var(--gold-2); border-color: var(--gold); }
.art-actions svg { width: 14px; height: 14px; }
mark { background: rgba(212, 175, 95, 0.38); color: #fff; border-radius: 3px; padding: 0 2px; }
.hidden-by-search { display: none !important; }
.no-results { display: none; text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.no-results.show { display: block; }

.signature { margin-top: 28px; padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: radial-gradient(80% 120% at 0% 0%, rgba(212, 175, 95, 0.08), transparent 60%), var(--bg-2); }
.signature small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.signature h4 { margin: 4px 0 2px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.signature p { margin: 0; font-size: 13.5px; color: var(--muted); }
.signature .wax { width: 64px; height: 64px; }
.signature .wax svg { width: 34px; height: 34px; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.doc-pager a { padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(17, 20, 27, 0.7); display: grid; gap: 2px; transition: border-color 0.2s, transform 0.3s var(--ease); }
.doc-pager a:hover { border-color: var(--gold); transform: translateY(-2px); }
.doc-pager small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.doc-pager small svg { width: 14px; height: 14px; }
.doc-pager b { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.doc-pager .next { text-align: right; }
.doc-pager .next small { justify-content: flex-end; }

/* TOC sheet (mobile) */
.toc-fab { display: none; position: fixed; left: 16px; bottom: calc(var(--tabbar) + 16px); z-index: 85; height: 48px; padding: 0 18px; border-radius: 999px; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; background: var(--gold-grad); color: #1b150a; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7); }
.toc-fab svg { width: 18px; height: 18px; }
.sheet { position: fixed; inset: 0; z-index: 140; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.25s; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto; overscroll-behavior: contain; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #10131a; border-top: 1px solid var(--line-2); transform: translateY(100%); transition: transform 0.35s var(--ease); }
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { width: 44px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); margin: 4px auto 14px; }
.sheet-panel h4 { margin: 0 0 10px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.sheet-panel a { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 12px 8px; border-radius: 12px; font-size: 15px; border-bottom: 1px solid rgba(212, 175, 95, 0.06); }
.sheet-panel a em { font-style: normal; font-family: var(--serif); color: var(--gold); font-size: 13px; }
.sheet-panel a.on { background: rgba(212, 175, 95, 0.1); }

/* ---------------- CUSTAS ---------------- */
.filter-bar { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(17, 20, 27, 0.8); font-size: 13px; font-weight: 600; color: #cdc5b3; display: inline-flex; align-items: center; gap: 7px; transition: background-color 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.chip:hover { border-color: var(--line-2); color: #fff; }
.chip.on { background: var(--gold-grad); color: #1b150a; border-color: transparent; }
.chip.on svg { color: #1b150a; }
.cost-list { display: grid; gap: 28px; }
.cost-group h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.cost-group h3 em { font-style: normal; font-size: 12px; min-width: 38px; height: 28px; padding: 0 9px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); }
.cost-rows { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(16, 19, 26, 0.75); }
.cost-row { display: grid; grid-template-columns: 64px 1.4fr 1fr 1.3fr; gap: 18px; align-items: center; padding: 16px 22px; transition: background-color 0.2s; }
.cost-row + .cost-row { border-top: 1px solid rgba(212, 175, 95, 0.08); }
.cost-row:hover { background: rgba(212, 175, 95, 0.04); }
.cr-code { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 13.5px; }
.cr-item { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.cr-val { font-family: var(--serif); font-weight: 700; font-size: 15.5px; color: #fff3d2; line-height: 1.35; }
.cr-val.soft { color: var(--gold-2); }
.cr-obs { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cost-foot { margin: 24px 0 0; display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-radius: var(--r); border: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.cost-foot svg { width: 18px; height: 18px; color: var(--gold); }

.costs-page { padding: 8px 0 100px; }
.cost-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(400px 200px at 100% 0%, rgba(212, 175, 95, 0.12), transparent 70%), var(--bg-2); }
.cost-cta b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.cost-cta span { font-size: 14px; color: var(--muted); }
/* ---------------- VALIDATOR ---------------- */
.validator { padding: clamp(24px, 4vw, 44px); display: grid; justify-items: center; gap: 24px; margin-bottom: 18px; }
.v-scanner { position: relative; width: 150px; height: 150px; }
.v-scanner svg { width: 100%; height: 100%; overflow: visible; }
.v-r1, .v-r2 { fill: none; stroke: var(--gold); transform-origin: center; transition: stroke 0.3s; }
.v-r1 { stroke-opacity: 0.3; stroke-dasharray: 3 7; }
.v-r2 { stroke-opacity: 0.5; stroke-dasharray: 60 20; fill: rgba(212, 175, 95, 0.04); }
.v-ic { color: var(--gold); transition: color 0.3s; }
.v-beam { position: absolute; left: 26%; right: 26%; height: 2px; top: 30%; background: var(--gold-2); box-shadow: 0 0 12px var(--gold); opacity: 0; border-radius: 2px; }
.v-scanner.busy .v-r2 { animation: spin 1.1s linear infinite; }
.v-scanner.busy .v-beam { opacity: 1; animation: beam 0.8s ease-in-out infinite alternate; }
@keyframes beam { from { top: 30%; } to { top: 70%; } }
.v-scanner.good .v-r1, .v-scanner.good .v-r2 { stroke: var(--ok); }
.v-scanner.good .v-ic { color: var(--ok); }
.v-scanner.bad .v-r1, .v-scanner.bad .v-r2 { stroke: var(--bad); }
.v-form { width: 100%; display: grid; gap: 10px; }
.v-form label { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-align: center; }
.v-input { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); transition: border-color 0.2s, box-shadow 0.2s; }
.v-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 95, 0.12); }
.v-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 16px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; }
.v-help { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }
.link { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.v-result { width: 100%; }
.v-res { border-radius: var(--r); padding: 20px 22px; border: 1px solid var(--line-2); animation: up 0.4s var(--ease); }
.v-res.good { border-color: rgba(134, 207, 167, 0.45); background: rgba(134, 207, 167, 0.06); }
.v-res.bad { border-color: rgba(231, 154, 137, 0.45); background: rgba(231, 154, 137, 0.06); }
.v-res h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.v-res h4 svg { width: 22px; height: 22px; }
.v-res.good h4 { color: #c6ead6; }
.v-res.bad h4 { color: #f3c7bc; }
.v-res dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.v-res dt { color: var(--muted); }
.v-res dd { margin: 0; font-weight: 600; }
.v-res .tag { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--gold); }
.v-res p { margin: 0; font-size: 14.5px; color: #ddd3c3; }
.demo-note { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13px; color: var(--dim); text-align: center; margin: 0 0 100px; }
.demo-note svg { width: 16px; height: 16px; color: var(--gold-3); }

/* ---------------- FOOTER ---------------- */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: #06070a; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 18px 0 10px; max-width: 40ch; }
.foot-laws { font-size: 12.5px !important; color: var(--dim) !important; }
.footer h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.footer nav a { display: block; font-size: 14.5px; color: #c9c1ae; padding: 6px 0; transition: color 0.2s; }
.footer nav a:hover { color: var(--gold-2); }
.footer .ico { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c9c1ae; margin: 0 0 10px; word-break: break-word; }
.footer .ico a:hover { color: var(--gold-2); }
.footer .ico svg { width: 17px; height: 17px; color: var(--gold); margin-top: 3px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; font-size: 12.5px; color: var(--dim); }
.foot-bottom p { max-width: 90ch; margin: 0; }
.foot-bottom p b { color: var(--gold); }

/* ---------------- floating ---------------- */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(var(--tabbar) + 20px); z-index: 85; height: 58px; min-width: 58px; padding: 0 17px;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waIn 0.6s 1s var(--ease) both, waPulse 3s 2s ease-out 3; transition: transform 0.25s var(--ease), background-color 0.2s;
}
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab span { font-weight: 700; font-size: 14.5px; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.35s var(--ease); }
.wa-fab:hover { background: #20bd5a; transform: translateY(-2px); }
.wa-fab:hover span, .wa-fab:focus-visible span { max-width: 140px; }
@keyframes waIn { from { opacity: 0; transform: scale(0.6); } }
@keyframes waPulse { 0% { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.55); } 100% { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 0 16px rgba(37, 211, 102, 0); } }
.contact-copy .btn-wa { margin-top: 6px; }
.emails { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); }
.emails-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.emails-title svg { width: 18px; height: 18px; }
.emails-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.email { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s; }
.email:hover { border-color: var(--line-2); }
.email span { grid-column: 1; display: grid; }
.email b { font-size: 14.5px; }
.email small { font-size: 12.5px; color: var(--muted); }
.email a { grid-column: 1; font-size: 14px; font-weight: 600; color: var(--gold-2); word-break: break-all; }
.email a:hover { text-decoration: underline; text-underline-offset: 3px; }
.email button { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold-2); transition: background-color 0.2s; }
.email button:hover { background: rgba(212, 175, 95, 0.1); }
.email button svg { width: 17px; height: 17px; }
.foot-mails { display: grid; gap: 4px; }
.cost-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#toTop { position: fixed; right: 25px; bottom: calc(var(--tabbar) + 92px); z-index: 80; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); background: rgba(14, 16, 22, 0.92); border: 1px solid var(--line-2); opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; }
#toTop svg { width: 20px; height: 20px; }
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { border-color: var(--gold); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 24px); z-index: 250; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--gold-grad); color: #1b150a; font-weight: 700; font-size: 14px; box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; white-space: nowrap; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.tabbar { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1220px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-links > li > a, .mega-btn { padding: 0 11px; }
}
@media (max-width: 1060px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr 0.8fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tasks { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-a { grid-column: span 2; grid-row: auto; }
  .flow-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
  .organs { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-fab { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cost-row { grid-template-columns: 56px 1fr 1fr; }
  .cr-obs { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  :root { --hdr: 64px; --tabbar: calc(64px + env(safe-area-inset-bottom)); }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  #header { top: 8px; }
  .nav { height: 56px; width: calc(100% - 16px); padding: 0 6px 0 8px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-txt b { font-size: 14px; }
  .brand-txt small { font-size: 8.5px; }
  .burger { width: 42px; height: 42px; }
  .burger i { left: 12px; right: 12px; }
  .burger i:first-child { top: 16px; }
  .burger i:last-child { top: 24px; }
  .menu-open .burger i:first-child, .menu-open .burger i:last-child { top: 20px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    height: var(--tabbar); padding: 6px 8px env(safe-area-inset-bottom);
    background: rgba(10, 11, 15, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--gold-2); }
  .tabbar a.active svg { color: var(--gold); }

  .hero { padding: calc(var(--hdr) + 36px) 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-art { max-width: 250px; margin: 26px auto 0; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.08em; margin-bottom: 18px; }
  .eyebrow .opt { display: none; }
  .task b { font-size: 16px; }
  .hero-title { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .trust li { flex-direction: column; gap: 10px; padding: 16px; }
  .trust span { font-size: 12.5px; }
  .tasks { grid-template-columns: 1fr; gap: 10px; }
  .task { min-height: 0; padding: 18px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; }
  .task .ic { grid-row: span 3; margin: 0; }
  .task .go { padding-top: 6px; }
  .bento { grid-template-columns: 1fr; }
  .bento-a, .bento .excl { grid-column: auto; }
  .bento .card { padding: 22px; }
  .stats > div { padding: 16px; }
  .flows { grid-template-columns: 1fr; }
  .organs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .organ { padding: 16px; }
  .organ p { display: none; }
  .timeline li { gap: 14px; }
  .tl-n { width: 46px; height: 46px; border-radius: 15px; font-size: 17px; }
  .timeline::before, .timeline::after { left: 22px; }
  .timeline li > div { padding: 14px 16px; }
  .faq summary { padding: 16px 18px; font-size: 15px; }
  .faq details > div { padding: 0 18px 16px; }
  .contact { padding: 22px; }

  .doc-cards { grid-template-columns: 1fr; }
  .doc-card { padding: 20px; gap: 14px; }
  .doc-card .ic { width: 46px; height: 46px; }
  .doc-tools .btn-ghost span { display: none; }
  .search { min-width: 0; max-width: none; flex-basis: 100%; }
  .search kbd { display: none; }
  .search.sm { min-width: 0; max-width: none; width: 100%; }
  .chipset { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chipset::-webkit-scrollbar { display: none; }
  .chapter-head { padding: 14px 16px; gap: 12px; }
  .ch-num { min-width: 40px; height: 40px; font-size: 12.5px; border-radius: 12px; }
  .ch-count { display: none; }
  .art { padding: 18px 16px 14px; }
  .art-actions { opacity: 1; }
  .doc-pager { grid-template-columns: 1fr; }
  .signature { padding: 20px; }

  .cost-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .cr-code { grid-column: 1 / -1; font-size: 12px; }
  .cr-item { grid-column: 1; }
  .cr-val { grid-column: 2; grid-row: 2; text-align: right; font-size: 14.5px; }
  .cr-obs { grid-column: 1 / -1; }
  .cost-cta { padding: 18px; }
  .cost-cta-btns, .cost-cta .btn { width: 100%; }
  .contact-copy .btn-wa { width: 100%; }
  .emails-grid { grid-template-columns: 1fr; }
  .wa-fab { right: 14px; bottom: calc(var(--tabbar) + 14px); height: 54px; min-width: 54px; padding: 0 14px; }
  .toc-fab { right: auto; left: 16px; }
  .v-input { flex-direction: column; border-radius: 20px; }
  .v-input input { height: 50px; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  #toTop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
}

@media print {
  #header, #progress, #toTop, .footer, .tabbar, .doc-tools, .toc, .toc-fab, .art-actions, .doc-pager, #mobileMenu { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  body::before { display: none; }
  .chapter { border-color: #ccc; background: none; content-visibility: visible; }
  .ch-body { display: block !important; }
  .art-body, .ch-t b, .h1 { color: #000; }
  .doc-layout { display: block; }
}
