/* AgentInfra funnel page — one file, no build step, mobile-first. */

:root {
  --ink: #16181d;
  --ink-soft: #4b5058;
  --paper: #fbfaf8;
  --card: #ffffff;
  --accent: #0a7d34;
  --accent-ink: #ffffff;
  --term-bg: #101418;
  --term-ink: #d7e0d9;
  --term-dim: #6e7b72;
  --line: #e5e2dc;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-bottom: 1.5rem; }
section { margin: 5.5rem 0; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem;
}

/* ---------- hero ---------- */
.hero { padding: 4rem 0 1rem; text-align: center; }
.brand {
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2.5rem;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 1.1rem; }
.hero .sub {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 38rem; margin: 0 auto 1.8rem;
}

/* ---------- CTA forms ---------- */
.cta-form {
  display: flex; gap: 0.5rem; justify-content: center;
  max-width: 26rem; margin: 0 auto;
}
@media (max-width: 480px) {
  .cta-form { flex-direction: column; }
  .cta-form button { width: 100%; }
}
.cta-form input {
  flex: 1; min-width: 0;
  font-size: 1rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.cta-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.cta-form button {
  font-size: 1rem; font-weight: 600; white-space: nowrap;
  padding: 0.7rem 1.1rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.cta-form button:hover { filter: brightness(1.08); }
.cta-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.7rem; text-align: center; }
.cta-done { font-weight: 600; color: var(--accent); text-align: center; padding: 0.5rem; }

/* ---------- the flow (vertical timeline) ---------- */
.flow-wrap { margin-top: 4rem; }
.center { text-align: center; }
.flow {
  max-width: 44rem; margin: 2.2rem auto 0;
  display: grid; gap: 0;
}
.flow-step {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  position: relative; padding-bottom: 2.2rem;
}
/* connector line between markers */
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.7rem; bottom: -0.2rem;
  width: 2px; background: var(--line);
}
.flow-marker {
  position: relative; z-index: 1;
}
.flow-marker span {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
}
.flow-content { min-width: 0; }
.step-label {
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.6rem; padding-top: 0.5rem;
}
.flow-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }

.terminal {
  background: var(--term-bg); color: var(--term-ink);
  border-radius: var(--radius); overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.term-bar { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,0.06); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.5rem; }
.term-body b { color: #fff; }
.term-body b.lite { color: #fff; font-weight: 600; }
.dim { color: var(--term-dim); }

/* ---------- push notification (iOS-style) ---------- */
.notif {
  background: rgba(250, 250, 252, 0.95);
  border: 1px solid var(--line);
  border-radius: 22px; padding: 0.9rem 1rem 1rem;
  max-width: 22.5rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
  backdrop-filter: blur(10px);
}
.notif-head {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem;
}
.notif-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-family: ui-monospace, monospace; font-size: 0.6rem; font-weight: 700;
}
.notif-app {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ink-soft);
}
.notif-time { margin-left: auto; font-size: 0.78rem; color: var(--ink-soft); }
.notif-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.15rem; }
.notif-body { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }
.notif-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.btn-approve, .btn-deny {
  flex: 1; text-align: center; padding: 0.5rem 0;
  border-radius: 12px; font-weight: 600; font-size: 0.92rem;
}
.btn-approve { background: var(--accent); color: #fff; }
.btn-deny { background: #e9eae7; color: var(--ink); }

/* ---------- fears ---------- */
.fear-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fear-grid { grid-template-columns: repeat(3, 1fr); } }
.fear {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.fear h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.fear p { font-size: 0.95rem; color: var(--ink-soft); }
.fear em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ---------- how ---------- */
.steps { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 0.25rem 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 0.7rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- who ---------- */
.who-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.who-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.who-card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.1rem; }
.who-card .cta-form { justify-content: flex-start; margin: 0; }

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.9rem 0;
}
.faq summary {
  font-weight: 600; cursor: pointer; font-size: 1.02rem;
  list-style-position: outside;
}
.faq details p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 44rem; }

/* ---------- footer ---------- */
.footer-cta {
  text-align: center; padding: 3rem 1.5rem 3.5rem;
  background: var(--term-bg); color: #fff;
  border-radius: var(--radius);
  margin: 5.5rem 0 2rem;
}
.footer-cta h2 { margin-bottom: 1.4rem; color: #fff; }
.footer-cta .cta-note { color: #9aa59d; }
.footer-status {
  max-width: 34rem; margin: 0 auto 1.6rem; font-size: 0.95rem; color: #b9c2bb;
}
.footer-cta .cta-form input { border-color: transparent; }
.fine { margin-top: 2.5rem; font-size: 0.8rem; color: #7d877f; }
.fine a { color: inherit; }
