/* CheckGraph — landing (S1) */

:root {
  --bg: #0a0e14;
  --bg-alt: #10151d;
  --panel: #131a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9eef4;
  --text-dim: #93a1b3;
  --text-dimmer: #6b7688;
  --accent: #4f7cff;
  --accent-dim: #2f4d9e;
  --good: #2fd17a;
  --warn: #f5a524;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Aurora glow — depth behind the graph decoration */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}
.aurora::before {
  background: #4f7cff;
  top: -12%;
  left: -12%;
  animation: auroraDrift1 24s ease-in-out infinite;
}
.aurora::after {
  background: #22d3b8;
  bottom: -18%;
  right: -12%;
  animation: auroraDrift2 28s ease-in-out infinite;
}
@keyframes auroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.08); }
}
@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, -6%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; }
}

/* Background graph decoration */
.graph-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.graph-bg svg { width: 100%; height: 100%; }

.graph-bg circle {
  fill: var(--accent);
  opacity: 0.45;
}

.graph-bg line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.16;
}

.graph-bg .node {
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

@media (prefers-reduced-motion: reduce) {
  .graph-bg .node { animation: none; }
  html { scroll-behavior: auto; }
}

/* Top nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .mark {
  width: 22px;
  height: 22px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #3d6bf0; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-dim); }

.teaser-link { margin-top: 20px; }

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding-block: 96px;
}

section.tight { padding-block: 72px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero {
  padding-top: 88px;
  padding-bottom: 60px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preview card (product mock) */
.preview-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dimmer);
}

.preview-dot { display: inline-flex; gap: 6px; }
.preview-dot span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}

.review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.review-row:last-child { border-bottom: none; }
.review-row:hover { background: rgba(255, 255, 255, 0.02); }

.review-meta {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.review-text {
  color: var(--text);
  font-size: 0.96rem;
}

.review-flag {
  font-size: 0.8rem;
  color: var(--warn);
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  height: fit-content;
}

.badge-good {
  background: rgba(47, 209, 122, 0.12);
  color: var(--good);
  border: 1px solid rgba(47, 209, 122, 0.3);
}

.badge-warn {
  background: rgba(245, 165, 36, 0.12);
  color: var(--warn);
  border: 1px solid rgba(245, 165, 36, 0.3);
}

.badge svg { width: 13px; height: 13px; }

.preview-caption {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* Feature triad */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.triad-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.triad-item .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.triad-item h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.triad-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* Stat block */
.stat-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin-top: 8px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--good);
  line-height: 1;
  white-space: nowrap;
}

.stat-number small {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Won't-tell list */
.wont-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.wont-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.wont-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-dimmer);
  margin-top: 2px;
}

/* Form */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

form.contact {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dimmer);
  margin-top: 4px;
}

.form-success {
  display: none;
  color: var(--good);
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Article subpages (por-que-ahora.html, como-funciona.html) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dimmer);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--text-dim); }

.article {
  max-width: 700px;
}

.article h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

/* Vertical timeline — each section is a node on the graph */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-progress {
  position: absolute;
  left: 5px;
  top: 6px;
  width: 2px;
  height: 0%;
  background: linear-gradient(var(--accent), var(--good));
  box-shadow: 0 0 8px rgba(79, 124, 255, 0.5);
  transition: height 0.15s linear;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.timeline-item {
  position: relative;
  padding-bottom: 52px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dimmer);
  transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.timeline-item.is-visible::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(79, 124, 255, 0.18);
}

.timeline-item p {
  color: var(--text-dim);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.timeline-item ul {
  color: var(--text-dim);
  font-size: 1.03rem;
  padding-left: 1.2em;
  margin-top: 16px;
  margin-bottom: 16px;
}
.timeline-item li { margin-bottom: 8px; }
.timeline-item li:last-child { margin-bottom: 0; }

.article-cta {
  margin-top: 8px;
  padding-left: 40px;
}

@media (max-width: 640px) {
  .timeline { padding-left: 28px; }
  .timeline::before { left: 3px; }
  .timeline-item::before { left: -28px; }
  .article-cta { padding-left: 0; }
}

@media (max-width: 720px) {
  .triad { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; }
  .badge { justify-self: start; }
  .stat-panel { flex-direction: column; align-items: flex-start; gap: 12px; }
  section { padding-block: 64px; }
}
