/* Formação de Moderadores · Eu Lidero — Oliveira Foundation */

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #213141;
  --navy-deep: #1a2734;
  --navy-soft: #3a4856;
  --muted: #586472;
  --on-navy: #d3dbe3;
  --orange: #e9622d;
  --orange-hover: #d8541f;
  --orange-ink: #b4461a;
  --peach: #f2b593;
  --paper: #ffffff;
  --field: #f6f3ef;
  --line: #e4ddd4;
  --line-strong: #cdc3b8;
  --error: #b42318;
  --error-bg: #fef4f3;
  --focus: var(--orange);
  --gutter: 16px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  scrollbar-color: var(--navy) #efe9e2;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, p, ol, ul, dl, dd { margin: 0; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select { caret-color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 150px;
  background: var(--navy);
}
.hero__brand {
  display: flex; align-items: center; gap: 16px;
  padding-top: max(18px, env(safe-area-inset-top));
}
.logo-oliveira { height: 46px; width: auto; }
.logo-eulidero { height: 21px; width: auto; }
.hero__divider { width: 1px; height: 30px; background: rgb(255 255 255 / 0.45); }
.hero__pill-wrap {
  position: absolute; left: 0; right: 0; bottom: 0;
  transform: translateY(50%);
  z-index: 3;
}
.pill {
  display: inline-block;
  background: var(--orange); color: #fff;
  font: 600 1.2rem/1.15 var(--display);
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.62em 0.95em;
  text-wrap: balance;
  border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgb(26 39 52 / 0.6);
}
.is-closed .pill { background: var(--navy); }

/* ---------- Layout ---------- */
.main { padding-top: 52px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "agenda" "signup";
}
.intro { grid-area: intro; }
.agenda { grid-area: agenda; }
.signup { grid-area: signup; }

/* ---------- Intro ---------- */
.intro h1 {
  font: 600 clamp(2.5rem, 8.6vw, 4.5rem)/0.98 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.accent { color: var(--orange); white-space: nowrap; }
.lede {
  margin-top: 16px;
  font-size: 1.25rem; line-height: 1.35; font-weight: 500;
  color: var(--navy);
  text-wrap: balance;
}
.lede strong { font-weight: 700; }
.intro__text { margin-top: 14px; color: var(--navy-soft); max-width: 58ch; }
.intro__about {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.975rem; max-width: 58ch;
}
.btn--jump { margin-top: 24px; width: 100%; }

/* ---------- Agenda ---------- */
.agenda {
  --focus: var(--peach);
  margin: 40px calc(var(--gutter) * -1) 0;
  padding: 36px var(--gutter) 40px;
  background: var(--navy);
  color: #fff;
}
.agenda__title {
  font: 600 1.6rem/1.1 var(--display);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.dates {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-top: 22px;
}
.date {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; color: var(--navy);
  border-radius: 14px;
  padding: 14px 4px 12px;
  box-shadow: 0 8px 18px -12px rgb(0 0 0 / 0.55);
}
.date__day { font: 600 clamp(2.2rem, 9.5vw, 3.3rem)/1 var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.date__month { margin-top: 4px; font: 500 0.95rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; }
.date__week { margin-top: 6px; font-size: 0.8rem; line-height: 1; color: var(--muted); font-weight: 500; }
.agenda__time {
  margin-top: 22px;
  font: 600 2.2rem/1 var(--display); text-transform: uppercase;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
}
.agenda__time span { font: 500 1rem/1.3 var(--text); text-transform: none; color: var(--peach); }
.agenda__deadline {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; align-items: center; gap: 10px;
  color: var(--on-navy);
}
.agenda__deadline .icon { color: var(--peach); }
.agenda__deadline strong { color: #fff; font-weight: 600; }

/* ---------- Form card ---------- */
.signup { padding: 40px 0 64px; outline: none; }
.signup__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 20px 24px;
  box-shadow: 0 28px 56px -32px rgb(33 49 65 / 0.45), 0 2px 6px rgb(33 49 65 / 0.06);
}
.form__title, .done__title, .closed__title {
  font: 600 1.85rem/1.05 var(--display);
  text-transform: uppercase; letter-spacing: 0.005em;
}
.form__note { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 12px; }

.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.975rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  display: block; width: 100%;
  height: 52px; padding: 0 14px;
  font-size: 1.0625rem;
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #6e7178; opacity: 1; }
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgb(233 98 45 / 0.16);
}
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(180 35 24 / 0.14); border-color: var(--error); }
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213141' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field select:invalid { color: #6e7178; }
.field select option { color: var(--navy); }

.tel { position: relative; }
.tel__ddi {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 600; color: var(--navy); pointer-events: none;
}
.tel input[type="tel"] { padding-left: 54px; }

.field__hint { margin-top: 6px; font-size: 0.875rem; color: var(--muted); }
.field__error {
  margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: var(--error);
}
.field__error:empty { display: none; }

.field--check { margin-top: 20px; }
.check {
  display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start;
  font-weight: 400 !important; font-size: 0.95rem !important; line-height: 1.45;
  color: var(--navy-soft); cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.check a { color: var(--orange-ink); text-underline-offset: 3px; font-weight: 600; }
.field--check:has([aria-invalid="true"]) .check input { outline: 2px solid var(--error); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 12px 14px;
  background: var(--error-bg); border: 1px solid #f7cfca; border-radius: 10px;
  color: #8f1d14; font-size: 0.95rem; font-weight: 500;
}
.form__alert .icon { margin-top: 1px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border: 0; border-radius: 12px;
  font: 600 1.2rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 12px 22px -14px rgb(233 98 45 / 0.95);
}
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 6px 14px -10px rgb(233 98 45 / 0.95); }
.btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgb(255 255 255 / 0.42);
}
.btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); }
.btn--submit { width: 100%; margin-top: 22px; min-height: 58px; }
.btn--submit[aria-busy="true"] { cursor: progress; background: var(--orange-hover); }
.btn__busy {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgb(255 255 255 / 0.4); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit[aria-busy="true"] .btn__busy { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success / closed ---------- */
.done, .closed { text-align: center; padding: 8px 4px 4px; outline: none; }
.done__mark { width: 76px; height: 76px; margin: 4px auto 18px; }
.done__ring, .done__tick { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; }
.done__ring { stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 0; }
.done__tick { stroke-width: 4.5; stroke-dasharray: 40; stroke-dashoffset: 0; }
.done.is-in .done__ring { animation: draw-ring 0.8s var(--ease-out) both; }
.done.is-in .done__tick { animation: draw-tick 0.5s var(--ease-out) 0.35s both; }
.done.is-in .done__title,
.done.is-in .done__text,
.done.is-in .done__share { animation: rise 0.7s var(--ease-out) both; }
.done.is-in .done__text { animation-delay: 0.08s; }
.done.is-in .done__share { animation-delay: 0.16s; }
@keyframes draw-ring { from { stroke-dashoffset: 183; transform: scale(0.85); transform-origin: center; } }
@keyframes draw-tick { from { stroke-dashoffset: 40; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.done__text { margin-top: 10px; color: var(--navy-soft); }
.done__share {
  margin-top: 24px; padding: 18px;
  background: #fbf3ec; border-radius: 14px;
  font-size: 0.975rem; color: var(--navy-soft);
}
.done__share strong { color: var(--navy); }
.done__share .btn { width: 100%; margin-top: 14px; }
.closed p { margin-top: 12px; color: var(--navy-soft); }
.closed a { color: var(--orange-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Spread the word ---------- */
.spread {
  --focus: var(--peach);
  background: var(--navy-deep);
  color: #fff;
  padding: 64px 0 68px;
}
.spread__inner { display: grid; gap: 44px; }
.spread__heart {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 12px 24px -14px rgb(233 98 45 / 0.9);
}
.spread__heart svg { width: 28px; height: 28px; fill: #fff; }
.spread__title {
  margin-top: 20px;
  font: 600 clamp(1.9rem, 6.4vw, 2.75rem)/1.04 var(--display);
  text-transform: uppercase; text-wrap: balance;
}
.spread__text { margin-top: 12px; color: var(--on-navy); max-width: 46ch; font-size: 1.125rem; }
.spread__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.spread__actions .btn { flex: 1 1 100%; }
.impact { display: grid; }
.impact__item {
  display: flex; flex-direction: column-reverse;
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}
.impact__item:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
.impact dd { font: 600 clamp(2.2rem, 7vw, 3rem)/1 var(--display); color: var(--peach); font-variant-numeric: tabular-nums; }
.impact dt { margin-top: 6px; color: var(--on-navy); }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo img { height: 52px; width: auto; }
.footer__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.95rem; }
.footer__links a { color: var(--navy-soft); text-decoration: none; }
.footer__links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Larger screens ---------- */
@media (min-width: 480px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread__actions .btn { flex: 0 1 auto; }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .signup__card { padding: 32px 32px 28px; }
  .logo-oliveira { height: 54px; }
  .logo-eulidero { height: 24px; }
  .hero__brand { gap: 20px; padding-top: 24px; }
  .pill { font-size: 1.35rem; }
}

@media (min-width: 960px) {
  .hero { height: 260px; }
  .main { padding-top: 0; }
  .layout {
    grid-template-columns: minmax(0, 1fr) 452px;
    grid-template-areas: "intro signup" "agenda signup";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    align-items: start;
    padding-bottom: 88px;
  }
  .intro { padding-top: 76px; }
  .btn--jump { display: none; }
  .agenda {
    margin: 44px 0 0;
    padding: 36px 36px 34px;
    border-radius: 22px;
  }
  .signup { margin-top: -150px; padding: 0; position: relative; z-index: 4; }
  .spread { padding: 88px 0; }
  .spread__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px; align-items: center; }
}

@media (min-width: 1200px) {
  .intro h1 { font-size: 4.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .btn__busy { animation: spin 1.6s linear infinite !important; }
}
