/* Painted homepage (preview at /preview/painted, Nov 2026).
   The direction: old paintings of people at work or learning a craft, with
   the product UI laid over them, so every view shows the human work and the
   tool beside it. Scoped to body.painted so the live pages are untouched. */

.painted {
    --paper: #F6F2E9;
    --paper-2: #EFE9DC;
    --paper-ink: #1F2A24;
    --paper-line: #DDD5C4;
    --veil: rgba(246, 242, 233, 0.96);
    --veil-soft: rgba(246, 242, 233, 0.82);
    background: var(--paper);
    color: var(--paper-ink);
}
:root[data-theme="dark"] .painted {
    --paper: #121A16;
    --paper-2: #18221D;
    --paper-ink: #E8EFEA;
    --paper-line: #2A3A32;
    --veil: rgba(18, 26, 22, 0.95);
    --veil-soft: rgba(18, 26, 22, 0.78);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .painted {
        --paper: #121A16;
        --paper-2: #18221D;
        --paper-ink: #E8EFEA;
        --paper-line: #2A3A32;
        --veil: rgba(18, 26, 22, 0.95);
        --veil-soft: rgba(18, 26, 22, 0.78);
    }
}

.painted .section-tint { background: var(--paper-2); }
.painted .section-title { font-family: var(--font-display); font-weight: 400; color: var(--paper-ink); }
.painted .section-sub { color: var(--text-muted); }

/* ── Hero: the painting with the product on top ─────────────────────────── */
.p-hero { padding: 0 0 3rem; }
/* Full-bleed: the painting runs edge to edge; the copy and the chat sit on the
   page grid inside it. */
.p-canvas {
    position: relative;
    min-height: min(86vh, 760px);
    overflow: hidden;
    background: url(/static/painted/harvesters.webp) 70% 38% / cover no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 2.6rem;
}
.p-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--veil) 0%, var(--veil-soft) 34%, rgba(0, 0, 0, 0) 62%);
}
.p-inner { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; padding-top: 3rem; padding-bottom: 3rem; }
.p-copy { position: relative; z-index: 1; max-width: 560px; }
.p-copy h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    color: var(--paper-ink);
}
.p-copy h1 em { font-style: italic; color: var(--accent); }
.p-copy .hero-sub { font-size: 1.08rem; line-height: 1.65; color: var(--text-muted); }
.p-copy .hero-cta { margin-top: 1.6rem; }
.p-copy .hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.p-credit {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 10px;
    font-size: 0.7rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* A coaching exchange pinned to the painting: the product, in the scene. */
.p-chat {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    flex: 0 0 400px;
    width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 0.9rem;
    font-size: 0.84rem;
    line-height: 1.5;
}
.p-chat .p-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.p-mode { display: inline-block; font-size: 0.68rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; color: #fff; background: var(--accent); }
.p-mode.m-auto { background: #4B6B5C; }
.p-mode.m-aug { background: var(--accent-2); }
.p-mode.m-protect { background: #8A6D3B; }
.p-msg { padding: 0.6rem 0.75rem; border-radius: 12px; margin-top: 0.5rem; }
.p-msg.u { background: var(--accent-deep); color: #fff; margin-left: 2.2rem; border-bottom-right-radius: 4px; }
.p-msg.a { background: var(--surface-2); color: var(--text); margin-right: 1.2rem; border-bottom-left-radius: 4px; }

/* ── Painted cards (three behaviours) ───────────────────────────────────── */
.p-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.p-card .p-img { position: relative; height: 300px; border-radius: 4px; overflow: hidden; background-size: cover; background-position: center; }
.p-card .p-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text);
    box-shadow: var(--shadow-md);
}
.p-card .p-chip .p-mode { margin-bottom: 0.3rem; }
.p-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 1rem 0 0.35rem; color: var(--paper-ink); }
.p-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.p-card small, .p-small-credit { display: block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; }

/* ── Why: research over the gleaners ────────────────────────────────────── */
.p-why-img { height: 260px; border-radius: 4px; background: url(/static/painted/gleaners.webp) center 55% / cover no-repeat; margin-bottom: 1.6rem; }
.painted .step { background: var(--surface); }

@media (max-width: 860px) {
    .p-canvas { min-height: 0; background-position: 75% 30%; }
    .p-inner { flex-direction: column; align-items: stretch; padding-top: 2rem; }
    .p-canvas::after { background: linear-gradient(180deg, var(--veil) 0%, var(--veil-soft) 55%, rgba(0, 0, 0, 0) 100%); }
    .p-copy { padding: 0; }
    .p-chat { width: auto; flex: none; align-self: stretch; }
    .p-trio { grid-template-columns: 1fr; }
}

/* The marketing body paints its own background and a soft glow; on this page
   the paper is the ground everywhere. */
body.marketing.painted { background: var(--paper); }
.painted .section-title { line-height: 1.15; }
.painted .section-sub { line-height: 1.6; }

/* ── Real product screenshots, framed, over an offset painting ──────────── */
.p-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.2rem; align-items: center; }
.p-split-rev { grid-template-columns: 1.1fr 0.9fr; }
.p-shot { position: relative; margin: 0; padding: 2.4rem 0 0 2.4rem; }
.p-split-rev .p-shot { padding: 2.4rem 2.4rem 0 0; }
.p-shot-bg { position: absolute; inset: 0 3.2rem 3.2rem 0; border-radius: 4px; background-size: cover; }
.p-split-rev .p-shot-bg { inset: 0 0 3.2rem 3.2rem; }
.p-frame { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.p-frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.p-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.p-frame-bar em { font-style: normal; font-size: 0.72rem; color: var(--text-muted); margin-left: 8px; }
.p-frame img { display: block; width: 100%; height: auto; }
.p-shot figcaption { margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; }
.p-points { list-style: none; margin-top: 1.2rem; }
.p-points li { padding: 0.55rem 0; border-bottom: 1px solid var(--paper-line); color: var(--text-muted); }
.painted #reveal .section-title, .painted #leaders .section-title { text-align: left; }

@media (max-width: 860px) {
    .p-split, .p-split-rev { grid-template-columns: 1fr; gap: 1.6rem; }
    .p-split-rev .p-shot { order: 2; }
    .p-shot, .p-split-rev .p-shot { padding: 1.4rem 0 0 1.4rem; }
    .p-shot-bg, .p-split-rev .p-shot-bg { inset: 0 2rem 2rem 0; }
}

/* The product screenshots carry their own painting now, so the panel behind
   them is plain: a painting behind a painting reads as clutter. */
.p-shot-bg-plain { background: linear-gradient(140deg, var(--accent-soft), var(--paper-2)); }
/* ── Five levels as a spectrum ─────────────────────────────────────────── */
.m-spectrum { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.2rem 1.6rem 1rem; box-shadow: var(--shadow-md); }
.m-axis { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.8rem; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.m-axis-bar { display: flex; justify-content: space-between; gap: 1rem; }
.m-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.8rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--paper-line); }
.m-name b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--paper-ink); line-height: 1.1; }
.m-name span { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.m-name em { font-style: normal; font-size: 0.75rem; color: var(--accent); white-space: nowrap; }
.m-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.m-bar i { display: block; height: 100%; }
.m-ai { background: repeating-linear-gradient(135deg, var(--border-strong) 0 6px, var(--paper-2) 6px 12px); }
.m-you { background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }
.m-note { margin: 0.8rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--paper-line); font-size: 0.84rem; color: var(--text-muted); text-align: left; line-height: 1.55; }
.m-note em { font-style: normal; color: var(--accent); }
@media (max-width: 760px) {
    .m-spectrum { padding: 1.2rem 1.1rem; }
    .m-axis, .m-row { grid-template-columns: 1fr; gap: 0.6rem; }
    .m-axis > span:first-child { display: none; }
}
.m-key { display: inline-block; width: 18px; height: 8px; border-radius: 99px; vertical-align: 1px; margin: 0 0.4rem; }

/* ── Homepage cut (Nov 2026): profile and team side by side ── */
.p-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.p-duo-col .p-shot { margin: 0 0 1.4rem; }
.p-duo-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; color: var(--paper-ink); margin: 0; }
.p-duo-col .section-sub { margin-top: 0.7rem; }
.p-duo-link { margin: 1rem 0 0; font-weight: 600; }
.p-org { max-width: 820px; margin: 0 auto; padding: 2.4rem 2.2rem; }
.p-org h2 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 1.2rem; }
.p-org-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.p-org-link { color: #E7F2EC; text-decoration: underline; text-underline-offset: 3px; }
.p-quotes { columns: 3 280px; column-gap: 1rem; }
.p-quotes .quote { break-inside: avoid; margin: 0 0 1rem; }
.p-quotes .quote-text { font-size: 1rem; line-height: 1.5; }
@media (max-width: 860px) { .p-duo { grid-template-columns: 1fr; } }
