/* ── Anonymous Function Labs — Agent Skills ──────────────────────────
   Palette complements the parent brand (anonymousfunction.io):
   dark code-editor aesthetic, λ-gold accent, cyan for code highlights.
   Inspired by editor themes engineers already trust (Ayu Mirage family). */

:root {
  --bg:        #0A0E14;  /* page background — deep charcoal-navy */
  --surface:   #10151F;  /* cards, tables, terminal */
  --surface-2: #161D2A;  /* hover / featured surfaces */
  --border:    #1E2633;
  --text:      #E6EDF3;
  --muted:     #8B98A9;
  --accent:    #FFB454;  /* λ gold — primary CTA + headings accent */
  --accent-2:  #5CCFE6;  /* cyan — code, links */
  --pass:      #87D96C;  /* green — free badge, PASS */
  --fail:      #F07178;  /* red — failure strip, FAIL */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--accent-2); }
.dim { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ── nav ── */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 6vw;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(8px); z-index: 10;
}
.nav-brand {
  font-family: var(--mono); font-size: 0.95rem; color: var(--text);
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }
.lambda { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .nav-cta { color: var(--accent); }

/* ── hero ── */
.hero {
  max-width: 880px; margin: 0 auto; padding: 7rem 6vw 4rem;
  text-align: center;
}
.hero-kicker {
  font-family: var(--mono); color: var(--muted); font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--mono); font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 700;
}
.hero-sub {
  margin: 1.8rem auto 0; max-width: 640px; color: var(--muted);
  font-size: 1.08rem;
}
.hero-sub strong { color: var(--text); }
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero-note {
  margin-top: 1.4rem; font-family: var(--mono);
  font-size: 0.8rem; color: var(--muted);
}

/* ── buttons ── */
.btn {
  display: inline-block; padding: 0.8rem 1.7rem; border-radius: 8px;
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1205; }
.btn-primary:hover { background: #ffc270; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { display: block; text-align: center; margin-top: 1.4rem; }

/* ── failure strip ── */
.strip {
  overflow: hidden; border-block: 1px solid var(--border);
  padding: 0.9rem 0; background: var(--surface);
}
.strip-track {
  display: flex; gap: 3rem; width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--mono); font-size: 0.85rem; color: var(--fail);
  white-space: nowrap;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ── sections ── */
.section { max-width: 980px; margin: 0 auto; padding: 4.5rem 6vw 1rem; }
.section h2 {
  font-family: var(--mono); font-size: 1.5rem; margin-bottom: 1rem;
}
.section-num { color: var(--accent); margin-right: 0.5rem; }
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 2rem; }
.section-lead strong, .section-lead em { color: var(--text); }
.pack-tag {
  font-size: 0.7rem; vertical-align: middle; margin-left: 0.6rem;
  padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-weight: 400;
}

/* ── how-it-works cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
}
.card h3 { font-family: var(--mono); font-size: 1rem; color: var(--accent); margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card em { color: var(--text); }

/* ── skill tables ── */
.skill-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  font-size: 0.92rem;
}
.skill-table th, .skill-table td {
  text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.skill-table th {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); background: var(--surface-2);
}
.skill-table tr:last-child td { border-bottom: none; }
.skill-table tbody tr:hover { background: var(--surface-2); }
.skill-table td:first-child { font-family: var(--mono); color: var(--muted); width: 2.5rem; }
.badge {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
.badge-free { background: rgba(135, 217, 108, 0.14); color: var(--pass); border: 1px solid rgba(135, 217, 108, 0.4); }
.badge-free:hover { text-decoration: none; background: rgba(135, 217, 108, 0.25); }
.table-note { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.table-note strong { color: var(--text); }

/* ── terminal / proof ── */
.terminal {
  background: #07090d; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.4rem 1.6rem; margin: 0 0 2rem;
  font-family: var(--mono); font-size: 0.9rem; line-height: 1.9;
  overflow-x: auto;
}
.terminal code { color: var(--text); }
.terminal .c { color: var(--accent); }
.terminal .pass { color: var(--pass); font-weight: 700; }
.terminal .fail { color: var(--fail); font-weight: 700; }

/* ── pricing: individual / team pill toggle (CSS-only, no JS) ──
   Two hidden radios sit before .plan-toggle and .pricing-wrap inside the
   section; sibling selectors swap the active pill and the .plan-ind /
   .plan-team content. */
.plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-toggle {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 0.8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
}
.pill {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  padding: 0.4rem 1.5rem; border-radius: 999px;
  transition: background 0.12s ease, color 0.12s ease;
}
.pill:hover { color: var(--text); }
#plan-individual:checked ~ .plan-toggle label[for="plan-individual"],
#plan-team:checked ~ .plan-toggle label[for="plan-team"] {
  background: var(--accent); color: #1a1205;
}
.plan-radio:focus-visible ~ .plan-toggle {
  outline: 2px solid var(--accent-2); outline-offset: 2px;
}
.plan-hint {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  margin-bottom: 2rem;
}
#plan-individual:checked ~ .pricing-wrap .plan-team,
#plan-team:checked ~ .pricing-wrap .plan-ind { display: none !important; }
.value-math { margin-top: 2rem; margin-bottom: 1rem; }

/* ── pricing ── */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem; align-items: start;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.8rem; position: relative;
}
.price-card.featured {
  background: var(--surface-2); border-color: var(--accent);
}
.ribbon {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a1205;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-family: var(--mono); font-size: 1.05rem; }
.price { font-family: var(--mono); font-size: 2.3rem; font-weight: 700; margin-top: 0.4rem; }
.price-was {
  font-size: 1rem; color: var(--muted); text-decoration: line-through;
  font-weight: 400; margin-left: 0.3rem;
}
.price-sub {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem;
}
.price-card ul { list-style: none; }
.price-card li {
  color: var(--muted); font-size: 0.9rem; padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
}
.price-card li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--mono);
}
.price-card li em { color: var(--text); }

/* ── FAQ ── */
.faq dt {
  font-family: var(--mono); font-weight: 600; margin-top: 1.6rem;
  color: var(--text);
}
.faq dt::before { content: "_"; color: var(--accent); }
.faq dd { color: var(--muted); margin-top: 0.4rem; max-width: 760px; }

/* ── footer ── */
.footer {
  margin-top: 5rem; padding: 2.5rem 6vw; border-top: 1px solid var(--border);
  text-align: center; font-family: var(--mono); font-size: 0.85rem;
}
.footer a { color: var(--text); }
.footer a:hover { color: var(--accent); }
.footer .dim { margin-top: 0.5rem; font-size: 0.75rem; }
.footer .dim a { color: var(--muted); }

/* ── responsive ── */
@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 0.8rem; }
  .hero { padding-top: 4rem; }
  .skill-table { font-size: 0.8rem; }
  .skill-table th, .skill-table td { padding: 0.55rem 0.6rem; }
}
