/*
 * The front door.
 *
 * This is the one surface a stranger meets before they know anything about us,
 * and the first screen has to carry the whole argument on its own. It gets more
 * room and more contrast than the internal forms do.
 *
 * SAME TOKEN RULE AS EVERYTHING ELSE: `var(--cf-*, literal)`, theme first with
 * a literal behind it, so it is still right anywhere the theme is not loaded.
 * Cyan is the accent, not blue.
 */

.bbod-start {
	--bbs-bg: var(--cf-black, #05070A);
	--bbs-card: var(--cf-panel, #10161E);
	--bbs-card-2: var(--cf-panel-2, #141C26);
	--bbs-line: var(--cf-line-strong, rgba(200, 216, 235, .24));
	--bbs-line-soft: var(--cf-line, rgba(200, 216, 235, .13));
	--bbs-text: var(--cf-white, #F5F7FA);
	--bbs-sub: var(--cf-silver, #B7C0CC);
	--bbs-accent: var(--cf-cyan, #74E6FF);
	--bbs-ok: var(--cf-green, #5FE0B1);
	--bbs-alert: var(--cf-red, #FF6B75);

	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2.5rem) 1rem clamp(2rem, 5vw, 4rem);
	font-family: var(--cf-body, Inter), Inter, ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
	color: var(--bbs-text);
	line-height: 1.55;
}

.bbod-start * { box-sizing: border-box; }

.bbod-start-notice {
	margin: 0 0 1.25rem;
	padding: .75rem .9rem;
	border-left: 3px solid var(--bbs-accent);
	border-radius: 4px;
	background: rgba(116, 230, 255, .08);
	font-size: .9rem;
}

.bbod-start-notice.is-error { border-left-color: var(--bbs-alert); background: rgba(255, 107, 117, .10); }

/*
 * The honeypot. Off-screen rather than display:none, because some fillers skip
 * anything hidden outright and this one is meant to be found and filled.
 */
.bbod-start-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- progress rail -------------------------------------------------- */

.bbod-start-rail {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

/*
 * HIDDEN UNTIL THE STEPPER IS RUNNING. With no JavaScript every step is on
 * screen at once, and a row of pips claiming to track a position nothing is
 * tracking is a lie about what the page is doing.
 */
.bbod-start:not(.js-on) .bbod-start-rail { display: none; }

.bbod-start-pip {
	flex: 1 1 auto;
	min-width: 2rem;
	height: 3px;
	border-radius: 999px;
	background: var(--bbs-line-soft);
	transition: background .25s;
}

.bbod-start-pip.is-done { background: var(--bbs-ok); }
.bbod-start-pip.is-now  { background: var(--bbs-accent); }

/* The label is for screen readers; the bar carries it visually. */
.bbod-start-pip span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- steps ---------------------------------------------------------- */

.bbod-start.js-on .bbod-start-step { display: none; }
.bbod-start.js-on .bbod-start-step.is-now { display: block; }

/* With no script, the steps are a long form and need separating. */
.bbod-start:not(.js-on) .bbod-start-step {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--bbs-line-soft);
}

.bbod-start-step h3 {
	margin: 0 0 .35rem;
	font-family: var(--cf-display, 'Space Grotesk'), 'Space Grotesk', Georgia, serif;
	font-size: clamp(1.25rem, 3.2vw, 1.7rem);
	line-height: 1.2;
	color: var(--bbs-text);
}

.bbod-start-hint {
	margin: 0 0 1.1rem;
	color: var(--bbs-sub);
	font-size: .92rem;
}

.bbod-start-step p { margin: 0 0 1.1rem; }

.bbod-start-step label {
	display: block;
	margin-bottom: .35rem;
	font-size: .82rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--bbs-sub);
}

.bbod-start-step input[type="text"],
.bbod-start-step input[type="email"],
.bbod-start-step select {
	width: 100%;
	padding: .8rem .9rem;
	border: 1px solid var(--bbs-line);
	border-radius: 6px;
	background: var(--bbs-card-2);
	color: var(--bbs-text);
	font: inherit;
	font-size: 1.02rem;
}

.bbod-start-step input:focus-visible,
.bbod-start-step select:focus-visible,
.bbod-start button:focus-visible {
	outline: 2px solid var(--bbs-accent);
	outline-offset: 2px;
}

.bbod-start-step input::placeholder { color: rgba(183, 192, 204, .5); }

.bbod-start-step .bbod-start-hint {
	display: block;
	margin: .4rem 0 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: .85rem;
}

/* ---- the pitch ------------------------------------------------------ */

.bbod-start-pitch {
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid var(--bbs-line);
	border-radius: 10px;
	background:
		radial-gradient(120% 80% at 0% 0%, rgba(116, 230, 255, .10), transparent 60%),
		var(--bbs-card);
}

.bbod-start-eyebrow {
	margin: 0 0 .75rem;
	font-family: var(--cf-mono, 'IBM Plex Mono'), 'IBM Plex Mono', ui-monospace, monospace;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--bbs-accent);
}

.bbod-start-head {
	margin: 0 0 .9rem;
	font-family: var(--cf-display, 'Space Grotesk'), 'Space Grotesk', Georgia, serif;
	font-size: clamp(1.7rem, 5.2vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--bbs-text);
}

.bbod-start-sub {
	margin: 0 0 1.6rem;
	font-size: clamp(1rem, 2.4vw, 1.12rem);
	color: var(--bbs-sub);
}

.bbod-start-points {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .85rem;
}

.bbod-start-points li {
	padding-left: 1.4rem;
	position: relative;
	font-size: .95rem;
}

/*
 * A rule rather than a bullet glyph. A tick would claim these are things
 * already done for the reader, and they are not: they are how the thing works.
 */
.bbod-start-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .7rem;
	height: 2px;
	border-radius: 2px;
	background: var(--bbs-accent);
}

.bbod-start-points strong {
	display: block;
	color: var(--bbs-text);
	font-weight: 600;
}

.bbod-start-points span { color: var(--bbs-sub); }

.bbod-start-creed {
	margin: 0 0 1.75rem;
	padding: .85rem 1rem;
	border-left: 2px solid var(--bbs-ok);
	background: rgba(95, 224, 177, .07);
	border-radius: 0 6px 6px 0;
	font-size: .95rem;
	color: var(--bbs-text);
}

.bbod-start-go-wrap { margin: 0; }

.bbod-start-reassure {
	margin: .7rem 0 0;
	font-size: .85rem;
	color: var(--bbs-sub);
}

/* ---- choices -------------------------------------------------------- */

.bbod-start-choices {
	display: grid;
	gap: .55rem;
	margin: 0 0 1.1rem;
}

.bbod-start-choices--tight { gap: .35rem; margin-bottom: .6rem; }

.bbod-start-choice {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .1rem .7rem;
	align-items: start;
	padding: .7rem .85rem;
	border: 1px solid var(--bbs-line-soft);
	border-radius: 8px;
	background: var(--bbs-card);
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1rem;
	color: var(--bbs-text);
	transition: border-color .15s, background .15s;
}

.bbod-start-choice:hover { border-color: var(--bbs-line); }

.bbod-start-choice input {
	grid-row: 1 / span 2;
	margin: .2rem 0 0;
	accent-color: var(--cf-cyan, #74E6FF);
}

.bbod-start-choice:has(input:checked) {
	border-color: var(--bbs-accent);
	background: rgba(116, 230, 255, .08);
}

.bbod-start-choice-label { font-weight: 500; }

.bbod-start-choice-hint {
	font-size: .85rem;
	color: var(--bbs-sub);
}

.bbod-start-rail-q {
	margin: 0 0 1.4rem;
	padding: 0 0 1.4rem;
	border-bottom: 1px solid var(--bbs-line-soft);
}

.bbod-start-rail-q:last-of-type { border-bottom: 0; padding-bottom: 0; }

.bbod-start-q {
	margin: 0 0 .6rem;
	font-weight: 600;
	font-size: 1rem;
}

.bbod-start-detail { margin-top: .35rem; }

.bbod-start-terms {
	margin: 1.25rem 0;
	font-size: .88rem;
	color: var(--bbs-sub);
}

/* ---- buttons -------------------------------------------------------- */

.bbod-start-go {
	display: inline-block;
	padding: .85rem 1.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--bbs-accent);
	color: var(--cf-black, #05070A);
	font: inherit;
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .12s, filter .15s;
}

.bbod-start-go:hover { filter: brightness(1.08); }
.bbod-start-go:active { transform: translateY(1px); }

.bbod-start-nav {
	display: flex;
	gap: .6rem;
	align-items: center;
	margin-top: 1.5rem;
}

.bbod-start-next,
.bbod-start-back {
	padding: .7rem 1.3rem;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bbod-start-next {
	border: 0;
	background: var(--bbs-accent);
	color: var(--cf-black, #05070A);
}

.bbod-start-back {
	border: 1px solid var(--bbs-line);
	background: transparent;
	color: var(--bbs-sub);
	order: -1;
}

.bbod-start-back:hover { color: var(--bbs-text); border-color: var(--bbs-accent); }

/* ---- the thank you -------------------------------------------------- */

.bbod-start-thanks {
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid var(--bbs-line);
	border-left: 3px solid var(--bbs-ok);
	border-radius: 10px;
	background: var(--bbs-card);
}

.bbod-start-thanks h2 {
	margin: 0 0 .75rem;
	font-family: var(--cf-display, 'Space Grotesk'), 'Space Grotesk', Georgia, serif;
	font-size: clamp(1.4rem, 4vw, 2rem);
	line-height: 1.15;
}

.bbod-start-thanks p {
	margin: 0 0 .9rem;
	color: var(--bbs-sub);
}

.bbod-start-thanks p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.bbod-start-pip,
	.bbod-start-go,
	.bbod-start-choice { transition: none; }
}
