/* Server-rendered entry pages (/builders, /hire-ai, /agents and /ko/...), 2026-11-25. Loaded after /app.css, so the
   Grid Lab tokens, buttons, labels, terminal and dark band are reused as they are. Left-aligned, one column of reading
   width; the one distinctive element is the stage rail, whose last segment turns dashed mint: payment happens
   directly between requester and builder, outside AiREQ. */
.lp { max-width: 1120px; margin: 0 auto; padding: 0 32px; min-width: 0; }

/* Header: the same floating glass bar as the app, without its script-driven menu. */
.lp-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; width: min(1120px, calc(100% - 32px)); margin: 12px auto 0; padding: 10px 10px 10px 18px;
  border: 1px solid rgba(14, 18, 32, .08); border-radius: 16px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -22px rgba(14, 18, 32, .35); }
.lp-header .wordmark { font-size: 21px; gap: 9px; text-decoration: none; }
.lp-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.lp-header nav a { padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; }
.lp-header nav a:hover { color: var(--ink); }
.lp-header nav a[aria-current] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--violet); }
.lp-locale { padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lp-locale:hover { border-color: #D3D7E0; }
.lp-header .lp-open { min-height: 40px; padding: 8px 15px; border-radius: 10px; background: var(--ink); box-shadow: none; }
.lp-header .lp-open:hover { background: #232838; filter: none; }

/* Hero: left-aligned copy; the agent page sets a real MCP call beside it. */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 80px; }
.lp-hero-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.lp-hero h1 { max-width: 860px; font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; word-break: keep-all; }
.lp-lead { max-width: 680px; margin-top: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp .lp-facts { justify-content: flex-start; margin: 26px 0 0; }
.lp-hero-term { margin-top: 8px; }

/* Korean labels: monospace spacing and tracking break Hangul apart, so they use the text face. */
.lp-body .gl-label:lang(ko) { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }

/* Sections. */
.lp-section { padding-top: 96px; }
.lp-section > h2, .lp-split h2, .lp-prose h2 { max-width: 780px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; word-break: keep-all; }
.lp-section .gl-sub { max-width: 680px; }

/* Stage rail: a real sequence, so it is numbered. */
.lp-track { list-style: none; counter-reset: lp-step; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 44px 0 0; padding: 0; }
.lp-track li { position: relative; counter-increment: lp-step; padding: 30px 22px 0 0; border-top: 2px solid #CFC8F6; min-width: 0; }
.lp-track li::before { content: counter(lp-step); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border: 2px solid var(--violet); border-radius: 50%;
  background: #fff; color: var(--violet); font: 700 13px/24px var(--mono); text-align: center; }
.lp-track h3 { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; word-break: keep-all; }
.lp-track p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.lp-track .lp-off { border-top: 2px dashed #6FCF97; }
.lp-track .lp-off::before { border-color: #2F8F5B; background: #EAF8F0; color: #1F7046; }
.lp-off-tag { display: inline-block; margin-top: 12px; padding: 3px 9px; border-radius: 999px; background: #EAF8F0; color: #1F7046; font: 600 12px/1.5 var(--mono); }

/* Plans: three parallel offers in one ruled table-like block; the credit line leads each list. */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; }
.lp-plan { padding: 26px 26px 22px; min-width: 0; }
.lp-plan + .lp-plan { border-left: 1px solid var(--line); }
.lp-plan h3 { font: 600 14px/1.4 var(--mono); color: var(--violet); }
.lp-price { margin-top: 6px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; }
.lp-price small { margin-left: 3px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.lp-who { margin-top: 4px; font-size: 14px; color: var(--muted); }
.lp-plan ul { list-style: none; margin: 18px 0 0; padding: 0; }
.lp-plan li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.lp-plan .lp-credits { color: var(--ink); font-weight: 700; }
.lp-notes { margin: 18px 0 0; padding-left: 18px; max-width: 760px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.lp-notes li + li { margin-top: 4px; }

/* MCP: key scopes as a definition list beside the terminal. */
.lp-split { align-items: start; }
.lp code { font: 500 14px/1.5 var(--mono); color: #3B2FA6; background: var(--violet-soft); border-radius: 6px; padding: 2px 7px; overflow-wrap: anywhere; }
.lp-scopes { margin: 24px 0 0; }
.lp-scopes div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-scopes dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.lp-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lp-links .text-link { color: var(--violet); }
.lp .gl-term { max-width: 100%; }

/* Prose block (own client, cost): a quiet note with a plum rule. */
.lp-prose { max-width: 780px; padding: 28px 0 4px 26px; border-left: 3px solid var(--brand); }
.lp-prose > p:not(.gl-label) { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--body); }
.lp-prose > p:last-child { margin-top: 22px; }

/* Kinds and rules: a ruled two/four-column definition list, not cards. */
.lp-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 32px 0 0; }
.lp-kinds div { padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.lp-kinds dt { font-weight: 700; color: var(--ink); font-size: 16px; word-break: keep-all; }
.lp-kinds dd { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Agent flows: two roles side by side. */
.lp-flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.lp-flow { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
.lp-flow h3 { font-size: 19px; letter-spacing: -.01em; }
.lp-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lp-key-note { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lp-flow ol { margin: 18px 0 0; padding-left: 22px; }
.lp-flow li { padding: 10px 0 10px 4px; border-top: 1px solid var(--line); }
.lp-flow li::marker { font: 600 13px var(--mono); color: var(--violet); }
.lp-flow li span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--body); }

/* FAQ. */
.lp-faq { max-width: 820px; }
.lp-faq h2 { margin-bottom: 18px; }
.lp-faq details { border-top: 1px solid var(--line); }
.lp-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.lp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: var(--ink); word-break: keep-all; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; font: 600 18px/1.3 var(--mono); color: var(--violet); }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { padding: 0 0 20px; max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--body); }

.lp-band { padding-bottom: 0; }

/* Illustrations (web/illustrations.js): a hero panel on the requester and builder pages, the agents diagram above
   the two flows, and a glyph tile on each step and kind. The payment step's tile is mint, like its rail segment. */
.lp-hero-pic { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.lp-hero-art { margin-top: 8px; }
.lp-section-art { max-width: 560px; margin-top: 30px; }
.lp-step-glyph, .lp-kind-glyph { display: block; width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 11px;
  background: linear-gradient(135deg, #F7EEF3, #ECE9FD); box-shadow: inset 0 0 0 1px #E3DEFB; }
.lp-step-glyph { margin-bottom: 14px; }
.lp-off .lp-step-glyph { background: #EAF8F0; box-shadow: inset 0 0 0 1px #BFE6CD; }
.lp-off .lp-step-glyph .ill-g { --ill-ink: #1F7046; }
.lp-kind-glyph { margin-bottom: 12px; }

/* Footer. */
.lp-footer { display: grid; gap: 12px; width: min(1056px, calc(100% - 64px)); margin: 88px auto 0; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--muted); }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.lp-footer nav a { color: var(--body); text-decoration: none; }
.lp-footer nav a:hover, .lp-footer nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .lp-hero-aside, .lp-hero-pic { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-art { max-width: 520px; }
  .lp-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-track { grid-auto-flow: row; grid-auto-columns: auto; margin-top: 36px; }
  .lp-track li { padding: 0 0 26px 34px; border-top: 0; border-left: 2px solid #CFC8F6; margin-left: 14px; }
  .lp-track li::before { top: -2px; left: -15px; }
  .lp-track .lp-off { border-top: 0; border-left: 2px dashed #6FCF97; padding-bottom: 0; }
}
@media (max-width: 760px) {
  .lp { padding: 0 16px; }
  .lp-header { width: calc(100% - 20px); margin-top: 10px; padding: 10px 10px 10px 14px; }
  .lp-header nav { order: 3; width: 100%; margin-left: 0; gap: 2px 16px; }
  .lp-locale { margin-left: auto; }
  .lp-hero { padding-top: 44px; }
  .lp-lead { font-size: 16px; }
  .lp-actions .button { flex: 1 1 100%; }
  .lp-section { padding-top: 72px; }
  .lp-plans, .lp-flows, .lp-kinds, .lp-rules { grid-template-columns: minmax(0, 1fr); }
  .lp-plan + .lp-plan { border-left: 0; border-top: 1px solid var(--line); }
  .lp-scopes div { grid-template-columns: minmax(0, 1fr); }
  .lp-prose { padding-left: 18px; }
  .lp-flow { padding: 20px; }
  .lp-footer { width: calc(100% - 32px); }
}
@media (max-width: 420px) {
  .lp-header .lp-open { display: none; }
}
/* D99 public pages: live counts, request kinds with counts, plan table and the legal documents. */
.lp-stats dd strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.lp-count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #EFEDFC; color: var(--violet); font: 600 12px/1.6 var(--mono); text-align: center; }
.lp-section .plan-compare-wrap { margin-top: 24px; overflow-x: auto; }
.lp-section .plan-compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-section .plan-compare caption { text-align: left; padding-bottom: 8px; font-size: 14px; color: var(--muted); }
.lp-section .plan-compare th, .lp-section .plan-compare td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; }
.lp .legal-document { width: min(860px, calc(100% - 32px)); margin: 0 auto 64px; }
.lp .legal-section { width: auto; padding: 28px 0 0; }
.lp .legal-section ol { margin-top: 12px; padding-left: 20px; font-size: 16px; line-height: 1.75; color: var(--body); }
.lp .legal-section li + li { margin-top: 8px; }
.lp-footer nav + nav { margin-top: 10px; }
