/* deoscord download page. Palette from client/brand/tokens.css */
:root {
  --brand-primary: #5865F2;
  --brand-primary-hover: #4752C4;
  --brand-primary-active: #3C45A5;
  --brand-primary-soft: rgba(88, 101, 242, 0.16);

  --mascot-body: #8E9CFF;
  --mascot-accent: #4553D9;
  --mascot-outline: #1B1F4B;
  --mascot-beak: #FFC22E;
  --mascot-beak-dark: #F57C14;

  --success: #23A55A;
  --warning: #F0B232;
  --info: #00A8FC;

  --bg-page: #15161B;
  --bg-rail: #1A1B21;
  --bg-sidebar: #23252D;
  --bg-chat: #2B2D35;
  --bg-input: #383A44;
  --bg-hover: #32343D;

  --text-normal: #DCDEE6;
  --text-muted: #949BA8;
  --text-strong: #F4F5FA;
  --text-link: #00A8FC;

  --divider: #3A3C47;
  --divider-strong: #4A4D5A;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --font: "Nunito", "Varela Round", "Segoe UI", Ubuntu, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Ubuntu Mono", Consolas, monospace;
  --focus: 0 0 0 3px var(--bg-page), 0 0 0 6px var(--mascot-beak);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-normal);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

h1, h2, h3 { color: var(--text-strong); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-input); color: var(--text-strong); padding: 0.1em 0.4em; border-radius: var(--radius-sm); overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--mascot-beak); color: var(--mascot-outline);
  padding: 8px 14px; border-radius: var(--radius-md); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 22, 27, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 60, 71, 0.6);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-md); }
.nav a:hover { color: var(--text-strong); background: var(--bg-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--brand-primary); color: #fff;
  font-weight: 800; text-decoration: none;
  border-radius: 14px; border: 0;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.btn:hover { background: var(--brand-primary-hover); }
a.btn:active { background: var(--brand-primary-active); transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; border-radius: 10px; }

.btn-xl {
  padding: 16px 28px 16px 20px;
  box-shadow: 0 10px 30px -8px rgba(88, 101, 242, 0.65), inset 0 1px 0 rgba(255,255,255,.18);
  max-width: 100%;
}
a.btn-xl:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(88, 101, 242, 0.8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}
.btn-text { display: flex; flex-direction: column; min-width: 0; }
.btn-label { font-size: 1.3rem; line-height: 1.2; }
.btn-sub { font-size: 0.9rem; font-weight: 700; opacity: .9; line-height: 1.3; }

.btn.is-disabled {
  background: var(--bg-sidebar); color: var(--text-normal);
  border: 2px dashed var(--divider-strong);
  box-shadow: none; cursor: default;
}
.btn.is-disabled .btn-icon { background: var(--bg-input); color: var(--mascot-beak); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--bg-sidebar); color: var(--text-strong);
  border: 1px solid var(--divider); font-weight: 700; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
a.btn-ghost:hover { background: var(--bg-hover); border-color: var(--divider-strong); }
.btn-ghost small { color: var(--text-muted); font-weight: 700; font-size: .85rem; }
.btn-ghost.is-disabled { color: var(--text-muted); border-style: dashed; cursor: default; }

button.linklike {
  font: inherit; font-weight: 800; color: var(--text-link);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 88px;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(88, 101, 242, 0.28), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(69, 83, 217, 0.18), transparent 70%),
    var(--bg-page);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-primary-soft); color: #C9CEFF;
  border: 1px solid rgba(142, 156, 255, 0.3);
  font-weight: 700; font-size: 0.9rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(35,165,90,.2); }

.hero h1 {
  margin-top: 18px;
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1;
}
.tagline {
  margin-top: 10px;
  font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; line-height: 1.25;
  color: var(--mascot-body);
}
.lead { margin-top: 16px; max-width: 34em; color: var(--text-muted); font-size: 1.08rem; }

.download { margin-top: 32px; }
.dl-extra { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.dl-row-label { color: var(--text-muted); font-weight: 700; font-size: .92rem; }
.dl-note { color: var(--text-muted); font-size: 0.95rem; max-width: 34em; }
.dl-note strong { color: var(--text-normal); }
.dl-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; border-radius: 12px; max-width: 34em;
  background: rgba(240, 178, 50, 0.1); border: 1px solid rgba(240, 178, 50, 0.35);
  color: var(--text-normal); font-size: .95rem;
}
.dl-warn svg { flex: none; color: var(--warning); margin-top: 3px; }

.notes { max-width: 34em; font-size: .95rem; }
.notes summary { cursor: pointer; color: var(--text-muted); font-weight: 700; width: fit-content; border-radius: var(--radius-sm); }
.notes summary:hover { color: var(--text-strong); }
.notes p { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-rail); border: 1px solid var(--divider); white-space: pre-line; color: var(--text-normal); }

/* Mascot art */
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.halo {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,156,255,.22), rgba(88,101,242,.05) 60%, transparent 70%);
}
.halo::before, .halo::after {
  content: ""; position: absolute; inset: -6%;
  border-radius: 50%; border: 2px solid rgba(142,156,255,.18);
  animation: ring 4s ease-out infinite;
}
.halo::after { animation-delay: 2s; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }

.mascot {
  position: relative; width: 86%; height: auto; margin: 7% auto 0;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(35, 37, 45, 0.92); border: 1px solid var(--divider);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  color: var(--text-normal); font-size: .88rem; white-space: nowrap;
}
.chip b { color: var(--text-strong); }
.chip svg { color: var(--mascot-body); }
.chip-voice { top: 12%; left: -4%; }
.chip-voice svg { color: var(--success); }
.chip-screen { top: 46%; right: -6%; }
.chip-ping { bottom: 6%; left: 4%; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { display: block; width: 4px; border-radius: 2px; background: var(--success); }
.bars i:nth-child(1) { height: 6px; } .bars i:nth-child(2) { height: 10px; } .bars i:nth-child(3) { height: 14px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-rail); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.eyebrow { color: var(--mascot-beak); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 8px; }

.card {
  background: var(--bg-sidebar);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 26px;
}

.features { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--divider-strong); }
.feature h3 { margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: .98rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.fi-voice { background: rgba(35,165,90,.16); color: #4FD18B; }
.fi-screen { background: var(--brand-primary-soft); color: var(--mascot-body); }
.fi-light { background: rgba(255,194,46,.14); color: var(--mascot-beak); }
.fi-lock { background: rgba(0,168,252,.14); color: #4CC2FF; }

/* Install */
.install { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.install-card { background: var(--bg-chat); min-width: 0; }
.install-card h3 { display: flex; align-items: center; gap: 10px; }
.install-card .os-logo { color: var(--mascot-body); flex: none; }
.install-card.is-yours { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.yours-tag {
  margin-left: auto; font-size: .75rem; font-weight: 800; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; background: var(--brand-primary); color: #fff; white-space: nowrap;
}

.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li { position: relative; padding-left: 42px; counter-increment: step; font-size: .98rem; min-width: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-primary-soft); color: var(--mascot-body);
  font-weight: 800; font-size: .9rem;
}
.steps strong { color: var(--text-strong); }

.code {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-page); border: 1px solid var(--divider);
  overflow-x: auto; font-size: .85rem; line-height: 1.7;
}
.code code { background: none; padding: 0; white-space: pre; overflow-wrap: normal; }
.tip { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--divider); color: var(--text-muted); font-size: .9rem; }

.smartscreen {
  margin-top: 12px; padding: 14px; border-radius: 10px;
  background: #0F4C81; color: #fff; font-size: .8rem; line-height: 1.4;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.ss-title { font-weight: 700; font-size: .95rem; }
.ss-body { opacity: .85; margin-top: 6px; }
.ss-link { margin-top: 8px; }
.ss-actions { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ss-btn { padding: 4px 10px; border: 1px solid rgba(255,255,255,.7); }
.ss-hl { outline: 2px solid var(--mascot-beak); outline-offset: 2px; border-radius: 2px; text-decoration: underline; text-decoration-color: transparent; }
.ss-link .ss-hl { text-decoration-color: currentColor; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--bg-sidebar); border: 1px solid var(--divider); border-radius: 16px; }
.faq details[open] { border-color: var(--divider-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 800; color: var(--text-strong); font-size: 1.05rem;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 3px solid var(--mascot-body); border-bottom: 3px solid var(--mascot-body);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px; color: var(--text-muted); }
.faq details p strong { color: var(--text-normal); }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--divider); background: var(--bg-page); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--text-muted); font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 800; font-size: 1.05rem; }
.footer-links { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .install { grid-template-columns: repeat(2, 1fr); }
  .install-after { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero { padding: 36px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; max-width: 280px; }
  .chip { font-size: .8rem; padding: 6px 11px; }
  .chip-voice { left: -18%; }
  .chip-screen { right: -20%; }
  .chip-ping { display: none; }
  .install { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-art { max-width: 220px; }
  .chip-voice { left: -22%; top: 4%; }
  .chip-screen { right: -24%; top: auto; bottom: 10%; }
  .btn-xl { width: 100%; padding: 14px 18px 14px 14px; }
  .btn-label { font-size: 1.15rem; }
  .features { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .footer-links { margin-left: 0; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
}

/* ---------- Invite banner (/convite/<código>) ---------- */
.invite { padding: 28px 0 0; background: var(--bg-page); }
.invite[hidden] { display: none; }
.invite-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(69, 83, 217, 0.08)), var(--bg-sidebar);
  border: 1px solid rgba(142, 156, 255, 0.35);
}
.invite-icon { flex: none; border-radius: 14px; }
.invite-copy { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.invite-eyebrow { color: var(--mascot-beak); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.invite h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.invite-help { color: var(--text-muted); max-width: 44em; }
.invite-help strong { color: var(--text-normal); }
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
button.btn-invite {
  font: inherit; font-weight: 800; cursor: pointer; text-align: left;
  padding: 12px 22px 12px 14px; max-width: 100%;
  box-shadow: 0 10px 30px -8px rgba(88, 101, 242, 0.65), inset 0 1px 0 rgba(255,255,255,.18);
}
button.btn-invite:hover { background: var(--brand-primary-hover); }
button.btn-invite:active { background: var(--brand-primary-active); transform: translateY(1px); }
.btn-invite .btn-label { font-size: 1.15rem; }
.invite-status { color: var(--success); font-weight: 700; font-size: .95rem; }
.invite-status.is-error { color: var(--warning); }
.invite-link { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 640px) {
  .invite-card { flex-direction: column; padding: 18px; }
  .invite-icon { width: 44px; height: 44px; }
}