/* ===========================================================
   MotelMais Downloads — motelmais.app

   Os tokens abaixo são os mesmos do site institucional
   (motelmais.com.br, src/styles/global.css). São dois domínios e dois
   projetos, mas uma marca só: quem sai do site e cai aqui não pode sentir
   que trocou de empresa. Ao mexer na paleta, na tipografia ou nos botões,
   mexa nos dois lugares.
   =========================================================== */

/* Inter variável, servida pelo próprio domínio — mesmo arquivo do site.
   Um arquivo cobre 400 a 700, que são os pesos usados aqui. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Marca */
  --brand: #5a3b78;
  --brand-2: #7c4ea3;
  --brand-3: #c33d76;
  --brand-soft: #f3eef9;

  /* Sistema */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #f0eff3;
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-purple: #1c1127;
  --bg-purple-2: #261934;
  --purple-line: rgba(255, 255, 255, 0.12);
  --whatsapp: #0b8043;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 30px 60px rgba(29, 12, 45, 0.14);

  --container: 1120px;
  --header-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.003em;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 9999;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ----- Tipografia ----- */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 12px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* O teto é menor que os 80px do site institucional porque aqui o título
   divide o hero com a imagem e vive numa coluna de ~490px: acima disto ele
   quebrava em quatro linhas e deixava "Motel+," sozinho numa delas. */
h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.028em;
}

h3 {
  font-size: 21px;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

h4 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--ink-2);
}

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.grad {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 48%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn svg {
  flex: none;
}

/* ----- Cabeçalho ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand__logo {
  height: 26px;
  width: auto;
}
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.header-nav a:hover {
  color: var(--brand);
}
.header-nav .site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
}
.header-nav .site-link:hover {
  color: var(--brand-2);
}

@media (max-width: 720px) {
  .header-nav .anchor {
    display: none;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  background: radial-gradient(
      1200px 520px at 50% -12%,
      rgba(124, 78, 163, 0.16),
      transparent 62%
    ),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy {
  max-width: 560px;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .lead {
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Fichas de plataforma. São informação, não decoração: dizem de cara em que
   aparelho o sistema roda, que é a primeira pergunta de quem chega aqui. */
.chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.chips svg {
  color: var(--brand);
}

.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 50px rgba(90, 59, 120, 0.26))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}
.hero__halo {
  position: absolute;
  inset: -12% -12% auto auto;
  width: 58%;
  height: 58%;
  background: radial-gradient(circle, rgba(124, 78, 163, 0.32), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy {
    margin: 0 auto;
  }
  .hero__cta,
  .chips {
    justify-content: center;
  }
  .hero__media {
    max-width: 560px;
    margin: 8px auto 0;
  }
}
@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
}

/* ----- Seções ----- */
.section {
  padding: clamp(56px, 7vw, 104px) 0;
  /* O cabeçalho é fixo: sem esta margem ele cobriria o título da seção
     sempre que alguém chegasse por um link de âncora. */
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head p {
  margin-top: 14px;
  color: var(--ink-3);
}

/* ----- Cartões de aplicativo ----- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-grid--duo {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.app {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.app:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

/* O ladrilho do ícone repete o gesto do ícone de app no celular: quadrado
   arredondado, uma cor sólida da marca, símbolo branco no meio. É o que
   torna a grade reconhecível de longe, antes de qualquer leitura. */
.app__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 22px rgba(90, 59, 120, 0.28);
  margin-bottom: 20px;
}
.app__icon--accent {
  background: linear-gradient(140deg, #d2588a, var(--brand-3));
  box-shadow: 0 10px 22px rgba(195, 61, 118, 0.26);
}
.app__icon--ink {
  background: linear-gradient(140deg, #3f3f46, #18181b);
  box-shadow: 0 10px 22px rgba(24, 24, 27, 0.22);
}

.app h3 {
  margin-bottom: 10px;
}
.app p {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.app__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Botão de loja: o logo entra pequeno e monocromático, com a linha de cima
   ("Baixar na") em peso menor, como nas fichas oficiais das lojas. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store:hover {
  background: #000;
  transform: translateY(-1px);
}
.store svg {
  flex: none;
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store small {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.01em;
}
.store strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .app-grid,
  .app-grid--duo {
    grid-template-columns: 1fr;
  }
}

/* ----- Guia de instalação (abas sem JavaScript obrigatório) ----- */
.guide {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}
.guide__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.guide__head h3 {
  font-size: 19px;
}
.guide__head p {
  font-size: 14.5px;
  color: var(--ink-3);
}

/* Os rádios ficam fora da tela mas seguem no fluxo de foco: quem navega pelo
   teclado troca de aba com as setas, como em qualquer grupo de rádio. */
.guide input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tabs label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tabs label:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.panel {
  display: none;
}
#tab-ios:checked ~ .panels #panel-ios,
#tab-android:checked ~ .panels #panel-android,
#tab-desktop:checked ~ .panels #panel-desktop {
  display: block;
}
#tab-ios:checked ~ .tabs label[for="tab-ios"],
#tab-android:checked ~ .tabs label[for="tab-android"],
#tab-desktop:checked ~ .tabs label[for="tab-desktop"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
#tab-ios:focus-visible ~ .tabs label[for="tab-ios"],
#tab-android:focus-visible ~ .tabs label[for="tab-android"],
#tab-desktop:focus-visible ~ .tabs label[for="tab-desktop"] {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.steps {
  list-style: none;
  counter-reset: passo;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  counter-increment: passo;
  padding-left: 42px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ----- Faixa do instalador Windows ----- */
.installer {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--bg-purple-2), var(--bg-purple));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.installer__icon {
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--purple-line);
  color: #fff;
}
.installer h3 {
  color: #fff;
  margin-bottom: 8px;
}
.installer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  max-width: 52ch;
}
.installer .btn {
  margin-left: auto;
  flex: none;
}
@media (max-width: 820px) {
  .installer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .installer .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* ----- Ajuda ----- */
.help {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.help p {
  font-size: 15px;
  color: var(--ink-3);
}
.help strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  background: #096b38;
  transform: translateY(-1px);
}

/* ----- Rodapé ----- */
.site-footer {
  background: radial-gradient(
      900px 320px at 15% 0%,
      rgba(124, 78, 163, 0.28),
      transparent 62%
    ),
    linear-gradient(180deg, var(--bg-purple-2) 0%, var(--bg-purple) 55%);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--purple-line);
}
.site-footer .brand__logo {
  height: 28px;
  margin-bottom: 20px;
}
.site-footer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.15s ease;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer .col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Entrada em cena ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .app:hover,
  .store:hover {
    transform: none;
  }
}
