/* CogniDev — homepage. Isolated from /styles.css (blog keeps its own). */
/* One accent. Hairline borders. Type does the work. */

:root {
    --ink: #0e1116;
    --ink-2: #3d434d;
    --ink-3: #6b7280;
    --paper: #fcfcfb;
    --paper-2: #f4f4f2;
    --line: #e5e6e3;
    --accent: #2742f5;
    --accent-ink: #1d33c4;
    --ok: #1a7f4e;
    --display: "Space Grotesk", sans-serif;
    --body: "Inter", -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; font-weight: 600; max-width: 21em; }
h3 { font-size: 1.06rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }

.kicker {
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 18px;
}
.kicker-inv { color: #aab6ff; }

.lead {
    font-size: 1.08rem;
    color: var(--ink-2);
    max-width: 46em;
    margin-top: 18px;
}
.lead strong { color: var(--ink); }

/* ── nav ─────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(252, 252, 251, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 60px; }
.nav-brand {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--display); font-weight: 700; font-size: 1.04rem;
}
.nav-mark {
    width: 24px; height: 24px; border-radius: 6px;
    object-fit: cover; flex-shrink: 0; display: block;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
    font-size: 0.86rem; font-weight: 500; color: var(--ink-3);
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ── buttons ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.88rem; font-weight: 600;
    padding: 11px 22px; border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a3140; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.nav-cta { padding: 8px 16px; }
.btn-inv { background: var(--paper); color: var(--ink); }
.btn-inv:hover { background: #e8e9ef; }
.btn-inv-ghost { border-color: rgba(255,255,255,0.28); color: var(--paper); }
.btn-inv-ghost:hover { border-color: rgba(255,255,255,0.6); }

/* ── hero ────────────────────────────────────────── */
.hero { padding: 88px 0 0; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 30em) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.hero-sub {
    font-size: 1.12rem; color: var(--ink-2);
    margin-top: 26px; max-width: 30em;
}
.hero-terms {
    font-family: var(--mono); font-size: 0.85rem; color: var(--ink);
    margin-top: 18px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.proof-strip {
    display: flex; flex-wrap: wrap; gap: 12px 40px;
    border-top: 1px solid var(--line);
    margin-top: 80px; padding-top: 22px; padding-bottom: 26px;
}
.proof-strip span {
    font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3);
}

/* ── the hero 3D flip deck ───────────────────────── */
/* Product tokens (match the real IDE): surface #0a0b0e, brand #7c8cff,
   success #56d394, mono labels. */
.hero-visual { min-width: 0; perspective: 1600px; }
.scene {
    position: relative;
    transform: rotateX(6deg) rotateY(-13deg);
    transform-style: preserve-3d;
    animation: sceneFloat 9s ease-in-out infinite;
    transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
@keyframes sceneFloat {
    0%, 100% { transform: rotateX(6deg) rotateY(-13deg) translateY(0); }
    50%      { transform: rotateX(6deg) rotateY(-10deg) translateY(-10px); }
}
/* hover: stop the float, flatten the tilt face-on, and lift it forward so
   the current screen is large and clearly readable */
.scene:hover {
    animation: none;
    transform: rotateX(0deg) rotateY(0deg) scale(1.03);
    cursor: zoom-in;
}

/* crisp full-resolution hover zoom — the real screenshot at large size,
   no transform upscaling, so it stays sharp */
.zoombox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(6, 7, 10, 0.66);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease;
}
.zoombox.on { opacity: 1; pointer-events: auto; }
.zoombox img {
    max-width: min(88vw, 1700px);
    max-height: 78vh;
    width: auto; height: auto;
    border-radius: 12px;
    border: 1px solid #1f232c;
    box-shadow: 0 50px 140px -34px rgba(0, 0, 0, 0.75);
    image-rendering: -webkit-optimize-contrast;
}
.zoombox .zb-cap {
    margin-top: 16px; max-width: 88vw; text-align: center;
    font-family: var(--mono); font-size: 0.8rem; color: #c8ccd4;
    background: rgba(10, 11, 14, 0.8); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px; padding: 6px 12px;
}
/* lightbox controls — ordered stepping, one accent on hover */
.zoombox .zb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 22, 28, 0.72); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.9rem; line-height: 1; cursor: pointer; z-index: 201;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.zoombox .zb-nav:hover { background: var(--accent); border-color: transparent; }
.zoombox .zb-prev { left: 4vw; }
.zoombox .zb-next { right: 4vw; }
.zoombox .zb-close {
    position: fixed; top: 4vh; right: 4vw;
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 22, 28, 0.72); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem; cursor: pointer; z-index: 201;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.zoombox .zb-close:hover { background: var(--accent); border-color: transparent; }
.zoombox .zb-count {
    position: fixed; bottom: 6vh; right: 4vw;
    font-family: var(--mono); font-size: 0.78rem; color: #c8ccd4;
    background: rgba(10, 11, 14, 0.8); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px; padding: 6px 10px;
}
@media (max-width: 720px) {
    .zoombox .zb-prev { left: 2vw; }
    .zoombox .zb-next { right: 2vw; }
    .zoombox .zb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
}
.flip {
    position: relative;
    width: 100%;
    /* matches the captured app-window ratio (~3016×1734) so real
       screenshots fill the face with no letterbox or crop */
    aspect-ratio: 1740 / 1000;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.66, 0, 0.34, 1);
}
.face {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: #0a0b0e;
    border: 1px solid #1f232c;
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--mono);
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(124, 140, 255, 0.04);
}
.face-a { transform: rotateY(0deg); }
.face-b { transform: rotateY(180deg); }

.scene-dots {
    position: absolute; left: 50%; bottom: -34px;
    transform: translateX(-50%) translateZ(40px);
    display: flex; gap: 8px;
}
.scene-dot { width: 6px; height: 6px; border-radius: 50%; background: #2a2f3a; transition: background 0.3s, width 0.3s; }
.scene-dot.on { background: var(--accent); width: 18px; border-radius: 4px; }

/* real screenshot face */
.f-shot { position: relative; width: 100%; height: 100%; background: #0a0b0e; }
.f-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.f-shot.broken img { display: none; }
.f-shot.broken::after {
    content: "screenshot pending"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 0.74rem; color: #545a66;
}
.f-cap {
    position: absolute; left: 12px; bottom: 12px;
    font-family: var(--mono); font-size: 0.66rem; color: #c8ccd4;
    background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px; padding: 4px 9px;
}

/* shared frame chrome */
.f-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 12px 16px; border-bottom: 1px solid #1f232c;
    background: #11131a;
}
.f-dot { width: 9px; height: 9px; border-radius: 50%; background: #272c37; }
.f-title { margin-left: 8px; font-size: 0.72rem; color: #a0a6b3; }
.f-mode {
    margin-left: auto; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); border: 1px solid rgba(124, 140, 255, 0.28);
    border-radius: 5px; padding: 2px 8px;
}
.f-mode.run { color: var(--ok); border-color: rgba(86, 211, 148, 0.3); }
.f-body { display: grid; grid-template-columns: 42px 1fr; min-height: 348px; }
.f-rail {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding-top: 18px; border-right: 1px solid #1f232c; background: #0c0e13;
}
.f-ri { width: 18px; height: 18px; border-radius: 5px; background: #1a1e27; }
.f-ri.on { background: rgba(124, 140, 255, 0.16); box-shadow: inset 0 0 0 1px var(--accent); }
.f-main { padding: 16px 20px 20px; min-width: 0; }
.f-tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.f-tab { font-size: 0.68rem; color: #6a7180; padding: 4px 10px; border-radius: 6px; }
.f-tab.on { background: #171a23; color: #e7e9ee; box-shadow: inset 0 0 0 1px #262b36; }

/* layers */
.f-canvas { display: flex; flex-direction: column; }
.f-lyr {
    border: 1px solid #20242e; border-radius: 9px; background: #0e1017;
    padding: 11px 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.f-lname { color: #e7e9ee; font-weight: 500; min-width: 66px; }
.f-chip { border: 1px solid #262b36; border-radius: 5px; padding: 2px 9px; color: #a0a6b3; font-size: 0.66rem; }
.f-link { width: 1px; height: 16px; background: #262b36; margin-left: 50px; }

/* use cases */
.f-uc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-card { border: 1px solid #20242e; border-radius: 9px; background: #0e1017; padding: 13px 14px; }
.f-uch { color: #e7e9ee; font-size: 0.76rem; font-weight: 500; margin-bottom: 6px; }
.f-ucf { color: #6a7180; font-size: 0.64rem; }

/* flow */
.f-flow { display: flex; flex-direction: column; }
.f-step { display: flex; align-items: center; gap: 12px; }
.f-sn {
    width: 26px; height: 26px; flex: none; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; color: var(--accent);
    border: 1px solid rgba(124, 140, 255, 0.3); background: rgba(124, 140, 255, 0.08);
}
.f-st { color: #e7e9ee; font-size: 0.74rem; }
.f-ss { color: #6a7180; font-size: 0.63rem; }
.f-fl { width: 1px; height: 16px; background: #262b36; margin-left: 13px; }

/* run timeline */
.f-runh { color: #e7e9ee; font-size: 0.78rem; margin-bottom: 16px; }
.f-run { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.f-run li { position: relative; padding-left: 18px; font-size: 0.7rem; color: #6a7180; }
.f-run li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #272c37; }
.f-run li.ok { color: #a0a6b3; }
.f-run li.ok::before { background: var(--ok); }
.f-run li.now { color: #e7e9ee; }
.f-run li.now::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.18); }
.f-run em { font-style: normal; color: #545a66; }

/* ── sections ────────────────────────────────────── */
.sec { padding: 104px 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-close {
    margin-top: 44px; font-size: 1.02rem; color: var(--ink-2);
    border-top: 1px solid var(--line); padding-top: 22px; max-width: 46em;
}
.sec-close strong { color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 26px 24px;
    background: var(--paper);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--ink-2); }
.card-k {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}
.card-econ { border-top: 2px solid var(--accent); }

/* ── pricing ─────────────────────────────────────── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 48px; align-items: stretch;
}
.price-card {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 30px 26px; background: var(--paper);
    display: flex; flex-direction: column;
}
.price-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    position: relative;
}
.price-badge {
    position: absolute; top: -10px; left: 26px;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--paper); background: var(--accent);
    padding: 4px 10px; border-radius: 5px;
}
.price-tier {
    font-family: var(--display); font-weight: 600; font-size: 1.12rem;
    color: var(--ink);
}
.price-amount {
    font-family: var(--display); font-weight: 700;
    font-size: 2.2rem; line-height: 1; color: var(--ink);
    margin-top: 14px; letter-spacing: -0.02em;
}
.price-amount-text { font-size: 1.7rem; }
.price-period {
    font-family: var(--mono); font-size: 0.76rem; font-weight: 400;
    color: var(--ink-3); margin-left: 5px; letter-spacing: 0;
}
.price-tagline {
    font-size: 0.92rem; color: var(--ink-2);
    margin-top: 12px; min-height: 2.6em;
}
.check-list {
    list-style: none; margin: 0 0 26px; padding: 22px 0 0;
    margin-top: 22px; border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 11px;
}
.check-list li {
    font-size: 0.9rem; color: var(--ink-2);
    padding-left: 24px; position: relative; line-height: 1.45;
}
.check-list li::before {
    content: ""; position: absolute; left: 1px; top: 0.34em;
    width: 11px; height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.btn-block { display: flex; width: 100%; margin-top: auto; }
.pricing-note {
    margin-top: 28px; font-size: 0.88rem; color: var(--ink-3);
    max-width: 52em;
}
.pricing-note strong { color: var(--ink-2); }

@media (max-width: 860px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ── split (structural model) ────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
    font-size: 0.96rem; color: var(--ink-2);
    padding-left: 22px; position: relative;
}
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.feature-list strong { color: var(--ink); }

.codeframe {
    background: #14181f; border: 1px solid #262c36; border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 24px 64px -28px rgba(14, 17, 22, 0.4);
    overflow-x: auto;
}
.codeframe-title {
    font-family: var(--mono); font-size: 0.74rem; color: #e8ebf0;
    margin-bottom: 14px;
}
.codeframe pre { margin: 0; }
.codeframe code {
    font-family: var(--mono); font-size: 0.76rem; line-height: 1.85;
    color: #aab2bf; white-space: pre;
}
.c-dir { color: #5d6675; }
.c-cm { color: #5d6675; }

/* ── playbooks ───────────────────────────────────── */
.pb-group { margin-top: 52px; }
.pb-h {
    font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: none; }
.pb { background: var(--paper); padding: 20px 22px; }
.sec-alt .pb { background: var(--paper-2); }
.pb h4 { font-family: var(--display); font-size: 0.96rem; font-weight: 600; margin-bottom: 7px; }
.pb p { font-size: 0.86rem; color: var(--ink-3); }

/* ── steps ───────────────────────────────────────── */
.steps {
    list-style: none; counter-reset: step;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: 48px;
}
.steps li {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 24px; background: var(--paper);
}
.step-n {
    font-family: var(--mono); font-size: 0.74rem; color: var(--accent-ink);
    display: inline-flex; width: 26px; height: 26px;
    border: 1px solid var(--line); border-radius: 50%;
    align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 0.9rem; color: var(--ink-2); }

/* ── table ───────────────────────────────────────── */
.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 720px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
    background: var(--paper-2);
}
.th-sub { display: block; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 0.68rem; margin-top: 2px; }
tbody td:first-child { font-weight: 600; width: 22%; }
tbody td:nth-child(2) { color: var(--ink); width: 42%; }
tbody td:nth-child(3) { color: var(--ink-3); }
tbody tr:last-child td { border-bottom: none; }
tr.concede td:nth-child(2) { color: var(--ink-3); }
tr.concede td:nth-child(3) { color: var(--ink); }

/* ── download band ───────────────────────────────── */
.dl { background: var(--ink); color: var(--paper); padding: 104px 0; }
.dl h2 { color: var(--paper); }
.dl-sub { color: #b7bdc9; margin-top: 18px; max-width: 38em; font-size: 1.05rem; }
.dl .hero-ctas { margin-top: 34px; }
.dl-note { font-family: var(--mono); font-size: 0.76rem; color: #7d8694; margin-top: 22px; }

/* ── footer ──────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { font-family: var(--display); font-weight: 700; }
.foot-line { font-size: 0.85rem; color: var(--ink-3); margin-top: 4px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 0.86rem; color: var(--ink-3); }
.foot-links a:hover { color: var(--ink); }
.foot-base {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: 44px; padding-top: 18px; padding-bottom: 24px;
    font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3);
}

/* ── reveal motion (information, not decoration) ─── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────────── */
@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    /* flatten the 3D tilt when the deck is full-width so nothing clips */
    .scene { transform: rotateX(3deg) rotateY(-6deg); animation: none; }
    .f-uc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .sec { padding: 72px 0; }
    .grid-3, .steps { grid-template-columns: 1fr; }
    .scene { transform: none; }
    .f-uc { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .wrap { padding: 0 20px; }
}

/* ── problem → answer rows ───────────────────────── */
.pain { margin-top: 48px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pain-row {
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.pain-row:last-child { border-bottom: none; }
.pain-p, .pain-s { padding: 26px 28px; }
.pain-p { border-right: 1px solid var(--line); background: var(--paper); }
.pain-s { background: var(--paper-2); }
.pain-tag {
    display: inline-block;
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 12px;
}
.pain-tag.ok { color: var(--accent-ink); }
.pain-p h3 { color: var(--ink); margin-bottom: 8px; }
.pain-s h3 { color: var(--ink); margin-bottom: 8px; }
.pain-p p { font-size: 0.92rem; color: var(--ink-3); }
.pain-s p { font-size: 0.92rem; color: var(--ink-2); }
.pain-s { position: relative; }
.pain-s::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--accent);
}
@media (max-width: 760px) {
    .pain-row { grid-template-columns: 1fr; }
    .pain-p { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ── playbook anatomy — three layers (tools · knowledge · loop) ── */
.pb-anatomy { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
/* as the lead under the Features heading — part of the explanation, not a
   stuck-out block at the bottom */
.pb-anatomy-lead { margin-top: 30px; margin-bottom: 12px; border-top: none; padding-top: 0; }
.pchips-lib { margin-top: 30px; }
.pb-frame {
    position: relative;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--paper);
    padding: 32px 22px 24px;
    max-width: 760px;
    display: flex; flex-direction: column; gap: 14px;
}
.pb-frame-tag {
    position: absolute; top: -10px; left: 20px;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent-ink);
    background: var(--paper); padding: 0 8px;
}
.pb-layer {
    border: 1px solid var(--line); border-radius: 11px;
    background: var(--paper-2); padding: 13px 15px 15px;
}
.pb-llabel {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.13em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.pb-llabel svg { width: 14px; height: 14px; color: var(--accent); }

/* tools — icon-only tiles */
.pb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-tile {
    width: 40px; height: 40px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: var(--paper);
    color: var(--ink-2); transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.pb-tile:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.pb-tile svg { width: 19px; height: 19px; }

/* knowledge — icon + label tiles */
.pb-know { gap: 8px; }
.pb-ktile {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: var(--paper);
    border-radius: 9px; padding: 8px 12px;
    font-size: 0.84rem; color: var(--ink-2);
}
.pb-ktile svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* execution loop — steps with SI/AI toggle */
.pb-exec { background: color-mix(in srgb, var(--accent) 4%, var(--paper-2)); }
.pb-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pb-step {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--line); background: var(--paper);
    border-radius: 8px; padding: 6px 10px;
    font-size: 0.82rem; font-weight: 500; color: var(--ink);
}
.pb-step b {
    font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
    width: 16px; height: 16px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--paper-2); color: var(--ink-3);
}
.pb-step i {
    font-style: normal; font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.06em; padding: 2px 5px; border-radius: 4px;
}
.pb-step i.si { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pb-step i.ai { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pb-conn { width: 10px; height: 1px; background: var(--ink-3); opacity: 0.4; flex: none; }
.pb-exec-note { margin-top: 12px; font-size: 0.78rem; color: var(--ink-3); line-height: 1.7; }
.pb-exec-note i {
    font-style: normal; font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
    padding: 1px 5px; border-radius: 4px; margin-right: 2px;
}
.pb-exec-note i.si { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pb-exec-note i.ai { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (max-width: 600px) {
    .pb-conn { display: none; }
}

/* ── playbook library chips ──────────────────────── */
.pblib { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.pblib-h {
    font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 16px;
}
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchips span {
    font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2);
    border: 1px solid var(--line); border-radius: 6px;
    padding: 5px 11px; background: var(--paper);
}
