/* Agents Architect — waitlist landing page. Mobile-first (375px), lean CSS, no framework. */

:root {
  --ink: #15131f;
  --muted: #5b5872;
  --faint: #8783a0;
  --line: #e5e2f0;
  --bg: #ffffff;
  --surface: #f6f5fb;
  --accent: #5b4fe9;
  --accent-dark: #4438c4;
  --accent-tint: #ece9fb;
  --max-width: 60rem;
  --radius: 0.9rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

main {
  display: block;
}

section {
  padding: 3rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent-dark);
}

.crosshead {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.crosshead + p,
.crosshead + .lede {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* ---------- CTA button (single action, repeated) ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
  padding: 0.95rem 1.75rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.cta-micro {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* ================= HERO (WebGL particle field) ================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  padding: 0;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  animation: fieldIn 1.7s ease forwards;
}
@keyframes fieldIn { to { opacity: 1; } }

.veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    58% 46% at 50% 42%,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 255, 255, 0) 78%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 48rem;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
  color: var(--ink);
}

.hero .eyebrow {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  max-width: 30rem;
}

.hero h1 {
  max-width: 40rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 5vw, 2.9rem);
  text-wrap: balance;
  margin: 0;
}

.typewrap { position: relative; }
.hero h1.typewrap, .typewrap .typed-layer { text-wrap: wrap; }
.typewrap .ghost { visibility: hidden; }
.typewrap .typed-layer { position: absolute; inset: 0; }
.caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-bottom: -0.05em;
  transform: translateY(0.1em);
  background: currentColor;
  vertical-align: baseline;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero .sub {
  max-width: 34rem;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
  margin: 0;
}

.hero .cta-wrap { margin-top: 0.4rem; }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}
@keyframes fadeUp { to { opacity: 1; transform: none; filter: blur(0); } }

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--faint);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  #field { opacity: 1 !important; animation: none !important; }
  .caret, .scroll-hint { animation: none !important; }
}

/* ================= Value proposition ================= */
.uvp {
  background: var(--surface);
  border-radius: var(--radius);
}

.uvp .quote,
.authority .quote {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: #ffffff;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= Benefits ================= */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.75rem;
}

.benefits-list h3 {
  margin-top: 0;
}

.benefits-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.benefits-close {
  text-align: center;
  font-weight: 600;
  margin-top: 1.25rem;
}

/* ================= Authority / social proof ================= */
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-tint);
}

.author-bio {
  max-width: 38rem;
}

.author-bio ul {
  text-align: left;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: start;
}

.cert-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
}

.cert-card img {
  width: 100%;
  max-width: 96px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.cert-verify-wrap {
  text-align: center;
  margin: 0.5rem 0 1.75rem;
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
}

.btn-verify[disabled] {
  opacity: 0.75;
}

.exam-detail {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin: 1.5rem 0;
}

.exam-detail p:first-child {
  margin-top: 0;
}

.testimonials-pending {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ================= Mid & final CTA blocks ================= */
.cta-mid,
.cta-final {
  text-align: center;
  background: var(--accent-tint);
  border-radius: var(--radius);
}

.cta-final {
  background: var(--ink);
  color: #ffffff;
}

.cta-final .cta-micro,
.cta-final p {
  color: #d9d6f5;
}

/* ================= Comparison table ================= */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface);
}

tbody th {
  background: var(--surface);
  font-weight: 600;
}

.table-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ================= CCA shortcut / objection ================= */
.shortcut,
.objection,
.guarantee {
  background: var(--surface);
  border-radius: var(--radius);
  margin-top: 1.25rem;
}

.objection {
  border-left: 3px solid var(--accent);
}

.objection h2 {
  font-style: italic;
}

/* ================= FAQ ================= */
.faq h3 {
  margin-top: 1.5rem;
}

.faq p {
  color: var(--muted);
}

/* ================= Footer — legal only ================= */
footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

footer nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
}

/* ---------- consent banner (lp-track.js hooks) ---------- */
#lp-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--ink);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

#lp-consent-banner button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.85rem;
}

#lp-consent-banner button.lp-consent-accept {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Tablet: 768px ---------- */
@media (min-width: 48rem) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  section { padding: 4rem 2rem; }

  .benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .benefits-list li { margin-bottom: 0; }

  .author-card { flex-direction: row; text-align: left; align-items: flex-start; }
  .author-bio { text-align: left; }
}

/* ---------- Desktop: 1440px ---------- */
@media (min-width: 90rem) {
  h1 { font-size: 2.9rem; }
}

/* ---------- Small screens: cert grid stacks ---------- */
@media (max-width: 30rem) {
  .cert-grid { grid-template-columns: 1fr; max-width: 14rem; margin-left: auto; margin-right: auto; }
}
