/* ════════════════════════════════════════════════════════════
   Enterprise / business page (/enterprise) — page-only styles.
   Builds on site.css tokens and components (.card, .mock, .mk-*, .cta-inline, .avstack…).
   ════════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.ent-hero { padding-bottom: 72px; }
.ent-hero h1 { max-width: 920px; }

/* ─── Org chart mock (company AI team) ─── */
.org { position: relative; max-width: 1040px; margin: 48px auto 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.org-hd { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text); }
.org-hd .dots { display: flex; gap: 6px; }
.org-hd .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.org-hd .chip { margin-left: auto; padding: 3px 10px; font-size: 11px; }
.org-body { padding: 28px 24px 24px; background: var(--bg); background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 20px 20px; }
.org-ceo { display: flex; justify-content: center; position: relative; padding-bottom: 28px; }
.org-ceo::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 2px; height: 28px; background: var(--line-2); }
.org-ceo .onode { width: 270px; border-color: color-mix(in srgb, var(--acc) 45%, var(--line-2)); box-shadow: 0 10px 30px rgba(99, 102, 241, .14); }
.org-ceo .onode img { width: 40px; height: 40px; }
.org-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; padding-top: 22px; }
.org-depts::before { content: ''; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-2); }
.org-dept { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.org-dept::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line-2); }
.org-dept .dl { align-self: center; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--panel); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 12px; margin-bottom: 2px; }
.onode { background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); min-width: 0; }
.onode .nm { display: flex; align-items: center; gap: 9px; min-width: 0; }
.onode img, .onode .cav { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: var(--panel-2); }
.onode .cav { display: grid; place-items: center; background: var(--acc-bg); color: var(--acc-ink); }
.onode .cav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onode .nm > span { min-width: 0; }
.onode b { display: block; color: var(--text); font-size: 13px; line-height: 1.25; }
.onode .rl { display: block; font-size: 11px; color: var(--text-3); line-height: 1.35; }
.onode .st { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: var(--text-3); line-height: 1.35; }
.onode .st::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.onode.custom { border-style: dashed; border-color: color-mix(in srgb, var(--acc) 55%, var(--line-2)); }
.onode .tag { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; color: var(--acc-ink); background: var(--acc-bg); border-radius: 99px; padding: 1px 8px; line-height: 1.5; }
.org-appr { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; background: var(--panel); border: 1.5px solid var(--warn-line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 26px rgba(245, 158, 11, .14); }
.org-appr .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); }
.org-appr .txt { font-size: 13px; color: var(--text-2); flex: 1; min-width: 220px; }
.org-appr .txt b { color: var(--text); }
.org-appr .acts { display: flex; gap: 6px; }
.org-appr .acts .btn { padding: 6px 14px; font-size: 12.5px; }
.org-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: 12px; color: var(--text-3); }
.org-legend span { display: inline-flex; align-items: center; gap: 7px; }
.org-legend i { width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--panel); }
.org-legend i.c { border-style: dashed; border-color: color-mix(in srgb, var(--acc) 55%, var(--line-2)); }

/* ─── Process ─── */
.proc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.proc-steps { list-style: none; display: grid; gap: 0; }
.proc-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.proc-steps li:last-child { padding-bottom: 0; }
.proc-steps li::before { content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line-2); }
.proc-steps li:last-child::before { display: none; }
.proc-steps .tico { width: 44px; height: 44px; }
.proc-steps .n { font-size: 11.5px; font-weight: 750; color: var(--acc-ink); letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono); }
.proc-steps h3 { font-size: 18px; font-weight: 720; margin-top: 3px; }
.proc-steps p { font-size: 14.5px; color: var(--text-3); margin-top: 5px; line-height: 1.6; }
.proc-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.proc-side .mock { box-shadow: var(--shadow-md); }
.mk-plan .mk-row .nm { white-space: normal; }
.mk-plan .ico { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mk-plan .ico.done { background: var(--ok); color: #fff; }
.mk-plan .ico.now { background: var(--warn-bg); color: var(--warn); border: 1.5px solid var(--warn-line); }
.mk-plan .ico.next { background: var(--panel-2); color: var(--text-3); border: 1.5px solid var(--line-2); }
.mk-plan .sm { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.mk-rules .mk-row .nm { font-weight: 500; color: var(--text-2); }
.mk-rules .who { font-size: 11.5px; font-weight: 700; color: var(--text); background: var(--panel-2); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }

/* ─── Benefits ─── */
.bens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bens .card { display: flex; flex-direction: column; }
.bens .wide { grid-column: span 2; }
.bens .logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bens .logos .app { width: 44px; height: 44px; border-radius: 12px; }
.bens .logos .app img { width: 24px; height: 24px; }
.bens .tico img { width: 20px; height: 20px; }
.bens .tico img.ent-syz { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.bens .card .btn { align-self: flex-start; margin-top: 18px; }
.bens .sized { background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 7%, var(--panel)), color-mix(in srgb, #2563eb 7%, var(--panel))); }
.bens .sized .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.bens .sized .acts .btn { margin-top: 0; }

/* ─── Examples ─── */
.ent-ex .acard .cost { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.ent-ex .acard .apps { gap: 6px; }
.ent-ex .mk-row .nm small { color: var(--text-3); font-weight: 500; margin-left: 6px; }
.ent-ex .tot { display: flex; justify-content: space-between; padding: 9px 12px; border-top: 1px solid var(--line); font-weight: 700; color: var(--text); }
.ent-custom { margin-top: 26px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: center; }
.ent-custom > span { font-size: 14px; color: var(--text-3); font-weight: 600; }
.ent-custom .chip { font-size: 12.5px; padding: 6px 14px; }

/* ─── Final CTA ─── */
.ent-final .crew { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: var(--text-3); }
.ent-mid { margin-top: 40px; }
.ent-mid .ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Responsive ─── */
@media (max-width: 1000px) {
    .org-depts { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .org-depts::before { display: none; }
    .org-dept::before { display: none; }
    .org-ceo { padding-bottom: 20px; }
    .org-ceo::after { display: none; }
    .org-depts { padding-top: 0; }
}
@media (max-width: 900px) {
    .proc { grid-template-columns: 1fr; gap: 32px; }
    .proc-side { position: static; }
    .bens { grid-template-columns: 1fr 1fr; }
    .bens .wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ent-hero { padding-bottom: 48px; }
    .org { margin-top: 32px; border-radius: 18px; }
    .org-body { padding: 18px 12px 14px; }
    .org-hd .chip { display: none; }
    .org-ceo .onode { width: 100%; max-width: 300px; }
    .org-depts { gap: 10px; row-gap: 16px; }
    .onode { padding: 8px 9px; border-radius: 12px; }
    .onode .nm { gap: 7px; }
    .onode img, .onode .cav { width: 26px; height: 26px; }
    .onode b { font-size: 12px; }
    .onode .st { display: none; }
    .org-appr .txt { min-width: 0; flex-basis: 100%; }
    .bens { grid-template-columns: 1fr; }
    .proc-steps li { grid-template-columns: 40px 1fr; gap: 14px; }
    .proc-steps .tico { width: 40px; height: 40px; }
    .proc-steps li::before { left: 19px; top: 44px; }
    .ent-mid .ctas .btn { flex: 1; }
}
.ent-ex .chk.wn { background: var(--warn-line); }
.proc-steps { padding: 0; margin: 0; }
.ent-ex .acard .mockwrap { padding-bottom: 18px; }
.ent-ex .acard .mock { border-radius: 14px; border-bottom: 1px solid var(--line-2); }
html[data-theme="dark"] .mk-plan .ico.done { color: var(--panel); }
