/* The server's own pages: the landing page, sign-in, terminal sign-in, allowing an MCP client.
   The same light palette as the web app (app.css); every colour is a token. */

:root { /* the brand's colours (--bar, --primary, --page, …): brand.css */
  color-scheme: light;
  --surface: #ffffff;
  --surface-2: #efefea;
  --hover: #f1f0ea;
  --line: #d8d7d0;
  --line-soft: #ebeae5;
  --text: #1d1d1b;
  --muted: #67665f;
  --link: #1d1d1b;
  --focus: #1d1d1b;
  --danger: #c4122f;
  --avatar: #1d1d1b;
  --cyan: #1d5f9e;
  --indigo: #1d1d1b;
  --violet: #1d1d1b;
  --accent: #1d1d1b;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.5 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 8px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.button:hover { background: var(--hover); text-decoration: none; }
.button.primary { background: var(--primary); border-color: var(--primary-line); color: #1d1d1b; }
.button.primary:hover { background: var(--primary-hover); }
.button.large { padding: 12px 24px; font-size: 16px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- the top bar */
.site-bar { display: flex; align-items: center; gap: 24px; padding: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-bar nav { display: flex; gap: 20px; flex: 1; }
.site-bar nav a { color: var(--muted); font-weight: 500; }
.site-bar nav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- the landing page */
.site-bar .brand img { height: 22px; width: auto; }
.land { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.land-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 80px 0 72px; border-bottom: 1px solid var(--line-soft); }
.land-hero h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.8px; margin: 0 0 18px; font-weight: 600; }
.land-hero .lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.kicker { font: 12px var(--mono); color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; display: block; }
.term { background: #010409; border: 1px solid var(--line); border-radius: 8px; font: 13px/1.7 var(--mono); overflow: hidden; }
.term-head { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.term-head span { margin-left: 8px; }
.term pre { margin: 0; padding: 16px 18px; white-space: pre; overflow-x: auto; color: var(--text); }
.term .c { color: var(--muted); } .term .k { color: var(--accent); } .term .s { color: #7ee787; } .term .n { color: #79c0ff; }
.land-section { padding: 64px 0; border-bottom: 1px solid var(--line-soft); }
.land-section h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.3px; }
.land-section > p { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.spec > div { padding: 22px 24px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.spec > div:nth-child(3n) { border-right: 0; }
.spec > div:nth-last-child(-n+3) { border-bottom: 0; }
.spec h3 { font-size: 15px; margin: 0 0 6px; }
.spec p { color: var(--muted); margin: 0; font-size: 14px; }
.spec code { font: 12px var(--mono); color: var(--text); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; }
.flow > div { padding: 0 20px 0 0; }
.flow b { display: block; font: 600 13px var(--mono); color: var(--accent); margin-bottom: 6px; }
.flow p { color: var(--muted); margin: 0; font-size: 14px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.clients span { border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.land-cta { padding: 56px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.land-cta h2 { margin: 0; font-size: 22px; font-weight: 600; }
.site-foot { border-top: 1px solid var(--line-soft); color: var(--muted); padding: 22px 32px; display: flex; gap: 18px; align-items: center; justify-content: center; font-size: 13px; }
.site-foot a { color: var(--muted); }
.site-foot img { height: 14px; width: auto; }
@media (max-width: 900px) {
  .land-hero, .spec, .flow { grid-template-columns: 1fr; }
  .spec > div { border-right: 0; }
  .site-bar nav { display: none; }
}

/* ---------------------------------------------------------------- sign-in and confirmation pages */
.auth { min-height: 100vh; display: grid; place-items: start center; padding: 56px 16px; background: var(--page); }
.auth-box { width: min(420px, 100%); text-align: center; }
.auth-logo img { width: 52px; height: 52px; }
.auth h1 { font-size: 24px; font-weight: 400; letter-spacing: -0.4px; margin: 16px 0 20px; }
.auth .card { text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 20px; }
.auth .card p { color: var(--muted); }
.auth-foot { color: var(--muted); font-size: 13px; margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.who-am-i { color: var(--muted); font-size: 13px; margin-top: 16px; }

.users { display: grid; gap: 8px; }
.user { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--page); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.user:hover { border-color: var(--line); background: var(--surface-2); }
.user .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--avatar); color: #ffcc00; font-size: 13px; font-weight: 600; flex: none; }
.user .who { flex: 1; display: grid; }
.user small { color: var(--muted); font-size: 12px; }
.user .go { color: var(--muted); }
.user:hover .go { color: var(--text); }

label.password { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
label.field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.button.wide { width: 100%; justify-content: center; }
.auth .card + .card { margin-top: 12px; }
.auth .hint { font-size: 13px; margin: 10px 0 0; }
input { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); color: var(--text); width: 100%; }
input.code { font: 20px/1.4 var(--mono); letter-spacing: 4px; text-align: center; text-transform: uppercase; }
.form-row { display: grid; gap: 10px; }
.buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.message { margin-top: 12px; color: var(--text); }
.message.failed { color: var(--danger); }

/* ---------------------------------------------------------------- legal pages */
.legal-box { width: min(820px, 100%); text-align: left; }
.legal-box .auth-logo { display: block; text-align: center; }
.legal-box h1 { text-align: center; }
.legal-box .card h2 { font-size: 16px; margin: 22px 0 8px; }
.legal-box .card h2:first-child { margin-top: 0; }
.legal-box .card p, .legal-box .card li { color: var(--text); line-height: 1.65; }
.legal-box .card ul { padding-left: 20px; }
.legal-box .missing { color: var(--danger); }
.legal-nav { display: flex; gap: 16px; justify-content: center; margin: 16px 0 0; font-size: 13px; }
.legal-nav a { color: var(--muted); }
.legal-box .updated { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- the look: friendly and calm */
body { font-size: 15px; }
.auth { background: var(--page); }
.auth h1 { font-weight: 700; }
.auth .card, .auth-foot { border-color: transparent; border-radius: 14px; box-shadow: 0 1px 2px #0000000f, 0 2px 8px #0000000a; background: var(--surface); }
.auth .card { padding: 24px; }
.auth-logo { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bar); }
.auth-logo img { width: 48px; height: auto; }
input { background: var(--surface); }
.button { background: var(--surface); }
.button:hover { background: var(--hover); }
.button.primary { color: #1d1d1b; font-weight: 700; }
.button.dark { background: #1d1d1b; border-color: #1d1d1b; color: #fff; }
.button.dark:hover { background: #33332f; }
a:not(.button):not(.brand):not(.auth-logo) { text-decoration-color: var(--primary); }
.card a:not(.button) { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-nav a { color: var(--muted); }


/* ---------------------------------------------------------------- the landing page */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
.landing { font-size: 16px; }
.landing .site-bar { background: var(--bar); padding: 14px 40px; box-shadow: 0 1px 3px #0000001a; }
.landing .site-bar .brand { font-weight: 800; font-size: 20px; }
.landing .site-bar nav a { color: #1d1d1b; font-weight: 600; }
.landing .land { max-width: 1160px; padding: 0 40px; }
.landing .land-hero { padding: 72px 0; border: 0; gap: 64px; }
.landing .land-hero h1 { font-weight: 800; letter-spacing: -1px; }
.landing .land-hero .lead { font-size: 18px; }
.landing .cta { display: flex; gap: 12px; }
.landing .kicker { display: inline-block; font: 700 13px var(--font); letter-spacing: 0; text-transform: none; color: #1d1d1b; background: var(--primary); border-radius: 16px; padding: 4px 14px; }
.landing .term { background: #1d1d1b; border: 0; border-radius: 16px; box-shadow: 0 8px 28px #00000026; color: #f4f4f1; }
.landing .term-head { border-bottom: 1px solid #ffffff1f; color: #b9b8b0; padding: 12px 16px; }
.landing .term-head i { background: var(--primary); }
.landing .term pre { color: #f4f4f1; overflow: hidden; padding: 18px 22px; }
.landing .term .c { color: #a3a29a; }
.landing .term .k { color: var(--primary); }
.landing .term .s { color: #a8e6b4; }
.landing .land-section { border: 0; padding: 48px 0; }
.landing .land-section h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.landing .land-section > p { font-size: 17px; }
.round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); margin-bottom: 14px; }
.round svg { width: 22px; height: 22px; fill: none; stroke: #1d1d1b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.landing .spec { border: 0; gap: 20px; overflow: visible; }
.landing .spec > div, .host-card { background: var(--surface); border: 0; border-radius: 16px; padding: 26px; box-shadow: 0 1px 2px #0000000f, 0 2px 8px #0000000a; }
.landing .spec h3, .host-card h3, .landing .flow h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.landing .spec p, .landing .flow p { font-size: 15px; }
.landing .flow { gap: 20px; }
.landing .flow > div { padding: 0; }
.landing .flow b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1d1d1b; color: var(--primary); font: 700 15px var(--font); margin-bottom: 12px; }
.clients-block { margin-top: 40px; }
.clients-block h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.landing .clients span { background: var(--surface); border: 0; border-radius: 18px; padding: 6px 14px; font-size: 14px; color: #1d1d1b; box-shadow: 0 1px 2px #0000000f; }
.hosting { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.host-card { padding: 32px; }
.host-card h3 { font-size: 22px; }
.host-card .for { font-weight: 600; color: #1d1d1b; margin-bottom: 10px; }
.host-card p:last-child { color: var(--muted); margin: 0; }
.contact { display: flex; justify-content: space-between; gap: 40px; align-items: center; background: var(--primary); border-radius: 22px; padding: 44px 48px; margin: 40px 0 64px; color: #1d1d1b; }
.contact h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 8px; }
.contact p { font-size: 17px; max-width: 560px; margin: 0 0 22px; }
.contact address { font-style: normal; line-height: 1.7; white-space: nowrap; }
.contact a:not(.button) { color: #1d1d1b; text-decoration: underline; }
.landing .site-foot { border: 0; }

/* The hero's picture: the viewer or the code, without a script */
.showcase { position: relative; min-width: 0; }
.showcase > input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.showcase-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 999px; background: #ebeae5; }
.showcase-tabs label { padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
#show-viewer:checked ~ .showcase-tabs label[for="show-viewer"],
#show-review:checked ~ .showcase-tabs label[for="show-review"],
#show-agent:checked ~ .showcase-tabs label[for="show-agent"],
#show-python:checked ~ .showcase-tabs label[for="show-python"],
#show-rest:checked ~ .showcase-tabs label[for="show-rest"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px #00000026; }
#show-viewer:focus-visible ~ .showcase-tabs label[for="show-viewer"],
#show-review:focus-visible ~ .showcase-tabs label[for="show-review"],
#show-agent:focus-visible ~ .showcase-tabs label[for="show-agent"],
#show-python:focus-visible ~ .showcase-tabs label[for="show-python"],
#show-rest:focus-visible ~ .showcase-tabs label[for="show-rest"] { outline: 2px solid var(--text); outline-offset: 2px; }
.pane { display: none; margin: 0; }
#show-viewer:checked ~ .pane-viewer, #show-review:checked ~ .pane-review, #show-agent:checked ~ .pane-agent,
#show-python:checked ~ .pane-python, #show-rest:checked ~ .pane-rest { display: block; }
.pane-viewer img, .pane .term { aspect-ratio: 840 / 640; }
.pane-viewer img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 28px #00000026; background: #fff; }
.landing .land-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.landing .term pre { font-size: 12.5px; }
.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; font-size: 14px; line-height: 1.5; font-family: inherit; }
.landing .term .chat { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; }
.chat p { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; }
.chat .you { align-self: flex-end; background: var(--primary); color: #1d1d1b; font-weight: 500; }
.chat .agent { align-self: flex-start; background: #ffffff14; color: #f4f4f1; }

/* The Review tab: the change in the viewer, and the same change as a review */
#show-review:checked ~ .pane-review { display: flex; }
.pane-review { flex-direction: column; aspect-ratio: 840 / 640; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 28px #00000026; background: var(--surface); }
.pane-review img { display: block; flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.review { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid #ebeae5; font-size: 13px; }
.review h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; white-space: nowrap; }
.review p { margin: 0; }
.review-row { color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.changed { background: #e69f0033; color: #7a4f00; } /* as the viewer shows changes: orange */
.tag.added { background: #0072b21f; color: #005a8c; } /* and additions: blue */
.review-end { flex: none; display: flex; align-items: center; gap: 12px; }
.review-note { display: flex; align-items: center; gap: 6px; color: #1a6b32; font-weight: 600; }
.person { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1d1d1b; color: #fff; font-size: 10px; font-weight: 700; }
.merge { padding: 7px 12px; border-radius: 10px; background: var(--primary); color: #1d1d1b; font-weight: 700; white-space: nowrap; }
