/* MeuCusco — site institucional.
   Cores e fontes são as da marca: mobile-clean/assets/brand/README.md e
   mobile-clean/src/theme/. */

:root {
  --purple: #6E5FBF;
  --purple-dark: #3C3489;
  --purple-chip: #EFEBFB;
  --purple-border: #E4DFF5;
  --purple-light: #F7F4FC;
  --cream: #FDF6EC;
  --caramel: #C9975A;
  --coral: #E0865A;
  --ink: #2E2A4D;
  /* Mais escuro que o textMuted do app (#756F97): sobre o creme, aquele
     tom não chega ao contraste mínimo de 4,5:1 para texto corrido. */
  --muted: #5E5884;
  --on-ink-muted: #C9C3EA;
  --white: #FFFFFF;

  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --radius-xl: 36px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  padding-block: 18px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--purple-dark);
}

.nav .nav-pill {
  background: var(--ink);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 999px;
}

.nav .nav-pill:hover {
  color: var(--cream);
  background: var(--purple-dark);
}

/* Troca de idioma (PT | EN). É um link só: o clique em qualquer ponto leva à
   mesma página no outro idioma, e o idioma atual fica destacado. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  background: var(--purple-chip);
  text-decoration: none;
}

.lang-switch span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch .is-current {
  background: var(--white);
  color: var(--purple-dark);
  box-shadow: 0 1px 3px rgba(46, 42, 77, 0.14);
}

.lang-switch:hover span:not(.is-current) {
  color: var(--purple-dark);
}

.lang-switch:focus-visible {
  border-radius: 999px;
}

@media (max-width: 640px) {
  .nav {
    gap: 12px;
  }

  .nav a:not(.nav-pill):not(.lang-switch) {
    display: none;
  }
}

/* Em celular estreito não cabem as duas pílulas ao lado da marca; o "em
   breve" continua no topo da página. */
@media (max-width: 480px) {
  .nav .nav-pill {
    display: none;
  }
}

/* ---------- Selos "em breve" das lojas ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  flex: 1 1 150px;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px 11px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.15;
}

.store small {
  font-size: 12px;
  font-weight: 700;
  color: var(--on-ink-muted);
}

.store strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
}

.stores--light .store {
  background: var(--cream);
  color: var(--ink);
}

.stores--light .store small {
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 32px 96px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-chip);
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.lead {
  margin-top: 20px;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
}

.hero .stores {
  margin-top: 32px;
}

.store-note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Ilustração: celular com a tela inicial do app + uma notificação. É feita
   em HTML/CSS com os textos e as cores reais do app (DashboardScreen e
   notifications.service). Trocar por um print de verdade quando houver. */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 24px;
}

.hero-art::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(470px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--purple-border), #D6CEF3 72%);
  transform: translate(-50%, -50%);
}

.phone {
  position: relative;
  width: 290px;
  /* Espaço pra notificação, que fica por cima da borda de cima do celular. */
  margin-top: 42px;
  padding: 11px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(46, 42, 77, 0.55);
}

.phone-screen {
  border-radius: 36px;
  background: var(--cream);
  padding: 0 16px 18px;
  overflow: hidden;
  line-height: 1.35;
}

.phone-notch {
  width: 92px;
  height: 22px;
  margin: 0 auto 16px;
  border-radius: 0 0 14px 14px;
  background: var(--ink);
}

.app-hello {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
}

.app-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.app-pets {
  display: flex;
  gap: 14px;
  margin: 16px 0 18px;
}

.app-pet {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.app-pet .avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--cream);
}

.app-pet .avatar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.app-pet .avatar--alt {
  background: var(--purple);
}

.app-pet.is-active {
  color: var(--ink);
}

.app-pet.is-active .avatar {
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--purple);
}

.app-pet--new .avatar {
  background: transparent;
  border: 2px dashed var(--purple-border);
  color: var(--purple);
  font-size: 22px;
  font-weight: 700;
}

.app-title {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.app-cares {
  display: grid;
  gap: 8px;
}

.app-care {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.app-care .icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.app-care .icon svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

.app-care strong {
  display: block;
  font-size: 13px;
}

.app-care span {
  font-size: 11.5px;
  font-weight: 700;
}

/* Mesmas cores de urgência do app (careUrgencyColors). */
.app-care--overdue { background: #FAE3E2; }
.app-care--overdue .icon { background: #D9534F; }
.app-care--overdue span { color: #B23330; }
.app-care--today { background: #FCF1DA; }
.app-care--today .icon { background: #E8A93D; }
.app-care--today span { color: #A66A1E; }
.app-care--upcoming { background: #E7EDFB; }
.app-care--upcoming .icon { background: #6C8FE0; }
.app-care--upcoming span { color: #3F5FBE; }

.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.app-stat {
  padding: 10px 12px;
  border: 1px solid var(--purple-border);
  border-radius: 14px;
  background: var(--white);
}

.app-stat b {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.1;
  color: var(--purple);
}

.app-stat small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}

.app-button {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: var(--purple);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 13px;
}

/* Banner da notificação: cobre só a borda de cima do celular (o notch),
   sem esconder o conteúdo da tela. */
.notif {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 50%;
  width: 264px;
  transform: translateX(calc(-50% + 40px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 40px -14px rgba(46, 42, 77, 0.45);
  line-height: 1.3;
}

.notif img {
  flex: none;
  width: 36px;
  height: 36px;
}

.notif small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.notif strong {
  display: block;
  font-size: 14px;
}

.notif span {
  font-size: 13px;
}

/* ---------- Seções ---------- */

.section {
  padding-block: 56px;
}

.section-head {
  max-width: 640px;
}

.eyebrow {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-dark);
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-lead {
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px 22px;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--purple-chip);
  color: var(--purple-dark);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
}

.feature p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Sobre ---------- */

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding: 56px;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-xl);
  background: var(--white);
}

.about-text > p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17.5px;
  color: var(--muted);
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--caramel);
  border-radius: 14px;
  background: var(--purple-light);
}

.callout h3 {
  font-size: 18px;
  font-weight: 600;
}

.callout p {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 6px 14px;
  border: 1px solid var(--purple-border);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  font-size: 14px;
}

.about-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 12%;
  border-radius: 50%;
  background: var(--cream);
}

.about-art img {
  width: 100%;
  height: auto;
}

/* ---------- Chamada final ---------- */

.section--cta {
  padding-bottom: 96px;
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  background: var(--purple);
  text-align: center;
}

.cta h2,
.cta p {
  position: relative;
  color: var(--cream);
}

.cta p {
  max-width: 46ch;
  margin: 14px auto 0;
  font-size: 18px;
}

.cta .stores {
  position: relative;
  justify-content: center;
  margin-top: 32px;
}

.cta-paw {
  position: absolute;
  fill: var(--cream);
  opacity: 0.1;
}

.cta-paw--a { width: 140px; height: 140px; top: -24px; left: 4%; transform: rotate(-18deg); }
.cta-paw--b { width: 90px; height: 90px; bottom: 18px; right: 7%; transform: rotate(16deg); }
.cta-paw--c { width: 60px; height: 60px; top: 30px; right: 24%; transform: rotate(-8deg); }

/* ---------- Rodapé ---------- */

.site-footer {
  padding-block: 56px 28px;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 32ch;
  color: var(--on-ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.footer-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9C90D9;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(253, 246, 236, 0.12);
  color: var(--on-ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-wordmark {
  margin-top: 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(56px, 15vw, 190px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(253, 246, 236, 0.07);
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 246, 236, 0.14);
  font-size: 14px;
  color: var(--on-ink-muted);
}

.footer-bottom p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heart {
  width: 16px;
  height: 15px;
  fill: var(--coral);
}

/* ---------- Páginas legais (geradas a partir do app) ---------- */

.legal {
  padding-block: 24px 96px;
}

.legal-container {
  max-width: 760px;
}

.legal h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-updated {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.legal-sections {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.legal-sections h2 {
  font-size: 21px;
  font-weight: 600;
}

.legal-sections p {
  margin-top: 8px;
  color: var(--muted);
}

.legal-sections a,
.legal-other a {
  color: var(--purple-dark);
  font-weight: 700;
}

.legal-other {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--purple-border);
  color: var(--muted);
}

/* ---------- Telas menores ---------- */

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

@media (max-width: 880px) {
  .hero {
    padding-bottom: 64px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .about-art {
    width: min(300px, 100%);
    margin-inline: auto;
    order: -1;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 32px 20px;
    border-radius: 28px;
  }

  .cta {
    padding: 48px 20px;
    border-radius: 28px;
  }

  .phone {
    width: 272px;
  }

  .notif {
    width: min(264px, calc(100% - 8px));
    transform: translateX(-50%);
  }

  .footer-nav {
    gap: 40px;
  }
}
