/* Shared styles for solution pages: AI Workers, AI Managers, Company Knowledge, How It Works, Architecture */
.pg .wrap { max-width: 1180px; }
.ico { width: 18px; height: 18px; flex: none; }
.pg-hero { padding: 56px 0 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)), var(--bg)); }
.pg-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; margin-bottom: 14px; }
.pg-hero .lead { max-width: 52rem; }
.pg-hero .btn-row { margin-top: 22px; }
.pg-quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 0; color: var(--text); max-width: 52rem; }
.pg-quote p { margin: 0 0 8px; }

/* Lifecycle / step chevrons */
.life { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); counter-reset: lf; margin-top: 18px; }
.life li { list-style: none; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.life li::before { counter-increment: lf; content: counter(lf); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; margin-bottom: 8px; }
.life b { display: block; font-size: 0.98rem; }
.life span { font-size: 0.84rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 2px; }
ol.life { padding: 0; margin: 18px 0 0; }

/* Two-column comparison */
.cmp2 { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.cmp2 th, .cmp2 td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp2 tr:last-child td { border-bottom: 0; }
.cmp2 th { background: var(--surface-2); font-size: 0.88rem; }
.cmp2 th.us { background: var(--accent); color: var(--accent-ink); }
.cmp2 td.us { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); font-weight: 500; }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

/* Capability / feature cards */
.caps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 18px; }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.cap .c-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.cap .c-ico svg { width: 22px; height: 22px; }
.cap h3 { font-size: 1.02rem; margin: 0 0 6px; }
.cap p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.cap .eg { display: block; margin-top: 8px; font-size: 0.82rem; color: var(--text); }

/* Example worker cards */
.wk-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 18px; }
.wk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
a.wk:hover { border-color: var(--accent); }
.wk h3 { margin: 0; font-size: 1.05rem; }
.wk p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.wk .more { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* Architecture diagram */
.arch { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.arch-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.arch-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.arch-box b { display: block; font-size: 0.95rem; }
.arch-box span { font-size: 0.82rem; color: var(--muted); }
.arch-box.core { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.arch-arrow { text-align: center; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.arch-boundary { border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.arch-boundary > .tag { justify-self: start; }

/* Two-up services */
.svc2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
@media (min-width: 900px) { .svc2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.svc.primary { border: 2px solid var(--accent); }
.svc h3 { margin: 0; font-size: 1.25rem; }
.svc .kv2 { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 0.9rem; margin: 0; }
.svc .kv2 dt { color: var(--muted); }
.svc .kv2 dd { margin: 0; }
.svc .btn { align-self: flex-start; margin-top: auto; }

/* Fit box (For Teams) */
.fitbox { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .fitbox { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fitbox > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fitbox h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.05rem; }
.fitbox ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.92rem; }
.fitbox li { margin-bottom: 6px; }
.fitbox .ok { width: 26px; height: 26px; border-radius: 50%; background: #1f9a55; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.fitbox .warn { width: 26px; height: 26px; border-radius: 50%; background: #e07a10; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.pr-cta-ghost { background: transparent !important; color: var(--accent-ink) !important; border: 1px solid color-mix(in srgb, var(--accent-ink) 70%, transparent); }

/* One-day sprint readiness check (enterprise.html#readiness, site.js initReadiness) */
.ready { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.ready-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.ready-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.ready-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.rq { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: color-mix(in srgb, var(--accent) 2%, var(--surface)); display: flex; flex-direction: column; gap: 6px; }
.rq legend { float: left; width: 100%; padding: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.rq-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.rq-hint { clear: both; margin: 0 0 4px 34px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.rq-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 34px; }
.rq-opts label { position: relative; cursor: pointer; }
.rq-opts input { position: absolute; opacity: 0; pointer-events: none; }
.rq-opts span { display: inline-block; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; background: var(--surface); }
.rq-opts label:hover span { border-color: var(--accent); }
.rq-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rq-opts input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ready-result { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; }
.ready-result > div { flex: 1 1 320px; min-width: 0; }
.ready-result p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.ready-result ul { margin: 8px 0 0; padding-left: 1.1em; font-size: 0.88rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ready-result ul b { color: var(--text); }
.rr-title { font-size: 1.05rem; }
.ready-result.pending { border-left-color: var(--line); }
.ready-result.pending p { margin: 0; }
.ready-result.ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.ready-result.ok .rr-title { color: var(--ok); }
.ready-result.info { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ready-result.info .rr-title { color: var(--accent); }
.ready-result.warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.ready-result.warn .rr-title { color: var(--warn); }
.tracks { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tracks > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line); font-size: 0.9rem; }
.tracks span { color: var(--muted); }

/* Architecture: how we validate AI workers (test plan) */
#validation { scroll-margin-top: 72px; }
.val-status { max-width: 52rem; margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); font-size: 0.92rem; color: var(--muted); }
.val-status b { color: var(--text); }
.val-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.val-card { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 60px; box-shadow: var(--shadow); }
.val-card h3 { margin: 4px 0 10px; font-size: 1.08rem; }
.val-card p { margin: 0 0 8px; font-size: 0.92rem; line-height: 1.5; }
.val-wide { margin-top: 14px; }
.val-n { position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.val-spec { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 8px 14px; margin: 0; font-size: 0.9rem; }
.val-spec dt { font-weight: 600; }
.val-spec dd { margin: 0; color: var(--muted); }
.val-why { color: var(--muted); font-size: 0.86rem !important; font-style: italic; }
.val-table td:first-child { font-weight: 600; white-space: nowrap; }
.val-pend { display: inline-block; white-space: nowrap; font-size: 0.75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.val-checks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px 18px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); font-size: 0.92rem; }
.val-checks li { position: relative; padding-left: 24px; }
.val-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 0.65rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 560px) { .val-card { padding-left: 18px; padding-top: 58px; } .val-spec { grid-template-columns: 1fr; gap: 2px; } .val-spec dd { margin-bottom: 8px; } }

/* "What the worker keeps ready" table (enterprise.html#keeps-ready); rows stack on phones */
.ready-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.9rem; }
.ready-tbl th, .ready-tbl td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ready-tbl tr:last-child td { border-bottom: 0; }
.ready-tbl th { background: var(--surface-2); font-size: 0.84rem; }
.ready-tbl td:first-child { font-weight: 700; white-space: nowrap; }
.ready-tbl td:nth-child(3) { font-weight: 600; }
@media (max-width: 760px) {
  .ready-tbl thead { display: none; }
  .ready-tbl, .ready-tbl tbody, .ready-tbl tr, .ready-tbl td { display: block; width: 100%; }
  .ready-tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .ready-tbl tr:last-child { border-bottom: 0; }
  .ready-tbl td { border: 0; padding: 4px 14px; white-space: normal; }
  .ready-tbl td[data-l]::before { content: attr(data-l) ": "; font-weight: 700; color: var(--muted); font-size: 0.78rem; }
}

/* v3: outcome graph (How It Works #recipes) */
.og { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.og-title { margin: 0 0 14px; font-weight: 700; }
.og-title span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.og-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); counter-reset: og; }
.og-flow li { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px 12px 12px 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.og-flow li::before { counter-increment: og; content: counter(og); position: absolute; left: 10px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.og-flow b { font-size: 0.95rem; }
.og-flow small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.og-team { justify-self: start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-left: 4px solid var(--c, var(--accent)); }
.og-team.fin { --c: #1aa361; } .og-team.data { --c: #7c5ce0; } .og-team.cs { --c: #f07c1b; } .og-team.sales { --c: #1662e8; } .og-team.kb { --c: #0f766e; } .og-team.ok { --c: #b3261e; }
/* hosted vs BYOA */
.host2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 18px; }
.od-table td:nth-child(2) { font-weight: 500; }
