/* OpenWatch — página do app e do convite (mesma cara do app: escuro, degradê roxo→rosa). */
@font-face { font-family: "Jakarta"; src: url("/openwatch/assets/fonts/jakarta_500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/openwatch/assets/fonts/jakarta_700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/openwatch/assets/fonts/jakarta_800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0B0A12;
  --sheet: #14121D;
  --raised: #1A1724;
  --line: #2A2638;
  --light: #F5F3FF;
  --muted: #A9A3C2;
  --soft: #C4B5FD;
  --brand-a: #8B5CF6;
  --brand-b: #EC4899;
  --live: #FF3B5C;
  --brand: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soft); }
a:hover { color: #DDD6FE; }
:focus-visible { outline: 3px solid var(--soft); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--light); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Brilhos de fundo */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.glow::before { width: 520px; height: 520px; left: -160px; top: -120px; background: rgba(139, 92, 246, .35); }
.glow::after { width: 460px; height: 460px; right: -160px; top: 120px; background: rgba(236, 72, 153, .22); }

/* Topo */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.top .logo { width: 40px; height: 40px; border-radius: 12px; }
.top .name { font-weight: 800; font-size: 20px; letter-spacing: -.4px; color: var(--light); text-decoration: none; flex: 1; }
.top .by { font-size: 13px; color: var(--muted); text-decoration: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 20px;
  font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 12px 30px rgba(139, 92, 246, .38); }
.btn-brand:hover { color: #fff; filter: brightness(1.06); }
.btn-light { background: var(--light); color: var(--ink); }
.btn-light:hover { color: var(--ink); filter: brightness(.96); }
.btn-ghost { background: var(--raised); color: var(--light); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--light); border-color: #3A3450; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-block { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 40px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--soft); background: rgba(139, 92, 246, .14); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255, 59, 92, .2); }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; margin: 18px 0 16px; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }

/* Seções */
section { padding: 56px 0; }
.title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 32px; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card .art { border-radius: 18px; background: var(--sheet); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.card .art img { max-height: 100%; width: auto; }
.card h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.card p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--sheet); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800;
}
.step h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--soft); font-weight: 800; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; background: var(--sheet); border: 1px solid var(--line); border-radius: 32px; padding: 48px 24px; }
.final .logo-big { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 24px; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Convite */
.invite { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.invite main { flex: 1; display: grid; place-items: center; padding: 16px 0 32px; }
.invite-card {
  width: min(460px, 100%); margin: 0 auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 32px;
  padding: 28px 22px; text-align: center;
}
.invite-card .art { max-width: 300px; margin: -8px auto 8px; }
.invite-card h1 { font-size: clamp(30px, 7vw, 38px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; margin: 0 0 10px; }
.invite-card p { color: var(--muted); margin: 0 0 22px; }
.invite-card .stack { display: grid; gap: 12px; }
.status { min-height: 1.5em; font-size: 14px; color: var(--soft); margin-top: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  .hero p.lead { max-width: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .top .by { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* O JS esconde o botão "Entrar" quando o convite é inválido. */
[hidden] { display: none !important; }
