/* Free Business Plan Generator (/free-business-plan-generator). Everything runs in the browser; see assets/js/business-plan.js. */
.bp { --bp-border: var(--color-border, #e2e8f0); --bp-primary: var(--color-primary, #1d4ed8); --bp-muted: var(--color-text-muted, #64748b); }
.bp .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp [hidden] { display: none !important; }
.bp-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.bp-trust li::before { content: "\2713"; color: #16a34a; font-weight: 700; margin-right: .4rem; }
.bp-noscript { background: #fef2f2; color: #b91c1c; padding: 1rem; border-radius: 10px; text-align: center; }

/* ---- wizard ---- */
.bp-formpane { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--bp-border); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow-md, 0 8px 30px rgba(15,23,42,.1)); }
.bp-steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 .9rem; padding: 0; counter-reset: none; }
.bp-steps li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .8rem; color: var(--bp-muted); min-width: 0; }
.bp-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e2e8f0; color: #475569; font-weight: 700; font-size: .9rem; }
.bp-steps__t { line-height: 1.2; }
.bp-steps li.is-on { color: var(--color-text, #0f172a); font-weight: 600; }
.bp-steps li.is-on .bp-steps__n { background: var(--bp-primary); color: #fff; }
.bp-steps li.is-done .bp-steps__n { background: #16a34a; color: #fff; }
.bp-progress { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.bp-progress span { display: block; height: 100%; width: 20%; background: var(--bp-primary); border-radius: 999px; transition: width .25s ease; }
.bp-steptitle { margin: 0 0 1rem; font-size: 1.35rem; }
.bp-steptitle:focus { outline: none; }
.bp-lead { margin: 0 0 1rem; color: var(--bp-muted); }
.bp-field { display: block; margin-bottom: 1rem; }
.bp-label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 .35rem; color: var(--color-text, #0f172a); }
.bp-opt { font-weight: 400; color: var(--bp-muted); }
.bp-hint { font-size: .85rem; color: var(--bp-muted); margin: .3rem 0 0; }
.bp-input { width: 100%; padding: .7rem .85rem; font: inherit; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: inherit; box-sizing: border-box; }
select.bp-input { appearance: auto; }
textarea.bp-input { resize: vertical; min-height: 5rem; }
.bp-input:focus, .bp-x:focus-visible, .bp-add:focus-visible, .bp-link:focus-visible { outline: 3px solid rgba(29,78,216,.35); outline-offset: 1px; border-color: var(--bp-primary); }
.bp-input[aria-invalid="true"] { border-color: #dc2626; }
.bp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.bp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.bp-h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.bp-rows { display: grid; gap: .5rem; margin-bottom: .6rem; }
.bp-row { display: grid; grid-template-columns: 1fr 9rem 2.4rem; gap: .5rem; align-items: center; }
.bp-row:has(.bp-x:only-child), .bp-row > .bp-input:only-of-type { grid-template-columns: 1fr; }
.bp-x { width: 2.4rem; height: 2.4rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; color: #64748b; }
.bp-x:hover { color: #b91c1c; border-color: #b91c1c; }
.bp-add { background: none; border: 1px dashed #94a3b8; border-radius: 10px; padding: .5rem .9rem; font: inherit; font-size: .9rem; color: var(--bp-primary); cursor: pointer; margin-bottom: 1rem; }
.bp-add:hover { border-color: var(--bp-primary); background: #eff6ff; }
.bp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; margin-bottom: 1.1rem; }
.bp-check { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; font-size: .93rem; background: #fff; }
.bp-check:hover { border-color: var(--bp-primary); }
.bp-check input { width: 1.1rem; height: 1.1rem; flex: none; }
.bp-tag { font-size: .7rem; background: #dcfce7; color: #166534; border-radius: 999px; padding: .05rem .5rem; margin-left: auto; white-space: nowrap; }
.bp-error { color: #b91c1c; font-size: .92rem; min-height: 1.3em; margin: .5rem 0; }
.bp-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.bp-nav #bp-next { margin-left: auto; }
.bp-privacy { text-align: center; font-size: .85rem; color: var(--bp-muted); margin: 1rem 0 0; }

/* ---- result toolbar ---- */
.bp-result { max-width: 900px; margin: 0 auto; }
.bp-bar { position: sticky; top: 112px; z-index: 5; background: #fff; border: 1px solid var(--bp-border); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm, 0 4px 14px rgba(15,23,42,.08)); }
.bp-bar__line { margin: 0 0 .6rem; font-size: .92rem; color: var(--bp-muted); }
.bp-bar__btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bp-bar__btns .btn { padding: .55rem 1rem; font-size: .92rem; }
.bp-link { background: none; border: 0; color: var(--bp-muted); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; padding: .4rem; }

/* ---- the plan document ---- */
.bp-doc { background: #fff; border: 1px solid var(--bp-border); border-radius: 8px; padding: 3rem 3.25rem; box-shadow: var(--shadow-md, 0 8px 30px rgba(15,23,42,.08)); font-family: Georgia, "Times New Roman", serif; line-height: 1.65; color: #0f172a; overflow-wrap: anywhere; }
.bp-cover { padding: 2.5rem 0 1.5rem; border-bottom: 3px solid var(--bp-primary); margin-bottom: 1.5rem; }
.bp-kicker { text-transform: uppercase; letter-spacing: .16em; color: var(--bp-primary); font: 600 .78rem Arial, sans-serif; margin: 0 0 .5rem; }
.bp-cover h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 .5rem; }
.bp-sub { color: var(--bp-muted); margin: 0; font-family: Arial, sans-serif; font-size: .95rem; }
.bp-todo { background: #fefce8; border: 1px solid #fde68a; border-radius: 8px; padding: .7rem 1rem; font: .9rem/1.5 Arial, sans-serif; color: #713f12; margin: 0 0 1.25rem; }
.bp-toc { background: #f8fafc; border: 1px solid var(--bp-border); border-radius: 8px; padding: .9rem 1.4rem 1rem; margin: 0 0 1rem; font-family: Arial, sans-serif; }
.bp-toc h2, .bp-toc strong { font-size: 1rem; }
.bp-toc ol { margin: .4rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.bp-toc a { color: var(--bp-primary); text-decoration: none; }
.bp-toc a:hover { text-decoration: underline; }
.bp-doc h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; padding-bottom: .35rem; border-bottom: 2px solid #dbeafe; color: #0f172a; }
.bp-doc h3 { font-size: 1.1rem; margin: 1.3rem 0 .4rem; }
.bp-doc p { margin: 0 0 .9rem; }
.bp-doc ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.bp-doc li { margin-bottom: .35rem; }
.bp-edit { border-radius: 6px; outline: none; margin: 0 -.6rem; padding: .1rem .6rem; transition: background .15s; }
.bp-edit:hover { background: #f8fafc; }
.bp-edit:focus { background: #f0f9ff; box-shadow: 0 0 0 2px rgba(29,78,216,.25); }
mark.bp-ph { background: #fef08a; color: #713f12; padding: 0 .2rem; border-radius: 3px; }
.bp-tablewrap { overflow-x: auto; margin: .4rem 0 1rem; -webkit-overflow-scrolling: touch; }
.bp-table { border-collapse: collapse; width: 100%; font: .88rem/1.4 Arial, sans-serif; }
.bp-table th, .bp-table td { border: 1px solid #cbd5e1; padding: .45rem .65rem; text-align: left; vertical-align: top; }
.bp-table th { background: #f1f5f9; }
.bp-table td.num, .bp-table th.num { text-align: right; white-space: nowrap; }
.bp-table tr.total td { font-weight: 700; background: #f8fafc; }
.bp-table.bp-wide { min-width: 640px; }
.bp-table .neg { color: #b91c1c; }
.bp-chart { width: 100%; height: auto; display: block; margin: .5rem 0 1rem; font-family: Arial, sans-serif; }
.bp-disclaimer { font: .8rem/1.5 Arial, sans-serif; color: var(--bp-muted); border-top: 1px solid var(--bp-border); padding-top: .9rem; margin-top: 2rem; }

/* ---- content sections ---- */
.bp-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: bpstep; }
.bp-how li { counter-increment: bpstep; background: #fff; border: 1px solid var(--bp-border); border-radius: 16px; padding: 1.25rem; }
.bp-how li::before { content: counter(bpstep); display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--bp-primary); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.bp-how h3 { margin: 0 0 .35rem; }
.bp-how p { margin: 0; color: var(--bp-muted); }
.bp-prose { max-width: 760px; margin: 0 auto; }
.bp-prose h2 { margin-top: 0; }
.bp-prose p { margin: 0 0 1rem; }
.bp-prose--tail { margin-top: 2.5rem; }
.bp-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.bp-tips div { background: #fff; border: 1px solid var(--bp-border); border-radius: 14px; padding: 1rem 1.1rem; }
.bp-tips h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.bp-tips p { margin: 0; font-size: .93rem; color: var(--bp-muted); }
.bp-cta { text-align: center; max-width: 720px; margin: 0 auto; }
.bp-cta .btn { margin: .4rem; }

@media (max-width: 760px) {
    .bp-formpane { padding: 1.1rem; border-radius: 16px; }
    .bp-steps__t { display: none; }
    .bp-steps li.is-on .bp-steps__t { display: block; position: absolute; left: -9999px; }
    .bp-grid2, .bp-grid3 { grid-template-columns: 1fr; }
    .bp-row { grid-template-columns: 1fr 6.5rem 2.4rem; }
    .bp-bar { position: static; }
    .bp-doc { padding: 1.4rem 1.1rem; }
    .bp-toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { .bp-progress span { transition: none; } }

/* ---- printing the page itself (the Print button uses its own clean document) ---- */
@media print {
    .bp-bar, .bp-todo, .bp-steps, .bp-progress { display: none !important; }
    .bp-doc { border: 0; box-shadow: none; padding: 0; }
}
