/* ============================================================
   Katia Pedagógica — design lúdico e acolhedor
   (portado do projeto de referência para CSS puro)
   ============================================================ */
:root {
  --font-display: "Fredoka", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;

  --coral-50:#fff1f0; --coral-100:#ffe0dd; --coral-200:#ffc4be; --coral-300:#ff9d93;
  --coral-400:#ff7a6b; --coral-500:#ff6b6b; --coral-600:#f2545b; --coral-700:#d43f4d;
  --lilac-50:#f5f2ff; --lilac-100:#ede7ff; --lilac-200:#ddd2ff; --lilac-400:#a78bfa;
  --lilac-500:#8b5cf6; --lilac-600:#7c3aed; --lilac-700:#6d28d9;
  --sunny-100:#fff6d8; --sunny-200:#ffecaa; --sunny-300:#ffe08a; --sunny-400:#ffd15c;
  --sunny-500:#ffc93c; --sunny-600:#f5b100;
  --mint-100:#d6f7f2; --mint-300:#7fe3d8; --mint-400:#4ed8c8; --mint-500:#2ec4b6; --mint-600:#1fa89b;
  --sky-50:#eef6ff; --sky-100:#d9ecff; --sky-200:#b9dbff; --sky-500:#4f9ff0; --sky-600:#2f7fd8; --sky-700:#2563b0;

  --cream:#fff8f2; --cream-100:#fff1e6; --cream-200:#ffe8d6;
  --ink:#2d2a32; --ink-soft:#56505e; --ink-muted:#8b8593;

  --shadow-soft: 0 10px 30px -12px rgba(45,42,50,.18);
  --shadow-card: 0 18px 40px -20px rgba(45,42,50,.28);
  --shadow-coral: 0 16px 34px -12px rgba(255,107,107,.5);
}

* { box-sizing: border-box; }
/* overflow-x: clip impede arraste horizontal SEM quebrar o header sticky
   (diferente de overflow: hidden, que criaria um container de rolagem). */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.55;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.12; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--coral-200); color: var(--coral-700); }

.container { max-width: 1152px; margin: 0 auto; padding: 0 1.25rem; }
.gradient-warm { background-image: linear-gradient(120deg, var(--coral-500) 0%, var(--coral-400) 35%, var(--lilac-500) 100%); }
.gradient-sunset { background-image: linear-gradient(135deg, var(--sunny-400) 0%, var(--coral-400) 55%, var(--lilac-400) 100%); }
.text-gradient { background-image: linear-gradient(100deg, var(--coral-500), var(--lilac-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; cursor: pointer; font-family: var(--font-sans); font-weight: 800;
  border-radius: 999px; padding: .8rem 1.4rem; font-size: 1rem;
  color: #fff; background-image: linear-gradient(120deg, var(--coral-500), var(--coral-400) 45%, var(--lilac-500));
  box-shadow: var(--shadow-coral); transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--ink); background-image: none; box-shadow: var(--shadow-soft); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: rgba(255,255,255,.7); background-image: none; color: var(--ink-soft); border: 1px solid var(--cream-200); box-shadow: none; }
.btn-ghost:hover { color: var(--coral-600); border-color: var(--coral-200); }
.btn-block { width: 100%; }

/* ---------------- Navbar ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,248,242,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cream-200); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; min-width: 0; }
.brand-name { line-height: 1.05; }
.brand .mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; box-shadow: var(--shadow-coral); flex-shrink: 0; }
.brand .mark svg { width: 22px; height: 22px; }
.brand em { font-style: normal; color: var(--coral-600); }
.nav-links { display: none; gap: 1.5rem; }
.nav-links a { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.nav-links a:hover { color: var(--coral-600); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .hi { display: none; color: var(--ink-muted); font-size: .9rem; font-weight: 700; }
.link-btn { background: none; border: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink-soft); padding: 0; }
.link-btn:hover { color: var(--coral-600); }
.inline { display: inline; margin: 0; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-actions .hi { display: inline; } }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 999px; filter: blur(60px); opacity: .55; animation: blob 16s ease-in-out infinite; }
.blob.b1 { left: -6rem; top: -6rem; width: 20rem; height: 20rem; background: var(--coral-200); }
.blob.b2 { right: -5rem; top: 3rem; width: 18rem; height: 18rem; background: var(--lilac-200); animation-delay: -5s; }
.blob.b3 { bottom: -4rem; left: 30%; width: 18rem; height: 18rem; background: var(--sunny-200); animation-delay: -9s; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding: 3rem 0 2rem; }
.hero-copy { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--coral-200); background: rgba(255,255,255,.7); color: var(--coral-600); font-weight: 800; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; box-shadow: var(--shadow-soft); }
.hero h1 { margin-top: 1.1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; }
.hero .lead { margin: 1.1rem auto 0; max-width: 34rem; font-size: 1.1rem; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.6rem; align-items: center; }
.hero-art { position: relative; width: 100%; max-width: 26rem; margin: 0 auto; aspect-ratio: 1; }
.hero-art .halo { position: absolute; inset: 1.5rem; border-radius: 2.5rem; opacity: .9; filter: blur(2px); }
.hero-art .cover { position: absolute; overflow: hidden; border: 4px solid #fff; border-radius: 1.5rem; box-shadow: var(--shadow-card); }
.hero-art .cover.back { left: 4%; top: 12%; width: 58%; aspect-ratio: 4/5; transform: rotate(-6deg); }
.hero-art .cover.front { right: 4%; top: 4%; width: 60%; aspect-ratio: 4/5; transform: rotate(3deg); animation: float 9s ease-in-out infinite; }
.chip-float { position: absolute; display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 1rem; padding: .55rem .8rem; box-shadow: var(--shadow-card); }
.chip-float .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; }
.chip-float b { font-size: .85rem; } .chip-float span { font-size: .72rem; color: var(--ink-muted); }
.chip-float.c1 { left: -.5rem; top: 50%; }
.chip-float.c2 { right: 0; bottom: -.5rem; animation: float 6s ease-in-out infinite; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; padding: 4rem 0 2.5rem; }
  .hero-copy { text-align: left; }
  .hero .lead { margin-left: 0; }
  .hero-ctas { flex-direction: row; align-items: flex-start; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; padding: 0 0 3rem; }
.stat { border: 1px solid var(--cream-200); background: rgba(255,255,255,.7); border-radius: 1.4rem; padding: 1.1rem; text-align: center; box-shadow: var(--shadow-soft); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.stat .l { font-size: .8rem; font-weight: 700; color: var(--ink-muted); margin-top: .2rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4,1fr); } }

/* ---------------- Seções ---------------- */
.section { padding: 3.5rem 0; }
.section.alt { background: linear-gradient(180deg, transparent, var(--cream-100)); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.2rem; }
.kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--coral-600); background: var(--coral-50); padding: .3rem .8rem; border-radius: 999px; }
.section-head h2 { margin-top: .8rem; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { margin-top: .6rem; color: var(--ink-soft); }

/* Categorias */
.cat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .9rem; }
.cat-card { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--cream-200); border-radius: 1.2rem; padding: .9rem 1rem; box-shadow: var(--shadow-soft); transition: transform .2s; font-weight: 700; }
.cat-card:hover { transform: translateY(-4px); }
.cat-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; flex-shrink: 0; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4,1fr); } }

/* Grade de produtos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.25rem; }
.prod-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--cream-200); border-radius: 1.5rem; box-shadow: var(--shadow-soft); transition: transform .25s; }
.prod-card:hover { transform: translateY(-8px); }
.prod-cover { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.prod-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s; }
.prod-card:hover .prod-cover svg { transform: scale(1.05); }
.prod-pages { position: absolute; left: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; background: rgba(45,42,50,.75); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.prod-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.prod-cat { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.prod-card h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.prod-desc { color: var(--ink-muted); font-size: .88rem; margin: .4rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.prod-price { font-size: 1.35rem; font-weight: 800; color: var(--ink); }

/* chips por cor */
.c-coral { background: var(--coral-100); color: var(--coral-700); }
.c-lilac { background: var(--lilac-100); color: var(--lilac-700); }
.c-sunny { background: var(--sunny-200); color: var(--sunny-600); }
.c-mint  { background: var(--mint-100); color: var(--mint-600); }
.c-sky   { background: var(--sky-100); color: var(--sky-700); }

/* Benefícios */
.bene-grid, .steps-grid { display: grid; grid-template-columns: repeat(1,1fr); gap: 1.1rem; }
.bene, .step { background: #fff; border: 1px solid var(--cream-200); border-radius: 1.4rem; padding: 1.4rem; box-shadow: var(--shadow-soft); }
.bene .ico, .step .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; margin-bottom: .9rem; }
.bene h3, .step h3 { font-family: var(--font-sans); font-weight: 800; font-size: 1.1rem; }
.bene p, .step p { color: var(--ink-soft); font-size: .92rem; margin: .4rem 0 0; }
.step { position: relative; }
.step .num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--cream-200); }
@media (min-width: 640px) { .bene-grid { grid-template-columns: repeat(2,1fr); } .steps-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1000px) { .bene-grid { grid-template-columns: repeat(4,1fr); } }

/* ---------------- Formulários ---------------- */
.form-wrap { max-width: 440px; margin: 3rem auto; }
.form-card { background: #fff; border: 1px solid var(--cream-200); border-radius: 1.6rem; padding: 2rem; box-shadow: var(--shadow-card); }
.form-card h1 { font-size: 1.7rem; }
.form-card .sub { color: var(--ink-soft); margin: .4rem 0 1.4rem; }
label { display: block; margin-bottom: 1rem; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
input { width: 100%; margin-top: .35rem; padding: .75rem .9rem; border: 1px solid var(--cream-200); background: var(--cream); border-radius: .9rem; font: inherit; color: var(--ink); }
input:focus { outline: none; border-color: var(--coral-300); background: #fff; box-shadow: 0 0 0 4px var(--coral-50); }
.errors { list-style: none; margin: 0 0 1rem; padding: .7rem 1rem; background: var(--coral-50); color: var(--coral-700); border: 1px solid var(--coral-200); border-radius: .9rem; font-weight: 700; font-size: .9rem; }
.errors li { margin: 0; }
.form-note { color: var(--ink-muted); font-size: .9rem; margin-top: 1.1rem; text-align: center; }
.form-note a { color: var(--coral-600); font-weight: 800; }

/* ---------------- Detalhe do pacote ---------------- */
.detail-grid { display: grid; gap: 2rem; align-items: start; }
.detail-cover { border-radius: 1.6rem; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-card); max-width: 360px; margin: 0 auto; }
.detail-cover svg { width: 100%; aspect-ratio: 4/5; }
.detail h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: .6rem; }
.detail .lead { margin: .5rem 0 0; }
.detail .price { font-size: 2rem; font-weight: 800; margin: 1rem 0; }
.bene-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.bene-mini .bene { padding: 1rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 1rem; }
.back:hover { color: var(--coral-600); }
@media (min-width: 800px) { .detail-grid { grid-template-columns: .9fr 1.1fr; } }

/* ---------------- Conta / tabela ---------------- */
.table-wrap { overflow-x: auto; }
.orders { width: 100%; border-collapse: separate; border-spacing: 0 .6rem; }
.orders th { text-align: left; font-size: .8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; padding: 0 1rem; }
.orders td { background: #fff; padding: 1rem; border-top: 1px solid var(--cream-200); border-bottom: 1px solid var(--cream-200); }
.orders td:first-child { border-left: 1px solid var(--cream-200); border-radius: 1rem 0 0 1rem; }
.orders td:last-child { border-right: 1px solid var(--cream-200); border-radius: 0 1rem 1rem 0; }
.tag { font-size: .78rem; font-weight: 800; padding: .2rem .7rem; border-radius: 999px; }
.tag.ok { background: var(--mint-100); color: var(--mint-600); }
.tag.bad { background: var(--coral-50); color: var(--coral-700); }
.tag.wait { background: var(--sunny-200); color: var(--sunny-600); }

/* ---------------- Resultado / erro ---------------- */
.result { max-width: 560px; margin: 3rem auto; text-align: center; background: #fff; border: 1px solid var(--cream-200); border-radius: 1.6rem; padding: 2.5rem 2rem; box-shadow: var(--shadow-card); }
.result h1 { font-size: 2rem; }
.result h1.ok { color: var(--mint-600); }
.result h1.wait { color: var(--sunny-600); }
.result .big { font-size: 3rem; margin-bottom: .5rem; }
.empty { text-align: center; color: var(--ink-muted); padding: 2rem; }

/* ---------------- Rodapé ---------------- */
.site-footer { background: var(--ink); color: var(--cream-100); margin-top: 2rem; }
.foot-grid { display: grid; gap: 2.2rem; padding: 3.5rem 0 0; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: rgba(255,241,230,.7); font-size: .9rem; max-width: 20rem; margin-top: 1rem; }
.foot-col h4 { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.foot-col a { color: rgba(255,241,230,.7); font-size: .9rem; }
.foot-col a:hover { color: var(--coral-400); }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.foot-pay .pay-label { color: rgba(255,241,230,.6); font-size: .85rem; }
.foot-pay .pays { display: flex; flex-wrap: wrap; gap: .5rem; }
.foot-pay .pays span { background: rgba(255,255,255,.1); color: #fff; font-size: .72rem; font-weight: 800; padding: .35rem .7rem; border-radius: .5rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-bottom: 2rem; color: rgba(255,241,230,.6); font-size: .85rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------------- Ajustes para telas pequenas (celular) ---------------- */
@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .nav { gap: .5rem; height: 60px; }
  .nav-actions { gap: .5rem; }
  .brand { font-size: 1.02rem; gap: .45rem; }
  .brand .mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand .mark svg { width: 19px; height: 19px; }
  .btn-sm { padding: .4rem .7rem; font-size: .8rem; }
  .hero-grid { padding: 2rem 0 1.5rem; gap: 2rem; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .hero .lead { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .section-head h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .stat { padding: .9rem .5rem; }
  .stat .v { font-size: 1.35rem; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
}

@keyframes float { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(12px,-10px) scale(1.05); } 66% { transform: translate(-10px,8px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
