/* Product and solution pages: a hero, capability columns, method rows, and a
   pointer to the related product. Builds on /assets/css/vail.css. */

/* ── Hero ─────────────────────────────────────── */

.page-hero { padding: 64px 0 56px; }
.page-hero .line-icon svg { width: 48px; height: 48px; }
.page-hero .product { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 560; color: var(--ink); }
.page-hero h1 {
    max-width: 22ch;
    margin-top: 22px;
    font-size: clamp(2.125rem, 4.2vw, 3.125rem);
    line-height: 1.08;
    font-weight: 520;
    letter-spacing: -0.022em;
}
.page-lead { max-width: 62ch; margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; font-size: 15px; }

.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.signup-card h2 { font-size: 20px; font-weight: 580; }
.signup-card .signup-lead { margin: 4px 0 20px; font-size: 14.5px; color: var(--ink-2); }
.signup-card .button { width: 100%; justify-content: center; }
.signup-card .form-note { margin-top: 12px; }
.signup-card .form-note + .form-note { margin-top: 4px; }

/* ── Capabilities: ruled columns ──────────────── */

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.caps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.caps h3 { font-size: 19px; line-height: 1.3; font-weight: 580; letter-spacing: -0.005em; }
.caps p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.caps .from { margin-top: 12px; font-size: 14px; }

/* ── Methods and audiences: ruled rows ────────── */

.rows { margin: 0; border-top: 1px solid var(--rule); }
.rows > div {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 8px 32px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}
.rows dt { font-weight: 560; }
.rows dd { margin: 0; color: var(--ink-2); max-width: 62ch; }
.rows .go { white-space: nowrap; font-size: 15px; }

.steps-rows dt span { margin-right: 12px; font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.rows.steps-rows > div { grid-template-columns: 260px minmax(0, 1fr); }

.deploy-note { margin-top: 16px; color: var(--ink-3); font-size: 14.5px; }

/* ── Diagrams: boxes, flows, and VAIL probes ── */

.seams { margin: 32px 0 0; }
.seams svg { display: block; width: 100%; height: auto; }
.sm-box { fill: var(--tray); stroke: var(--rule-2); stroke-width: 1.25; }
.sm-vail { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.5; }
.sm-name { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.sm-sub { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.sm-seam { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; fill: var(--accent-text); }
.sm-note { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); }
.sm-flow { stroke: var(--ink-3); stroke-width: 1.25; fill: none; }
.sm-head { fill: var(--ink-3); }
.sm-dot { fill: var(--sheet); stroke: var(--accent); stroke-width: 2; }
.sm-probe { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 4 4; }
.seams figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.sm-bound { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 6 5; }
.sm-out { fill: none; stroke: var(--rule-2); stroke-width: 1.25; }
.sm-risk { font-family: var(--mono); font-size: 12px; fill: var(--accent-text); }
.sm-cross { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.sm-cross-head { fill: var(--accent); }
.prose + .seams { margin-top: 32px; }
.seams + .caps { margin-top: 40px; }

/* ── Related product ──────────────────────────── */

.related {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 120ms ease-out;
}
.related:hover { color: var(--ink); border-color: var(--ink-3); }
.related strong { display: block; font-size: 18px; font-weight: 560; }
.related span span { display: block; margin-top: 4px; color: var(--ink-2); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.related-list .related { height: 100%; }
.related .arrow { margin-left: auto; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); }

/* ── Company and research pages ───────────────── */

.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.prose p + p { margin-top: 14px; }
.prose h3 { margin-top: 32px; font-size: 19px; font-weight: 580; }
.prose h3 + p { margin-top: 8px; }
.prose + .caps, .caps + .prose, .prose + .rows, .prose + .figure, .figure + .prose, .prose + .related, .figure + .related { margin-top: 32px; }
.caps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pull-quote { max-width: 40ch; margin: 22px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--ink); }
.pull-quote-by { margin-top: 10px; font-size: 15px; color: var(--ink-3); }

.figure { margin: 0; padding: 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.figure img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; border-radius: 2px; }
.figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.person { display: flex; flex-direction: column; padding: 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.person-head { display: flex; align-items: center; gap: 14px; }
.person img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.person h3 { font-size: 17px; font-weight: 580; }
.person .role { margin-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.person .bio { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.person .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 16px; font-size: 14px; }

.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story { display: flex; flex-direction: column; padding: 20px 22px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.story h3 { font-family: var(--serif); font-size: 18px; line-height: 1.35; font-weight: 700; }
.story p { margin-top: 8px; font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.story .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 14px; font-size: 14px; }

.papers .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 14px; }

/* ── Research: venue column, title, why it matters here ── */

.papers { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.papers li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 32px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.papers .venue { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
.papers h3 { font-size: 16.5px; line-height: 1.4; font-weight: 540; }
.papers h3 a { text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.papers p { margin-top: 4px; max-width: 70ch; color: var(--ink-2); font-size: 15px; }
.papers .result { color: var(--ink-3); font-size: 14px; }
.papers .read { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.papers .read:hover { color: var(--accent-text); }

@media (max-width: 900px) {
    .seams { overflow-x: auto; }
    .seams svg { min-width: 760px; }
}

@media (max-width: 980px) {
    .page-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .page-hero-grid .signup-card { max-width: 480px; }
    .people { grid-template-columns: 1fr 1fr; }
    .rows > div { grid-template-columns: 1fr auto; }
    .rows dd { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
    .page-hero { padding: 44px 0 36px; }
    .page-lead { font-size: 17px; }
    .caps, .caps.two, .people, .stories { grid-template-columns: 1fr; gap: 24px; }
    .people, .stories { gap: 12px; }
    .rows > div { grid-template-columns: 1fr; }
    .rows .go { grid-row: 3; }
    .rows.steps-rows > div { grid-template-columns: 1fr; }
    .related { padding: 18px 20px; }
    .papers li { grid-template-columns: 1fr; }
}
