/* ============================================================
   BizPlan AI Pro — Homepage design system v5 (bp- namespace)
   Loaded only on the front page via functions.php.
   All selectors namespaced with .bp- to avoid theme conflicts.
   ============================================================ */

:root {
    --bp-bg: #ffffff;
    --bp-surface: #f8fafc;
    --bp-surface-strong: #f1f5f9;
    --bp-text: #0f172a;
    --bp-text-muted: #55637a;
    --bp-border: #e2e8f0;
    --bp-primary: #4f46e5;
    --bp-primary-dark: #3730a3;
    --bp-primary-soft: #eef2ff;
    --bp-success: #16a34a;
    --bp-dark: #0b1120;
    --bp-radius: 12px;
    --bp-radius-lg: 16px;
    --bp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .07);
    --bp-shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .28);
    --bp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bp-max: 1180px;
}

/* ---------- layout primitives ---------- */
.bp-container { max-width: var(--bp-max); margin: 0 auto; padding: 0 24px; }
.bp-section { background: var(--bp-bg); color: var(--bp-text); padding: 96px 0; font-family: var(--bp-font); }
.bp-surface { background: var(--bp-surface); }

.bp-section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.bp-section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; color: var(--bp-text); margin: 10px 0 14px; font-weight: 700; }
.bp-section-head .bp-sub { color: var(--bp-text-muted); font-size: 1.0625rem; line-height: 1.65; margin: 0; }

.bp-eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--bp-primary); background: var(--bp-primary-soft);
    padding: 5px 12px; border-radius: 999px; margin: 0 0 6px;
}

/* ---------- buttons ---------- */
.bp-btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    font-family: var(--bp-font); font-weight: 600; font-size: .95rem; line-height: 1.2;
    padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bp-btn svg { flex: 0 0 auto; }
.bp-btn-primary { background: var(--bp-primary); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.4), 0 8px 20px -8px rgba(79,70,229,.55); }
.bp-btn-primary:hover { background: var(--bp-primary-dark); transform: translateY(-1px); }
.bp-btn-secondary { background: #fff; color: var(--bp-text); border-color: var(--bp-border); box-shadow: var(--bp-shadow); }
.bp-btn-secondary:hover { border-color: #c7d2fe; color: var(--bp-primary-dark); }
.bp-btn-ghost { background: transparent; color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.35); }
.bp-btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.bp-btn-sm { padding: 10px 18px; font-size: .88rem; }
.bp-btn-block { width: 100%; }
.bp-btn:focus-visible, .bp-eco-link:focus-visible, .bp-industry-card:focus-visible,
.bp-pp-tab:focus-visible, .bp-faq-item summary:focus-visible, .bp-wf-link:focus-visible,
.bp-table-wrap:focus-visible {
    outline: 2px solid var(--bp-primary); outline-offset: 2px; border-radius: 6px;
}

/* ---------- typography helpers ---------- */
.bp-h1 {
    font-family: var(--bp-font); font-weight: 700; letter-spacing: -.025em;
    font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.06;
    color: var(--bp-text); margin: 14px 0 20px;
}
.bp-lede { font-family: var(--bp-font); font-size: 1.175rem; line-height: 1.6; color: var(--bp-text-muted); max-width: 560px; margin: 0 0 32px; }

/* ---------- HERO ---------- */
.bp-hero { background: var(--bp-bg); color: var(--bp-text); font-family: var(--bp-font); padding: 88px 0 96px; position: relative; overflow: hidden; }
.bp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 300px at 82% 8%, rgba(79,70,229,.07), transparent 65%),
        linear-gradient(180deg, var(--bp-surface) 0%, var(--bp-bg) 46%);
}
.bp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.bp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bp-center { justify-content: center; }

.bp-trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 34px 0 0; padding: 0; }
.bp-trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--bp-text-muted); }
.bp-trust-row svg { width: 15px; height: 15px; color: var(--bp-success); flex: none; }

/* ---------- product preview (hero) ---------- */
.bp-product-preview {
    background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-lg); overflow: hidden;
}
.bp-pp-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--bp-border); background: var(--bp-surface); }
.bp-pp-dots { display: inline-flex; gap: 6px; }
.bp-pp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.bp-pp-dots i:first-child { background: #fca5a5; } .bp-pp-dots i:nth-child(2) { background: #fcd34d; } .bp-pp-dots i:nth-child(3) { background: #86efac; }
.bp-pp-title { font-size: .8rem; font-weight: 600; color: var(--bp-text-muted); }
.bp-pp-chip { margin-left: auto; font-size: .75rem; font-weight: 600; letter-spacing: .03em; color: var(--bp-primary-dark); background: var(--bp-primary-soft); border: 1px solid #e0e7ff; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.bp-pp-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--bp-border); background: #fff; overflow-x: auto; }
.bp-pp-tab {
    appearance: none; background: none; border: none; cursor: pointer; font-family: var(--bp-font);
    font-size: .82rem; font-weight: 600; color: var(--bp-text-muted);
    padding: 12px 14px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.bp-pp-tab.is-active { color: var(--bp-primary-dark); border-bottom-color: var(--bp-primary); }
.bp-pp-body { padding: 22px; min-height: 336px; }
.bp-pp-panel[hidden] { display: none; }
.bp-pp-panel { animation: bp-fade .28s ease; }
@keyframes bp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bp-pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.bp-pp-project { font-weight: 700; font-size: 1rem; color: var(--bp-text); margin: 0; }
.bp-pp-sub { font-size: .78rem; color: var(--bp-text-muted); margin: 3px 0 0; }
.bp-pp-score { text-align: right; flex: none; }
.bp-pp-score-val { display: block; font-size: 1.9rem; font-weight: 700; color: var(--bp-primary-dark); line-height: 1; }
.bp-pp-score-lbl { font-size: .75rem; color: var(--bp-text-muted); }
.bp-pp-score-lbl i { font-size: .75rem; }

.bp-pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bp-pp-card { border: 1px solid var(--bp-border); border-radius: 10px; padding: 14px 16px; background: var(--bp-surface); }
.bp-pp-k { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-text-muted); }
.bp-pp-v { display: block; font-size: 1.06rem; font-weight: 700; color: var(--bp-text); margin-top: 4px; }
.bp-pp-note { display: block; font-size: .75rem; color: var(--bp-text-muted); margin-top: 3px; }
.bp-pp-chart { grid-column: 1 / -1; display: flex; flex-direction: column; }
.bp-pp-chart svg { width: 100%; height: 58px; margin-top: 8px; }

.bp-pp-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bp-pp-pill { font-size: .75rem; font-weight: 600; color: var(--bp-text-muted); border: 1px solid var(--bp-border); background: #fff; padding: 5px 11px; border-radius: 999px; }
.bp-pp-pill.ok { color: var(--bp-success); border-color: #bbf7d0; background: #f0fdf4; }

.bp-pp-outline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.bp-pp-outline li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .86rem; font-weight: 500; color: var(--bp-text); border: 1px solid var(--bp-border); border-radius: 9px; padding: 10px 14px; background: var(--bp-surface); }
.bp-pp-done { font-size: .75rem; font-weight: 600; color: var(--bp-success); background: #f0fdf4; border: 1px solid #bbf7d0; padding: 2px 9px; border-radius: 999px; }
.bp-pp-pending { font-size: .75rem; font-weight: 600; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 2px 9px; border-radius: 999px; }

/* ---------- metrics (market panel + showcase 2) ---------- */
.bp-metric { margin: 0 0 14px; }
.bp-metric-row { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 6px; color: var(--bp-text-muted); }
.bp-metric-row strong { color: var(--bp-text); }
.bp-meter { height: 7px; border-radius: 99px; background: var(--bp-surface-strong); overflow: hidden; }
.bp-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--bp-primary), #818cf8); }

/* ---------- workflow ---------- */
.bp-workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: bp-wf; }
.bp-workflow-step { position: relative; background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 22px 18px; box-shadow: var(--bp-shadow); }
.bp-workflow-step:not(:last-child)::after {
    content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
    font-size: 1rem; color: #94a3b8; z-index: 1;
}
.bp-wf-num { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bp-primary-soft); color: var(--bp-primary-dark); font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.bp-workflow-step h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; color: var(--bp-text); font-family: var(--bp-font); }
.bp-workflow-step p { font-size: .84rem; line-height: 1.55; color: var(--bp-text-muted); margin: 0; }
.bp-wf-link { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--bp-primary); text-decoration: none; }
.bp-wf-link:hover { color: var(--bp-primary-dark); text-decoration: underline; }

/* ---------- ecosystem ---------- */
.bp-eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bp-eco-card { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 26px 24px; box-shadow: var(--bp-shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: box-shadow .2s ease, transform .2s ease; }
.bp-eco-card:hover { transform: translateY(-2px); box-shadow: var(--bp-shadow-lg); }
.bp-eco-card h3 { font-size: 1.06rem; font-weight: 700; margin: 0; color: var(--bp-text); font-family: var(--bp-font); }
.bp-eco-card p { font-size: .9rem; line-height: 1.6; color: var(--bp-text-muted); margin: 0; flex: 1; }
.bp-eco-lead { background: linear-gradient(160deg, #fff 60%, var(--bp-primary-soft)); }
.bp-eco-link { font-size: .88rem; font-weight: 600; color: var(--bp-primary); text-decoration: none; }
.bp-eco-link:hover { color: var(--bp-primary-dark); text-decoration: underline; }

/* ---------- showcases ---------- */
.bp-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.bp-showcase h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.14; letter-spacing: -.02em; color: var(--bp-text); margin: 10px 0 16px; font-weight: 700; font-family: var(--bp-font); }
.bp-showcase p { font-size: 1rem; line-height: 1.7; color: var(--bp-text-muted); margin: 0 0 18px; }
.bp-checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.bp-checklist li { position: relative; padding-left: 28px; font-size: .93rem; color: var(--bp-text); line-height: 1.5; }
.bp-checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bp-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5 3 8l1.1-1.1L6.5 9.3l5.4-5.4L13 5z' fill='%234f46e5'/%3E%3C/svg%3E") center/10px no-repeat; }

.bp-doc { position: relative; background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-lg); padding: 26px 28px; }
.bp-doc-label { position: absolute; top: -12px; left: 22px; background: var(--bp-primary-soft); border: 1px solid #e0e7ff; color: var(--bp-primary-dark); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0; }
.bp-doc-page { display: grid; gap: 7px; }
.bp-doc-h { font-size: .8rem; font-weight: 700; color: var(--bp-primary-dark); margin-top: 8px; letter-spacing: .02em; }
.bp-doc-line { display: block; height: 8px; border-radius: 99px; background: var(--bp-surface-strong); }
.bp-doc-line.w90 { width: 90%; } .bp-doc-line.w85 { width: 85%; } .bp-doc-line.w80 { width: 80%; }
.bp-doc-line.w75 { width: 75%; } .bp-doc-line.w60 { width: 60%; } .bp-doc-line.w55 { width: 55%; }

.bp-panel { position: relative; background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); box-shadow: var(--bp-shadow-lg); padding: 28px; }
.bp-panel-label { position: absolute; top: -12px; left: 22px; background: var(--bp-surface-strong); border: 1px solid var(--bp-border); color: var(--bp-text-muted); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0; }
.bp-panel-head { font-size: 1rem; font-weight: 700; color: var(--bp-text); margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bp-panel-cur { font-size: .75rem; font-weight: 600; color: var(--bp-text-muted); }
.bp-panel-foot { font-size: .75rem; color: var(--bp-text-muted); margin: 16px 0 0; line-height: 1.5; }

.bp-fin-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.bp-fin-table th { text-align: left; font-weight: 600; color: var(--bp-text-muted); border-bottom: 1px solid var(--bp-border); padding: 6px 8px; }
.bp-fin-table td { padding: 7px 8px; border-bottom: 1px solid var(--bp-surface-strong); color: var(--bp-text); }
.bp-fin-table th:not(:first-child), .bp-fin-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.bp-fin-total td { font-weight: 700; color: var(--bp-primary-dark); border-bottom: none; }
.bp-fin-chart { width: 100%; height: 44px; margin-top: 10px; }

/* ---------- dark band: assumption transparency ---------- */
.bp-dark-band { background: var(--bp-dark); color: #e2e8f0; padding: 96px 0; font-family: var(--bp-font); }
.bp-on-dark h2 { color: #fff; }
.bp-on-dark .bp-sub { color: #94a3b8; }
.bp-dark-band .bp-eyebrow { background: rgba(99,102,241,.18); color: #a5b4fc; }
.bp-table-wrap { overflow-x: auto; border: 1px solid rgba(148,163,184,.2); border-radius: var(--bp-radius); background: rgba(255,255,255,.03); }
.bp-assump-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.bp-assump-table caption { display: none; }
.bp-assump-table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; padding: 14px 20px; border-bottom: 1px solid rgba(148,163,184,.25); }
.bp-assump-table td { padding: 15px 20px; border-bottom: 1px solid rgba(148,163,184,.12); font-size: .92rem; }
.bp-assump-table tr:last-child td { border-bottom: none; }
.bp-assump-table td:nth-child(2) { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; color: #fff; }
.bp-basis { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.bp-basis-user { background: rgba(22,163,74,.16); color: #4ade80; }
.bp-basis-bench { background: rgba(79,70,229,.22); color: #a5b4fc; }
.bp-basis-ai { background: rgba(245,158,11,.16); color: #fbbf24; }
.bp-fineprint { font-size: .78rem; color: #94a3b8; margin: 18px 0 0; line-height: 1.6; max-width: 760px; }

/* ---------- industry explorer ---------- */
.bp-industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bp-industry-card {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius);
    padding: 18px 20px; font-size: .92rem; font-weight: 600; color: var(--bp-text);
    text-decoration: none; font-family: var(--bp-font); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bp-industry-card:hover { border-color: #c7d2fe; color: var(--bp-primary-dark); transform: translateY(-2px); box-shadow: var(--bp-shadow); }
.bp-grid-foot { text-align: center; margin: 34px 0 0; }

/* ---------- global band ---------- */
.bp-global { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.bp-global h2 { font-size: clamp(1.7rem,3vw,2.3rem); letter-spacing: -.02em; line-height: 1.14; color: var(--bp-text); margin: 10px 0 16px; font-weight: 700; font-family: var(--bp-font); }
.bp-global-text > p { font-size: 1rem; line-height: 1.7; color: var(--bp-text-muted); margin: 0 0 26px; }
.bp-global-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bp-global-list li { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 20px 22px; box-shadow: var(--bp-shadow); }
.bp-global-list h3 { font-size: .98rem; font-weight: 700; margin: 0 0 5px; color: var(--bp-text); font-family: var(--bp-font); }
.bp-global-list p { font-size: .88rem; line-height: 1.55; color: var(--bp-text-muted); margin: 0; }

/* ---------- trust grid ---------- */
.bp-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bp-trust-card { background: #fff; border: 1px solid var(--bp-border); border-left: 3px solid var(--bp-primary); border-radius: var(--bp-radius); padding: 24px 26px; box-shadow: var(--bp-shadow); }
.bp-trust-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--bp-text); font-family: var(--bp-font); }
.bp-trust-card p { font-size: .9rem; line-height: 1.65; color: var(--bp-text-muted); margin: 0; }
.bp-trust-links { text-align: center; margin: 36px 0 0; font-size: .92rem; color: var(--bp-text-muted); }
.bp-trust-links .bp-eco-link { margin: 0 6px; }
.bp-trust-links span { margin: 0 4px; }

/* ---------- why grid ---------- */
.bp-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bp-why-card { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 26px 24px; box-shadow: var(--bp-shadow); }
.bp-why-card h3 { font-size: 1.04rem; font-weight: 700; margin: 0 0 8px; color: var(--bp-text); font-family: var(--bp-font); }
.bp-why-card p { font-size: .9rem; line-height: 1.65; color: var(--bp-text-muted); margin: 0; }

/* ---------- pricing ---------- */
.bp-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.bp-price-card { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-lg); padding: 30px 28px; box-shadow: var(--bp-shadow); display: flex; flex-direction: column; }
.bp-price-featured { border-color: var(--bp-primary); box-shadow: 0 0 0 1px var(--bp-primary), var(--bp-shadow-lg); position: relative; }
.bp-price-card h3 { font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-text-muted); margin: 0 0 12px; font-family: var(--bp-font); }
.bp-price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.bp-price strong { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--bp-text); }
.bp-price span { font-size: .82rem; color: var(--bp-text-muted); }
.bp-price-desc { font-size: .9rem; color: var(--bp-text-muted); margin: 0 0 18px; line-height: 1.5; }
.bp-price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.bp-price-card li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--bp-text); line-height: 1.45; }
.bp-price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--bp-success); font-weight: 700; }

/* ---------- FAQ ---------- */
.bp-faq { max-width: 820px; }
.bp-faq-item { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); margin-bottom: 12px; overflow: hidden; }
.bp-faq-item summary {
    cursor: pointer; list-style: none; position: relative; padding: 18px 52px 18px 22px;
    font-size: 1rem; font-weight: 600; color: var(--bp-text); font-family: var(--bp-font);
}
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.3rem; font-weight: 400; color: var(--bp-text-muted); transition: transform .2s ease;
}
.bp-faq-item[open] summary::after { content: "–"; }
.bp-faq-item[open] summary { color: var(--bp-primary-dark); }
.bp-faq-item p { padding: 0 22px 20px; margin: 0; font-size: .93rem; line-height: 1.7; color: var(--bp-text-muted); }
.bp-faq-item a { color: var(--bp-primary); }

/* ---------- final CTA ---------- */
.bp-final-cta { background: linear-gradient(180deg, var(--bp-dark) 0%, #101a33 100%); color: #fff; padding: 104px 0; text-align: center; font-family: var(--bp-font); }
.bp-final-cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.02em; margin: 0 0 14px; font-weight: 700; color: #fff; }
.bp-final-cta p { font-size: 1.08rem; color: #94a3b8; margin: 0 auto 34px; max-width: 560px; line-height: 1.6; }
.bp-final-cta .bp-hero-actions { justify-content: center; }

/* ---------- header refinements (front page only) ---------- */
body.home header { backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,.9); transition: box-shadow .2s ease, background .2s ease; }
body.home header.bp-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--bp-border), 0 8px 24px -18px rgba(15,23,42,.35); }
body.home .header-container { min-height: 64px; }
body.home .site-title, body.home p.bp-brand-fallback { margin: 0; }
.bp-brand-fallback a { font-family: var(--bp-font); font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; color: var(--bp-text); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .bp-section, .bp-hero, .bp-dark-band, .bp-final-cta { padding: 72px 0; }
    .bp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .bp-hero-content { text-align: left; }
    .bp-h1 { font-size: clamp(2.9rem, 5.6vw, 3.6rem); } /* tablet: ~46–58px */
    .bp-workflow { grid-template-columns: repeat(3, 1fr); }
    .bp-workflow-step:nth-child(3)::after { content: ""; }
    .bp-eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-industry-grid { grid-template-columns: repeat(3, 1fr); }
    .bp-showcase { grid-template-columns: 1fr; gap: 40px; }
    .bp-showcase-visual { order: -1; } /* panel above heading on mobile — consistent rhythm across all three showcases */
    .bp-global { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .bp-section, .bp-hero, .bp-dark-band, .bp-final-cta { padding: 56px 0; }
    .bp-h1 { font-size: clamp(2.625rem, 9vw, 3rem); line-height: 1.05; } /* ~42–48px */
    .bp-lede { font-size: 1.0625rem; max-width: 100%; }
    .bp-pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .bp-trust-grid, .bp-why-grid { grid-template-columns: 1fr; }
    .bp-industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* §6 workflow: readable cards; single-column vertical sequence on phones (≤560) */
    .bp-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bp-workflow-step { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 14px; padding: 16px 18px; }
    .bp-workflow-step .bp-wf-num { margin-bottom: 0; flex-shrink: 0; }
    .bp-workflow-step h3 { margin: 3px 0 4px; flex: 1; min-width: 0; }
    .bp-workflow-step p { flex: 1 1 100%; }
    .bp-workflow-step:not(:last-child)::after { display: none; }
    .bp-pp-body { padding: 16px; }
    .bp-pp-grid { grid-template-columns: 1fr; }
    .bp-pp-score-val { font-size: 1.5rem; }
    .bp-btn { padding: 12px 20px; }
    /* Assumptions table -> stacked cards (metric | value on one row, basis chip below).
       The min-width:480px scroll trap is removed entirely at this size. */
    .bp-table-wrap { overflow: visible; border: none; background: none; border-radius: 0; }
    .bp-assump-table { min-width: 0; display: block; }
    .bp-assump-table thead { display: none; }
    .bp-assump-table tbody { display: block; }
    .bp-assump-table tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px;
        padding: 14px 16px; margin-bottom: 10px;
        border: 1px solid rgba(148,163,184,.22); border-radius: 10px; background: rgba(255,255,255,.03);
    }
    .bp-assump-table td { border: none; padding: 0; }
    .bp-assump-table td:first-child { font-weight: 600; color: #fff; font-size: .9rem; }
    .bp-assump-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
    .bp-assump-table td:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .bp-workflow { grid-template-columns: 1fr; }
    .bp-workflow-step::after { content: "" !important; }
    .bp-industry-grid { grid-template-columns: 1fr; }
    .bp-hero-actions { flex-direction: column; align-items: stretch; }
    .bp-hero-actions .bp-btn { width: 100%; min-height: 48px; }
    .bp-final-cta .bp-hero-actions { flex-direction: column; align-items: stretch; }
    /* The "example data" disclosure must stay visible — compact it, never hide it */
    .bp-pp-bar { flex-wrap: wrap; gap: 6px 10px; }
    .bp-pp-title { font-size: .78rem; }
    .bp-pp-chip { margin-left: auto; font-size: .75rem; padding: 3px 9px; } /* disclosure must stay readable on mobile */
    /* Touch targets: card CTA links need ~44px tap height */
    .bp-wf-link, .bp-eco-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
}

@media (max-width: 480px) {
    .bp-container { padding: 0 20px; }
    .bp-eco-grid { grid-template-columns: 1fr; }
    .bp-lede { font-size: 1.0625rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .bp-pp-panel { animation: none; }
    .bp-btn, .bp-eco-card, .bp-industry-card { transition: none; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- generator landing page (page-business-plan-generator.php) ---------- */
/* Plan-contents grid — sibling of .bp-why-grid, denser cards */
.bp-plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bp-plan-item { background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 20px 18px; }
.bp-plan-item h3 { font-size: .95rem; font-weight: 700; margin: 0 0 6px; color: var(--bp-text); font-family: var(--bp-font); }
.bp-plan-item p { font-size: .84rem; line-height: 1.6; color: var(--bp-text-muted); margin: 0; }

/* Generic-AI vs structured-planning comparison table */
.bp-compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); overflow: hidden; }
.bp-compare caption { text-align: left; }
.bp-compare thead th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-text-muted); text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--bp-border); background: var(--bp-bg-alt, #f8fafc); }
.bp-compare thead th:last-child { color: var(--bp-primary); }
.bp-compare tbody th { text-align: left; font-size: .9rem; font-weight: 650; color: var(--bp-text); padding: 14px 18px; border-bottom: 1px solid var(--bp-border-soft, #eef2f7); white-space: nowrap; }
.bp-compare tbody td { font-size: .9rem; line-height: 1.6; padding: 14px 18px; border-bottom: 1px solid var(--bp-border-soft, #eef2f7); vertical-align: top; }
.bp-compare tbody tr:last-child th, .bp-compare tbody tr:last-child td { border-bottom: none; }
.bp-compare td.generic { color: var(--bp-text-muted); }
.bp-compare td.ours { color: var(--bp-text); font-weight: 500; background: rgba(79,70,229,.035); }

/* Inline centered CTA under the workflow */
.bp-cta-inline { margin-top: 34px; text-align: center; }

/* Visually hidden (WP convention) for the comparison caption */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); border: 0; white-space: nowrap; }

@media (max-width: 900px) {
    .bp-plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* Table -> stacked definition cards, same pattern as .bp-assump-table */
    .bp-compare { display: block; border: none; background: none; }
    .bp-compare thead { display: none; }
    .bp-compare tbody { display: block; }
    .bp-compare tr { display: block; background: #fff; border: 1px solid var(--bp-border); border-radius: var(--bp-radius); padding: 16px 18px; margin-bottom: 12px; }
    .bp-compare tbody th { white-space: normal; border: none; padding: 0 0 6px; }
    .bp-compare tbody td { display: block; border: none; padding: 6px 0 0; }
    .bp-compare tbody td.generic::before { content: "Generic AI writer: "; font-weight: 650; color: var(--bp-text-muted); }
    .bp-compare tbody td.ours::before { content: "BizPlan AI Pro: "; font-weight: 650; color: var(--bp-primary); }
    .bp-compare tbody td.ours { background: none; }
}
@media (max-width: 560px) {
    .bp-plan-grid { grid-template-columns: 1fr; }
}
