/* Pilot landing page (index.html / pilot.html). Builds on theme-new.css + agents.css tokens.
   Colour rule: --detect (aquamarine) = what the agent does; --human (dharma gold) = where a person decides. */

:root { --human: #8A6D35; --human-alpha: rgba(201, 167, 106, 0.16); }   /* gold darkened for 4.5:1 on light */
[data-theme="dark"] { --human: var(--dharma); --human-alpha: rgba(201, 167, 106, 0.12); }
.text-human { color: var(--human); }

/* ---------- Hero ---------- */
.offer-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.offer-chips li { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); padding: 0.375rem 0.75rem; border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--glass-bg-subtle); }
.offer-chips b { color: var(--detect); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-right: 0.25rem; }
.offer-chips li:last-child b { color: var(--human); }
.hero-actions .btn svg { margin-right: 0.375rem; vertical-align: -2px; }
.page-hero .console-body { min-height: 0; }
.page-hero .console-line { flex-wrap: wrap; }

.hero-sub { margin-top: 1rem; font-size: 0.9375rem; }
.hero-sub a { color: var(--detect); text-decoration: none; font-weight: 600; }
.hero-sub a:hover { text-decoration: underline; }

/* ---------- Cost of the problem ---------- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cost-card { padding: 1.5rem; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.cost-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--error-red); margin-bottom: 0.75rem; }
.cost-card h3 { font-size: 1.125rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.cost-card p { color: var(--text-secondary); line-height: 1.65; font-size: 0.9625rem; }

/* ---------- Cost calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.calc h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; color: var(--text-primary); margin: 0.5rem 0 0.875rem; }
.calc-inputs { display: grid; gap: 0.5rem; margin: 1.5rem 0 1rem; }
.calc-inputs label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); margin-top: 0.75rem; }
.calc-inputs output { font-family: var(--font-mono); color: var(--detect); font-weight: 500; }
.calc-inputs input[type="range"] { width: 100%; accent-color: var(--detect); }
.calc-out { display: grid; gap: 1rem; padding: 1.75rem; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass-bg-strong); box-shadow: var(--glass-shadow); }
.calc-row { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; padding-bottom: 0.875rem; border-bottom: 1px solid var(--border-light); }
.calc-row span { color: var(--text-secondary); font-size: 0.9375rem; }
.calc-row b { font-family: var(--font-heading); font-size: 1.375rem; color: var(--text-primary); text-align: right; }
.calc-row small { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.8125rem; }
.calc-row.calc-hero b { color: var(--detect); font-size: 1.75rem; }
.calc-multiple { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border: 1px solid var(--human); border-radius: var(--radius-md); background: var(--human-alpha); }
.calc-multiple b { font-family: var(--font-heading); font-size: 2rem; color: var(--human); line-height: 1; }
.calc-multiple span { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.calc-multiple strong { color: var(--text-primary); }
.calc-out .btn { justify-content: center; }
.calc-fine { color: var(--text-muted); font-size: 0.8125rem; margin: 0; text-align: center; }

/* ---------- Before / after in workflow panels ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.ba > div { padding: 1rem 1.125rem; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: var(--glass-bg-subtle); }
.ba b { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; margin-bottom: 0.375rem; }
.ba p { color: var(--text-secondary); line-height: 1.6; font-size: 0.9375rem; margin: 0; }
.ba-before b { color: var(--error-red); }
.ba-after { border-color: var(--detect) !important; }
.ba-after b { color: var(--detect); }

/* ---------- Value equation ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { padding: 1.5rem; border: 1px solid var(--glass-border); border-top: 3px solid var(--detect); border-radius: var(--radius-lg); background: var(--glass-bg); }
.value-k { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.625rem; }
.value-card h3 { font-size: 1.0625rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.value-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.9375rem; }

/* ---------- Guarantee (a commitment to the person deciding: gold) ---------- */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start; max-width: 900px; margin: 0 auto; padding: 2rem; border: 1px solid var(--human); border-radius: var(--radius-lg); background: var(--human-alpha); }
.guarantee-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--human); color: var(--human); }
.guarantee-seal svg { width: 32px; height: 32px; }
.guarantee .eyebrow { color: var(--human); }
.guarantee h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.2; color: var(--text-primary); margin: 0.5rem 0 0.875rem; }
.guarantee p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }

/* ---------- Offer stack + comparison ---------- */
.stack { list-style: none; padding: 0 !important; display: grid; gap: 0.875rem !important; }
.stack li { position: relative; padding-left: 1.75rem; display: grid; gap: 0.125rem; }
.stack li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--success-green); font-weight: 700; }
.stack b { color: var(--text-primary); font-size: 0.9625rem; }
.stack span { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.stack li:last-child b { color: var(--human); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare caption { text-align: left; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); padding-bottom: 0.5rem; }
.compare th, .compare td { text-align: left; padding: 0.625rem 0.5rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); vertical-align: top; }
.compare thead th { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; }
.compare tbody th { color: var(--text-primary); font-weight: 600; }
.compare a { color: var(--detect); }
.compare-us th, .compare-us td { color: var(--text-primary); background: var(--glass-bg-strong); font-weight: 600; }
.compare-us th { box-shadow: inset 3px 0 0 var(--detect); }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--glass-bg-subtle); padding: 1.25rem 0; }
.trust-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; line-height: 1.4; color: var(--text-secondary); text-decoration: none; }
.trust-item b { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-primary); white-space: nowrap; }
a.trust-item { color: var(--text-secondary); }
a.trust-item:hover span { color: var(--text-primary); }
.trust-logo img { height: 32px; width: auto; flex-shrink: 0; }

/* ---------- Use-case explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(240px, 0.8fr) 2fr; gap: 1.5rem; align-items: start; }
.explorer-list { display: grid; gap: 0.5rem; }
.explorer-tab { display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left; padding: 0.75rem 0.875rem; border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-bg-subtle); color: var(--text-secondary); font: 600 0.9375rem var(--font-body); cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.explorer-tab .agent-icon { width: 34px; height: 34px; flex-shrink: 0; }
.explorer-tab .agent-icon svg { width: 18px; height: 18px; }
.explorer-tab:hover { color: var(--text-primary); border-color: var(--glass-border-strong); }
.explorer-tab[aria-selected="true"] { color: var(--text-primary); background: var(--glass-bg-strong); border-color: var(--detect); box-shadow: inset 3px 0 0 var(--detect); }
.explorer-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.explorer-panel { padding: 1.75rem; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.explorer-panel[hidden] { display: none; }
.explorer-panel h3 { font-size: 1.375rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.explorer-panel .agent-job { color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; }
.sample-out { margin: 0 0 1.25rem; padding: 1rem 1.125rem; border-radius: var(--radius-md); background: var(--console-bg); color: var(--console-ink); border: 1px solid rgba(255, 255, 255, 0.1); font: 0.75rem/1.85 var(--font-mono); white-space: pre-wrap; overflow-x: auto; }
.sample-out .so-k { color: #6FE0E0; }
.sample-out .so-h { color: #C9A76A; }
.explorer-meta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.explorer-meta b { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin-bottom: 0.5rem; }
.explorer-meta ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.explorer-meta li { position: relative; padding-left: 1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.explorer-meta li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--detect); opacity: 0.8; }
.explorer-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.explorer-note { margin-top: 1rem; }
.usecase-cta { font-size: 0.9375rem; font-weight: 600; color: var(--detect); text-decoration: none; white-space: nowrap; }
.usecase-cta:hover { text-decoration: underline; }

/* ---------- 14-day timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--detect), var(--human)); opacity: 0.6; }
.timeline-stage { position: relative; padding-top: 2rem; }
.timeline-stage::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--detect); background: var(--surface-white); }
.timeline-day { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px; color: var(--detect); display: block; margin-bottom: 0.25rem; }
.timeline-stage h3 { font-size: 1.0625rem; color: var(--text-primary); margin-bottom: 0.625rem; }
.timeline-stage ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--text-secondary); font-size: 0.925rem; line-height: 1.55; }
.decision-bar { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; border: 1px solid var(--human); border-radius: var(--radius-md); background: var(--human-alpha); }
.decision-bar p { color: var(--text-secondary); margin: 0; }
.decision-bar strong { color: var(--text-primary); }
.decision-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px; color: var(--human); }

/* ---------- Guardrails ---------- */
.panel-human { border-color: var(--human); box-shadow: var(--glass-shadow), inset 0 3px 0 var(--human); }
.panel-human h3 { color: var(--human); }

/* ---------- Pricing ---------- */
.pilot-price { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; }
.pilot-price .price-amount { font-size: clamp(2rem, 4vw, 2.75rem); }
.pilot-price .check-list { margin: 0; }
.scope-notes { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.scope-notes summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.scope-notes p { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); margin-top: 0.75rem; }

/* ---------- Apply: buy now or book a call ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.path-card { display: grid; gap: 1rem; align-content: start; padding: 2rem; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass-bg); box-shadow: var(--glass-shadow); }
.path-buy { border-color: var(--detect); box-shadow: var(--glass-shadow), inset 0 3px 0 var(--detect); }
.path-k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--detect); }
.path-card h3 { font-size: 1.375rem; color: var(--text-primary); }
.path-card .price-amount { font-size: 1.75rem; }
.path-card .check-list { margin: 0; }
.path-card .btn { justify-content: center; }
.path-card .btn-ghost { border: 1px solid var(--detect); color: var(--text-primary); }
.path-card .btn-ghost:hover { background: var(--glass-bg-strong); }
.path-card .price-note { margin: 0; text-align: center; }

/* ---------- Demo dialog ---------- */
.demo-dialog { width: min(960px, 92vw); padding: 0; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--surface-white); color: var(--text-primary); box-shadow: var(--shadow-xl); overflow: hidden; }
.demo-dialog::backdrop { background: rgba(5, 7, 12, 0.8); backdrop-filter: blur(4px); }
.demo-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border-light); }
.demo-status { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.demo-close { background: none; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text-secondary); width: 32px; height: 32px; cursor: pointer; }
.demo-close:hover { color: var(--text-primary); border-color: var(--detect); }
.demo-dialog-body { aspect-ratio: 16 / 10; background: #000; }
.demo-dialog-body video { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 768px) {
    .sticky-cta { display: flex; position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 90; justify-content: center; padding: 0.875rem 1rem; border-radius: var(--radius-full); background: var(--cta); color: var(--cta-contrast); font-weight: 600; font-size: 0.9375rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transform: translateY(150%); transition: transform 0.25s ease; }
    .sticky-cta.is-visible { transform: translateY(0); }
    /* The sticky CTA replaces scroll.js's back-to-top button on small screens. */
    body.has-sticky-cta #back-to-top { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .explorer { grid-template-columns: 1fr; }
    .explorer-list { display: flex; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.25rem; scroll-snap-type: x mandatory; }
    .explorer-tab { width: auto; flex-shrink: 0; scroll-snap-align: start; }
    .explorer-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--detect); }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .timeline::before { display: none; }
    .pilot-price { grid-template-columns: 1fr; }
    .cost-grid { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; gap: 1.5rem; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .trust-strip-inner { grid-template-columns: 1fr; gap: 0.875rem; }
    .explorer-panel { padding: 1.25rem; }
    .explorer-meta { grid-template-columns: 1fr; }
    /* Vertical timeline */
    .timeline { grid-template-columns: 1fr; gap: 1.75rem; padding-left: 1.75rem; }
    .timeline::before { display: block; left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--detect), var(--human)); }
    .timeline-stage { padding-top: 0; }
    .timeline-stage::before { left: -1.75rem; top: 0.1rem; }
    .paths { grid-template-columns: 1fr; }
    .path-card { padding: 1.5rem; }
    .ba, .value-grid { grid-template-columns: 1fr; }
    .guarantee { grid-template-columns: 1fr; padding: 1.5rem; }
    .compare { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sticky-cta, .explorer-tab { transition: none; }
}
