/* mevvCrew design system (Ali 20.11 14:22: the landing page's design language after sign-in too). One source for the
 * landing page (views/landing-v2.ejs) and the v2 panel (views/partials/head.ejs with ui2): spacing, type, radii, motion,
 * the colour tokens and the one button system. Dark first: the dark set sits on :root, the light set under
 * [data-theme="light"] and under the system preference unless the person chose dark ("Sistem" follows the device).
 * Every text/background pair is >= 4.5:1 (large text and controls >= 3:1). Colour names say what they do:
 *   bg / bg-2       the page and its bands (sidebar, sheets)       card / card-2   the board's cards, top to bottom
 *   tile / tile-2   the quieter panels (the landing's tiles, the panel's cards); solid: popovers and sheets
 *   raise / raise-2 quiet fills on top of anything (controls)      line / line-2   hairlines, stronger edges
 *   text / muted / faint                                            red             "needs you": counts, the main action
 *   acc2            "an agent is on it": selection, tabs, chips     blue            links, focus, "done"
 *   glow-a/b/c      the soft light behind a page's top; edge the gradient border of elevated surfaces. */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 9px; --r-pill: 999px;
  --ease: cubic-bezier(.22, .72, .18, 1);

  --c-bg: #0f1531; --c-bg-2: #121a3b; --c-panel: rgba(22, 30, 66, .78); --c-raise: rgba(255, 255, 255, .045); --c-raise-2: rgba(255, 255, 255, .085);
  --c-card: #1b2552; --c-card-2: #212c5e; --c-solid: #18214a; --c-tile: #182040; --c-tile-2: #20284d;
  --c-line: rgba(178, 194, 255, .15); --c-line-2: rgba(178, 194, 255, .28); --c-line-soft: rgba(178, 194, 255, .09);
  --c-text: #eef1fb; --c-muted: #b0b8d9; --c-faint: #8e98c0;
  --c-red: #ff5a5f; --c-red-text: #ff8f92; --c-red-soft: rgba(255, 90, 95, .15);
  --c-blue: #8fb4ff; --c-blue-strong: #bcd3ff; --c-blue-soft: rgba(143, 180, 255, .15);
  --c-btn: #d1262a; --c-btn-text: #ffffff; --c-btn-hover: #dc2f34;
  --c-glow-a: rgba(237, 47, 50, .34); --c-glow-b: rgba(110, 150, 255, .24); --c-glow-c: rgba(96, 112, 255, .42); --c-lane: rgba(178, 194, 255, .07);
  --c-acc2: #7d93ff; --c-acc2-text: #a9b8ff; --c-acc2-soft: rgba(125, 147, 255, .16);
  --c-ok: #43d17a; --c-ok-text: #7ee2a8; --c-ok-soft: rgba(67, 209, 122, .14);
  --c-warn-text: #ffd27a; --c-warn-soft: rgba(255, 196, 92, .14);
  --c-input: rgba(7, 10, 28, .35); --c-backdrop: rgba(4, 7, 22, .66);
  --c-edge: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(125, 147, 255, .45) 28%, rgba(178, 194, 255, .1) 55%, rgba(255, 90, 95, .6));
  --c-grain: .07;
  --c-shadow: 0 40px 90px -40px rgba(2, 5, 20, .9);
  --c-shadow-card: 0 18px 40px -28px rgba(2, 5, 20, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  --c-highlight: rgba(255, 255, 255, .18);
  --c-phone: #070a17; --c-screen: #f3f5fb; --c-screen-text: #12141b; --c-screen-muted: #4a5272; --c-screen-ok: #1f7a43;
  --v-claude: #c6b6ff; --v-codex: #6fdcc6; --v-gemini: #ffd27a; --v-kimi: #ffa3ca; --v-any: #b0b8d9;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --c-bg: #f2f4fb; --c-bg-2: #e8ecf8; --c-panel: rgba(255, 255, 255, .82); --c-raise: #ffffff; --c-raise-2: #f6f8fe;
  --c-card: #f3f5fc; --c-card-2: #ffffff; --c-solid: #ffffff; --c-tile: #fafbff; --c-tile-2: #ffffff;
  --c-line: #d8deef; --c-line-2: #bfc8e3; --c-line-soft: #e6eaf5;
  --c-text: #12141b; --c-muted: #475070; --c-faint: #586182;
  --c-red: #d1262a; --c-red-text: #a3191d; --c-red-soft: #ffe5e5;
  --c-blue: #2754a8; --c-blue-strong: #1b3f80; --c-blue-soft: #e3ebff;
  --c-btn-hover: #b81f23;
  --c-glow-a: rgba(237, 47, 50, .13); --c-glow-b: rgba(39, 84, 168, .14); --c-lane: rgba(39, 54, 110, .07);
  --c-glow-c: rgba(80, 96, 230, .16); --c-acc2: #3f55d6; --c-acc2-text: #3346b8; --c-acc2-soft: #e6eaff;
  --c-ok: #1f8a4c; --c-ok-text: #1a6b3c; --c-ok-soft: #e1f5e8;
  --c-warn-text: #8a4b00; --c-warn-soft: #fff1dc;
  --c-input: #ffffff; --c-backdrop: rgba(18, 24, 56, .42);
  --c-edge: linear-gradient(135deg, rgba(63, 85, 214, .45), rgba(216, 222, 239, .9) 45%, rgba(209, 38, 42, .45)); --c-grain: .035;
  --c-shadow: 0 40px 80px -44px rgba(24, 36, 96, .42);
  --c-shadow-card: 0 14px 34px -26px rgba(24, 36, 96, .45), inset 0 1px 0 #ffffff;
  --c-highlight: rgba(255, 255, 255, .18);
  --v-claude: #6a4fd6; --v-codex: #0f7c68; --v-gemini: #9a6400; --v-kimi: #b8326c; --v-any: #475070;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --c-bg: #f2f4fb; --c-bg-2: #e8ecf8; --c-panel: rgba(255, 255, 255, .82); --c-raise: #ffffff; --c-raise-2: #f6f8fe;
    --c-card: #f3f5fc; --c-card-2: #ffffff; --c-solid: #ffffff; --c-tile: #fafbff; --c-tile-2: #ffffff;
    --c-line: #d8deef; --c-line-2: #bfc8e3; --c-line-soft: #e6eaf5;
    --c-text: #12141b; --c-muted: #475070; --c-faint: #586182;
    --c-red: #d1262a; --c-red-text: #a3191d; --c-red-soft: #ffe5e5;
    --c-blue: #2754a8; --c-blue-strong: #1b3f80; --c-blue-soft: #e3ebff;
    --c-btn-hover: #b81f23;
    --c-glow-a: rgba(237, 47, 50, .13); --c-glow-b: rgba(39, 84, 168, .14); --c-lane: rgba(39, 54, 110, .07);
    --c-glow-c: rgba(80, 96, 230, .16); --c-acc2: #3f55d6; --c-acc2-text: #3346b8; --c-acc2-soft: #e6eaff;
    --c-ok: #1f8a4c; --c-ok-text: #1a6b3c; --c-ok-soft: #e1f5e8;
    --c-warn-text: #8a4b00; --c-warn-soft: #fff1dc;
    --c-input: #ffffff; --c-backdrop: rgba(18, 24, 56, .42);
    --c-edge: linear-gradient(135deg, rgba(63, 85, 214, .45), rgba(216, 222, 239, .9) 45%, rgba(209, 38, 42, .45)); --c-grain: .035;
    --c-shadow: 0 40px 80px -44px rgba(24, 36, 96, .42);
    --c-shadow-card: 0 14px 34px -26px rgba(24, 36, 96, .45), inset 0 1px 0 #ffffff;
    --c-highlight: rgba(255, 255, 255, .18);
    --v-claude: #6a4fd6; --v-codex: #0f7c68; --v-gemini: #9a6400; --v-kimi: #b8326c; --v-any: #475070;
    color-scheme: light;
  }
}

/* --- buttons: one system for every control (track-ui 724525e, 35927f4; the landing page since Ali 20.11 14:22).
   <a class="btn"> goes somewhere, <button> does something. Default is secondary (a quiet fill with an edge); .primary
   is the red, filled main action with its glow; .ghost is tertiary (a faint pill, link colour: back, cancel, "see all"; never a bare link);
   .danger; .sm is smaller text and padding (the 44 px target stays); .lg is the landing's 50 px call to action.
   Inside the panel a bare <button> is a .btn too (:where keeps that at element weight, so a component's own rule wins).
   States: hover, pressed, the focus ring and disabled (button:disabled or a.btn[aria-disabled]). --- */
.btn, :where(.app, .bare) button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-raise); color: var(--c-text);
  font: 600 .92rem/1.1 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; filter: none;
  overflow-wrap: break-word; word-break: normal;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover, :where(.app, .bare) button:not([class]):hover, :where(.app, .bare) button.secondary:hover { background: var(--c-raise-2); border-color: var(--c-text); color: var(--c-text); filter: none; }
.btn.primary, :where(.app, .bare) button.primary { background: var(--c-btn); border-color: transparent; color: var(--c-btn-text);
  box-shadow: 0 10px 30px -10px var(--c-glow-a), inset 0 1px 0 var(--c-highlight); }
.btn.primary:hover, :where(.app, .bare) button.primary:hover { background: var(--c-btn-hover); border-color: transparent; color: var(--c-btn-text); filter: none; }
.btn.dark, :where(.app, .bare) button.dark { background: var(--c-text); border-color: transparent; color: var(--c-bg); }
.btn.dark:hover, :where(.app, .bare) button.dark:hover { background: var(--c-muted); color: var(--c-bg); filter: none; }
.btn.ghost, :where(.app, .bare) button.ghost { background: var(--c-line-soft); border-color: transparent; color: var(--c-blue); box-shadow: none; }
.btn.ghost:hover, :where(.app, .bare) button.ghost:hover { background: var(--c-line-2); border-color: transparent; color: var(--c-blue-strong); }
.btn.danger, :where(.app, .bare) button.danger { background: transparent; border-color: var(--c-red-text); color: var(--c-red-text); box-shadow: none; }
.btn.danger:hover, :where(.app, .bare) button.danger:hover { background: var(--c-red-soft); color: var(--c-red-text); }
.btn.sm, :where(.app, .bare) button.sm { padding: 0 var(--space-4); font-size: .86rem; }
.btn.ghost.sm, :where(.app, .bare) button.ghost.sm { padding: 0 var(--space-3); }
.btn.lg, :where(.app, .bare) button.lg { min-height: 50px; padding: 0 var(--space-5); font-size: 1rem; }
.btn.lg.sm { min-height: 44px; padding: 0 var(--space-4); font-size: .9375rem; }
.btn:active, :where(.app, .bare) button:active { transform: translateY(1px); }
.btn[aria-disabled="true"], :where(.app, .bare) button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
a.btn[aria-disabled="true"] { pointer-events: none; }
.btn svg { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, :where(.app, .bare) button { transition: none; }
  .btn:active, :where(.app, .bare) button:active { transform: none; }
}

/* --- two columns, one long (Ali 23.11 10:34): the text column starts at the top of its section and stays in view while
   the long column scrolls. One rule for every such page: the logged-out shell of /why, /use/*, /compare/*, /migrate/*
   and /pricing (head.ejs, splitSticky) and the landing's trust and enterprise bands. Put .split-sticky on the row and
   .split-pin on its text column. Below 980px the columns stack and nothing sticks. --- */
@media (min-width: 980px) {
  .split-sticky { align-items: flex-start; flex-wrap: nowrap; }
  .split-sticky > .split-pin { position: sticky; top: var(--split-top, var(--space-6)); align-self: flex-start; justify-content: flex-start; }
  /* The shell's left panel fills the screen it sticks to: the brand and the pitch on top, the watermark at the bottom. */
  .auth.split-sticky { --split-top: 0px; }
  .auth.split-sticky > .auth-panel { height: 100vh; }
  .auth.split-sticky .auth-watermark { margin-top: auto; }
}

/* --- "Şunlarla çalışır" / "Works with" (Ali 23.11 10:26, views/partials/works-with.ejs): every agent CLI and IDE Crew
   connects to, as text names (no third-party logos), each a link to its help section with an honest status badge. --- */
.works { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.works h2 { margin-bottom: 0; }
.works .works-lead { margin: 0; color: var(--c-muted); }
.works .works-kind { margin: var(--space-2) 0 0; font-size: 1rem; }
.works .works-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.works .works-list li { margin: 0; }
.works .works-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-1) var(--space-2) var(--space-1) var(--space-4);
  border: 1px solid var(--c-line-2); border-radius: var(--r-pill); background: var(--c-raise); color: var(--c-text); font-weight: 600; text-decoration: none; }
.works .works-item:hover { background: var(--c-raise-2); border-color: var(--c-text); color: var(--c-text); }
.works .works-name { overflow-wrap: anywhere; }
.works .works-badge { padding: 2px var(--space-2); border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.works .works-tested { background: var(--c-ok-soft); color: var(--c-ok-text); }
.works .works-docs { background: var(--c-raise-2); color: var(--c-muted); }
.works .works-note { margin: 0; color: var(--c-muted); font-size: .875rem; }
