/* Second Shift Ops site styles. Builds on brand.css (copied from brand_assets/ at build time).
 *
 * Design notes (frontend-design pass):
 * - One bold element per page: the hero "handover board". Everything else is quiet and typographic.
 * - No card kit, no all-caps labels, no hover lifts. Structure comes from rules, tables and type.
 * - Radii by hierarchy: 20px big panels, 16px form, 8px buttons/inputs/tabs, pills only for status tags.
 * - Type scale ~1.333 (perfect fourth) from 17px body: 13 / 15 / 17 / 22 / 30 / 40 / 72.
 */

:root {
  --surface: #FFFFFF;
  --line-light: rgba(11, 16, 32, 0.1);
  --line-dark: rgba(169, 231, 234, 0.14);
  --text-on-dark: rgba(245, 247, 250, 0.8);
  --color-error: #B42318;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-panel: 20px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }

h1 { font-size: clamp(2.75rem, 6.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.h1--industry { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; }
h2, .section-title { font-size: clamp(1.875rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; }
h4 { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; color: var(--color-navy); background: var(--color-teal); border-radius: var(--radius-button); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.section { padding-block: 80px; }
@media (min-width: 1024px) { .section { padding-block: var(--section-spacing); } }

.section-intro { max-width: 640px; margin-bottom: 56px; }
.section-intro p { margin-top: 16px; color: var(--color-text-secondary); font-size: 1.125rem; }
.section-intro--dark p { color: var(--color-slate); }

.text-link { display: inline-block; color: var(--color-teal-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; border-radius: 4px; }
.text-link:hover { color: var(--color-navy); text-decoration-thickness: 2px; }
.text-link:active { opacity: 0.75; }

/* Buttons (extends brand.css) */
.button { white-space: nowrap; }
.button:hover { transform: none; }
.button--hero { min-height: 56px; }
.button--block { width: 100%; }
.button--ghost { color: var(--color-white); background: transparent; border-color: rgba(169, 231, 234, 0.4); }
.button--ghost:hover { background: rgba(24, 197, 201, 0.1); border-color: var(--color-teal); }
.button--ghost:active { background: rgba(24, 197, 201, 0.18); }
.button--secondary:active { background: rgba(24, 197, 201, 0.18); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color 200ms ease, border-color 200ms ease; }
.site-header.is-scrolled { background: rgba(11, 16, 32, 0.9); border-color: var(--line-dark); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* backdrop-filter would trap the fixed mobile panel inside the header, so the open state is solid */
.site-header.is-open { background: var(--color-navy); border-color: var(--line-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: block; border-radius: 6px; }
.site-header__logo img { width: 184px; height: auto; }
@media (min-width: 768px) { .site-header__logo img { width: 200px; } }

.nav-toggle { display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--color-white); background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius-button); cursor: pointer; }
.nav-toggle:hover { background: rgba(24, 197, 201, 0.1); }
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

.site-nav { display: none; }
.site-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--text-on-dark); background: none; border: 0; border-radius: var(--radius-button); font: 500 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.site-nav__link:hover { color: var(--color-white); background: rgba(245, 247, 250, 0.06); }
.site-nav__link:active { background: rgba(245, 247, 250, 0.1); }
.site-nav__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.site-nav__link svg { transition: transform 200ms var(--ease-out); }
.site-nav__link[aria-expanded='true'] svg { transform: rotate(180deg); }

.site-nav__menu { display: none; }
.site-nav__menu a { display: flex; gap: 12px; padding: 12px; color: var(--color-navy); border-radius: 12px; text-decoration: none; transition: background-color 150ms ease; }
.site-nav__menu a svg { flex-shrink: 0; margin-top: 2px; color: var(--color-teal-dark); }
.site-nav__menu a span { display: grid; gap: 2px; }
.site-nav__menu a strong { font-size: 0.9375rem; font-weight: 600; }
.site-nav__menu a small { color: var(--color-text-secondary); font-size: 0.8125rem; }
.site-nav__menu a:hover { background: rgba(24, 197, 201, 0.1); }
.site-nav__menu a:active { background: rgba(24, 197, 201, 0.18); }
.site-nav__menu a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[data-menu-toggle][aria-expanded='true'] + .site-nav__menu { display: grid; }

@media (max-width: 1023px) {
  .site-header.is-open .site-nav { position: fixed; inset: var(--header-h) 0 0; display: flex; flex-direction: column; gap: 24px; padding: 24px 1rem 40px; overflow-y: auto; background: var(--color-navy); }
  .site-nav__list { display: grid; gap: 4px; }
  .site-nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.0625rem; }
  .site-nav__menu { gap: 4px; padding: 4px 0 8px; }
  .site-nav__menu a { color: var(--color-white); }
  .site-nav__menu a small { color: var(--color-slate); }
  .site-nav__menu a svg { color: var(--color-teal); }
  .site-nav__cta { width: 100%; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 24px; }
  .site-nav__list { display: flex; align-items: center; gap: 4px; }
  .has-menu { position: relative; }
  .site-nav__menu { position: absolute; top: calc(100% + 12px); left: -12px; width: 340px; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line-light); border-radius: 16px; box-shadow: 0 2px 6px rgba(11, 16, 32, 0.08), 0 24px 48px -20px rgba(8, 124, 128, 0.35); }
  [data-menu-toggle][aria-expanded='true'] + .site-nav__menu { animation: menu-in 220ms var(--ease-out); }
}
@keyframes menu-in { from { transform: translateY(-6px); } to { transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 56px) 0 80px; color: var(--color-white); background: var(--color-navy); isolation: isolate; }
@media (min-width: 1024px) { .hero { padding: calc(var(--header-h) + 88px) 0 112px; } }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 45% at 85% 8%, rgba(24, 197, 201, 0.18), transparent 70%),
    radial-gradient(45% 50% at 0% 85%, rgba(8, 124, 128, 0.28), transparent 70%); }
.hero__glow::after { content: ''; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero__top { display: grid; gap: 32px; }
@media (min-width: 1024px) { .hero__top { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }
.hero__lead { max-width: 30ch; color: var(--color-aqua); font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.45; }
.hero__detail { margin-top: 16px; max-width: 52ch; color: var(--text-on-dark); }
.hero--industry .hero__detail { margin-top: 0; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479px) { .hero__actions .button { width: 100%; } }
.hero--simple { min-height: 70vh; display: flex; align-items: center; }
.hero--simple .hero__detail { margin-top: 24px; font-size: 1.125rem; }

.breadcrumb { display: flex; gap: 8px; margin-bottom: 32px; color: var(--color-slate); font-size: 0.875rem; }
.breadcrumb a { color: var(--color-slate); text-decoration: none; border-radius: 4px; }
.breadcrumb a:hover { color: var(--color-white); text-decoration: underline; }

/* ---------- Handover board (the one bold element) ---------- */
.board { margin-top: 56px; }
@media (min-width: 1024px) { .board { margin-top: 72px; } }

.board__tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.board__tabs[hidden] { display: none; }
@media (max-width: 639px) { .board__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 2px 1rem 6px; scrollbar-width: none; } .board__tabs [role='tab'] { flex-shrink: 0; } .board__tabs-label { display: none; } }
.board__tabs-label { margin-right: 8px; color: var(--color-slate); font-size: 0.9375rem; }
.board__tabs [role='tab'] { min-height: 40px; padding: 0 16px; color: var(--text-on-dark); background: rgba(245, 247, 250, 0.04); border: 1px solid var(--line-dark); border-radius: var(--radius-button); font: 500 0.9375rem/1 var(--font-body); cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.board__tabs [role='tab']:hover { color: var(--color-white); border-color: rgba(169, 231, 234, 0.4); }
.board__tabs [role='tab']:active { background: rgba(24, 197, 201, 0.15); }
.board__tabs [role='tab']:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.board__tabs [role='tab'][aria-selected='true'] { color: var(--color-navy); background: var(--color-teal); border-color: var(--color-teal); font-weight: 600; }

.board__frame { padding: 20px; background: linear-gradient(180deg, rgba(245, 247, 250, 0.055), rgba(245, 247, 250, 0.02)); border: 1px solid var(--line-dark); border-radius: var(--radius-panel); box-shadow: 0 48px 96px -48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(245, 247, 250, 0.06); }
@media (min-width: 768px) { .board__frame { padding: 32px; } }
.board__setting { margin-bottom: 20px; color: var(--color-slate); font-size: 0.9375rem; }
.board__cols { display: grid; gap: 24px; }
@media (min-width: 900px) { .board__cols { grid-template-columns: 5fr auto 7fr; gap: 32px; } }
.board__title { margin-bottom: 8px; color: var(--color-white); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.board__handoff { display: none; }
@media (min-width: 900px) {
  .board__handoff { display: grid; align-self: center; width: 48px; height: 48px; place-items: center; color: var(--color-teal); background: rgba(24, 197, 201, 0.1); border: 1px solid var(--line-dark); border-radius: 50%; }
}

.task { position: relative; display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.task--keep { align-items: baseline; color: var(--color-white); font-weight: 500; }
.task--keep::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; background: var(--color-aqua); border-radius: 50%; transform: translateY(-2px); }
.task--handoff { align-items: baseline; justify-content: space-between; color: var(--text-on-dark); opacity: 0.5; }
.task__text { text-decoration: line-through; text-decoration-color: var(--color-slate); text-decoration-thickness: 1.5px; }
.task__note { flex-shrink: 0; color: var(--color-teal); font-size: 0.8125rem; font-weight: 600; }

.log__item { display: grid; grid-template-columns: 3.25rem 1fr; gap: 6px 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 640px) { .log__item { grid-template-columns: 3.25rem 1fr auto; } }
.log__item time { color: var(--color-slate); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.log__text { color: var(--color-white); }
.log__item .tag { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .log__item .tag { grid-column: auto; } }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tag--ai { color: var(--color-navy); background: var(--color-teal); }
.tag--auto { color: var(--color-slate); box-shadow: inset 0 0 0 1px rgba(139, 147, 166, 0.5); }
.tag--you { color: var(--color-aqua); background: rgba(169, 231, 234, 0.14); }
.tag--needs { color: var(--color-white); box-shadow: inset 0 0 0 1px rgba(245, 247, 250, 0.5); }
.board__legend { margin-top: 24px; color: var(--color-slate); font-size: 0.875rem; line-height: 2; }

/* Play sequence: hand-offs strike through one by one, the log fills in alongside. */
.is-playing .task--handoff { animation: dim 450ms ease both; animation-delay: calc(500ms + var(--i) * 700ms); }
.is-playing .task__text { animation: strike 400ms ease both; animation-delay: calc(500ms + var(--i) * 700ms); }
.is-playing .task__note { animation: fade-in 300ms ease both; animation-delay: calc(700ms + var(--i) * 700ms); }
.is-playing .log__item { animation: log-in 500ms var(--ease-out) both; animation-delay: calc(700ms + var(--i) * 520ms); }
.is-playing .board__handoff svg { animation: turn 1.4s var(--ease-out) 500ms 2 both; }
@keyframes dim { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--color-slate); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes log-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- Pillars ---------- */
.pillars { background: var(--color-white); }
.pillars .section-title { max-width: 18ch; margin-bottom: 56px; }
.pillars__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .pillars__grid { grid-template-columns: 1fr 1fr; gap: 0; } .pillar + .pillar { padding-left: 56px; border-left: 1px solid var(--line-light); } .pillar:first-child { padding-right: 56px; } }
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 1.75rem); }
.pillar h3::before { content: ''; display: block; width: 40px; height: 3px; margin-bottom: 20px; background: var(--color-teal); border-radius: 2px; }
.pillar__intro { margin-top: 12px; max-width: 46ch; color: var(--color-text-secondary); }
.pillar__list { margin-top: 28px; }
.pillar__list li { padding: 16px 0; color: var(--color-text-secondary); border-top: 1px solid var(--line-light); font-size: 1rem; }
.pillar__list strong { display: block; margin-bottom: 2px; color: var(--color-navy); font-weight: 600; }

/* ---------- Industry index ---------- */
.who { background: var(--surface); }
.index { display: grid; gap: 32px; }
@media (min-width: 1024px) { .index.is-tabbed { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; } }
.index__list[hidden] { display: none; }
.index__list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; }
@media (min-width: 1024px) { .index__list { position: sticky; top: calc(var(--header-h) + 24px); flex-direction: column; overflow: visible; } }
.index__list [role='tab'] { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 12px 16px; color: var(--color-navy); background: transparent; border: 1px solid var(--line-light); border-radius: var(--radius-button); font: 500 0.9375rem/1.3 var(--font-body); text-align: left; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
@media (min-width: 1024px) { .index__list [role='tab'] { border-color: transparent; } }
.index__list [role='tab'] svg { flex-shrink: 0; color: var(--color-teal-dark); }
.index__list [role='tab']:hover { background: var(--color-white); }
.index__list [role='tab']:active { background: rgba(24, 197, 201, 0.12); }
.index__list [role='tab']:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.index__list [role='tab'][aria-selected='true'] { color: var(--color-white); background: var(--color-navy); border-color: var(--color-navy); }
.index__list [role='tab'][aria-selected='true'] svg { color: var(--color-teal); }
.index__panels { display: grid; gap: 72px; }
.index__panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: clamp(1.375rem, 2.2vw, 1.625rem); }
.index__panel h3 svg { flex-shrink: 0; color: var(--color-teal-dark); }
.index__panel .text-link { margin-top: 24px; }

.ledger th { padding: 0 24px 12px 0; color: var(--color-text-secondary); font-size: 0.875rem; font-weight: 600; border-bottom: 2px solid var(--color-navy); }
.ledger td { padding: 18px 24px 18px 0; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.ledger td:first-child { width: 45%; color: var(--color-navy); font-weight: 500; }
.ledger td:last-child { color: var(--color-text-secondary); }
.ledger__group { display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; }
.ledger__group--clients { color: var(--color-teal-dark); }
.ledger__group--ops { color: var(--color-text-secondary); }
@media (max-width: 639px) {
  .ledger thead { display: none; }
  .ledger tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
  .ledger td { display: block; width: auto !important; padding: 0; border: 0; }
  .ledger td:last-child { margin-top: 6px; }
}

/* ---------- Services track ---------- */
.services { color: var(--color-white); background: var(--color-navy); }
.track { position: relative; display: grid; gap: 40px; }
.track__step { position: relative; padding-left: 40px; }
.track__step::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -48px; width: 2px; background: var(--line-dark); }
.track__step:last-child::before { display: none; }
.track__step::after { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; background: var(--color-navy); border: 2px solid var(--color-teal); border-radius: 50%; }
.track__step:first-child::after { background: var(--color-teal); }
.track__num { display: block; margin-bottom: 12px; color: var(--color-teal); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.track__step h3 { display: flex; align-items: center; gap: 10px; color: var(--color-white); font-size: 1.25rem; }
.track__step h3 svg { flex-shrink: 0; color: var(--color-teal); }
.track__step p { margin-top: 10px; color: var(--color-slate); font-size: 0.9375rem; }
@media (min-width: 1024px) {
  .track { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .track__step { padding: 40px 0 0; }
  .track__step::before { left: 14px; right: -40px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .track__step::after { top: 0; }
}
/* Light variant on landing pages */
.services--compact { color: var(--color-navy); background: var(--color-white); }
.services--compact .section-intro--dark p { color: var(--color-text-secondary); }
.services--compact .track__step::before { background: var(--line-light); }
.services--compact .track__step::after { background: var(--color-white); border-color: var(--color-teal-dark); }
.services--compact .track__step:first-child::after { background: var(--color-teal-dark); }
.services--compact .track__num { color: var(--color-teal-dark); }
.services--compact .track__step h3 { color: var(--color-navy); }
.services--compact .track__step h3 svg { color: var(--color-teal-dark); }
.services--compact .track__step p { color: var(--color-text-secondary); }

/* ---------- Approach ---------- */
.approach { background: var(--color-white); }
.approach__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .approach__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } .approach__head { position: sticky; top: calc(var(--header-h) + 40px); } }
.approach__head p { margin: 20px 0 32px; max-width: 42ch; color: var(--color-text-secondary); font-size: 1.125rem; }
.approach__list li { padding: 24px 0; color: var(--color-text-secondary); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; border-top: 1px solid var(--line-light); }
.approach__list li:last-child { border-bottom: 1px solid var(--line-light); }
.approach__list strong { color: var(--color-navy); font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--surface); }
.faq-section__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-section__grid { grid-template-columns: 4fr 8fr; gap: 64px; } }
.faq { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 4px; font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: 4px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex-shrink: 0; color: var(--color-teal-dark); transition: transform 250ms var(--ease-out); }
.faq__item summary:hover { color: var(--color-teal-dark); }
.faq__item summary:active { opacity: 0.8; }
.faq__item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__answer { padding: 0 4px 24px; max-width: 68ch; color: var(--color-text-secondary); }

/* ---------- Landing page sections ---------- */
.pains { background: var(--surface); }
.pains__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .pains__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
@media (min-width: 640px) { .pains__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.pains__list li { padding: 18px 0; color: var(--color-navy); border-top: 1px solid var(--line-light); }

.workflows { background: var(--color-white); }
.wf-group + .wf-group { margin-top: 64px; }
.wf-group__title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; font-size: clamp(1.375rem, 2.2vw, 1.625rem); }
.wf-group__title::after { content: ''; flex: 1; height: 1px; background: var(--line-light); }
.wf-list { display: grid; gap: 0 40px; }
@media (min-width: 768px) { .wf-list { grid-template-columns: repeat(3, 1fr); } }
.wf { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
@media (min-width: 768px) { .wf { border-bottom: 0; } }
.wf h4 { display: flex; align-items: flex-start; gap: 10px; }
.wf h4 svg { flex-shrink: 0; margin-top: 1px; color: var(--color-teal-dark); }
.wf__body { color: var(--color-text-secondary); font-size: 1rem; }
.wf__check { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding: 10px 12px; color: var(--color-teal-dark); background: rgba(24, 197, 201, 0.09); border-radius: var(--radius-button); font-size: 0.875rem; font-weight: 500; line-height: 1.45; }
.wf__check svg { flex-shrink: 0; margin-top: 1px; }

.compare { color: var(--color-white); background: var(--color-navy); }
.compare .section-title { margin-bottom: 40px; }
.ba th, .ba td { padding: 18px 24px 18px 0; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
.ba thead th { padding-bottom: 12px; color: var(--color-slate); font-size: 0.875rem; font-weight: 600; border-bottom-color: rgba(169, 231, 234, 0.35); }
.ba tbody th { width: 24%; font-family: var(--font-heading); font-weight: 600; }
.ba td:nth-child(2) { color: var(--color-slate); }
.ba td:last-child { color: var(--color-white); }
@media (max-width: 767px) {
  .ba thead { display: none; }
  .ba tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
  .ba th, .ba td { display: block; width: auto !important; padding: 0; border: 0; }
  .ba td { margin-top: 8px; }
  .ba td::before { content: attr(data-label) ': '; color: var(--color-slate); font-weight: 600; }
}
.tools { margin-top: 56px; }
.tools__label { margin-bottom: 16px; color: var(--color-white); font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list li { padding: 7px 14px; color: var(--text-on-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-button); font-size: 0.9375rem; }
.tools__note { margin-top: 16px; color: var(--color-slate); font-size: 0.8125rem; }

/* ---------- Contact ---------- */
.contact { color: var(--color-white); background:
    radial-gradient(50% 70% at 0% 100%, rgba(8, 124, 128, 0.32), transparent 70%),
    var(--color-navy); }
.contact__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.contact__lead { margin-top: 20px; max-width: 46ch; color: var(--text-on-dark); font-size: 1.125rem; }
.contact__steps { display: grid; gap: 20px; margin-top: 40px; }
.contact__steps li { display: flex; gap: 16px; color: var(--color-slate); }
.contact__num { display: grid; flex-shrink: 0; width: 28px; height: 28px; place-items: center; color: var(--color-teal); border: 1.5px solid var(--color-teal); border-radius: 50%; font-size: 0.8125rem; font-weight: 600; }
.contact__steps strong { display: block; color: var(--color-white); font-weight: 600; }

.form { display: flex; flex-direction: column; gap: 20px; padding: 24px; color: var(--color-navy); background: var(--surface); border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
@media (min-width: 768px) { .form { padding: 36px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .form__row--3 { grid-template-columns: 1.2fr 0.8fr 1.2fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field label span[aria-hidden] { color: var(--color-teal-dark); }
.field__hint { color: var(--color-text-secondary); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--color-navy); background: var(--color-white); border: 1px solid rgba(11, 16, 32, 0.16); border-radius: var(--radius-input); font: 400 1rem/1.4 var(--font-body); transition: border-color 150ms ease, background-color 150ms ease; }
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-slate); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 16, 32, 0.32); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--color-teal-dark); background: var(--surface); }
.field [aria-invalid='true'] { border-color: var(--color-error); }
.form__error { padding: 12px 14px; color: var(--color-error); background: rgba(180, 35, 24, 0.06); border-radius: var(--radius-input); font-size: 0.9375rem; }
.form__note { color: var(--color-text-secondary); font-size: 0.8125rem; text-align: center; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form [data-submit][aria-busy='true'] { opacity: 0.7; cursor: progress; }
.form__success[hidden] { display: none; }
.form__success { display: grid; justify-items: center; gap: 12px; padding: 48px 8px; text-align: center; }
.form__success > svg { width: 56px; height: 56px; padding: 14px; color: var(--color-navy); background: var(--color-teal); border-radius: 50%; stroke-width: 3; }
.form__success p { max-width: 40ch; color: var(--color-text-secondary); }
.form.is-sent > :not(.form__success) { display: none; }

/* ---------- Related ---------- */
.related { padding-block: 56px; background: var(--surface); border-top: 1px solid var(--line-light); }
.related__title { margin-bottom: 20px; font-size: 1.25rem; }
.related__list { display: flex; flex-wrap: wrap; gap: 8px; }
.related__list a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--color-navy); border: 1px solid var(--line-light); border-radius: var(--radius-button); font-weight: 500; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
.related__list a svg { color: var(--color-teal-dark); }
.related__list a:hover { border-color: var(--color-teal-dark); background: rgba(24, 197, 201, 0.06); }
.related__list a:active { background: rgba(24, 197, 201, 0.14); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; color: var(--color-slate); background: var(--color-navy); border-top: 1px solid var(--line-dark); }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__brand img { width: 200px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 36ch; font-size: 0.9375rem; }
.site-footer__tagline { margin-bottom: 4px; color: var(--color-white); font-family: var(--font-heading); font-weight: 600; }
.site-footer__heading { margin-bottom: 16px; color: var(--color-white); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--color-slate); font-size: 0.9375rem; text-decoration: none; border-radius: 4px; }
.site-footer a:hover { color: var(--color-teal); }
.site-footer a:active { color: var(--color-white); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }

/* Focus for links not covered by brand.css */
.text-link:focus-visible, .related__list a:focus-visible, .site-footer a:focus-visible, .breadcrumb a:focus-visible, .site-header__logo:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Reduced motion: show the finished board ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-playing .task--handoff, .is-playing .task__text, .is-playing .task__note, .is-playing .log__item, .is-playing .board__handoff svg { animation: none !important; }
}

/* ---------- Training & enablement (homepage) ---------- */
.training__subhead { margin-bottom: 24px; font-size: 1.25rem; }
.training__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .training__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.training__steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-light); }
.training__steps li:last-child { border-bottom: 1px solid var(--line-light); }
.training__num { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--color-teal-dark); font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; border: 1.5px solid var(--color-teal-dark); border-radius: 50%; font-variant-numeric: tabular-nums; }
.training__steps strong { display: block; color: var(--color-navy); font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.training__steps p { margin-top: 4px; color: var(--color-text-secondary); font-size: 0.9375rem; }

.prompt-ex { margin: 0; padding: 24px; background: var(--color-white); border: 1px solid var(--line-light); border-radius: var(--radius-panel); box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04), 0 12px 32px -12px rgba(8, 124, 128, 0.14); }
@media (min-width: 768px) { .prompt-ex { padding: 32px; } }
.prompt-ex__pair { display: grid; gap: 20px; }
.prompt-ex__label { margin-bottom: 8px; color: var(--color-text-secondary); font-size: 0.875rem; font-weight: 600; }
.prompt-ex__prompt { margin: 0; padding: 16px 18px; color: var(--color-navy); font-size: 0.9375rem; line-height: 1.6; background: rgba(169, 231, 234, 0.22); border-left: 3px solid var(--color-teal); border-radius: 0 8px 8px 0; }
.prompt-ex__prompt--before { color: var(--color-text-secondary); background: rgba(139, 147, 166, 0.1); border-left-color: var(--color-slate); }
.prompt-ex__note { margin-top: 20px; color: var(--color-text-secondary); font-size: 0.9375rem; }

.training__roles { margin-top: 72px; }
.roles { display: grid; margin: 0; }
@media (min-width: 768px) { .roles { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1100px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.roles__row { padding: 18px 0; border-top: 1px solid var(--line-light); }
.roles dt { color: var(--color-navy); font-family: var(--font-heading); font-weight: 600; }
.roles dd { margin: 4px 0 0; color: var(--color-text-secondary); font-size: 0.9375rem; }

.training__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-light); }
.training__foot p { max-width: 52ch; color: var(--color-navy); font-size: 1.125rem; }
@media (max-width: 479px) { .training__foot .button { width: 100%; } }
