/* Safety AZ flagship page (package D). One accent: --venture-safety-az, set on <body> by the page_accent block.
   Chapters on the 80rem grid (section index, alternating bands and seams): the hero, real product screens, the
   platforms with their statuses, the integrations beside how it is built, and the briefing form. Type comes from the
   system.css roles; this file sets layout. The page has no diagrams and no motion of its own.
   base.html loads this file before system.css, so a rule that refines a system class is written more specifically. */

/* ---------- Hero: one column of copy, then the facts ---------- */
.sa-hero-copy { max-width: var(--measure-head); }

.sa-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2rem;
    margin: 2.5rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-2);
}
.sa-facts dt { margin-bottom: 0.35rem; font: 500 var(--fs-meta)/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-4); }
.sa-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.sa-facts .sa-facts-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
@media (max-width: 479px) {
    .sa-facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* ---------- Section pill: it sits on the seam between the hero and the first chapter ---------- */
.sa-page > .section-nav { margin-block: calc(var(--subnav-height) / -2); }

/* ---------- Chapters ---------- */
.sa-section { padding: var(--space-section) var(--gutter); }
.sa-section > .sa-inner { max-width: var(--container); margin-inline: auto; }
.sa-heading { max-width: var(--measure-head); margin-bottom: var(--space-head); }
.sa-heading .lead { margin: 0; }
/* Content numerals (next steps) are Inter tabular figures; mono stays for chapter indices. */
.sa-page .sa-next .index { font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

/* Product screens (registered in marketing/product_media.py; the first is shown full width) */
.sa-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sa-screens figure { margin: 0; }
.sa-screens figure:first-child { grid-column: 1 / -1; }
.sa-screens img { display: block; width: 100%; height: auto; border: 1px solid var(--line-3); border-radius: var(--radius-md); background: var(--surface-1); box-shadow: var(--shadow-raised); }
.sa-screens figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-3); }

/* 01 The platforms: one card per side of the work, each with its status. Names sit at the foot of the card. */
.sa-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.sa-platform { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; }
.sa-platform-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.sa-platform .card-title { margin: 0; }
.sa-platform .sa-platform-for { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
.sa-platform ul { display: grid; gap: 0.6rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
.sa-platform li { position: relative; padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.sa-platform li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 0.5rem; height: 1px; background: var(--accent); }
.sa-platform .sa-platform-names { margin: auto 0 0; padding-top: 0.875rem; border-top: 1px solid var(--line-1); font-size: 0.8125rem; line-height: 1.5; color: var(--ink-4); }

/* 02 Integrations, each with its status, and how it is built */
.sa-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sa-split > .section-index,
.sa-briefing > .section-index { grid-column: 1 / -1; }
.sa-split .lead { margin-bottom: 1.75rem; }
.sa-connections { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.sa-connections li { padding: 1.1rem 1.25rem; }
.sa-connection-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.4rem; }
.sa-connection-head h3 { margin: 0; font: 600 var(--fs-h4)/var(--lh-ui) var(--font-sans); letter-spacing: -0.01em; color: var(--ink-1); }
.sa-connections p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }
.sa-partner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.sa-partner-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.sa-partner-pair > div { padding: 1rem; border: 1px solid var(--line-3); border-radius: var(--radius-sm); background: var(--surface-1); text-align: center; }
.sa-partner-pair strong { display: block; font-size: 1rem; color: var(--ink-1); }
.sa-partner-pair small { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink-3); }
.sa-partner-pair > span { font: 500 1.25rem/1 var(--font-sans); color: var(--accent); }
.sa-partner p { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-3); }
.sa-partner-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

/* 03 Briefing: the intro stays in view beside the form on wide screens. */
.sa-briefing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 1024px) {
    .sa-briefing-intro { position: sticky; top: calc(var(--anchor-offset) + 1.5rem); align-self: start; }
}
.sa-next { display: grid; gap: 1.25rem; margin: 2rem 0 0; padding: 1.75rem 0 0; list-style: none; border-top: 1px solid var(--line-2); }
.sa-next li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; }
.sa-next .index { line-height: 1.6rem; }
.sa-next strong { display: block; margin-bottom: 0.2rem; font: 600 var(--fs-h4)/var(--lh-ui) var(--font-sans); letter-spacing: -0.01em; color: var(--ink-1); }
.sa-next p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); }
.sa-form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.sa-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sa-form-grid .sa-form-wide { grid-column: 1 / -1; }
.sa-form .tunet-primary { width: 100%; margin-top: 1.5rem; }
/* Narrow phones: when the label must wrap, greedy wrapping keeps the product name on one line
   ("Request a Safety AZ / briefing"); the system's balanced wrap would split it after "Safety". */
@media (max-width: 639px) {
    .sa-form button[type="submit"] { text-wrap: wrap; }
}
.sa-form-note { margin: 1rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-4); }
.sa-form-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sa-form-note a:hover { color: var(--ink-1); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1023px) {
    .sa-split, .sa-briefing { grid-template-columns: minmax(0, 1fr); }
    .sa-split > .sa-partner, .sa-briefing > .sa-form { margin-top: 2.5rem; }
}
@media (max-width: 639px) {
    .sa-platforms, .sa-form-grid, .sa-screens { grid-template-columns: minmax(0, 1fr); }
    .sa-partner-pair { grid-template-columns: minmax(0, 1fr); }
    .sa-partner-pair > span { justify-self: center; }
}
