/* Site de vendas Brabu Painel.
   Paleta do tema Brabu: roxo = marca e superfícies, amarelo = ação (só botões principais e destaques).
   Movimento só com transform/opacity e desligado em prefers-reduced-motion. */
:root {
  --bg: #0B0216;
  --bg-2: #110520;
  --surface: #170A29;
  --surface-2: #1F0F36;
  --surface-3: #2A1647;
  --line: rgba(190, 120, 255, 0.14);
  --line-strong: rgba(190, 120, 255, 0.3);
  --ink: #F7F3FD;
  --muted: #BCAFD3;
  --subtle: #9384AE;
  --accent: #FFC300;
  --accent-hover: #FFD447;
  --on-accent: #1A1000;
  --purple: #8A00FF;
  --purple-hi: #BE7BFF;
  --purple-soft: rgba(138, 0, 255, 0.14);
  --ok: #3DDC97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --danger: #FF6B81;
  --danger-soft: rgba(255, 107, 129, 0.12);
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Exo 2", "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 64px); font-style: italic; font-weight: 900; }
h2 { font-size: clamp(30px, 4.2vw, 50px); font-style: italic; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 14px; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 40; transition: background .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.top.is-scrolled { background: rgba(11, 2, 22, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: 0.02em; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand small { display: block; margin-top: 4px; font: 600 10px/1 var(--font); letter-spacing: 0.42em; color: var(--accent); font-style: normal; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.top-nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-cta { display: flex; align-items: center; gap: 8px; }
.top-row > .top-cta:first-of-type:last-child { margin-left: auto; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Menu do celular */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5, 0, 12, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s var(--ease); }
.sheet-panel { position: absolute; inset: 0 0 auto 0; background: var(--bg-2); border-bottom: 1px solid var(--line-strong); border-radius: 0 0 24px 24px; padding: 14px 20px 24px; animation: drop .32s var(--ease); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-bottom: 8px; }
.sheet nav { display: grid; }
.sheet nav a { color: var(--ink); text-decoration: none; font: italic 800 26px/1 var(--display); padding: 16px 4px; border-bottom: 1px solid var(--line); }
.sheet-actions { display: grid; gap: 10px; margin-top: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--purple-hi); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(255, 195, 0, 0.6); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); box-shadow: 0 14px 34px -12px rgba(255, 195, 0, 0.75); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(138, 0, 255, 0.32), transparent 70%),
    radial-gradient(420px 300px at 92% 70%, rgba(255, 195, 0, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--mono); letter-spacing: 0.02em; color: var(--purple-hi); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
.hero h1 em { display: block; font-style: italic; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .i { width: 18px; height: 18px; color: var(--ok); }
.ticks-col { flex-direction: column; gap: 12px; font-size: 15px; }

/* Aparelhos com as telas reais */
.stage { position: relative; margin: 0; padding: 0 0 56px; }
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.chrome i:first-child { background: #FF5F7A; opacity: .7; }
.chrome i:nth-child(2) { background: var(--accent); opacity: .7; }
.chrome i:nth-child(3) { background: var(--ok); opacity: .7; }
.url { margin-left: 12px; flex: 1; min-width: 0; max-width: 320px; padding: 4px 12px; border-radius: 999px; background: var(--bg-2); color: var(--subtle); font: 500 12px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-desktop {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2);
  box-shadow: 0 40px 100px -30px rgba(138, 0, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: 60% 50%;
  transition: transform .8s var(--ease);
}
.stage:hover .device-desktop { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }
.device-phone {
  position: relative; border-radius: 34px; padding: 8px; background: linear-gradient(160deg, #3A2260, #160A28);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}
.device-phone img { border-radius: 27px; }
.stage .device-phone { position: absolute; width: 27%; right: -2%; bottom: 0; transform: rotate(4deg); transition: transform .8s var(--ease); }
.stage:hover .device-phone { transform: rotate(1deg) translateY(-6px); }
.stage figcaption { position: absolute; left: 0; bottom: 6px; font-size: 12.5px; color: var(--subtle); max-width: 60%; }

/* Faixa corrida */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: italic 800 clamp(20px, 2.4vw, 28px)/1 var(--display); color: var(--muted); white-space: nowrap; }
.ticker span::after { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; }
.ticker span:nth-child(3n + 2) { color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.block { padding: 112px 0; position: relative; }
.block-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg) 85%); border-top: 1px solid var(--line); }
.block-head { max-width: 720px; margin: 0 0 48px; }
.block-head .muted { font-size: 17px; max-width: 600px; }
.kicker { font: 600 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.04em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* Tour por abas */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-tabs { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 24px); }
.tour-tabs button {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 18px; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.tour-tabs button:hover { background: var(--surface); color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.tab-num { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--mono); background: var(--surface-3); color: var(--muted); }
.tour-tabs [aria-selected="true"] .tab-num { background: var(--accent); color: var(--on-accent); }
.tour-tabs strong { display: block; font-size: 16px; color: inherit; }
.tour-tabs small { display: block; font-size: 13.5px; color: var(--subtle); margin-top: 2px; }
.tour-view { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); box-shadow: 0 40px 90px -40px rgba(138, 0, 255, 0.5); }
.tour-shots { display: grid; }
.tour-shots img { grid-area: 1 / 1; opacity: 0; transform: scale(1.015); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.tour-shots img.is-on { opacity: 1; transform: none; }

/* Bento de recursos */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; }
.tile-full .tile-icon { margin: 0; grid-row: span 2; }
.tile-full h3 { margin: 0; }
.tile-full p { grid-column: 2; }
.tile-full .chips { grid-column: 3; grid-row: 1 / span 2; margin: 0; justify-content: flex-end; max-width: 340px; }
.tile-accent { background: linear-gradient(160deg, rgba(255, 195, 0, 0.13), var(--surface) 55%); border-color: rgba(255, 195, 0, 0.3); }
.tile-accent .tile-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px; background: var(--purple-soft); color: var(--purple-hi); border: 1px solid var(--line-strong); }
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-2); }

/* Celular */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split-copy .muted { font-size: 17px; max-width: 520px; }
.split-art { display: grid; place-items: center; position: relative; }
.split-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(138, 0, 255, 0.4), transparent 68%); z-index: -1; }
.device-phone-lg { width: min(270px, 64%); transform: rotate(-3deg); }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }
.step strong { color: var(--ink); overflow-wrap: anywhere; }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-strong); font: italic 900 26px/1 var(--display); color: var(--accent); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; left: calc(28px + 52px + 14px); right: -16px; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), transparent); transform-origin: left; transform: scaleX(0); transition: transform .9s .3s var(--ease);
}
.step.is-in:not(:last-child)::after { transform: scaleX(1); }

/* Planos */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); }
.plans-single { grid-template-columns: minmax(0, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); }
.plan-featured { background: linear-gradient(170deg, rgba(255, 195, 0, 0.12), var(--surface) 45%); border-color: rgba(255, 195, 0, 0.45); }
.plan h3 { font-size: 24px; font-style: italic; font-weight: 800; margin: 0; }
.price { font-family: var(--display); font-size: clamp(42px, 5vw, 56px); font-weight: 900; font-style: italic; line-height: 1; color: var(--ink); }
.price small { font: 600 15px var(--font); color: var(--muted); font-style: normal; margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plans-single .plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 48px; align-items: center; padding: 40px; }
.plans-single .plan-top { display: grid; gap: 16px; }
.plans-single .plan ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans-single .plan .btn { grid-column: 1; margin-top: 0; }
.plan-skeleton { min-height: 360px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.plans-empty { padding: 36px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--surface); max-width: 620px; }

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform .3s var(--ease), background-size .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; }
.faq details p { color: var(--muted); padding: 0 44px 22px 0; margin: 0; }
.faq details[open] p { animation: fade .35s var(--ease); }

/* Fechamento */
.closing { padding: 40px 0 112px; }
.closing-box {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: center;
  padding: 48px; border-radius: 30px; border: 1px solid var(--line-strong); overflow: hidden;
  background: radial-gradient(600px 300px at 0% 50%, rgba(138, 0, 255, 0.3), transparent 70%), var(--surface);
}
.closing-logo { border-radius: 20px; }
.closing h2 { margin-bottom: 10px; }
.closing .hero-actions { margin-top: 24px; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--subtle); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---------- Revelar ao rolar ---------- */
/* Topo: entra ao carregar, só com CSS (não depende do JavaScript). */
.hero .reveal { animation: rise .9s var(--ease) both; }
.hero .hero-copy .reveal:nth-child(2) { animation-delay: .08s; }
.hero .hero-copy .reveal:nth-child(3) { animation-delay: .16s; }
.hero .hero-copy .reveal:nth-child(4) { animation-delay: .24s; }
.hero .hero-copy .reveal:nth-child(5) { animation-delay: .32s; }
.hero .stage.reveal { animation: rise-stage 1.1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise-stage { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
/* Resto: o JavaScript marca .js e revela ao rolar. */
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
.js .reveal { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Páginas internas (compra, pedido, textos legais) ---------- */
.page-top { padding: 48px 0 28px; max-width: 680px; }
.page-top h1 { font-size: clamp(34px, 5vw, 52px); }
.checkout { padding: 8px 0 72px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.field label, .legend { font-weight: 700; font-size: 14px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--ink); font: 500 16px/1.2 var(--font); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--subtle); }
.input:hover { border-color: rgba(190, 120, 255, 0.45); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 195, 0, 0.16); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 195, 0, 0.16); }
.affix .input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.affix span { display: flex; align-items: center; padding: 0 16px; color: var(--muted); background: var(--surface-2); border-left: 1px solid var(--line); font: 500 14px var(--mono); white-space: nowrap; }
.hint { font-size: 13.5px; color: var(--subtle); margin: 0; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--danger); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: rgba(255, 195, 0, 0.5); }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(255, 195, 0, 0.07); }
.choice input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.choice strong { display: block; }
.choice .amount { margin-left: auto; font: italic 800 20px/1 var(--display); color: var(--accent); white-space: nowrap; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--accent); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--danger-soft); border: 1px solid rgba(255, 107, 129, 0.4); color: #FFC2CC; margin: 0; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--purple-soft); border: 1px solid var(--line-strong); color: var(--muted); margin-bottom: 20px; }
.summary h3 { font-size: 22px; font-style: italic; font-weight: 800; }
.summary dl { margin: 0 0 16px; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; align-items: baseline; }
.summary .total dd { font: italic 900 30px/1 var(--display); color: var(--accent); }
.summary-side { position: sticky; top: calc(var(--header-h) + 20px); }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: var(--subtle); font-size: 13.5px; }
.secure-note .i { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }

/* Pedido */
.order { padding: 48px 0 80px; }
.order .card { display: grid; gap: 22px; padding: 36px; }
.order h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--purple-soft); color: var(--purple-hi); border: 1px solid var(--line-strong); width: fit-content; }
.status.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, 0.4); }
.status.bad { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 107, 129, 0.4); }
.qr { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--radius-md); background: var(--bg-2); border: 1px solid var(--line); }
.qr img { width: 236px; height: 236px; background: #fff; border-radius: 16px; padding: 12px; image-rendering: pixelated; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font: 500 13px var(--mono); }
.access { display: grid; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 20px; }
.access div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.access code { font: 600 15px var(--mono); color: var(--ink); background: var(--surface); padding: 7px 11px; border-radius: 8px; overflow-wrap: anywhere; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Textos legais */
.legal { padding: 48px 0 88px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { font-size: 22px; font-style: normal; font-weight: 700; margin-top: 40px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .menu-btn { display: grid; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour-tabs small { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hero { padding: 24px 0 56px; }
  .hero-grid, .split, .faq-grid, .closing-box, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 720px; }
  .device-desktop { transform: none; }
  .stage:hover .device-desktop { transform: none; }
  .block { padding: 80px 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-full { grid-template-columns: auto minmax(0, 1fr); }
  .tile-full .chips { grid-column: 2; grid-row: auto; justify-content: flex-start; max-width: none; margin-top: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .faq-head { position: static; }
  .split-art { order: -1; }
  .closing-box { padding: 32px; text-align: left; }
  .closing-logo { max-width: min(360px, 100%); }
  .plans-single .plan { grid-template-columns: minmax(0, 1fr); }
  .summary-side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 36px; height: 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stage { padding-bottom: 72px; }
  .stage .device-phone { width: 34%; right: 0; border-radius: 22px; padding: 5px; }
  .stage .device-phone img { border-radius: 18px; }
  .stage figcaption { max-width: 58%; bottom: 10px; }
  .chrome { height: 30px; }
  .chrome i { width: 8px; height: 8px; }
  .url { font-size: 11px; }
  .block { padding: 64px 0; }
  .block-head { margin-bottom: 32px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: auto; }
  .tile-full { display: block; }
  .tile-full .tile-icon { margin-bottom: 22px; }
  .tile-full h3 { margin-bottom: 14px; }
  .tile-full .chips { margin-top: 22px; justify-content: flex-start; }
  .tile, .step, .plan, .card { padding: 22px; }
  .tour-tabs { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs button { padding: 14px; }
  .plans-single .plan { padding: 24px; }
  .plans-single .plan ul { grid-template-columns: minmax(0, 1fr); }
  .faq details p { padding-right: 0; }
  .closing { padding-bottom: 72px; }
  .closing-box { padding: 22px; border-radius: 24px; }
  .two { grid-template-columns: 1fr; }
  .qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .order .card { padding: 22px; }
  .access div { display: grid; grid-template-columns: 1fr auto; }
  .access div > span { grid-column: 1 / -1; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .top-cta .btn-primary { padding: 0 14px; }
  .brand span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-track span:nth-child(n + 10) { display: none; }
  .device-desktop, .stage .device-phone { transform: none !important; }
}
