/* AGD-FAST — camada visual do portal definida pelo PRD. */

:root {
  --agd-brand: #0a298f;
  --agd-brand-dark: #061b63;
  --agd-brand-soft: #e8eeff;
  --agd-success: #16a085;
}

.agd-portal-home {
  overflow: clip;
}

.agd-portal-hero .agd-hero__grid {
  align-items: center;
}

.agd-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 1.4rem 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  list-style: none;
}

.agd-hero-proof li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: #7ea1ff;
  font-weight: 900;
}

.agd-objective-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.agd-objective-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  min-height: 10rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(5, 18, 55, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.agd-objective-card:hover {
  border-color: rgba(10, 41, 143, 0.65);
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(10, 41, 143, 0.14);
}

.agd-objective-card > span {
  grid-row: 1 / 3;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--agd-brand-soft);
  color: var(--agd-brand);
  font-size: 0.75rem;
  font-weight: 900;
}

.agd-objective-card strong {
  align-self: end;
  font-size: 1.08rem;
  line-height: 1.25;
}

.agd-objective-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.agd-section-action {
  margin: 1.25rem 0 0;
  text-align: center;
}

.agd-category-strip {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--agd-brand) 12%);
}

.agd-category-strip .container {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  overflow-x: auto;
  padding-block: 0.9rem;
  scrollbar-width: none;
}

.agd-category-strip__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agd-category-strip a {
  flex: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.agd-category-strip a:hover {
  border-color: var(--agd-brand);
  color: var(--agd-brand);
}

.agd-resource-shell {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid rgba(126, 161, 255, 0.22);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 5% 5%, rgba(10, 41, 143, 0.42), transparent 28rem),
    linear-gradient(145deg, #09101f, #111b30);
  color: #fff;
  box-shadow: 0 28px 70px rgba(4, 9, 22, 0.25);
}

.agd-resource-intro h2 {
  max-width: 12ch;
  margin: 0.4rem 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.agd-resource-intro > p:last-child {
  max-width: 50ch;
  color: #b7c2d5;
  line-height: 1.7;
}

.agd-resource-links {
  display: grid;
  gap: 0.75rem;
}

.agd-resource-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.agd-resource-links a:hover {
  background: rgba(126, 161, 255, 0.12);
  color: #fff;
  transform: translateX(4px);
}

.agd-resource-links a > span {
  grid-row: 1 / 3;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #0a298f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.agd-resource-links small {
  color: #aeb9cb;
}

.agd-resource-links b {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #9bb3ff;
  font-size: 0.82rem;
}

.agd-newsletter-copy {
  max-width: 62ch;
  margin: 0.8rem 0 1.4rem;
  color: #bac4d4;
  line-height: 1.65;
}

.agd-newsletter .lead-box > small {
  display: block;
  margin-top: 0.75rem;
  color: #8f9aab;
}

.agd-portal-page {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.agd-page-intro {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.agd-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
}

.agd-page-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(4, 14, 42, 0.06);
}

.agd-page-card h2,
.agd-page-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.agd-page-card p,
.agd-page-card li {
  color: var(--muted);
  line-height: 1.65;
}

.agd-page-card a {
  margin-top: auto;
  font-weight: 800;
}

.agd-callout {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(10, 41, 143, 0.25);
  border-left: 0.32rem solid var(--agd-brand);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 90%, var(--agd-brand) 10%);
}

.agd-callout h2 {
  margin-top: 0;
}

.agd-steps {
  counter-reset: agd-step;
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.agd-steps > li {
  counter-increment: agd-step;
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.agd-steps > li::before {
  content: counter(agd-step);
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--agd-brand);
  color: #fff;
  font-weight: 900;
}

.agd-legal-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

html[data-theme="dark"] .agd-objective-card > span,
body.dark-mode .agd-objective-card > span {
  background: rgba(126, 161, 255, 0.14);
  color: #9bb3ff;
}

html[data-theme="light"] .agd-resource-shell {
  color-scheme: dark;
}

@media (min-width: 700px) {
  .agd-objective-grid,
  .agd-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .agd-objective-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .agd-resource-shell {
    grid-template-columns: minmax(0, 0.8fr) minmax(26rem, 1.2fr);
    align-items: center;
  }

  .agd-page-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .agd-objective-card,
  .agd-resource-links a {
    transition: none;
  }
}
