/*
 * Isotherm — marketing site.
 *
 * Same survey-sheet language as the dashboard (it loads isotherm.css first), with the type scale
 * opened up for reading. The rule still holds: colour means temperature. The only chromatic thing
 * on this whole site is the heat itself.
 */

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-2);
    border: 0;
}
.site-nav a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.site-nav a.btn { color: var(--ink-2); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }

/* ── Hero ─────────────────────────────────────────────────────────────────
   The thesis, stated once. The headline is the finding the product exists to surface, not a
   category description — "analytics for admin panels" tells you nothing you did not already
   suspect about a heatmap tool. */

.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero h1 {
    font-family: var(--sans);
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 500;
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.12;
    margin: 14px 0 20px;
}
.hero .lede { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero .cta .note { font-size: 12.5px; color: var(--ink-3); }

/* The live demo: a mock admin panel with a real canvas heatmap drawn over it. */
.demo {
    position: relative;
    border: 1px solid var(--ink);
    background: #fff;
    padding: 8px;
}
.demo::before {
    content: "";
    position: absolute; inset: 3px;
    border: 1px solid var(--ink);
    pointer-events: none; z-index: 3;
}
.demo-stage { position: relative; }
.demo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.demo-legend {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-3); margin-top: 10px; padding: 0 4px;
}
.demo-legend .bar {
    flex: 1; height: 6px; border: 1px solid var(--rule);
    background: linear-gradient(90deg, var(--t-cold), var(--t-cool), var(--t-mid), var(--t-warm), var(--t-hot));
}

/* The mock panel underneath. Deliberately plain — it is scenery, not the point. */
.mock { font-size: 10px; color: #1f2430; background: #f6f7f9; border: 1px solid #e5e7eb; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.mock-bar .field { flex: 1; height: 20px; background: #f1f2f4; border: 1px solid #e2e4e8; }
.mock-bar .b { padding: 4px 10px; border-radius: 3px; font-weight: 600; }
.mock-bar .b.primary { background: #2563eb; color: #fff; }
.mock-bar .b.ghost { background: #e5e7eb; color: #4b5563; }
.mock-row { display: grid; grid-template-columns: 1fr 1.4fr .8fr .6fr; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #eef0f2; background: #fff; }
.mock-row.head { background: #fbfbfc; color: #6b7280; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.mock-row .pill { display: inline-block; padding: 1px 6px; border-radius: 9px; font-size: 9px; background: #dcfce7; color: #166534; }
.mock-row .pill.pending { background: #fef3c7; color: #92400e; }
.mock-row .edit { justify-self: end; padding: 2px 8px; border: 1px solid #d1d5db; border-radius: 3px; background: #fff; }

/* ── Findings: the three things it surfaces ───────────────────────────── */

.findings { display: grid; gap: 20px; }
@media (min-width: 860px) { .findings { grid-template-columns: repeat(3, 1fr); } }

.finding { background: var(--sheet); border: 1px solid var(--rule); padding: 22px; }
.finding .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.finding h3 {
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 10px; display: flex; align-items: center;
}
.finding p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ── Section headings ─────────────────────────────────────────────────── */

.section-head { margin-bottom: 32px; max-width: 62ch; }
.section-head h2 {
    font-family: var(--sans); text-transform: none; letter-spacing: -0.015em;
    font-weight: 500; font-size: 24px; line-height: 1.25; color: var(--ink); margin: 10px 0 12px;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 14.5px; line-height: 1.6; }

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--ink); padding-top: 14px; }
.step h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }

/* ── Blog ─────────────────────────────────────────────────────────────── */

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list li:first-child { border-top: 1px solid var(--rule); }
.post-list a.post-link { display: block; padding: 22px 0; border: 0; }
.post-list a.post-link:hover { border: 0; }
.post-list a.post-link:hover h3 { text-decoration: underline; text-decoration-color: var(--rule); }
.post-list h3 {
    font-family: var(--sans); text-transform: none; letter-spacing: -0.01em;
    font-weight: 500; font-size: 18px; margin: 0 0 6px; color: var(--ink);
}
.post-list p { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; max-width: 70ch; }
.post-meta {
    font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── Article ──────────────────────────────────────────────────────────── */

article.post { padding: 56px 0 72px; }
article.post header { margin-bottom: 36px; }
article.post h1 {
    font-family: var(--sans); text-transform: none; letter-spacing: -0.02em;
    font-weight: 500; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 12px 0 14px;
}
article.post .summary { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 16px; }

.post-body { font-size: 15.5px; line-height: 1.72; color: var(--ink); }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
    font-family: var(--sans); text-transform: none; letter-spacing: -0.01em;
    font-weight: 500; font-size: 21px; color: var(--ink); margin-top: 2.2em; margin-bottom: .6em;
    padding-top: .5em; border-top: 1px solid var(--graticule);
}
.post-body h3 {
    font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-2); margin-top: 1.9em; margin-bottom: .5em;
}
.post-body p { margin: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-body strong { font-weight: 600; }
.post-body code {
    font-family: var(--mono); font-size: .88em;
    background: var(--sheet-sunk); padding: 1px 5px; border: 1px solid var(--rule);
}
.post-body pre {
    font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
    background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--ink);
    padding: 16px; overflow-x: auto;
}
.post-body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.post-body blockquote {
    margin: 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--t-warm);
    color: var(--ink-2);
}
.post-body table { font-size: 13.5px; }
.post-body img { max-width: 100%; height: auto; }

/* Heading anchors: how a reader shares the one paragraph that answered their question — and how a
   model cites a passage rather than a page. Visible on hover, never in the way. */
.post-body .anchor {
    border: 0; color: var(--ink-3); opacity: 0; margin-left: .4em;
    font-weight: 400; text-decoration: none;
}
.post-body h2:hover .anchor, .post-body h3:hover .anchor, .anchor:focus { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--ink); background: var(--sheet); margin-top: 0; }
.footer-inner {
    max-width: 1080px; margin: 0 auto; padding: 32px 28px;
    display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap;
}
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner nav a {
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-3); border: 0;
}
.footer-inner nav a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
