/* ============================================================
   cnvs.app — About + Developers. Ascetic redesign.
   Warm monochrome · Hanken Grotesk + JetBrains Mono · hairlines.
   Shared by /about and /developers.
   ============================================================ */

:root {
    --bg:          #fbfbf9;
    --surface:     #f3f2ed;   /* used sparingly: code, faint table column */
    --ink:         #1b1b19;
    --muted:       #6f6e67;
    --faint:       #9a988f;
    --line:        #e6e4dc;
    --line-strong: #d6d4ca;
    --accent:      #2f64d8;   /* one restrained blue — links only */
    --ok:          #1b1b19;   /* checks render in ink, not green */
    --warn:        #9a6a18;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg:          #121210;
        --surface:     #1c1c19;
        --ink:         #ece9e0;
        --muted:       #9c9a8f;
        --faint:       #6c6a61;
        --line:        #28282333;
        --line:        #2a2a25;
        --line-strong: #38382f;
        --accent:      #6ea0ff;
        --ok:          #ece9e0;
        --warn:        #d8a24e;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.col  { max-width: 720px; }            /* editorial text measure */
section { padding-top: 120px; }
@media (max-width: 680px) { section { padding-top: 84px; } .wrap { padding: 0 22px; } }

/* ---------- nav ---------- */
nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
nav .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
/* Board mark — same rounded-frame glyph the app uses (logo-icon.svg):
   the SVG draws the frame itself (fill = page bg, stroke = currentColor),
   so it tracks the ink colour in light and dark. */
.mark {
    width: 18px; height: 18px; display: block; flex: none;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .nav-links a.hide-sm { display: none; } }

/* ---------- eyebrow / section heading ---------- */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--faint);
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 26px;
}
.eyebrow::before {
    content: ""; width: 26px; height: 1px; background: var(--line-strong);
}
h2 {
    font-size: clamp(26px, 4.2vw, 40px); font-weight: 500;
    letter-spacing: -0.025em; line-height: 1.08; color: var(--ink);
    max-width: 16ch;
}
.lead {
    color: var(--muted); font-size: clamp(16px, 1.7vw, 18.5px);
    line-height: 1.6; margin-top: 18px; max-width: 70ch;
}
.lead a { font-weight: 500; }

/* ---------- hero ---------- */
header.hero { padding-top: 88px; }
@media (max-width: 680px) { header.hero { padding-top: 56px; } }
.hero h1 {
    font-size: clamp(40px, 7.4vw, 78px); font-weight: 500;
    letter-spacing: -0.035em; line-height: 1.01; color: var(--ink);
    max-width: 16ch; text-wrap: balance;
}
.hero .tagline {
    font-size: clamp(17px, 2vw, 21px); color: var(--muted); line-height: 1.5;
    margin-top: 26px; max-width: 54ch; text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 24px; border-radius: 999px;
    font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted);
    padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
}

/* ---------- note blocks (TL;DR, AI agents, asides) ---------- */
.note {
    margin-top: 40px; padding: 22px 24px;
    border: 1px solid var(--line); border-radius: 14px; background: transparent;
}
.note-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--faint); display: block; margin-bottom: 12px;
}
.note ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.note ul li {
    position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); line-height: 1.55;
}
.note ul li::before {
    content: ""; position: absolute; left: 2px; top: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.note strong { color: var(--ink); font-weight: 600; }
.note p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.note.inline { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.note.inline .note-label { margin: 0; flex: none; padding-top: 2px; }
.note code, .badge code { font-size: 0.92em; }
.note code { color: var(--ink); }

/* ---------- spec list (replaces all cards) ---------- */
/* Two-column flow: fills page width, keeps each description at a
   comfortable ~55ch measure. Title sits above its description. */
.spec {
    margin-top: 48px; border-top: 1px solid var(--line-strong);
    column-count: 2; column-gap: 64px;
}
.spec .row {
    display: block; break-inside: avoid;
    padding: 22px 0; border-bottom: 1px solid var(--line);
}
.spec .row .k {
    display: block; margin-bottom: 8px;
    font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink);
    line-height: 1.3;
}
.spec .row .k em { font-style: italic; font-weight: 600; }
.spec .row .v { font-size: 14.5px; color: var(--muted); line-height: 1.62; text-wrap: pretty; }
.spec .row .v strong { color: var(--ink); font-weight: 600; }
.spec .row .v em { font-style: normal; color: var(--ink); }
.spec .row .v code { font-size: 0.9em; color: var(--ink); }
/* single column on narrow viewports */
@media (max-width: 720px) {
    .spec { column-count: 1; }
    .spec .row { padding: 20px 0; }
}

/* ---------- pricing ---------- */
.pricing-block { margin-top: 56px; text-align: center; }
.price {
    font-size: clamp(80px, 17vw, 168px); font-weight: 500;
    letter-spacing: -0.05em; line-height: 0.9; color: var(--ink);
}
.price sup {
    font-size: 0.16em; font-weight: 500; letter-spacing: 0.04em; vertical-align: super;
    color: var(--muted); margin-left: 4px;
}
.price-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
    margin-top: 24px;
}
.price-list {
    list-style: none; max-width: 480px; margin: 28px auto 0;
    display: grid; gap: 0;
    text-align: left;
}
.price-list li {
    font-size: 15px; color: var(--muted); padding: 12px 4px;
    border-top: 1px solid var(--line);
    display: flex; align-items: baseline; gap: 12px;
}
.price-list li::before {
    content: "✓"; color: var(--ink); font-size: 12px; flex: none;
}
.price-cta { margin-top: 40px; }

/* ---------- comparison table ---------- */
.table-scroll { margin-top: 48px; overflow-x: auto; }
table.compare { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
table.compare th, table.compare td {
    padding: 16px 16px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--line);
}
table.compare thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--faint); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
table.compare tbody th {
    font-weight: 500; color: var(--ink); width: 230px; letter-spacing: -0.01em;
}
table.compare td { color: var(--muted); }
/* emphasise our column */
table.compare thead th.us, table.compare td.us {
    background: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
table.compare thead th.us { color: var(--accent); }
table.compare td.us { color: var(--ink); font-weight: 500; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
.check { color: var(--ink); font-weight: 600; }
.yes { color: var(--ink); }
.no { color: var(--faint); }
.partial { color: var(--warn); }
.cell-note { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
table.compare sup { color: var(--accent); font-size: 10px; }
.fn { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 18px; max-width: 80ch; }
.fn strong { color: var(--ink); font-weight: 600; }
.fn sup { color: var(--accent); font-weight: 600; }

/* verdict + reviewer asides */
.verdict { margin-top: 56px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.verdict h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.verdict p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; max-width: 72ch; }
.verdict p strong { color: var(--ink); font-weight: 600; }
.pullquote { margin-top: 48px; }
.pullquote blockquote {
    font-size: clamp(20px, 2.6vw, 27px); font-weight: 500; letter-spacing: -0.02em;
    line-height: 1.3; color: var(--ink); text-wrap: balance; max-width: 22ch;
    margin: 0; text-indent: -0.4em;
}
.pullquote .attr { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.pullquote .attr strong { color: var(--ink); }

/* ---------- MCP ---------- */
.mcp-body { max-width: 720px; }
.mcp-body p { font-size: 15.5px; color: var(--muted); line-height: 1.68; margin-bottom: 16px; }
.mcp-body p strong { color: var(--ink); font-weight: 600; }
.mcp-body p code, .mcp-body li code { font-size: 0.9em; color: var(--ink); }
h3.sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink); margin: 40px 0 16px;
}
h3.sub code { font-size: 1em; text-transform: none; letter-spacing: 0; color: var(--accent); }
pre.code {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 18px 18px; overflow-x: auto; font-size: 13px; line-height: 1.6;
    color: var(--ink); margin: 8px 0 4px;
}
pre.code code { font-size: inherit; color: inherit; }
.mcp-body ul { list-style: none; margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; }
.mcp-body ul li {
    position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); line-height: 1.62;
}
.mcp-body ul li::before {
    content: ""; position: absolute; left: 2px; top: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong);
}
.mcp-body ul li strong { color: var(--ink); font-weight: 600; }

/* tool / resource list as spec rows */
.toolspec { margin-top: 16px; border-top: 1px solid var(--line); }
.toolspec .row {
    display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 16px 32px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.toolspec .row code {
    font-size: 12.5px; color: var(--accent); font-weight: 500; line-height: 1.7; word-break: break-word;
}
.toolspec .row p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.toolspec .row p code { color: var(--ink); font-weight: 400; }
@media (max-width: 640px) { .toolspec .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- shortcuts ---------- */
.shortcuts {
    list-style: none; margin-top: 48px;
    column-count: 2; column-gap: 56px;
    border-top: 1px solid var(--line-strong);
}
@media (max-width: 600px) { .shortcuts { column-count: 1; } }
.shortcuts li {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 13px 0; border-bottom: 1px solid var(--line);
    break-inside: avoid; font-size: 14px; color: var(--muted);
}
.shortcuts .keys { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.shortcuts .keys em { font-style: normal; color: var(--faint); font-size: 11px; margin: 0 2px; }
kbd {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    min-width: 22px; text-align: center; padding: 3px 7px;
    border: 1px solid var(--line-strong); border-radius: 6px;
    color: var(--ink); background: var(--bg); line-height: 1;
}

/* ---------- shortcuts mode switch ---------- */
.sc-switch {
    display: inline-flex; margin-top: 36px; padding: 3px;
    border: 1px solid var(--line-strong); border-radius: 999px;
}
.sc-tab {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--faint); background: transparent; border: none; cursor: pointer;
    padding: 8px 16px; border-radius: 999px;
    transition: color .15s ease, background .15s ease;
}
.sc-tab .sw { width: 9px; height: 9px; flex: none; border-radius: 2px; }
.sc-tab[data-sc="draw"] .sw { border: 1.5px solid currentColor; }
.sc-tab[data-sc="todo"] .sw { background: var(--accent); }
.sc-tab:hover { color: var(--ink); }
.sc-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.shortcuts[hidden] { display: none; }
.shortcuts.is-switched { margin-top: 28px; }
.sc-both {
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--faint);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line-strong); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
    cursor: pointer; list-style: none; padding: 22px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: "+"; font-family: 'JetBrains Mono', monospace; font-weight: 400;
    font-size: 18px; color: var(--faint); flex: none; transition: transform .2s ease;
}
details.faq[open] summary::after { content: "–"; }
details.faq summary:hover { color: var(--accent); }
details.faq p {
    padding: 0 0 24px; margin: -4px 0 0; max-width: 70ch;
    color: var(--muted); font-size: 15px; line-height: 1.7;
}
details.faq p strong { color: var(--ink); font-weight: 600; }
details.faq p code { font-size: 0.9em; color: var(--ink); }

/* ---------- sister apps ---------- */
.sisters { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.sister {
    display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
    padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit;
}
.sister:hover { text-decoration: none; }
.sister:hover .sister-name { color: var(--accent); }
.sister-name {
    font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
    display: inline-flex; align-items: center; gap: 7px; transition: color .15s ease;
}
.sister-name .arw { color: var(--faint); font-weight: 400; }
.sister-desc { font-size: 13.5px; color: var(--muted); text-align: right; }

/* ---------- footer ---------- */
footer {
    margin-top: 120px; padding: 28px 0 56px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.02em; color: var(--faint);
}
footer a { color: var(--muted); font-weight: 500; }
footer a:hover { color: var(--ink); }

/* ---------- two modes, one link ---------- */
.modes { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; }
.mode { padding: 4px 0 8px; }
.mode.draw { padding-right: 56px; border-right: 1px solid var(--line); }
.mode.todo { padding-left: 56px; }
.mode-head { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.mode-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--faint); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.mode-kicker .sw { width: 9px; height: 9px; flex: none; }
.mode.draw .mode-kicker .sw { border: 1.5px solid var(--ink); }
.mode.todo .mode-kicker .sw { background: var(--accent); }
.mode-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.mode-sub { font-size: 14px; color: var(--muted); margin-top: 5px; }
.mode ul { list-style: none; display: flex; flex-direction: column; gap: 17px; }
.mode li {
    position: relative; padding-left: 22px;
    font-size: 14.5px; color: var(--muted); line-height: 1.6;
}
.mode li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 7px; height: 7px; }
.mode.draw li::before { border: 1.5px solid var(--line-strong); }
.mode.todo li::before { background: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
.mode li strong { color: var(--ink); font-weight: 600; }
.mode li em { font-style: italic; color: var(--ink); }
.mode li code { font-size: 0.9em; color: var(--ink); }
.mode li kbd { vertical-align: baseline; }
.modes-shared {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-strong);
    display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
}
.modes-shared .lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--faint); flex: none;
}
.modes-shared p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 80ch; }
.modes-shared p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
    .modes { grid-template-columns: 1fr; }
    .mode.draw { padding-right: 0; border-right: none; padding-bottom: 30px; }
    .mode.todo { padding-left: 0; padding-top: 32px; border-top: 1px solid var(--line-strong); }
}

/* ---------- developer page accents ---------- */
.hero.dev .badge-row .badge code { font-size: 0.92em; color: var(--ink); }
.crumbs {
    display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
    font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--faint);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .sep { color: var(--line-strong); }
