/* =====================================================================
   Layout — the page's own rhythm.

   One product window, a quiet band of marks, a rail where the product
   changes as you read past it, then editorial blocks. No alternating
   two-column pattern, no eyebrows, no numbered cards.
   ===================================================================== */

/* ---------- Type: smaller, tighter, calmer ---------- */
.hero-title { font-size: clamp(2.5rem, 6.1vw, 4.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: var(--space-lg); }
.hero-line-accent { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-cyan); }
.hero-subtitle { font-size: 1.0625rem; line-height: 1.62; color: var(--text-secondary); max-width: 52ch; margin: 0 auto var(--space-xl); }
.hero-badge { font-size: 12.5px; padding: 6px 14px; }
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: var(--space-md); text-wrap: balance; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 48ch; margin-left: auto; margin-right: auto; }
.deep-dive-text, .feature-list-item, .step-desc, .why-list p { font-size: 0.9375rem; line-height: 1.6; }
.cta-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.cta-subtitle { font-size: 1rem; max-width: 42ch; margin-left: auto; margin-right: auto; }
.btn { font-size: 0.9375rem; }
.btn-large { font-size: 0.9375rem; padding: 13px 22px; }
.section-label { display: none; }            /* the heading carries it */

/* ---------- Hero: the window is the argument ---------- */
/* The header floats over the hero, so the padding is the gap. 35 px was
   half of what every other page leaves. */
.hero { padding-top: 170px; padding-bottom: var(--space-4xl); }
.hero-content { position: relative; }
.hero-visual { margin-top: var(--space-xl); perspective: none; }
.hero-stage {
    position: relative;
    width: 100%;
}
.hero-stage::after {
    content: "";
    position: absolute;
    left: 6%; right: 6%; bottom: -30px; height: 120px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(34, 211, 238, 0.22), transparent 70%);
    filter: blur(28px);
    z-index: -1;
}
.hero-stage .appui { border-radius: 16px; }
@media (max-width: 640px) { .hero { padding-top: 130px; } }

/* ---------- Platform marks: one quiet line that drifts ---------- */
.marks { padding: var(--space-2xl) 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.marks-label { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-lg); letter-spacing: 0.02em; }
.marks-track { display: flex; width: max-content; gap: 56px; animation: marks 46s linear infinite; will-change: transform; }
.marks:hover .marks-track { animation-play-state: paused; }
@keyframes marks { to { transform: translateX(-50%); } }
.marks-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marks-item { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.9375rem; white-space: nowrap; }
.marks-item img { width: 19px; height: 19px; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .marks-track { animation: none; } .marks-viewport { mask-image: none; -webkit-mask-image: none; } }

/* ---------- Pillars: one stage beside the reading, the product changes on it ---------- */
.pillars { padding: var(--space-4xl) 0; }
.pillars-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.pillars-steps { grid-column: 1; }
.pillars-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 5vh 0; max-width: 34ch; }
.pillars-step h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700; letter-spacing: -0.038em; line-height: 1.06;
    margin: 0 0 var(--space-lg);
    text-wrap: balance;
}
.pillars-step p {
    color: var(--text-secondary);
    font-size: 1.0625rem; line-height: 1.68;
    margin: 0 0 var(--space-2xl);
    max-width: 38ch;
}
.pillars-facts { list-style: none; margin: 0; padding: 0; }
.pillars-facts li {
    padding: 13px 0;
    border-top: 1px solid var(--hairline);
    font-size: 0.9375rem; line-height: 1.5;
    color: var(--text-muted);
}
.pillars-facts li:last-child { border-bottom: 1px solid var(--hairline); }
.pillars-inline { display: none; }

.pillars-rail { grid-column: 2; position: sticky; top: 14vh; height: 72vh; display: grid; align-items: center; }
.pillars-panel {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
    pointer-events: none;
    will-change: opacity, transform;
}
.pillars-panel.is-on { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .pillars-grid { grid-template-columns: minmax(0, 1fr); }
    .pillars-steps, .pillars-rail { grid-column: 1; }
    .pillars-rail { display: none; }
    .pillars-step { min-height: 0; padding: 0 0 var(--space-4xl); max-width: none; }
    .pillars-inline { display: block; margin-top: var(--space-xl); }
}
@media (prefers-reduced-motion: reduce) { .pillars-panel { transition: opacity 0.2s linear; transform: none; } }

/* ---------- Start: a line, not three cards ---------- */
.start { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.start-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-3xl); }
.start-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.start-head a { color: var(--accent-cyan); font-size: 0.9375rem; }
.start-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.start-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: linear-gradient(90deg, var(--accent-cyan), rgba(59, 130, 246, 0.5) 60%, transparent); }
.start-item { position: relative; padding-top: 28px; }
.start-item::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-deep); border: 2px solid var(--accent-cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); }
.start-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.start-item p { margin: 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; max-width: 30ch; }
@media (max-width: 720px) {
    .start-track { grid-template-columns: 1fr; gap: var(--space-xl); }
    .start-track::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent-cyan), transparent); }
    .start-item { padding-top: 0; padding-left: 28px; }
    .start-item::before { top: 3px; }
}

/* ---------- Why: editorial, no boxes ---------- */
.why { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.why-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); }
.why-statement h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.why-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
.why-list li i { display: none; }
.why-list h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 3px; }
.why-list p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
@media (min-width: 900px) { .why-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } .why-list li:nth-child(-n+2) { border-top: 0; } .why-list li:last-child { border-bottom: 0; } .why-list li:nth-child(3) { border-bottom: 0; } }

/* ---------- Proof: quotes on a rule, not in cards ---------- */
.proof { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 800px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-quote p { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); margin: 0 0 var(--space-lg); }
.proof-by { display: flex; align-items: center; gap: 12px; }
.proof-by img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.proof-by strong { display: block; font-size: 0.875rem; font-weight: 600; }
.proof-by span { font-size: 0.8125rem; color: var(--text-muted); }

/* ---------- Deep dives that remain (other pages): aligned columns ---------- */
.deep-dive-grid { align-items: center; }
.deep-dive { padding: var(--space-4xl) 0; }

/* ---------- Inner pages: one calm opening ---------- */
/* One hero for every page but the home page, on the pricing page's rhythm. */
.page-top { position: relative; padding: calc(var(--space-5xl) + 80px) 0 var(--space-4xl); overflow: hidden; }
.page-top-content { max-width: 830px; margin: 0 auto; text-align: center; }
.page-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.032em; margin: 0 0 var(--space-lg); }
.page-title-accent { color: var(--accent-cyan); }
.page-lead { font-size: var(--font-size-lg); line-height: 1.65; color: var(--text-secondary); margin: 0 auto; }
.page-lead a { color: var(--accent-cyan); }
.page-top .hero-cta { opacity: 1; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: var(--space-xl); }
@media (max-width: 640px) { .page-top { padding-top: 120px; padding-bottom: var(--space-2xl); } }

/* ---------- A night, on one line ---------- */
.night { padding: var(--space-3xl) 0 var(--space-4xl); }
.night-head { display: flex; align-items: baseline; gap: var(--space-lg); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.night-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.night-head span { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.night-track {
    position: relative;
    list-style: none; margin: 0 0 var(--space-3xl); padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px);
}
.night-track::before {
    content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
    background: linear-gradient(90deg, var(--fg-emerald) 0%, var(--fg-emerald) 38%, var(--danger) 52%, var(--fg-amber) 66%, var(--fg-emerald) 88%, transparent);
    opacity: 0.55;
}
.night-step { position: relative; padding-top: 44px; }
.night-step::before {
    content: ""; position: absolute; left: 0; top: 18px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg-deep); border: 2px solid var(--fg-emerald); box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}
.night-step.is-bad::before { border-color: var(--danger); box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
.night-step.is-warn::before { border-color: var(--fg-amber); box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
.night-step time { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.night-step h3 { font-size: 0.9375rem; font-weight: 600; margin: 0 0 5px; letter-spacing: -0.01em; }
.night-step p { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 860px) {
    .night-track { grid-template-columns: 1fr; gap: var(--space-lg); }
    .night-track::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--fg-emerald), var(--danger) 55%, var(--fg-amber) 70%, var(--fg-emerald)); }
    .night-step { padding: 0 0 0 30px; }
    .night-step::before { top: 4px; }
    .night-step time { position: static; display: block; margin-bottom: 2px; }
}

/* ---------- Split: a panel and a short column, aligned ---------- */
.split { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.split-alt { background: var(--w012); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-grid-reverse { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr); }
.split-text h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 var(--space-lg); text-wrap: balance; }
.split-text p { font-size: 1.0625rem; line-height: 1.68; color: var(--text-secondary); margin: 0 0 var(--space-2xl); max-width: 38ch; }
@media (max-width: 900px) {
    .split-grid, .split-grid-reverse { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
    .split-grid-reverse .split-text { order: -1; }
}

/* ---------- Cases: four short facts, no boxes ---------- */
.cases { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.cases-head { margin-bottom: var(--space-2xl); }
.cases-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 10px; }
.cases-head p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.case { padding: var(--space-lg) 0; border-top: 1px solid var(--hairline); }
.case strong { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 5px; }
.case p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); max-width: 46ch; }
@media (max-width: 800px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- Who and what, before anything deeper ---------- */
.hero-for { margin: var(--space-lg) auto 0; max-width: 52ch; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; }
.define { padding: var(--space-3xl) 0 var(--space-4xl); }
.define-statement {
    text-wrap: balance;
    max-width: 22ch;
    margin: 0 0 var(--space-2xl);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.038em;
    line-height: 1.1;
    color: var(--text-primary);
}
.define-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.define-item { padding-top: var(--space-md); border-top: 1px solid var(--w14); }
.define-item h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.define-item p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); max-width: 34ch; }
.define-foot { margin: var(--space-2xl) 0 0; font-size: 0.875rem; color: var(--text-muted); }
.define-foot a { color: var(--accent-cyan); }
@media (max-width: 800px) {
    .define { padding: var(--space-3xl) 0; }
    .define-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .define-item { padding: var(--space-md) 0; }
    .define-item p { max-width: none; }
    .define-statement { max-width: none; margin-bottom: var(--space-xl); }
    .define-foot { margin-top: var(--space-xl); }
}
.why-statement p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin: var(--space-md) 0 0; max-width: 32ch; }

/* ---------- Changelog ---------- */

.log { padding: var(--space-2xl) 0 var(--space-5xl); }
.log-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3xl); }
.log-filter a { display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--hairline);
    font-size: 0.8125rem; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.log-filter a:hover { color: var(--text-primary); border-color: var(--text-muted); }
.log-filter a.is-on { color: var(--accent-cyan); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }

.log-list { list-style: none; margin: 0; padding: 0; }
.log-item {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--hairline);
}
.log-item:last-child { border-bottom: 1px solid var(--hairline); }
.log-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.log-version {
    font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
    color: var(--text-primary); letter-spacing: -0.02em; text-decoration: none;
    line-height: 1.3; overflow-wrap: anywhere; text-wrap: balance;
}
.log-version:hover { color: var(--accent-cyan); }
.log-meta time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.log-product { display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 999px;
    border: 1px solid var(--hairline);
    font-size: 0.6875rem; color: var(--text-secondary);
}
.log-headline { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 var(--space-md); line-height: 1.3; }
.log-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.log-entries li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.log-kind {
    justify-self: start;
    padding: 2px 8px; border-radius: 5px;
    font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
    letter-spacing: 0.02em; text-transform: lowercase;
    background: var(--w05); color: var(--text-muted);
}
.log-kind--added { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.log-kind--improved { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }
.log-kind--fixed { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.log-kind--security { background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.log-kind--removed { background: var(--w06); color: var(--text-muted); }
.log-text { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.log-empty { color: var(--text-muted); }
@media (max-width: 720px) {
    .log-item { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xl) 0; }
    .log-meta { flex-direction: row; align-items: center; gap: 10px; }
    .log-entries li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .log-kind { justify-self: start; }
}

/* ---------- Contact ---------- */
.write { padding: var(--space-2xl) 0 var(--space-5xl); }
.write-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .write-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--space-md); }
.field > span { font-size: 0.8125rem; color: var(--text-secondary); }
.field > span em { font-style: normal; color: var(--text-muted); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--hairline);
    background: var(--bg-surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--w16); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-cyan); background: var(--bg-elevated); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--danger); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.write-actions { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-lg); }
.write-note { margin: 0; font-size: 0.8125rem; color: var(--text-muted); max-width: 34ch; }
.write-status { margin: var(--space-lg) 0 0; font-size: 0.9375rem; min-height: 1.4em; }
.write-status.is-ok { color: var(--success); }
.write-status.is-bad { color: var(--danger); }
form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

.write-aside h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--space-md); }
.write-links { list-style: none; margin: 0 0 var(--space-2xl); padding: 0; }
.write-links a { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; border-top: 1px solid var(--hairline); color: var(--text-primary); font-size: 0.9375rem; text-decoration: none; }
.write-links li:last-child a { border-bottom: 1px solid var(--hairline); }
.write-links a em { font-style: normal; font-size: 0.8125rem; color: var(--text-muted); }
.write-links a:hover { color: var(--accent-cyan); }
.write-facts { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.write-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.write-facts dt { color: var(--text-muted); }
.write-facts dd { margin: 0; color: var(--text-secondary); text-align: right; }
.write-facts a { color: var(--accent-cyan); }

/* Fields that appear with the topic */
.field-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-md); }
@media (max-width: 620px) { .field-extras { grid-template-columns: minmax(0, 1fr); } }
.field-extra { animation: field-in 0.35s var(--ease-out) both; }
.field-extra[hidden] { display: none !important; }
@keyframes field-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .field-extra { animation: none; } }

/* --- Pricing: the plan calculator ------------------------------------- */
.calc-section { padding: var(--space-3xl) 0; }
.calc-lead { max-width: 46ch; margin: 0 0 2.5rem; font-size: 1.0625rem; line-height: 1.68; color: var(--fg-text-secondary, #a9b8ca); }
.calc-section h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 0.75rem; }

.calc { width: 100%; overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.calc-side { border-right: 1px solid var(--fg-border); }
.calc-fields { display: flex; flex-direction: column; gap: 22px; padding: 22px 20px 26px; }
.calc-field { display: block; }
.calc-label {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 12.5px; color: var(--fg-text-secondary);
    margin-bottom: 11px;
}
.calc-label output { margin-left: auto; font-family: var(--fg-mono); font-size: 13px; color: var(--fg-text-primary); }

.calc-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 999px; outline: none; cursor: pointer;
    background: linear-gradient(to right, var(--fg-accent) 0 var(--fill, 20%), var(--w09) var(--fill, 20%) 100%);
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--panel); border: 2px solid var(--fg-accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.calc-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--fg-accent); }
.calc-range:focus-visible { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); }

.calc-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 10px; background: var(--k3); border: 1px solid var(--fg-border); }
.calc-seg button {
    appearance: none; border: 0; cursor: pointer;
    padding: 7px 4px; border-radius: 7px;
    font: inherit; font-size: 12px; line-height: 1.2;
    background: transparent; color: var(--fg-text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}
.calc-seg button:hover { color: var(--fg-text-secondary); }
.calc-seg button.is-on { background: var(--fg-accent-wash); color: var(--fg-accent-text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.28); }

.calc-out { display: flex; flex-direction: column; }
.calc-plan { display: flex; align-items: baseline; gap: 12px; padding: 20px 20px 16px; }
.calc-plan-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.calc-plan-price { margin-left: auto; display: flex; align-items: baseline; gap: 4px; font-family: var(--fg-mono); font-size: 13px; color: var(--fg-text-muted); }
.calc-plan-price b { font-family: var(--font-family); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--fg-text-primary); }
.calc-plan-price em { font-style: normal; }

.calc-meters { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 4px; }
.calc-meter-top { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--fg-text-secondary); margin-bottom: 7px; }
.calc-meter-top em { margin-left: auto; font-style: normal; font-family: var(--fg-mono); font-size: 11.5px; color: var(--fg-text-muted); }
.calc-meter-top b { color: var(--fg-text-primary); font-weight: 500; }
.calc-bar { display: block; height: 4px; border-radius: 999px; background: var(--w07); overflow: hidden; }
.calc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--fg-accent); transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease; }
.calc-meter.is-tight .calc-bar i { background: var(--fg-warning); }
.calc-meter.is-over .calc-bar i { background: var(--fg-danger); }

.calc-note { margin: 16px 20px 0; font-size: 12.5px; line-height: 1.6; color: var(--fg-text-muted); min-height: 2.4em; }
.calc-cta { margin: 14px 20px 0; justify-content: center; }
.calc-fine { margin: 12px 20px 20px; font-size: 11.5px; line-height: 1.55; color: var(--fg-text-muted); }

@media (max-width: 820px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-side { border-right: 0; border-bottom: 1px solid var(--fg-border); }
    .calc-seg { grid-template-columns: repeat(2, 1fr); }
    .calc-plan { padding-top: 18px; }
}

@media (max-width: 440px) {
    .calc-meter-top { font-size: 12px; }
    .calc-meter-top em { font-size: 11px; }
    .calc-plan-price em { display: none; }
}

/* --- Autopilot: the night in one surface, and the fleet --------------- */
.night-card .night-track { padding: 26px 22px 22px; margin: 0; }
.night-card .night-track::before { left: 22px; right: 22px; top: 49px; }
.night-card .night-rows { border-top: 1px solid var(--hairline); }
.night-head h2 { margin-bottom: 2px; }

.split-wide .split-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); align-items: center; }
.split-panel { min-width: 0; padding: 0; display: block; }

.fleet { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.fleet-head { margin-bottom: var(--space-2xl); }
.fleet-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 10px; }
.fleet-head p { margin: 0; max-width: 54ch; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }

.case-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.case-top strong { margin: 0; }
.case-top em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 900px) { .split-wide .split-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .night-card .night-track { padding: 20px 14px; } .night-card .night-track::before { left: 19px; right: auto; top: 26px; bottom: 26px; } }

/* --- Navigation: the page you are on ---------------------------------- */
.nav-link.is-current { color: var(--text-primary); }
.nav-link.is-current::after {
    width: 100%;
    background: var(--accent-cyan, #22d3ee);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}
.mobile-nav-link.is-current {
    color: var(--text-primary);
    position: relative;
    padding-left: 14px;
}
.mobile-nav-link.is-current::before {
    content: "";
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 2px;
    background: var(--accent-cyan, #22d3ee);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

/* --- Facts that carry a name and a line ------------------------------- */
.facts-rich li { color: var(--text-muted); }
.facts-rich b { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); margin-bottom: 4px; }
.split-text .facts-rich { margin-top: var(--space-xl); }

/* --- Platforms: the code card and the three setup moves --------------- */
.code-card .code-body {
    margin: 0; padding: 18px;
    overflow-x: auto;
    font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
    color: var(--fg-accent-text, #67e8f9);
    background: var(--k28);
}
.code-card .code-body code { font: inherit; color: inherit; white-space: pre; }
.code-where { padding: 13px 18px; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); border-top: 1px solid var(--hairline); }
.code-where code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

.split-more { margin-top: var(--space-lg); font-size: 0.875rem; color: var(--text-muted); }
.split-more a { color: var(--accent-cyan); }

.setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.setup li { position: relative; padding-top: 22px; border-top: 1px solid var(--hairline); }
.setup-dot { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.55); }
.setup strong { display: block; font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.setup em { font-style: normal; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 800px) { .setup { grid-template-columns: 1fr; gap: 24px; } }

/* --- A band: claim and facts on one row, the panel wide underneath ---- */
.band { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.band-alt { background: var(--w012); }
.band-top {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    margin-bottom: var(--space-2xl);
}
.band-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 var(--space-md); text-wrap: balance; }
.band-head p { margin: 0; font-size: 1.0625rem; line-height: 1.68; color: var(--text-secondary); max-width: 40ch; }
.band-head .split-more { margin-top: var(--space-lg); font-size: 0.875rem; }

.band-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 60px); }
.band-facts li:last-child { border-bottom: 0; }
.band-facts li:nth-last-child(-n+2) { border-bottom: 1px solid var(--hairline); }

@media (max-width: 900px) {
    .band-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
    .band-facts { grid-template-columns: minmax(0, 1fr); }
    .band-facts li:nth-last-child(-n+2) { border-bottom: 0; }
    .band-facts li:last-child { border-bottom: 1px solid var(--hairline); }
}

/* --- The fork: what Flowguard may do on which kind of site ------------ */
.fork { padding: var(--space-4xl) 0; border-top: 1px solid var(--hairline); }
.fork-head { max-width: 54ch; margin-bottom: var(--space-2xl); }
.fork-head h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 var(--space-md); }
.fork-head p { margin: 0; font-size: 1.0625rem; line-height: 1.68; color: var(--text-secondary); }

.fork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.fork-card {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--w09);
    border-radius: 16px;
    background: var(--w022);
}
.fork-card--wp { border-color: rgba(34, 211, 238, 0.32); background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), var(--w022) 55%); }
.fork-kind { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); margin-bottom: 10px; }
.fork-card h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
.fork-card > p { margin: 0 0 var(--space-lg); font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.fork-card ul { list-style: none; margin: 0; padding: 0; }
.fork-card li { padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 0.875rem; line-height: 1.55; color: var(--text-muted); }
.fork-link { display: inline-block; margin-top: var(--space-lg); font-size: 0.875rem; color: var(--accent-cyan); }

@media (max-width: 800px) { .fork-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- FAQ: one filter, plain sections --------------------------------- */
.faq-filter { margin-bottom: var(--space-2xl); }
.faq-filter input {
    width: min(420px, 100%);
    padding: 11px 14px;
    font: inherit; font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--w03);
    border: 1px solid var(--fg-border);
    border-radius: 10px;
    outline: none;
}
.faq-filter input::placeholder { color: var(--text-muted); }
.faq-filter input:focus { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12); }
.faq-category + .faq-category { margin-top: var(--space-3xl); }
.faq-category .category-header { margin-bottom: var(--space-lg); }
.faq-category .category-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.faq-category .category-desc { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.faq-empty { margin-top: var(--space-2xl); color: var(--text-muted); font-size: 0.9375rem; }
.faq-category .category-header { text-align: left; }
.faq-content .faq-items { max-width: none; }

/* What went wrong, next to the field it went wrong in. */
.field > span.field-err { font-size: 0.8125rem; color: var(--danger); }
.field.is-bad select { border-color: var(--danger); }

.field-consent {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--space-lg);
}
.field-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent-primary); }
.field-consent > span { flex: 1 1 0; min-width: 0; font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.55; }
.field-consent a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.field-consent > span.field-err { flex: 0 0 100%; margin-top: -2px; padding-left: 27px; }
.field-consent.is-bad > span { color: var(--text-primary); }

.log-wp { width: 13px; height: 13px; flex: 0 0 auto; opacity: 0.6; }
.log-filter a:hover .log-wp, .log-filter a.is-on .log-wp { opacity: 0.95; }

/* The code step in the developer panel: a little syntax colour, no library. */
.code-step {
    margin: 0;
    padding: 16px 18px;
    max-height: 340px;
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.75;
    color: var(--text-secondary);
    background: var(--k28);
    border-radius: 10px;
    white-space: pre;
    tab-size: 4;
}
.code-step code { font: inherit; color: inherit; white-space: pre; }
.code-step .c-k { color: var(--accent-cyan); }
.code-step .c-f { color: var(--text-primary); font-weight: 600; }
.code-step .c-s { color: var(--success); }
.code-step .c-c { color: var(--text-muted); font-style: italic; }

/* Newsletter: the form on the left, what you get on the right. */
.news-form { max-width: 620px; }
.news-what { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-lg); }
.news-what li { display: flex; flex-direction: column; gap: 5px; font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }
.news-what b { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }

/* Add-ons: three packs, the middle one carries the usual choice. */
.addon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
@media (max-width: 760px) { .addon-grid { grid-template-columns: minmax(0, 1fr); } }
.addon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-xl);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--w03);
}
.addon.is-featured { border-color: var(--accent-primary); background: var(--w06); }
.addon-runs { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.addon-unit { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.addon-price { margin-top: var(--space-md); font-size: 1.125rem; font-weight: 600; color: var(--accent-cyan); }
.addon p { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.55; color: var(--text-secondary); }
.addon-foot { margin-top: var(--space-lg); font-size: 0.8125rem; color: var(--text-muted); }
