/* =========================================================
   Design system — Kit Lembrancinhas de Natal da Professora
   ========================================================= */
:root {
  color-scheme: light;
  /* cor */
  --cream: #FFF8F1;
  --cream-2: #FBEFE2;
  --paper: #FFFFFF;
  --ink: #1C2621;
  --ink-2: #4B5751;
  --ink-3: #7A847F;
  --line: #EBDFD2;
  --red: #D7353F;
  --red-deep: #B3222D;
  --red-soft: #FDECE9;
  --pine: #1D5A42;
  --pine-deep: #13402F;
  --pine-soft: #E5F1EA;
  --gold: #F2B544;
  --gold-soft: #FFF3D6;
  --sky-soft: #E8F1FA;
  /* tipografia */
  --f-display: 'Fredoka', 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.45rem, 1.1rem + 1.6vw, 1.9rem);
  --t-2xl: clamp(1.85rem, 1.25rem + 2.8vw, 2.75rem);
  --t-3xl: clamp(2.15rem, 1.35rem + 3.9vw, 3.65rem);
  /* espaço */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  /* forma */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(60, 40, 20, .06), 0 2px 8px rgba(60, 40, 20, .05);
  --sh-2: 0 2px 6px rgba(60, 40, 20, .06), 0 12px 32px rgba(60, 40, 20, .09);
  --sh-3: 0 4px 12px rgba(60, 40, 20, .08), 0 24px 60px rgba(60, 40, 20, .14);
  --sh-cta: 0 10px 24px rgba(215, 53, 63, .32), 0 2px 4px rgba(215, 53, 63, .2);
  /* movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--f-body); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0; color: var(--ink); }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: var(--section) 0; position: relative; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }

/* rótulos */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 800; font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--pine); background: var(--pine-soft); padding: 7px 14px; border-radius: var(--r-pill);
}
.eyebrow.red { color: var(--red-deep); background: var(--red-soft); }
.eyebrow.gold { color: #8A5A00; background: var(--gold-soft); }
.lead { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.hl { color: var(--red); }
.hl-pine { color: var(--pine); }
.u-line { background: linear-gradient(transparent 62%, rgba(242, 181, 68, .45) 62%); padding: 0 .08em; }

/* botões */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 30px; border: 0; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 800; font-size: 1.0625rem; letter-spacing: .01em;
  box-shadow: var(--sh-cta); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--red-deep); box-shadow: 0 14px 30px rgba(215, 53, 63, .38), 0 3px 6px rgba(215, 53, 63, .22); }
.btn:active { transform: translateY(0) scale(.99); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 4.5s var(--ease) 1.5s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.block { width: 100%; }
.btn.lg { min-height: 64px; font-size: 1.125rem; padding: 0 36px; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-3); }
.btn.pine { --bg: var(--pine); box-shadow: 0 10px 24px rgba(29, 90, 66, .28); }
.btn.pine:hover { background: var(--pine-deep); }
.btn.white { --bg: #fff; --fg: var(--red-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn.white:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) { .btn::after { animation: none; } }

/* cartões */
.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid rgba(235, 223, 210, .7); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 800; }

/* lista de checagem */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--pine-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5A42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* formulários */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 800; font-size: var(--t-sm); color: var(--ink); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(29, 90, 66, .12); }
.hint { font-size: var(--t-xs); color: var(--ink-3); }

/* revelação ao rolar (só com JS e sem redução de movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
