/* Sabichão — site oficial. Paleta e estilo "cartoon" do aplicativo. */
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/Baloo2.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b1b2e;
  --ink-soft: #4a3a4e;
  --cream: #fff6e5;
  --sky: #5cc8f6;
  --sky-light: #b4e6fb;
  --yellow: #ffc93c;
  --purple: #7a4cc9;
  --purple-dark: #4b2d85;
  --green: #3ddc97;
  --pink: #ff5e7e;
  --orange: #ff7a2f;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 6px 0 var(--ink);
  --font-title: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

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

a {
  color: var(--purple-dark);
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
}
h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}
h3 {
  font-size: 1.35rem;
}
p {
  margin: 0 0 1em;
}

.hl {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 0 0.25em;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  background: var(--sky);
  position: relative;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 3px solid var(--ink);
}
.nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.nav ul a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.nav ul a:hover {
  background: rgba(255, 255, 255, 0.55);
}
@media (min-width: 820px) {
  .nav ul {
    display: flex;
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--ink);
}
.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink);
}
.btn--green {
  background: var(--green);
}
.btn--white {
  background: var(--white);
}
.btn--soon {
  background: #e7dfd0;
  color: var(--ink-soft);
  cursor: default;
  box-shadow: 0 4px 0 #b9aea0;
  border-color: #6b5d70;
  transform: none;
}
.btn small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* ---------- Herói ---------- */
.hero {
  background: linear-gradient(var(--sky) 0%, var(--sky-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 24px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe27a 0 45%, rgba(255, 240, 150, 0.55) 46% 70%, transparent 71%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding-bottom: 0;
}
.hero__text {
  padding-top: 12px;
}
.hero__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  max-width: 34ch;
}
.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 380px;
}
.hero__mascot {
  position: absolute;
  left: 2%;
  bottom: 18%;
  width: clamp(110px, 22vw, 180px);
  z-index: 3;
  animation: bob 3.4s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}
.hills {
  position: relative;
  height: 56px;
  background: #6ac854;
  border-top: 6px solid #54c43c;
  margin-top: -6px;
}
.hills::after {
  content: "";
  position: absolute;
  inset: 20px 0 0;
  background: #b87034;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero__phones {
    min-height: 560px;
  }
}

/* ---------- Celular (moldura) ---------- */
.phone {
  margin: 0;
  width: min(280px, 62vw);
  border: 8px solid var(--ink);
  border-radius: 40px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(43, 27, 46, 0.35);
}
.phone img {
  width: 100%;
  border-radius: 30px;
}
.phone--back {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(220px, 46vw);
  transform: rotate(6deg) translateY(30px);
  opacity: 0.98;
}
.hero__phones .phone--front {
  position: relative;
  z-index: 2;
  margin-bottom: -40px;
}

/* ---------- Seções ---------- */
section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}
.section-head p {
  font-size: 1.15rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Cartões */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  font-size: 1.9rem;
  margin-bottom: 14px;
  background: var(--c, var(--yellow));
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Passos */
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--sky-light);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 56px 22px 22px;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.steps strong {
  font-family: var(--font-title);
  font-size: 1.3rem;
  display: block;
}

/* Galeria */
.how {
  background: #fff;
  border-block: 3px solid var(--ink);
}
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
}
.gallery li {
  flex: 0 0 auto;
  width: min(250px, 66vw);
  scroll-snap-align: center;
}
.gallery .phone {
  width: 100%;
}
.gallery figcaption {
  text-align: center;
  font-weight: 800;
  margin-top: 12px;
}
.gallery figure {
  margin: 0;
}
.gallery-wrap:focus-visible {
  outline-offset: 6px;
}

/* Categorias */
.cats {
  background: var(--purple);
  color: var(--white);
  border-block: 3px solid var(--ink);
}
.cats h2,
.cats .eyebrow {
  color: var(--white);
}
.cats .eyebrow {
  background: var(--yellow);
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
}
.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0 0 36px;
}
.stats div {
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stats dt {
  font-weight: 700;
  order: 2;
}
.stats dd {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
}
.stats div {
  display: flex;
  flex-direction: column;
}

/* Demo no navegador */
.demo__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.demo-frame {
  width: min(360px, 100%);
  aspect-ratio: 9 / 18;
  margin-inline: auto;
  border: 8px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 14px 30px rgba(43, 27, 46, 0.35);
  display: grid;
  place-items: center;
  position: relative;
}
.demo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.demo-frame .demo-start {
  text-align: center;
  padding: 20px;
}
.demo-frame .demo-start img {
  width: 120px;
  margin: 0 auto 12px;
}
@media (min-width: 900px) {
  .demo__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* FAQ */
.faq {
  background: #fff;
  border-top: 3px solid var(--ink);
}
.faq details {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 52px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.8rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 0 20px 18px;
  margin: 0;
}

/* CTA final */
.final {
  background: var(--sky);
  text-align: center;
  border-top: 3px solid var(--ink);
}
.final .mascot {
  width: 130px;
  margin: 0 auto 8px;
}
.final .cta-row {
  justify-content: center;
}

/* Rodapé */
.site-footer {
  background: var(--ink);
  color: #f4eaf7;
  padding: 40px 0;
  font-size: 0.98rem;
}
.site-footer a {
  color: var(--yellow);
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-grid h2 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li {
  padding: 3px 0;
}
.copy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Página de texto (privacidade, 404) */
.doc {
  padding: 48px 0 72px;
}
.doc .wrap {
  max-width: 780px;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.doc h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .btn,
  .card,
  .chips li {
    border: 2px solid CanvasText;
  }
}

.btn--small {
  min-height: 44px;
  padding: 6px 20px;
  font-size: 1.05rem;
}
.wrap--narrow {
  max-width: 820px;
}
.soon {
  list-style: none;
  padding: 0;
}
.hero {
  padding-bottom: 0;
}

.copy--plain {
  border: 0;
  margin: 0;
  padding: 0;
}

.gallery-wrap {
  padding: 0;
}
