/* ==========================================================================
   Lista de Apoio Sidney Stahl — folha de estilo pública
   Tema claro editorial: marfim de papel + azul-marinho de tinta + azul royal,
   com o laranja dos óculos como assinatura mínima. Serif de livro no display.
   ========================================================================== */

:root {
  --paper: #f7f4ee;
  --paper-soft: #efeae0;
  --paper-deep: #e7e0d2;
  --card: #fffdf9;
  --line: rgba(22, 35, 58, 0.14);
  --line-strong: rgba(22, 35, 58, 0.26);

  --ink: #16233a;
  --ink-soft: #45536d;
  --ink-mute: #75809a;

  --royal: #1d4ed8;
  --royal-bright: #2f63f0;
  --royal-deep: #16389f;
  --royal-glow: rgba(29, 78, 216, 0.22);

  --sig: #e8632c;              /* o laranja dos óculos: só como assinatura */

  --danger: #c0392b;
  --success: #1e8e5a;

  --shell: min(1180px, 100% - 2.5rem);
  --radius: 6px;
  --radius-lg: 10px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Textura de papel: grão finíssimo, quase subliminar. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--royal); }

.shell { width: var(--shell); margin-inline: auto; }

/* ===========================================================  CABEÇALHO  */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.4rem, 11vw, 6rem) 0 clamp(3rem, 9vw, 5rem);
  background:
    radial-gradient(110% 80% at 50% -20%, rgba(29, 78, 216, 0.07), transparent 60%),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

/* Pauta de caderno: linhas horizontais finíssimas ao fundo do hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(22, 35, 58, 0.05) 1px, transparent 1px);
  background-size: 100% 44px;
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 15%, transparent 78%);
}

/* Fio duplo editorial no rodapé do hero. */
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(560px, 80%);
  height: 5px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  opacity: 0.55;
}

.hero__orbs { display: none; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(22, 35, 58, 0.06);
}

.hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sig);
  box-shadow: 0 0 0 0 rgba(232, 99, 44, 0.35);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 99, 44, 0.35); }
  70%  { box-shadow: 0 0 0 9px rgba(232, 99, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 99, 44, 0); }
}

.hero__title { margin: 1.7rem 0 0; }

.hero__kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.8rem, 3vw, 1rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

/* Nome em serif editorial com o sublinhado-assinatura laranja. */
.hero__name {
  position: relative;
  display: block;
  margin-top: 0.12em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 13vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__name em {
  font-style: italic;
  color: var(--royal);
}

/* Traço de caneta sob o nome — a assinatura do autor. */
.hero__name::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%) rotate(-0.6deg);
  width: 5.5ch;
  height: 0.09em;
  border-radius: 999px;
  background: var(--sig);
}

.hero__rule { display: none; }

.hero__lead {
  max-width: 60ch;
  margin: 2.1rem auto 0;
  font-size: clamp(1rem, 2.7vw, 1.15rem);
  color: var(--ink-soft);
}

/* ==========================================================  INDICAÇÃO  */

.invited {
  max-width: 46ch;
  margin: 1.4rem auto -0.6rem;
  padding: 0.55rem 1.2rem;
  display: inline-block;
  border: 1px solid rgba(29, 78, 216, 0.35);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.07);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.invited strong { color: var(--royal); font-weight: 600; }

.share { text-align: center; animation: rise 0.6s var(--ease) both; }

.share__seal { margin-bottom: 1rem; }

.share__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  letter-spacing: -0.01em;
}

.share__lead {
  max-width: 46ch;
  margin: 0 auto 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.share__lead strong { color: var(--ink); }

.share__linkbox {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto 0.9rem;
}

.share__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border: 1.5px dashed rgba(29, 78, 216, 0.5);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 0.8rem;
  color: var(--royal-deep);
  word-break: break-all;
  text-align: left;
  user-select: all;
}

.share__copy { white-space: nowrap; }
.share__copy.is-copied { color: var(--success); border-color: rgba(30, 142, 90, 0.5); }

.share__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .share__actions { flex-direction: row; }
  .share__actions .share__wa { flex: 1.4; }
  .share__actions .btn--ghost { flex: 1; }
}

.share--page { margin: 2.2rem auto 0; max-width: 560px; }

/* ------------------------------------------------------------  Ranking  */

.section--rank { padding-top: 0; }

.rank {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 0.55rem;
}

.rank__item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(22, 35, 58, 0.05);
}

.rank__item--top { border-color: rgba(29, 78, 216, 0.45); }

.rank__pos {
  flex: 0 0 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-soft);
}

.rank__item--top .rank__pos {
  background: var(--royal);
  color: #fff;
}

.rank__who { flex: 1; min-width: 0; text-align: left; line-height: 1.3; }
.rank__who strong { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.rank__who small { color: var(--ink-mute); font-size: 0.74rem; }

.rank__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--royal);
  white-space: nowrap;
}

/* -------------------------------------------------------------  Placar  */

.placar__score { margin-top: 1.8rem; }

.placar__score strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 20vw, 7rem);
  line-height: 0.9;
  color: var(--royal);
  font-variant-numeric: tabular-nums;
}

.placar__score span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.placar__position { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.placar__position a { color: var(--royal); }

.placar__hint { margin: 2rem auto 0; max-width: 48ch; font-size: 0.78rem; color: var(--ink-mute); }

/* ========================================================  META / PROGRESSO  */

.goal {
  width: min(560px, 100%);
  margin: 2.4rem auto 0;
  padding: 1.3rem 1.4rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 10px 30px -18px rgba(22, 35, 58, 0.35);
  text-align: left;
}

.goal__figures {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.goal__now strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 9.5vw, 3.2rem);
  line-height: 0.9;
  color: var(--royal);
  font-variant-numeric: tabular-nums;
}

.goal__now span,
.goal__target span {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.goal__now span { display: block; margin-top: 0.3rem; }

.goal__target { text-align: right; }

.goal__target strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.goal__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  box-shadow: inset 0 1px 3px rgba(22, 35, 58, 0.18);
  overflow: hidden;
}

.goal__mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(22, 35, 58, 0.16);
  z-index: 2;
}

.goal__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal-deep), var(--royal) 60%, var(--royal-bright));
  box-shadow: 0 0 14px var(--royal-glow);
  animation: goal-fill 1.5s var(--ease) 0.35s both;
}

.goal__fill.is-started { min-width: 7px; }

.goal__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  background-size: 220% 100%;
  animation: goal-sheen 3.4s var(--ease) 1.9s infinite;
}

@keyframes goal-fill {
  from { width: 0; }
  to   { width: var(--target); }
}

@keyframes goal-sheen {
  0%, 55% { background-position: 200% 0; }
  100%    { background-position: -120% 0; }
}

.goal__note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.goal__note strong { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }

.goal--thanks { margin-inline: auto; }

/* =============================================================  SEÇÕES  */

.section { padding: clamp(3.2rem, 10vw, 5.5rem) 0; }

.section__head { text-align: center; margin-bottom: clamp(2rem, 6vw, 3rem); }

.section__eyebrow {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--royal);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 6.5vw, 2.8rem);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
}

.section__sub {
  max-width: 56ch;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =====================================================  QUEM É SIDNEY  */

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

@media (min-width: 860px) {
  .about { grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(2rem, 6vw, 4.5rem); }
}

/* Moldura de retrato de livro: borda fina de tinta + sombra de papel. */
.about__portrait {
  position: relative;
  width: min(320px, 82vw);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  outline: 6px solid var(--card);
  box-shadow:
    0 24px 55px -22px rgba(22, 35, 58, 0.45),
    0 2px 8px rgba(22, 35, 58, 0.12);
}

/* Canto de fita laranja — a assinatura entra uma única vez. */
.about__portrait::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(225deg, var(--sig) 0 29%, transparent 30%);
  z-index: 2;
}

.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}

.about__portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.1rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(22, 35, 58, 0.82));
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4f6fb;
  text-align: center;
}

.about__text { text-align: left; }

.about__text .section__eyebrow,
.about__text .section__title { text-align: left; }

@media (max-width: 859px) {
  .about__text { text-align: center; }
  .about__text .section__eyebrow,
  .about__text .section__title { text-align: center; }
}

.about__body p { margin: 1.1rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.about__body p:first-child { margin-top: 1.3rem; }

/* Primeira letra editorial no primeiro parágrafo da bio. */
.about__body p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 0.05em 0.12em 0 0;
  color: var(--royal);
}

.about__cta { margin-top: 1.8rem; }

/* =========================================================  FORMULÁRIO  */

.section--form {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  border-top: 1px solid var(--line);
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.6rem, 5.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 24px 60px -30px rgba(22, 35, 58, 0.45);
}

.alert {
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: var(--radius);
  background: rgba(192, 57, 43, 0.07);
  color: #8e2e22;
  font-size: 0.86rem;
}

.field { position: relative; margin-bottom: 1rem; }

.field__input {
  width: 100%;
  padding: 1.5rem 1rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.field__input::placeholder { color: transparent; }

.field__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px var(--royal-glow);
}

.field__label {
  position: absolute;
  top: 1rem;
  left: 1.05rem;
  font-size: 0.92rem;
  color: var(--ink-mute);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-0.7rem) scale(0.72);
  color: var(--royal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.field--error .field__input { border-color: rgba(192, 57, 43, 0.6); }

.field__error {
  display: block;
  margin: 0.35rem 0 0 0.2rem;
  font-size: 0.76rem;
  color: var(--danger);
}

/* Checkbox custom */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.2rem 0 1.4rem;
  cursor: pointer;
  user-select: none;
}

.consent input { position: absolute; opacity: 0; pointer-events: none; }

.consent__box {
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.consent__box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.4; opacity: 0; transition: opacity 0.2s var(--ease); }

.consent input:checked + .consent__box {
  background: var(--royal);
  border-color: var(--royal);
}

.consent input:checked + .consent__box svg { opacity: 1; }

.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 4px var(--royal-glow); }

.consent__text { font-size: 0.85rem; color: var(--ink-soft); }
.consent__text strong { color: var(--ink); font-weight: 600; }

.form-note {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-mute);
  text-align: center;
}

/* =============================================================  BOTÕES  */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--royal-bright), var(--royal) 55%, var(--royal-deep));
  box-shadow: 0 12px 28px -12px rgba(29, 78, 216, 0.6);
}

.btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(29, 78, 216, 0.75); }

.btn--primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--ghost { color: var(--ink-soft); border-color: var(--line-strong); background: var(--card); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-mute); }

.btn--block { width: 100%; }

/* ==============================================================  THANKS  */

.thanks { padding: clamp(4rem, 14vw, 7rem) 0; text-align: center; }

.thanks__seal {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(29, 78, 216, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(29, 78, 216, 0.14), rgba(29, 78, 216, 0.03));
  box-shadow: 0 12px 34px -14px rgba(29, 78, 216, 0.5);
  animation: rise 0.7s var(--ease) both;
}

.thanks__seal svg { width: 40px; height: 40px; stroke: var(--royal); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.thanks__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 9.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}

.thanks__lead {
  max-width: 52ch;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
}

.thanks__lead strong { color: var(--royal); }

/* ==============================================================  FOOTER  */

.footer {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--royal); }

/* ==========================================================  ANIMAÇÕES  */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { animation: rise 0.8s var(--ease) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.16s; }
.reveal-3 { animation-delay: 0.28s; }
.reveal-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
