/* Pupgoal · site da lista de espera. Fontes locais (sem CDN). */

@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/baloo2-latin.woff') format('woff');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/nunito-latin.woff') format('woff');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #15112e;
  --night-2: #1f1944;
  --night-3: #2b2360;
  --caramel: #ffc83d;
  --pink: #ff6b9d;
  --cream: #fbf6ea;
  --muted: #cfc8ee;
  --error: #ffa3c0;
  --radius: 18px;
  --wrap: 68rem;
  --font-title: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a {
  color: var(--caramel);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--caramel);
  color: var(--night);
  font-weight: 800;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* Cabeçalho e rodapé */

.site-header,
.site-footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--cream);
  text-decoration: none;
}

.brand span {
  color: var(--caramel);
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-header nav a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0;
}

.site-header nav a:hover {
  color: var(--caramel);
}

.site-footer {
  border-top: 1px solid var(--night-3);
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

main > section,
main > article {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Hero */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    padding-top: 3.5rem;
  }
}

.eyebrow {
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--caramel);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-art {
  margin: 0;
  justify-self: center;
  max-width: 24rem;
  text-align: center;
}

.hero-art img {
  display: block;
  filter: drop-shadow(0 18px 40px rgb(255 107 157 / 0.25));
}

.hero-art figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Botões */

.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  background: var(--caramel);
  color: var(--night);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  background: #ffd76b;
  color: var(--night);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  background: var(--night-3);
  color: var(--muted);
  transform: none;
}

/* O que é */

.features h2,
.faq h2,
.waitlist h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cards {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.cards li {
  background: var(--night-2);
  border: 1px solid var(--night-3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cards h3 {
  color: var(--caramel);
  font-size: 1.4rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
}

/* Lista de espera */

.waitlist {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .waitlist {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--night);
  font-weight: 800;
  font-size: 0.9rem;
}

.waitlist-intro p:last-child {
  color: var(--muted);
}

.waitlist-form {
  background: var(--night-2);
  border: 2px solid var(--night-3);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.field input[type='email'] {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--night);
  background: var(--cream);
  border: 2px solid var(--muted);
  border-radius: 12px;
}

.field input[type='email']::placeholder {
  color: #5d567f;
}

.field input[aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: 0 0 0 2px var(--error);
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.check input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--caramel);
}

.check label {
  font-weight: 600;
  margin: 0;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--error);
  font-weight: 700;
  font-size: 0.95rem;
}

.field-error:empty {
  display: none;
}

.waitlist-form .button {
  margin-top: 1rem;
  width: 100%;
}

.status {
  margin: 1rem 0 0;
  font-weight: 700;
}

.status:empty {
  display: none;
}

.status[data-kind='success'] {
  color: var(--caramel);
}

.status[data-kind='error'] {
  color: var(--error);
}

.fine {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Honeypot: fora da tela para pessoas, visível para robôs. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FAQ */

.faq details {
  background: var(--night-2);
  border: 1px solid var(--night-3);
  border-radius: 14px;
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 0;
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Páginas legais */

.legal {
  max-width: 48rem !important;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--caramel);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.legal blockquote {
  margin: 1rem 0 2rem;
  padding: 0.75rem 1.25rem;
  border-left: 6px solid var(--pink);
  background: var(--night-2);
  border-radius: 0 12px 12px 0;
}

.legal blockquote p {
  margin: 0;
}

.legal code {
  font-size: 0.95em;
  background: var(--night-3);
  padding: 0.05em 0.35em;
  border-radius: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--night-3);
  border-radius: 12px;
}

.legal table {
  border-collapse: collapse;
  min-width: 40rem;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--night-3);
}

.legal th {
  background: var(--night-2);
  font-family: var(--font-title);
}

.legal .align-center {
  text-align: center;
}

.legal .align-right {
  text-align: right;
}

/* 404 */

.not-found {
  text-align: center;
  padding-top: 5rem !important;
}

.not-found h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--caramel);
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button:hover {
    transform: none;
  }
}
