/* ==========================================================================
   Farma Wallet — site institucional
   Tokens espelham farma-wallet-app/src/constants/colors.ts. O app é só tema
   escuro, então o site também é: mudar uma cor aqui sem mudar lá quebra a
   identidade entre os dois.
   ========================================================================== */

:root {
  --bg: #0a1a1a;
  --bg-deep: #071818;
  --auth-top: #0c2b2b;
  --auth-mid: #0a1f1f;

  --accent: #4ecba9;
  --accent-ink: #071818;
  --lime: #c6f24e;

  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --muted-strong: rgba(255, 255, 255, 0.65);
  --text: rgba(255, 255, 255, 0.82);

  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.09);

  --radius-sm: 12px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --read-width: 720px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 30rem at 85% -10%, rgba(78, 203, 169, 0.14), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(198, 242, 78, 0.06), transparent 60%),
    linear-gradient(180deg, var(--auth-top) 0%, var(--auth-mid) 45%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--lime);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* --------------------------------------------------------------------------
   Cabeçalho e rodapé
   -------------------------------------------------------------------------- */

.site-header {
  padding: 20px var(--gutter);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand img {
  width: 148px;
}

.site-header__nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-header__nav a {
  color: var(--muted-strong);
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  flex: 1;
  width: 100%;
}

.site-footer {
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--muted);
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted-strong);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.hero {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  text-align: center;
}

.hero__logo {
  width: min(320px, 78vw);
  margin: 0 auto 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(198, 242, 78, 0.35);
  background: rgba(198, 242, 78, 0.08);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 242, 78, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(198, 242, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); }
}

/* Card no formato de post — o "tweet" da marca. */
.post {
  margin: 24px 0 32px;
  padding: 20px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(78, 203, 169, 0.12);
}

.post__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post__avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #0d2020;
  border: 1px solid rgba(78, 203, 169, 0.35);
  padding: 4px;
}

.post__name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.post__verified {
  width: 16px;
  height: 16px;
  flex: none;
}

.post__handle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.post__body {
  margin: 0;
  color: var(--white);
  font-size: 19px;
  line-height: 1.5;
}

.post__body strong {
  color: var(--accent);
}

.post__tags {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 15px;
}

.post__meta {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 13px;
}

.stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  color: var(--muted-strong);
  cursor: default;
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.store__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  line-height: 1.3;
}

.store__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.hero__note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Páginas de leitura (política, exclusão)
   -------------------------------------------------------------------------- */

.doc {
  max-width: var(--read-width);
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
}

.doc h1 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.doc__lead {
  margin: 0 0 32px;
  color: var(--muted-strong);
  font-size: 17px;
}

.doc__meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.doc__lead + .doc__meta {
  margin-top: -24px;
}

.doc h2 {
  margin: 48px 0 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 24px;
}

.doc h3 {
  margin: 28px 0 8px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  scroll-margin-top: 24px;
}

.doc p,
.doc li {
  font-size: 16px;
}

.doc ul,
.doc ol {
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--accent);
}

.doc ol.roman {
  list-style: lower-roman;
}

.doc ol.alpha {
  list-style: lower-alpha;
}

.doc .clause {
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

.doc .caps {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--card);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.toc {
  margin: 0 0 40px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
}

.toc a {
  color: var(--muted-strong);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

/* Bloco de destaque (canais de exclusão). */
.callout {
  margin: 0 0 40px;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid rgba(78, 203, 169, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(78, 203, 169, 0.12);
}

.callout h2 {
  margin-top: 0;
}

.actions {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.btn:hover {
  opacity: 0.85;
}

.btn:active {
  transform: scale(0.99);
}

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

.btn--primary:hover {
  color: var(--accent-ink);
}

.btn--ghost {
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--white);
}

.btn--ghost:hover {
  color: var(--white);
}

.contact-detail {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
}

.steps li {
  position: relative;
  padding-left: 44px;
  min-height: 32px;
}

.steps li + li {
  margin-top: 12px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(78, 203, 169, 0.14);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.note {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--text);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px var(--gutter);
  text-align: center;
}

.not-found .not-found__code {
  margin: 0;
  color: var(--accent);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.not-found h1 {
  margin: 12px 0 8px;
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
}

.not-found p {
  color: var(--muted-strong);
}

.not-found .btn {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Responsivo e acessibilidade
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .site-header__brand img {
    width: 124px;
  }

  .site-header__nav {
    gap: 14px;
    font-size: 13px;
  }

  .stores {
    grid-template-columns: 1fr;
  }

  .post__body {
    font-size: 18px;
  }
}

@media (min-width: 640px) {
  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header__nav,
  .site-footer,
  .actions,
  .toc {
    display: none;
  }

  .doc h1,
  .doc h2,
  .doc h3 {
    color: #000;
  }
}
