/* Marketing landing page (web/landing.html).

   Used to override styles.css's tokens back to the original black/neon-green
   terminal identity for this page only. That made the whole page harder to
   read than the app it's selling (see legal.css's comment on the same
   trade-off) and put it out of step with every other public page — blog,
   tutorials, and legal all already reuse styles.css's light "workspace"
   palette. This page now does too, for the same reason: long-form marketing
   copy reads better on a light surface, and one consistent look across the
   whole site reads as more finished than a black landing page in front of a
   light app.

   The black/green identity isn't gone — it's demoted from "the whole page"
   to a couple of deliberate accents, the same way the app shell already
   does it for `.logo-badge`: fixed colors, not theme tokens, used only
   where the terminal look earns its place (the SKILL.md preview, the MCP
   connect card). */

.landing-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.landing-header a.logo-badge {
  text-decoration: none;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.landing-nav-link:hover {
  color: var(--fg);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.landing-hero {
  text-align: center;
  padding: 64px 0 56px;
}

.landing-pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--surface);
  margin-bottom: 22px;
}

.landing-hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--fg);
}

.landing-sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 32px;
}

.landing-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.landing-cta-row .btn {
  padding: 10px 18px;
  font-size: 0.92rem;
}

/* ── Hero product preview ──────────────────────────────────────────── */
/* A static illustration of the real workspace UI (folder rail, skill
   rows, detail panel) built from the same tokens as the app itself, not a
   screenshot — so the hero has something to look at besides text, without
   going stale the next time the real UI changes a pixel. */

.landing-preview {
  margin: 44px auto 0;
  max-width: 780px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.landing-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.landing-preview-url {
  margin-left: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.landing-preview-body {
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  min-height: 220px;
}

.landing-preview-rail {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 10px;
}

.landing-preview-rail-label {
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.landing-preview-rail-item {
  color: var(--muted);
  font-size: 0.76rem;
  padding: 6px 6px;
  border-radius: var(--radius-sm);
}

.landing-preview-rail-item.active {
  color: var(--fg);
  font-weight: 600;
  background: var(--surface);
}

.landing-preview-list {
  border-right: 1px solid var(--line);
  padding: 6px 0;
}

.landing-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.landing-preview-row.active {
  border-left-color: var(--cta);
  background: var(--cta-soft);
}

.landing-preview-row-title {
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
}

.landing-preview-row-meta {
  color: var(--dim);
  font-size: 0.7rem;
  margin-top: 2px;
}

.landing-preview-tag {
  flex-shrink: 0;
  color: var(--cta-hover);
  font-size: 0.66rem;
  border: 1px solid var(--cta-soft);
  background: var(--cta-soft);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  white-space: nowrap;
}

.landing-preview-detail {
  padding: 14px;
}

.landing-preview-detail-title {
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.landing-preview-detail-line {
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .landing-preview-body {
    grid-template-columns: 1fr;
  }
  .landing-preview-rail,
  .landing-preview-list {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .landing-preview-rail {
    display: none;
  }
}

/* ── Generic section scaffolding ────────────────────────────────────── */

.landing-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.landing-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 4px 0 14px;
  color: var(--fg);
}

.landing-section p {
  color: var(--muted);
  line-height: 1.65;
}

.landing-section-lede {
  max-width: 640px;
  font-size: 1rem;
}

.landing-section code {
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  font-family: var(--font-mono);
}

.landing-section a {
  color: var(--cta);
}

.landing-section a:hover {
  color: var(--cta-hover);
}

/* ── "What's a skill" split with the SKILL.md preview ──────────────── */

.landing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.landing-split-text p {
  font-size: 1rem;
}

/* Fixed dark/green terminal colors, deliberately not theme tokens — see
   the file header. This is the brand's one on-page nod to "a registry that
   talks like a shell", scoped to a single card instead of the whole page. */
.landing-code-card {
  background: #0a1310;
  border: 1px solid #163a26;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 19, 16, 0.18);
}

.landing-code-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #163a26;
  color: #6fbf8b;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.landing-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #21e065;
  flex-shrink: 0;
}

.landing-code-card pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}

.landing-code-card code {
  color: #4be381;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

/* ── Card grids (template examples + the three verbs) ──────────────── */

.landing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.landing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.landing-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--cta-soft);
  margin-bottom: 14px;
}

.landing-card-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--cta-hover);
  fill: none;
}

.landing-card-title {
  color: var(--fg);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.landing-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── Connect card ───────────────────────────────────────────────────── */

.landing-terminal-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #0a1310;
  border: 1px solid #163a26;
  box-shadow: 0 12px 32px rgba(10, 19, 16, 0.18);
}

.landing-terminal-label {
  color: #6fbf8b;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-terminal-card code {
  flex: 1 1 260px;
  min-width: 0;
  color: #4be381;
  background: #050b08;
  border: 1px solid #163a26;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  overflow-x: auto;
  white-space: nowrap;
}

.landing-terminal-card .btn {
  white-space: nowrap;
}

/* ── Final CTA + footer ─────────────────────────────────────────────── */

.landing-final-cta {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.landing-final-cta h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 22px;
  color: var(--fg);
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dim);
  font-size: 0.85rem;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
}

.landing-footer-links {
  display: flex;
  gap: 18px;
}

.landing-footer a {
  color: var(--muted);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--fg);
}

.landing-shell .btn {
  display: inline-block;
  text-decoration: none;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .landing-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .landing-nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .landing-cards {
    grid-template-columns: 1fr;
  }
  .landing-hero {
    padding: 40px 0 40px;
  }
  .landing-hero h1 {
    font-size: 1.8rem;
  }
  .landing-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-terminal-card {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .landing-footer-links {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* Language switcher on the marketing pages (epic:localization #116).
   Plain links, because landing.html carries no JavaScript at all -- and a
   visitor who landed on the wrong language has no other way out. Each
   language is named in its own language for the same reason the app's
   switcher is: the person who needs it cannot read the other one. */
.landing-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  order: 99;
  padding-top: 8px;
  font-size: 0.78rem;
}
.landing-lang-link {
  color: var(--muted);
  text-decoration: none;
}
.landing-lang-link:hover {
  color: var(--fg);
  text-decoration: underline;
}
.landing-lang-current {
  color: var(--fg);
  font-weight: 600;
}
