/* FaderMarket: estilos partilhados (landing, conta, admin) */
:root {
  --bg: #0B0E14;
  --surface: #151A24;
  --surface-2: #1D2330;
  --line: #262C3A;
  --red: #E8452C;
  --blue: #2F6FED;
  --green: #3fbf6f;
  --cream: #F3F1EA;
  --muted: #8B93A5;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--cream); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

h1, h2, h3, .display { font-family: 'Unbounded', sans-serif; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(30px, 6vw, 54px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.6vw, 32px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.red { color: var(--red); }

/* topo */
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; transition: color .2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--cream); }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }
.main-nav { display: flex; gap: 18px; align-items: center; margin-right: 6px; }
.menu-btn { display: none; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--cream);
  border-radius: 10px 3px 10px 3px; height: 36px; padding: 0 10px; cursor: pointer; font: 700 12.5px 'Inter'; }
.menu-btn span { display: block; width: 14px; height: 2px; background: currentColor; border-radius: 2px; margin: 0; }
.menu-btn span + span { margin-top: 0; }
.menu-btn { flex-direction: row; }
.menu-btn span:nth-child(1) { box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; }
.menu-btn span:nth-child(2), .menu-btn span:nth-child(3) { display: none; }
.topnav { position: relative; }
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 64px; right: 16px; left: 16px; z-index: 20; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px 4px 18px 4px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); }
  .main-nav.open { display: flex; animation: menu-in .2s ease; }
  .main-nav .nav-link { display: block; padding: 13px 14px; border-radius: 10px; font-size: 15px; color: var(--cream); }
  .main-nav .nav-link:hover { background: var(--surface-2); }
  .menu-btn { display: inline-flex; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .menu-btn b { display: none; } }
.lang-switch, .seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.lang-switch button, .seg button { background: none; border: 0; color: var(--muted); font: 700 12px 'Inter'; padding: 6px 11px; border-radius: 100px; cursor: pointer; transition: background .25s ease, color .2s ease, transform .15s ease; }
.lang-switch button:hover, .seg button:hover { color: var(--cream); }
.lang-switch button:active, .seg button:active { transform: scale(0.94); }
.lang-switch button.active, .seg button.active { background: linear-gradient(120deg, var(--blue), #1D4FC4); color: #fff; box-shadow: 0 4px 12px -6px rgba(47,111,237,0.7); }

/* botões */
.btn {
  --tone-a: var(--red); --tone-b: #B8230F; --glow: rgba(232,69,44,0.45);
  --r-big: 18px; --r-small: 4px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-small);
  padding: 0 14px 0 26px; min-height: 56px;
  font: 800 13.5px/1 'Unbounded', sans-serif; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-position .45s ease,
              border-radius .35s cubic-bezier(.2,.8,.2,1), border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* seta num círculo, no fim de cada botão principal */
.btn::after {
  content: '→'; flex-shrink: 0;
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 700 16px/1 'Inter', sans-serif; text-transform: none;
  background: rgba(255,255,255,0.18); color: #fff;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.btn.secondary::after { background: linear-gradient(135deg, rgba(232,69,44,0.25), rgba(47,111,237,0.25)); }
.btn.small, .btn.no-arrow { padding: 0 16px; }
.btn.small::after, .btn.no-arrow::after { display: none; }

/* duotone: dois tons da marca que deslizam no hover */
.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--tone-a) 0%, var(--tone-b) 45%, var(--tone-a) 55%, #FF7A4D 100%);
  background-size: 220% 100%; background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 -3px 0 rgba(0,0,0,0.18) inset, 0 8px 20px -10px var(--glow);
}
/* secundário: contorno duotone vermelho/azul */
.btn.secondary {
  color: var(--cream);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(120deg, var(--red), var(--blue)) border-box;
}
.btn.ok { --tone-a: #3fbf6f; --tone-b: #23945a; --glow: rgba(63,191,111,0.4);
  color: #07130b; background: linear-gradient(120deg, var(--tone-a), var(--tone-b) 50%, var(--tone-a)); background-size: 220% 100%; }
.btn.small { min-height: 38px; font: 700 12.5px/1 'Inter', sans-serif; letter-spacing: 0; text-transform: none; --r-big: 12px; --r-small: 3px; }
.btn.block { width: 100%; justify-content: space-between; }
.btn.block.small, .btn.block.no-arrow { justify-content: center; }

/* riscas de poste de barbeiro que andam no hover */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.10) 0 10px, transparent 10px 20px);
  background-size: 28.28px 28.28px;
  transition: opacity .25s ease;
}
@keyframes pole { to { background-position: 28.28px 0; } }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); border-radius: var(--r-small) var(--r-big) var(--r-small) var(--r-big); }
  .btn:hover::after { transform: translateX(4px) rotate(-8deg); background: rgba(255,255,255,0.28); }
  .btn:hover::before { opacity: 1; animation: pole .8s linear infinite; }
  .btn.primary:hover, .btn.ok:hover { background-position: 100% 50%;
    box-shadow: 0 1px 0 rgba(255,255,255,0.24) inset, 0 -3px 0 rgba(0,0,0,0.18) inset, 0 16px 30px -12px var(--glow); }
  .btn.secondary:hover { color: #fff;
    background: linear-gradient(120deg, rgba(232,69,44,0.18), rgba(47,111,237,0.18)) padding-box,
                linear-gradient(var(--bg), var(--bg)) padding-box,
                linear-gradient(120deg, var(--red), var(--blue)) border-box; }
  .btn.secondary:hover::before { background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px); background-size: 28.28px 28.28px; }
}
/* clique: pressiona e a seta dispara */
.btn:active { transform: translateY(1px) scale(0.97); transition-duration: .08s; }
.btn:active::after { transform: translateX(8px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

/* onda a partir do ponto do clique (criada em fm.js) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: var(--d); height: var(--d); left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(0); opacity: 0.45;
  background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.25) 45%, transparent 70%);
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* feedback de "enviado": pulso curto */
.btn.pulse { animation: btn-pulse .5s ease; }
@keyframes btn-pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 100% { box-shadow: 0 0 0 14px rgba(0,0,0,0); } }

/* cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.hi { border-color: var(--red); background: linear-gradient(135deg, #2a1610, var(--surface) 70%); }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
section { padding: 44px 0; }
.eyebrow { display: inline-block; background: linear-gradient(90deg, var(--red), var(--blue)); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-bottom: 14px; }

.price { font-family: 'Unbounded'; font-weight: 900; font-size: 30px; }
.price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.bar { height: 8px; background: #0e121b; border-radius: 100px; overflow: hidden; margin: 10px 0 6px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--green); border-color: #245c38; }
.pill.warn { color: #f4b740; border-color: #5c4a1c; }
.pill.bad { color: var(--red); border-color: #5c2a22; }
.pill.founder { color: #ff9a86; border-color: #6a3024; }

/* formulários */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--cream); font: 15px 'Inter'; min-height: 46px; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.choice { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; color: var(--cream); font: inherit; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background .3s ease, box-shadow .2s ease; }
@media (hover: hover) { .choice:hover { transform: translateY(-2px); border-color: #4a3530; } }
.choice:active { transform: scale(0.98); }
.choice.active { border-color: var(--red); background: linear-gradient(135deg, #2a1610, #151a24); box-shadow: 0 8px 20px -12px rgba(232,69,44,0.6); }
.choice b { display: block; font-size: 14px; margin-bottom: 2px; }
.choice span { font-size: 12.5px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .15s ease; }
.checks label:hover { border-color: #4a3530; }
.checks label:active { transform: scale(0.95); }
.checks label:has(input:checked) { border-color: var(--red); background: linear-gradient(120deg, rgba(232,69,44,0.16), rgba(47,111,237,0.12)); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.form-error { background: #2a1210; border: 1px solid #6a2a20; color: #ffb4a6; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; display: none; }
.form-ok { background: #0f2417; border: 1px solid #245c38; color: #9fe3b6; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; display: none; }
.hidden { display: none !important; }
fieldset { border: 0; }
legend { font-family: 'Unbounded'; font-weight: 700; font-size: 15px; margin: 22px 0 12px; }

/* tabelas (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 4px 14px 4px; padding: 0; margin-bottom: 10px; transition: border-color .2s ease; }
.faq details[open] { border-color: #4a3530; }
.faq-group { font-size: 15px; margin: 22px 0 10px; color: var(--muted); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(232,69,44,.25), rgba(47,111,237,.25)); font: 700 18px/1 'Inter'; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 16px 15px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  section { padding: 32px 0; }
  .logo { font-size: 16px; }
  .nav-right { gap: 6px; }
  .lang-switch button { padding: 5px 8px; }
  .card { padding: 15px; }
  .topnav .btn { padding: 0 12px; min-height: 36px; font-size: 12.5px; }
  .btn { min-height: 52px; font-size: 12.5px; padding-left: 20px; }
}

/* cartões com link reagem ao hover */
.card.hi { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
@media (hover: hover) { .card.hi:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(232,69,44,0.55); } }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: #fff; }

/* quem prefere menos movimento não vê animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .choice:hover, .card.hi:hover { transform: none; }
}
