/* The landing page on oddsmith.gg. Only what tokens.css does not already say: the palette,
   the body reset, .om-cut, .om-pulse and :focus-visible all come from it, shipped verbatim.
   Roles as everywhere: Chakra Petch for the wordmark and titles (italic 700 for the big ones),
   Barlow for prose, IBM Plex Mono for every label, price and number. */

:root {
	--pad: 16px;
	--gap: 18px;
}
@media (min-width: 820px) {
	:root {
		--pad: 28px;
		--gap: 22px;
	}
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
}
main {
	flex: 1;
}
.wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 var(--pad);
	box-sizing: border-box;
}

/* ── Type roles ─────────────────────────────────────────────────────── */
.wordmark {
	font-family: 'Chakra Petch', sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--ink);
}
a.wordmark:hover {
	color: var(--ink);
	text-decoration: none;
}
.label {
	margin: 0;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--faint);
}
.h2 {
	margin: 10px 0 0;
	max-width: 22ch;
	font-family: 'Chakra Petch', sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--ink);
}
h3 {
	margin: 0;
	font-family: 'Chakra Petch', sans-serif;
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: 0.01em;
	color: var(--ink);
}

/* ── Buttons: the accent is for primary actions only ─────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	font-family: 'Chakra Petch', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.btn:hover {
	text-decoration: none;
}
.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
}
.btn-primary:hover {
	background: var(--accent2);
	color: var(--on-accent);
}
.btn-ghost {
	background: var(--panel2);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover {
	background: var(--panel3);
	color: var(--ink);
}
.btn-small {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.8125rem;
}

/* ── Bar ───────────────────────────────────────────────────────────── */
.bar {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--line);
	background: color-mix(in oklch, var(--bg2) 88%, transparent);
	backdrop-filter: blur(8px);
}
.bar-in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}
.nav {
	display: none;
	gap: 22px;
	margin-left: auto;
}
.nav a {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dim);
}
.nav a:hover {
	color: var(--ink);
	text-decoration: none;
}
.bar .btn-small {
	margin-left: auto;
}
@media (min-width: 820px) {
	.nav {
		display: flex;
	}
	.bar .btn-small {
		margin-left: 0;
	}
}

/* ── Hero: the copy, and a live board as the picture ─────────────────── */
.hero {
	display: grid;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 56px;
	align-items: center;
}
@media (min-width: 980px) {
	.hero {
		grid-template-columns: 1.15fr 1fr;
		gap: 56px;
		padding-top: 96px;
		padding-bottom: 88px;
	}
}
.eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dim);
}
h1 {
	margin: 0;
	font-family: 'Chakra Petch', sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(2.75rem, 7vw, 5.25rem);
	line-height: 0.98;
	letter-spacing: 0.005em;
	color: var(--ink);
}
.live {
	color: var(--accent-ink);
}
/* A hyphenated word breaks at its hyphen; these stay whole. */
.nb {
	white-space: nowrap;
}
.lede {
	margin: 26px 0 0;
	max-width: 54ch;
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--dim);
}
.ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

/* The board: the console's own look, as an illustration of what a book gets. */
.board {
	margin: 0;
	background-color: var(--panel);
	background-image: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 4px);
	box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px var(--accent-tint);
}
.board-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dim);
}
.board-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--accent-ink);
}
.mkt {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-bottom: 1px solid var(--line);
}
.mkt:last-child {
	border-bottom: 0;
}
.mkt-name {
	font-size: 0.875rem;
	color: var(--ink);
}
.px {
	min-width: 64px;
	padding: 8px 0;
	text-align: center;
	background: var(--panel2);
	box-shadow: inset 0 0 0 1px var(--line);
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--ink);
}
.state {
	grid-column: 2 / 4;
	justify-self: end;
	padding: 3px 9px;
	border: 1px solid var(--line);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dim);
}
.state-held {
	color: var(--warn-ink);
	border-color: var(--warn-line);
	background: var(--warn-tint);
}
.mkt-done {
	opacity: 0.62;
}

/* ── Titles ─────────────────────────────────────────────────────────── */
.titles {
	padding-top: 8px;
	padding-bottom: 8px;
}
.titles .label {
	margin-bottom: 14px;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.chip {
	padding: 8px 14px;
	border: 1px solid var(--line);
	background: var(--bg2);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.8125rem;
	color: var(--ink);
}
.chip-more {
	border-style: dashed;
	color: var(--faint);
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section {
	padding-top: 96px;
}
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	margin-top: 36px;
	background: var(--line);
	border: 1px solid var(--line);
}
@media (min-width: 680px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 980px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.card {
	padding: 28px 26px 30px;
	background: var(--panel);
}
.card p {
	margin: 10px 0 0;
	font-size: 0.9375rem;
	color: var(--dim);
}
.card h3::before {
	content: '';
	display: block;
	width: 18px;
	height: 3px;
	margin-bottom: 16px;
	background: var(--accent);
}
.card-why h3::before {
	background: var(--dim);
}

/* The flow is a real sequence, so it is numbered. */
.flow {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 680px) {
	.flow {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 980px) {
	.flow {
		grid-template-columns: repeat(4, 1fr);
	}
}
.flow li {
	padding-top: 18px;
	border-top: 2px solid var(--line);
}
.flow li:first-child {
	border-top-color: var(--accent);
}
.step {
	display: block;
	margin-bottom: 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--accent-ink);
}
.flow p {
	margin: 8px 0 0;
	font-size: 0.9375rem;
	color: var(--dim);
}

/* ── Closing call ───────────────────────────────────────────────────── */
.cta {
	padding-top: 104px;
}
.cta-panel {
	padding: 56px 32px;
	text-align: center;
	background-color: var(--panel);
	background-image: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 4px);
	box-shadow: inset 0 0 0 1px var(--accent-line);
}
.cta-panel h2 {
	margin: 0;
	font-family: 'Chakra Petch', sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.875rem, 4.4vw, 3.25rem);
	line-height: 1.05;
	color: var(--ink);
}
.cta-panel p {
	margin: 14px 0 28px;
	font-size: 1.0625rem;
	color: var(--dim);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	margin-top: 88px;
	padding: 22px 0 32px;
	border-top: 1px solid var(--line);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--faint);
}
.wordmark-small {
	font-size: 0.875rem;
	margin-right: auto;
}
