/*
 * /start (signup, workspace setup progress, setup failed, waitlist): Figma "V2 · Get started" G1, G2, G8.
 * Quiet Ledger tokens (same values as boringaccounts_theme.css, which only loads in Desk).
 * Fonts are the self-hosted OFL files in ../fonts.
 */
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-sans/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/instrument-sans/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/instrument-sans/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

.ba-start-shell {
	--paper: #f3f4ee;
	--paper-2: #eceee6;
	--card: #ffffff;
	--ink: #13211b;
	--ink-2: #3e4d45;
	--ink-3: #5a6a61;
	--green: #1c6b45;
	--green-dark: #0f4a2e;
	--green-soft: #e3f0e8;
	--amber: #f2b230;
	--amber-soft: #fcefcb;
	--red: #b42318;
	--red-soft: #fdecea;
	--line: #d9ddd2;
	--input: #7f8b84;
	--display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
	--body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 15px;
	line-height: 1.5;
	padding: 48px 16px 64px;
	min-height: 70vh;
	box-sizing: border-box;
}
body:has(.ba-start-shell) { background: #f3f4ee; }
.ba-start-shell *, .ba-start-shell *::before, .ba-start-shell *::after { box-sizing: border-box; }

.ba-brand {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 24px;
}
.ba-brand__mark {
	width: 26px; height: 26px; border-radius: 7px; background: var(--ink);
	display: inline-flex; align-items: center; justify-content: center;
}
.ba-card {
	max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
	border-radius: 20px; padding: 32px 40px; box-shadow: 0 1px 2px rgba(19, 33, 27, 0.04), 0 8px 24px rgba(19, 33, 27, 0.06);
}
.ba-eyebrow {
	font-family: var(--data); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--ink-3); margin: 0 0 16px; overflow-wrap: anywhere;
}
.ba-start-shell h1 {
	font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15;
	letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px;
}
.ba-start-shell h2 { font-family: var(--body); font-weight: 600; font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.ba-muted { color: var(--ink-3); margin: 0 0 20px; }
.ba-start-shell a { color: var(--green); }

.ba-bar { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 4px 0 20px; }
.ba-bar__fill { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width 0.6s ease; }

.ba-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ba-step { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.ba-step__label { flex: 1; }
.ba-step__mark {
	flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2);
	display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.ba-step--pending { color: var(--ink-3); font-weight: 400; }
.ba-step--done .ba-step__mark { background: var(--green); }
.ba-step--done .ba-step__mark::after {
	content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0;
	transform: rotate(-45deg) translate(1px, -1px);
}
.ba-step--active .ba-step__mark { background: var(--amber-soft); border: 2px solid var(--amber); }
.ba-step--active .ba-step__mark::after {
	content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--amber);
	border-top-color: transparent; animation: ba-spin 1s linear infinite;
}
.ba-step--stopped .ba-step__mark { background: var(--red-soft); border: 2px solid var(--red); }
@keyframes ba-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.ba-step--active .ba-step__mark::after { animation: none; }
	.ba-bar__fill { transition: none; }
}

.ba-elapsed { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }
.ba-note {
	background: var(--amber-soft); color: #6b4b00; border-radius: 10px; padding: 10px 12px; margin: 16px 0 0; font-size: 14px;
}
.ba-divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.ba-start-shell form { display: grid; gap: 12px; margin: 0; }
.ba-start-shell label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; color: var(--ink); }
.ba-start-shell input:not([type=checkbox]), .ba-start-shell select {
	font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--input);
	border-radius: 10px; padding: 10px 12px; width: 100%;
}
.ba-start-shell input:focus-visible, .ba-start-shell select:focus-visible, .ba-start-shell button:focus-visible,
.ba-start-shell a:focus-visible {
	outline: 2px solid var(--green); outline-offset: 2px;
}
.ba-hint { font-size: 13px; color: var(--ink-3); font-weight: 400; margin: 0; }
/* Placeholders read as hints, never as a filled-in value. */
.ba-start-shell input::placeholder { color: var(--ink-3); opacity: 0.7; }
.ba-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.ba-btn {
	font: inherit; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 10px 16px; cursor: pointer;
	border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; display: inline-flex;
	align-items: center; gap: 8px;
}
.ba-btn[disabled] { opacity: 0.6; cursor: wait; }
.ba-btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.ba-btn--link { background: none; border-color: transparent; color: var(--ink); padding-left: 4px; padding-right: 4px; }
.ba-btn--wide { width: 100%; justify-content: center; padding: 12px 16px; }
.ba-start-shell a.ba-btn--secondary { color: var(--ink); }

.ba-alert-icon {
	width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 16px; font-weight: 700;
}
.ba-alert-icon--red { background: var(--red-soft); color: var(--red); }
.ba-alert-icon--green { background: var(--green-soft); color: var(--green); }
.ba-reassure {
	list-style: none; margin: 0 0 20px; padding: 14px 16px; background: var(--green-soft); border-radius: 10px;
	display: grid; gap: 6px; font-size: 14px; color: var(--ink-2);
}
.ba-reassure li { display: flex; gap: 8px; }
.ba-reassure li::before { content: "✓"; color: var(--green); font-weight: 700; }
.ba-reference { font-family: var(--data); font-size: 12px; color: var(--ink-3); margin: 16px 0 0; overflow-wrap: anywhere; }
.ba-footer { max-width: 560px; margin: 16px auto 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.ba-error { color: var(--red); min-height: 20px; margin: 8px 0 0; font-size: 14px; }
.ba-start-shell label.ba-terms { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.ba-start-shell label.ba-terms input { margin-top: 4px; }
.ba-visually-hidden {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
[hidden] { display: none !important; }

@media (max-width: 600px) {
	.ba-start-shell { padding: 24px 16px 48px; }
	.ba-card { padding: 24px 20px; border-radius: 16px; }
	.ba-start-shell h1 { font-size: 25px; }
}
