/* =========================================================
   Point Swing — estilos globais
   Paleta: grafite, vinho, roxo e dourado
   ========================================================= */

:root {
  --bg: #141418;
  --bg-2: #18181e;
  --surface: #202027;
  --surface-2: #292931;
  --surface-3: #32323c;
  --line: #34343f;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #f4eee6;
  --muted: #aaa4b4;
  --faint: #7d7787;

  --wine: #8e2348;
  --wine-2: #b0345f;
  --purple: #5b2f9b;
  --purple-2: #7a4ac6;
  --gold: #d9b45a;
  --gold-2: #ecca7c;
  --gold-ink: #1b1710;

  --ok: #4cc38a;
  --warn: #e8b04a;
  --danger: #e5707a;

  --grad-brand: linear-gradient(135deg, var(--wine) 0%, var(--purple) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, #b98f35 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --container: 1180px;
  --header-h: 68px;
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-word { font-size: 24px; line-height: 1; letter-spacing: .2px; white-space: nowrap; }
.brand-word .a { font-weight: 300; color: var(--gold); }
.brand-word .b { font-weight: 700; color: var(--text); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-gold); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(217, 180, 90, .25); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(217, 180, 90, .4); }
.btn-brand { background: var(--grad-brand); color: var(--text); box-shadow: 0 8px 24px rgba(142, 35, 72, .35); }
.btn-brand:hover { box-shadow: 0 10px 30px rgba(122, 74, 198, .45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(20, 20, 24, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .header-actions .btn-ghost { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 479px) {
  .header-actions .btn-primary { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: 12px 16px 20px; display: none; box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.mobile-menu .btn { margin-top: 16px; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 80% 30%, rgba(91, 47, 155, .45), transparent 70%),
    radial-gradient(35% 45% at 15% 20%, rgba(142, 35, 72, .40), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, rgba(217, 180, 90, .10), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } .hero { padding: 80px 0 96px; } }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 180, 90, .18); }

.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 20px 0 18px; letter-spacing: -.02em; }
.hero h1 .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 32px; max-width: 560px; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.trust .icon { color: var(--gold); width: 20px; height: 20px; }

/* Busca rápida */
.search-card {
  margin-top: 32px; padding: 18px; border-radius: var(--radius-lg);
  background: rgba(32, 32, 39, .85); border: 1px solid var(--line);
  box-shadow: var(--shadow); max-width: 620px;
}
.search-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.search-card h2 .icon { color: var(--gold); }
.search-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-grid .btn { grid-column: 1 / -1; }
.search-note { margin-top: 10px; color: var(--faint); font-size: 13px; }

/* Arte do hero (sem fotos) */
.hero-art { position: relative; min-height: 520px; }
.hero-orb {
  position: absolute; inset: 50% auto auto 50%; width: 300px; height: 300px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(122, 74, 198, .55), rgba(142, 35, 72, .35) 55%, transparent 72%);
  filter: blur(4px);
}
.hero-orb::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 1px dashed rgba(217, 180, 90, .25); }
.hero-pin { position: absolute; left: 50%; top: 50%; width: 150px; transform: translate(-50%, -56%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }

.float-card {
  position: absolute; width: 250px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(36, 36, 44, .92); border: 1px solid var(--line);
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  animation: bob 6s ease-in-out infinite;
}
.float-card .fc-top { display: flex; align-items: center; gap: 10px; }
.float-card .fc-title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.float-card .fc-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.float-card.fc-1 { top: 0; left: 0; }
.float-card.fc-2 { top: 96px; right: 0; animation-delay: -1.5s; }
.float-card.fc-3 { bottom: 96px; left: 0; animation-delay: -3s; }
.float-card.fc-4 { bottom: 0; right: 0; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

@media (max-width: 979px) {
  .hero-art { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-orb, .hero-pin { display: none; }
  .float-card { position: static; width: auto; animation: none; }
}
@media (max-width: 520px) { .hero-art { grid-template-columns: 1fr; } }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76, 195, 138, .18); flex: none; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .5px;
  background: var(--grad-brand); color: var(--text); border: 2px solid rgba(255, 255, 255, .08);
}
.avatar.gold { background: var(--grad-gold); color: var(--gold-ink); }
.avatar.purple { background: linear-gradient(135deg, var(--purple-2), var(--purple)); }
.date-chip { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 12px; background: var(--surface-3); flex: none; line-height: 1; }
.date-chip b { font-size: 18px; }
.date-chip small { font-size: 11px; color: var(--gold); font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.ok-chip { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(76, 195, 138, .15); color: var(--ok); flex: none; }

/* ---------- Faixa de lançamento ---------- */
.launch-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.launch-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; color: var(--muted); font-size: 15px; }
.launch-strip strong { color: var(--text); font-weight: 600; }
.launch-strip .cities { display: flex; flex-wrap: wrap; gap: 8px; }
.launch-strip .cities span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }

/* ---------- Recursos ---------- */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(217, 180, 90, .45); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(142, 35, 72, .35), rgba(91, 47, 155, .35)); color: var(--gold-2);
  border: 1px solid rgba(217, 180, 90, .18);
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .free-tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ok); background: rgba(76, 195, 138, .12); padding: 3px 10px; border-radius: 999px; }

/* ---------- Abas (comunidade) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--grad-brand); color: var(--text); }
.tab-panel[hidden] { display: none; }

.cards-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.item-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.item-card .row { display: flex; align-items: center; gap: 10px; }
.item-card h3 { font-size: 17px; }
.item-card .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.item-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.item-card .meta .icon { width: 16px; height: 16px; color: var(--faint); }
.item-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge.ok { background: rgba(76, 195, 138, .12); color: var(--ok); }
.badge.warn { background: rgba(232, 176, 74, .12); color: var(--warn); }
.badge.gold { background: rgba(217, 180, 90, .14); color: var(--gold-2); }
.badge.purple { background: rgba(122, 74, 198, .18); color: #c7a8f5; }

.capacity { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.capacity i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--wine-2), var(--gold)); }
.capacity-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.price-line { font-size: 14px; color: var(--muted); }
.price-line b { color: var(--text); font-size: 18px; }

/* ---------- Planos ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, rgba(142, 35, 72, .22), rgba(91, 47, 155, .14) 60%, var(--surface)); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--grad-gold); color: var(--gold-ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase; }
.plan h3 { font-size: 22px; }
.plan h3 .a { font-weight: 300; color: var(--gold); }
.plan .desc { color: var(--muted); font-size: 15px; margin-top: 6px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price .cur { font-size: 18px; color: var(--muted); font-weight: 500; }
.plan .price .val { font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.plan .price .per { color: var(--muted); font-size: 15px; }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.plan li .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.plan .btn { margin-top: auto; }

.addons { margin-top: 24px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line); display: grid; gap: 14px; }
.addons h3 { font-size: 16px; font-weight: 600; }
.addon-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.addon span { display: inline-flex; align-items: center; gap: 10px; }
.addon .icon { color: var(--gold); width: 20px; height: 20px; }
.addon b { white-space: nowrap; }

.pix-note { margin-top: 24px; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: rgba(76, 195, 138, .06); border: 1px solid rgba(76, 195, 138, .25); }
.pix-note .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(76, 195, 138, .15); color: var(--ok); flex: none; }
.pix-note h3 { font-size: 16px; margin-bottom: 4px; }
.pix-note p { color: var(--muted); font-size: 15px; }

/* ---------- Segurança ---------- */
.safety { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.safety-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.safety-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(217, 180, 90, .12); color: var(--gold); flex: none; }
.safety-item h3 { font-size: 17px; margin-bottom: 6px; }
.safety-item p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--gold); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px 24px; text-align: center; background: var(--grad-brand); }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(217, 180, 90, .25), transparent 70%); }
.cta-final > * { position: relative; }
.cta-final h2 { font-size: clamp(28px, 4.5vw, 44px); }
.cta-final p { color: rgba(244, 238, 230, .85); margin: 14px auto 28px; max-width: 560px; font-size: 17px; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line-soft); margin-top: 80px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 300px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--muted); font-size: 15px; }
.footer-grid a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 14px; }
.age-badge { display: inline-flex; align-items: center; gap: 8px; }
.age-badge b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); font-size: 11px; }

/* ---------- Aviso de maioridade ---------- */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 13, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.age-gate[hidden] { display: none; }
.age-box { width: 100%; max-width: 440px; text-align: center; padding: 36px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.age-box .brand { display: flex; justify-content: center; margin-bottom: 20px; }
.age-box .big18 { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--danger); color: var(--danger); font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.age-box h2 { font-size: 24px; margin-bottom: 10px; }
.age-box p { color: var(--muted); margin-bottom: 24px; }
.age-box .actions { display: grid; gap: 10px; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 13px; color: var(--faint); }
.input, .select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23aaa4b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface); color: var(--text); }
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: var(--surface-3); }
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
.input[type="date"] { color-scheme: dark; }
.error-text { color: var(--danger); font-size: 13px; min-height: 0; }
.error-text:empty { display: none; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.pw-toggle:hover { color: var(--text); }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background-color .2s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-level="4"] i:nth-child(-n+4) { background: var(--ok); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--surface-3); background: var(--bg-2); cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.check[aria-invalid="true"] input { border-color: var(--danger); }

.choice-group { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice label .icon { color: var(--muted); width: 26px; height: 26px; }
.choice label b { display: block; font-size: 15px; }
.choice label small { display: block; color: var(--faint); font-size: 13px; font-weight: 400; }
.choice input:checked + label { border-color: var(--gold); background: rgba(217, 180, 90, .08); }
.choice input:checked + label .icon { color: var(--gold); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-msg { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.form-msg[hidden] { display: none; }
.form-msg.info { background: rgba(122, 74, 198, .14); border: 1px solid rgba(122, 74, 198, .4); color: #dccbf7; }
.form-msg.error { background: rgba(229, 112, 122, .1); border: 1px solid rgba(229, 112, 122, .4); color: #f2b3b9; }
.form-msg.ok { background: rgba(76, 195, 138, .1); border: 1px solid rgba(76, 195, 138, .4); color: #a8e6c8; }

/* ---------- Páginas de acesso (login e cadastro) ---------- */
.auth-header { height: var(--header-h); display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); }
.auth-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-header .back { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.auth-header .back:hover { color: var(--text); }

.auth-layout { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 980px) { .auth-layout { grid-template-columns: .9fr 1.1fr; } }

.auth-aside { display: none; position: relative; overflow: hidden; padding: 56px; background: var(--grad-brand); }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 20% 10%, rgba(217, 180, 90, .25), transparent 70%), radial-gradient(50% 50% at 90% 90%, rgba(20, 20, 24, .6), transparent 70%); }
.auth-aside > * { position: relative; }
.auth-aside .pin-art { width: 120px; margin-bottom: 32px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.auth-aside h2 { font-size: 38px; max-width: 420px; }
.auth-aside p { color: rgba(244, 238, 230, .85); margin-top: 14px; font-size: 17px; max-width: 420px; }
.auth-aside ul { margin-top: 32px; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.auth-aside li .icon { color: var(--gold-2); }
@media (min-width: 980px) {
  .auth-aside { display: flex; flex-direction: column; justify-content: center; position: sticky; top: 0; align-self: start; height: 100vh; }
}

.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 64px; }
@media (min-width: 980px) { .auth-main { align-items: center; padding: 56px 40px; } }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: clamp(28px, 4vw, 34px); }
.auth-card .sub { color: var(--muted); margin: 10px 0 28px; }
.auth-card .sub a, .auth-alt a, .link { color: var(--gold-2); font-weight: 600; }
.auth-card .sub a:hover, .auth-alt a:hover, .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-stack { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.state-city { grid-template-columns: 140px 1fr; } }
.form-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-alt { text-align: center; color: var(--muted); font-size: 15px; margin-top: 24px; }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 13px; margin-top: 18px; }
.secure-note .icon { width: 16px; height: 16px; }
.partner-block[hidden] { display: none; }

/* ---------- Complementos compartilhados ---------- */
.icon-xs { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.textarea { min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.btn-danger { background: #a3303f; color: #fff; }
.btn-danger:hover { background: #bf3a4b; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); color: #f39aa2; }

.message-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.message-box { max-width: 440px; text-align: center; display: grid; gap: 16px; justify-items: center; padding: 36px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.message-box h1 { font-size: 26px; }
.message-box p { color: var(--muted); }

.mysql-fields[hidden] { display: none; }
.auth-card .flash { margin-bottom: 18px; }

/* ---------- Teste grátis na página inicial ---------- */
.trial-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; text-align: center; color: var(--gold-2); font-weight: 600; }
a.addon:hover { border-color: var(--gold); }

/* ---------- App na página inicial ---------- */
.app-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--gold-2); font-weight: 600; font-size: 15px; }
.app-hint:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .app-band { grid-template-columns: auto 1fr; } }
.app-band-icon { width: 120px; height: 120px; border-radius: 30px; box-shadow: var(--shadow); }
.app-band-text h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 10px; }
.app-band-text p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 640px; }
.app-band-text .eyebrow .icon { color: var(--gold); }
.app-band-text .hero-ctas { margin-top: 20px; }
.is-app .hide-in-app { display: none !important; }

/* ---------- Página "Instalar o app" ---------- */
.app-install { width: min(960px, 100%); margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 24px; }
.app-install-brand .brand-word { font-size: 24px; }
.app-install .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.app-hero { display: grid; gap: 22px; align-items: center; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(142, 35, 72, .28), rgba(91, 47, 155, .2) 60%, var(--surface)); }
@media (min-width: 720px) { .app-hero { grid-template-columns: auto 1fr; } }
.app-hero-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: var(--shadow); }
.app-hero h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.15; margin-bottom: 10px; }
.app-hero .lead { color: var(--muted); font-size: 17px; line-height: 1.6; }
.app-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-ja-instalado { display: none; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.is-app .app-ja-instalado { display: inline-flex; }
.is-app [data-install], .is-app .hide-in-app { display: none !important; }
.app-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.app-step h2 { font-size: 19px; margin-bottom: 10px; }
.app-step ol { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); list-style: decimal; }
.app-step ol b { color: var(--text); }
[data-plataforma="android"] .app-step[data-para="android"],
[data-plataforma="ios"] .app-step[data-para="ios"],
[data-plataforma="desktop"] .app-step[data-para="desktop"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .12); order: -1; }
.app-notes .room-facts { display: grid; gap: 12px; }
.app-notes .room-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.app-notes .room-facts .icon { color: var(--gold); margin-top: 2px; }
.app-notes b { color: var(--text); }
.app-back { text-align: center; }

/* ---------- Código de acesso (login por e-mail) ---------- */
.code-input { font-size: 30px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .45em; }
.code-input::placeholder { color: var(--faint); opacity: .5; }
.auth-alt .text-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Páginas legais (termos, privacidade, regras) ---------- */
.legal-page { width: min(860px, 100%); }
.legal-page header h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; }
.legal-section { scroll-margin-top: 16px; }
.legal-section h2 { font-size: 20px; margin-bottom: 10px; }
.legal-section p, .legal-section li { line-height: 1.65; }
.legal-section p + p, .legal-section ul + p, .legal-section p + ul { margin-top: 10px; }
.legal-section ul { padding-left: 20px; display: grid; gap: 6px; }

/* Instalador: conferência do servidor */
.install-check { margin-bottom: 18px; }
.install-reqs { display: grid; gap: 6px; font-size: 14px; }
.install-reqs li { display: flex; gap: 8px; align-items: flex-start; }
.install-reqs li.ok .icon { color: var(--ok, #3fb37f); }
.install-reqs li.falta .icon { color: var(--danger, #e5484d); }
.install-reqs li.aviso .icon { color: var(--warn, #e3a008); }
