/*
  Identidade "7a" do Spotted UTFPR — mesmos tokens usados no app
  (spotted-react/src/theme) e nos e-mails transacionais (src/emails/layout.ts).
  Sem fontes externas, sem build: apenas fontes do sistema.
*/

:root {
  --brand: #F6C500;
  --brand-tint: rgba(17, 17, 17, 0.06);
  --sheet: #FFFDF5;
  --ink: #111111;
  --muted: #4A4740;
  --placeholder: #8A8577;
  --border: #CFC9B8;
  --border-soft: #E2DDCB;
  --surface-soft: #F2EEE0;
  --error: #C6452A;
  --radius-sheet: 28px;
  --radius-card: 22px;
  --radius-button: 14px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 760px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

a:not(.btn) {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--sheet);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cabeçalho / navegação ---------- */

.topbar {
  background: var(--sheet);
  border-bottom: 1px solid var(--border-soft);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.brand-name .tag {
  color: var(--muted);
  font-weight: 500;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
}

/* ---------- Marca (logo) desenhada em CSS ---------- */

.logo-mark {
  position: relative;
  flex: none;
}

.logo-mark .drop {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 999px 12%;
}

.logo-mark .drop.a {
  left: 0;
  top: 11%;
  width: 62%;
  height: 70%;
  background: var(--ink);
  transform: rotate(35deg);
}

.logo-mark .drop.b {
  left: 33%;
  top: 3%;
  width: 65%;
  height: 74%;
  background: var(--sheet);
  border: 1.5px solid var(--border);
  transform: rotate(55deg);
}

.logo-mark .drop .dot {
  width: 36%;
  height: 36%;
  border-radius: 50%;
}

.logo-mark .drop.a .dot {
  background: var(--brand);
}

.logo-mark .drop.b .dot {
  background: var(--ink);
}

.logo-mark.sm {
  width: 34px;
  height: 30px;
}

.logo-mark.lg {
  width: 96px;
  height: 84px;
}

/* ---------- Hero (banda amarela, como no AuthLayout do app) ---------- */

.hero {
  background: var(--brand);
  position: relative;
  overflow: hidden;
  padding: 56px 0 96px;
}

.hero-blob {
  position: absolute;
  right: -80px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--brand-tint);
}

.hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0;
  max-width: 18ch;
}

.hero .lead {
  font-size: 17px;
  color: rgba(17, 17, 17, 0.75);
  max-width: 56ch;
  margin: 0;
}

.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.badge {
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Folha creme (corpo do conteúdo) ---------- */

.sheet {
  background: var(--sheet);
  border-top-left-radius: var(--radius-sheet);
  border-top-right-radius: var(--radius-sheet);
  margin-top: -48px;
  position: relative;
  padding-top: 8px;
  padding-bottom: 12px;
}

.sheet-page {
  background: var(--sheet);
  border-top-left-radius: var(--radius-sheet);
  border-top-right-radius: var(--radius-sheet);
  margin-top: -28px;
  position: relative;
  min-height: 40vh;
}

section.block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border-soft);
}

section.block:last-of-type {
  border-bottom: none;
}

.block h2 {
  font-size: 24px;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}

.block .kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 8px;
}

.block > .container > p.intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 28px;
}

/* ---------- Como funciona ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.steps li {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--surface-soft);
}

.steps .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sheet);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Cartão de destaque (política de e-mail) ---------- */

.callout {
  background: var(--ink);
  color: var(--sheet);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 28px;
}

.callout p {
  margin: 0;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Cartões genéricos (segurança, links) ---------- */

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.card p + p {
  margin-top: 8px;
}

/* ---------- Contato ---------- */

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface-soft);
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.contact-card dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-card dd {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.4px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--sheet);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn:hover {
  opacity: 0.88;
}

/* ---------- Rodapé ---------- */

footer.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border-soft);
}

footer.site-footer .container {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

footer.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

footer.site-footer a {
  text-decoration: underline;
}

footer .disclaimer {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  margin-top: 20px;
  padding-top: 16px;
}

/* ---------- Páginas de texto (privacidade, termos, política de e-mail) ---------- */

.page-hero {
  background: var(--brand);
  padding: 40px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin: 14px 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.5px;
}

.page-hero p {
  margin: 0;
  color: rgba(17, 17, 17, 0.75);
  max-width: 60ch;
}

.prose {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.prose h2 {
  font-size: 20px;
  margin: 36px 0 10px;
  letter-spacing: -0.2px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.prose ul {
  padding-left: 20px;
}

.prose .updated {
  display: inline-block;
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 720px) {
  .steps,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  footer.site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    gap: 2px;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 14px;
  }
}
