/* Inferior Landing Page — Clean, readable design matching architecture docs */

:root {
  --bg: #fff;
  --text: #242424;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --accent: #1a8917;
  --accent-bg: #f0faf0;
  --border: #e6e6e6;
  --code-bg: #f6f8fa;
  --code-text: #1f2328;
  --heading: #191919;
  --serif: 'Charter', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --max-width: 728px;
}

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

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #15690f; }

/* Top bar */
.top-bar {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--text); text-decoration: none; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.top-bar a:hover { color: var(--accent); }
.top-bar .logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.top-bar .logo .logo-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  /* Optical alignment: text x-height sits below the geometric line
     centre, so a flex `align-items:center` makes the icon look
     slightly high relative to the wordmark. Nudge down 2px to match
     the visual centre of the "Inferior" letters. */
  transform: translateY(2px);
  /* The icon-192.png is square, full-bleed colour. Render-quality
     hint for modern browsers — keeps the small downscale crisp. */
  image-rendering: -webkit-optimize-contrast;
}
.top-bar .logo-wrap { display: flex; align-items: center; gap: 12px; }
.top-bar .logo-beta {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border: 1px solid var(--accent, #1a8917);
  color: var(--accent, #1a8917);
  background: rgba(26, 137, 23, 0.06);
  border-radius: 999px;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.top-bar .logo-beta:hover { color: var(--accent); }

/* ── Hamburger menu toggle (mobile only) ─────────────────────────
   The checkbox is the source of truth for open/closed state; the
   <label> serves as the visual button. Both are hidden on desktop
   (where .top-bar-links displays inline). Mobile rules at the
   bottom of this file flip them on at <= 768px. */
.top-bar .nav-toggle {
  /* Visually hidden but accessible — screen readers still see it. */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.top-bar .menu-button { display: none; }
.top-bar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
/* Visual "you are here" marker for the top-bar link of the current page. */
.top-bar a.current {
  color: var(--text-muted);
  cursor: default;
}
.top-bar a.current:hover {
  color: var(--text-muted);
}

/* Beta tag */
.beta-tag {
  font-family: var(--sans);
  font-size: 0.3em;
  vertical-align: super;
  color: var(--accent);
  padding: 3px 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
  border: 1px solid rgba(26, 137, 23, 0.4);
  border-radius: 20px;
  background: var(--accent-bg);
  text-transform: uppercase;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tagline {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.15s;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #15690f;
  border-color: #15690f;
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section headings */
h2 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

/* Mission */
.mission {
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mission p {
  max-width: 600px;
  margin: 0 auto 16px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.72;
}

.mission-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
}

.mission-link:hover {
  color: var(--accent);
}

/* How It Works */
.how-it-works {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Pipeline — horizontal sequence */
.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.pipeline-step {
  flex: 1;
  text-align: center;
  padding: 20px 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.pipeline-step:hover {
  background: #fafafa;
}

.pipeline-step.active {
  background: var(--accent-bg);
  border-color: rgba(26, 137, 23, 0.3);
}

.step-number {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  border-radius: 50%;
  transition: all 0.2s;
}

.pipeline-step.active .step-number {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.pipeline-step h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.pipeline-step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--sans);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding-top: 28px;
  color: var(--border);
  font-size: 20px;
  flex-shrink: 0;
  user-select: none;
}

/* Detail box — tabbed panel below pipeline */
.detail-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.detail-tab {
  flex: 1;
  padding: 12px 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.detail-tab:hover {
  color: var(--heading);
  background: #f0f0f0;
}

.detail-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #fff;
}

.detail-panel {
  display: none;
  padding: 24px;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.detail-panel.active {
  display: block;
}

.detail-panel p {
  margin-bottom: 12px;
  color: var(--text);
}

.detail-panel ul {
  margin: 12px 0;
  padding-left: 24px;
}

.detail-panel li {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.detail-panel li strong {
  color: var(--heading);
}

.detail-panel .install-cmd {
  margin: 12px 0;
  font-size: 13px;
}

.warning-note {
  color: #d29922;
  border-left: 3px solid #d29922;
  padding-left: 12px;
  margin-top: 12px;
  font-size: 14px;
  font-family: var(--sans);
}

/* Install */
.install, .plugins {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.install h2, .plugins h2 {
  text-align: center;
  margin-bottom: 36px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.install-card {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 8px;
}

.install-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
}

.install-cmd {
  display: block;
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 12px;
  word-break: break-all;
  color: var(--code-text);
  border-radius: 6px;
}

.install-card p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.link:hover { color: var(--accent); }

/* A2A */
.a2a {
  padding: 56px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.a2a h2 {
  margin-bottom: 14px;
}

.a2a p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
  font-size: 18px;
  line-height: 1.6;
}

/* Domains */
.domains {
  padding: 64px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.domains h2 {
  margin-bottom: 14px;
}

.domains > .container > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 18px;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.domain-tag {
  background: var(--accent-bg);
  border: 1px solid rgba(26, 137, 23, 0.2);
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  border-radius: 6px;
}

.domains-detail {
  color: var(--text-light);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Invite Form */
.invite {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.invite h2 {
  text-align: center;
  margin-bottom: 12px;
}

.invite > .container > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.invite-detail {
  text-align: center;
  color: var(--text);
  margin-bottom: 32px;
  font-size: 16px;
}

.invite-form {
  max-width: 400px;
  margin: 0 auto;
}

.invite-form input[type="email"] {
  margin-bottom: 12px;
}

.invite-form input,
.invite-form select,
.invite-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  border-radius: 8px;
}

.invite-form input::placeholder,
.invite-form textarea::placeholder {
  color: var(--text-light);
}

.invite-form input:focus,
.invite-form select:focus,
.invite-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.1);
}

.invite-form select {
  cursor: pointer;
  appearance: auto;
  color: var(--text);
}

.invite-form textarea {
  margin-bottom: 12px;
  resize: vertical;
}

.invite-form button {
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--accent);
  font-family: var(--sans);
  border-radius: 8px;
}

.form-note {
  text-align: center;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 14px;
  min-height: 20px;
}

/* Callout box — used on the enterprise page and the blog. Duplicated
   locally in blog/why-build-inferior.html's <style> block; this copy
   lets sibling pages like enterprise.html share the same treatment. */
.callout {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}
.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Compliance section (wraps the callout) */
.compliance {
  padding: 0 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* Comparison section — Public vs Enterprise table */
.comparison {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}
.comparison h2 {
  text-align: center;
  margin-bottom: 12px;
}
.comparison-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.6;
}
.comparison-table-wrapper {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
}
.comparison-table thead th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--heading);
  font-size: 14px;
}
.comparison-table thead th:last-child {
  color: var(--accent);
}
.comparison-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--heading);
  width: 22%;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Enterprise contact form — same base as invite-form, wider */
.enterprise-form {
  max-width: 520px;
}
.enterprise-form input,
.enterprise-form textarea {
  margin-bottom: 12px;
}

/* Footer */
footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-links a {
  font-family: var(--sans);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline-arrow { display: none; }
  .pipeline-step { text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
  .pipeline-step p { display: none; }
  .step-number { margin-bottom: 0; flex-shrink: 0; }
  .detail-tabs { flex-wrap: wrap; }
  .detail-tab { font-size: 12px; }
  .install-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  /* Hamburger replaces the inline link row on narrow viewports. */
  .top-bar .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    padding: 6px;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }
  .top-bar .menu-button span {
    display: block;
    width: 100%; height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: 50% 50%;
  }
  /* Hamburger morphs into an X when the menu is open. */
  .top-bar .nav-toggle:checked ~ .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .top-bar .nav-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
  }
  .top-bar .nav-toggle:checked ~ .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Drop-down link panel. position:absolute relative to .top-bar
     (which is position:sticky → already a positioned context). */
  .top-bar-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  }
  .top-bar .nav-toggle:checked ~ .top-bar-links {
    display: flex;
  }
  .top-bar-links a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .top-bar-links a:last-child {
    border-bottom: 0;
  }
  .comparison-table { font-size: 14px; }
  .comparison-table thead th,
  .comparison-table tbody td { padding: 10px 10px; }
}
