/* Public homepage only. Loaded by index.php.
   Selectors stay under .public-home so dashboard, leaderboard,
   bracket geometry, and admin screens are untouched. */

.public-home {
	margin: 0;
	background: #fff;
	color: var(--color-text);
	font-family: var(--font-sans);
	line-height: 1.5;
	overflow-x: clip;
}

.public-home * {
	box-sizing: border-box;
}

.public-home a:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 3px;
}

.public-home [hidden] {
    display: none;
}

.bf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 10px 28px;
	background: #000;
	position: sticky;
	top: 0;
	z-index: 20;
}

.bf-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	line-height: 0;
}

.bf-brand img {
	display: block;
	height: 34px;
	width: auto;
	max-width: min(180px, 52vw);
}

.bf-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px 18px;
	min-width: 0;
}

.bf-nav-how,
.bf-nav-signin {
	color: #d5dee6;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
}

.bf-nav-signin {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: #fff;
}

.bf-nav-how:hover,
.bf-nav-signin:hover {
	color: var(--color-brand-green);
}

.bf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--color-brand-green);
	color: var(--color-brand-black);
	font-family: var(--font-sans);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
}

.bf-btn:hover {
	background: var(--color-action-green);
	border-color: var(--color-action-green);
	color: #fff;
}

.bf-btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.38);
	color: #fff;
}

.bf-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #fff;
	color: #fff;
}

.bf-hero {
	background-color: #0c100e;
	background-image:
		radial-gradient(ellipse 560px 320px at 82% 42%, rgba(85, 199, 129, 0.18), transparent 68%),
		linear-gradient(180deg, #111513 0%, #0b0e0c 100%);
	color: #f3f7f4;
}

.bf-hero-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 56px 28px 64px;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 40px;
	align-items: center;
}

.bf-kicker {
	margin: 0 0 14px;
	color: var(--color-brand-green);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bf-hero h1 {
	margin: 0 0 12px;
	max-width: 100%;
	color: #fff;
	font-family: var(--font-sans);
	font-size: clamp(2.05rem, 4.5vw, 3.35rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-transform: none;
	text-shadow: none;
}

.bf-headline-line {
    display: block;
}

.bf-tagline {
	margin: 0 0 16px;
	color: var(--color-brand-green);
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
	font-style: italic;
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 500;
	line-height: 1.2;
}

.bf-lead {
	margin: 0 0 26px;
	max-width: 38rem;
	color: #c9d5ce;
	font-size: 1.05rem;
	line-height: 1.55;
}

.bf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
}

.bf-fine {
	margin: 0;
	color: #8ea399;
	font-size: 0.92rem;
}

.bf-sample {
	margin: 0;
	padding: 16px 16px 14px;
	border: 1px solid rgba(85, 199, 129, 0.38);
	border-radius: 18px;
	background: rgba(8, 22, 16, 0.72);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.bf-sample-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
	color: #b7d2c4;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bf-sample-tag {
	flex: 0 0 auto;
	padding: 3px 8px;
	border: 1px solid rgba(85, 199, 129, 0.55);
	border-radius: 999px;
	color: var(--color-brand-green);
	letter-spacing: 0.08em;
}


.bf-board {
    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr) 18px
        minmax(0, 1fr) 18px
        minmax(0, 0.95fr);
    grid-template-rows: auto 1fr 1fr;
    align-items: center;
    column-gap: 4px;
    row-gap: 18px;
    min-width: 0;
}

.bf-round-label {
    color: #9dccb2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.bf-match {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bf-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 32px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #edf6f1;
    font-size: 0.86rem;
    line-height: 1.2;
}

.bf-team b {
    flex: 0 0 auto;
    color: var(--color-brand-green);
    font-size: 0.72rem;
    font-weight: 700;
}

.bf-team span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bf-team.is-on {
    border-color: rgba(85, 199, 129, 0.65);
    background: rgba(85, 199, 129, 0.14);
}

.bf-pick-check {
    margin-left: auto;
    color: var(--color-brand-green);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.bf-arrow {
    color: var(--color-brand-green);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.bf-final-arrow {
    grid-column: 4;
    grid-row: 2 / 4;
}

.bf-champ {
    grid-column: 5;
    grid-row: 2 / 4;
    padding: 14px 6px;
    border: 1px solid rgba(85, 199, 129, 0.8);
    border-radius: 8px;
    background: rgba(85, 199, 129, 0.18);
    text-align: center;
}

.bf-champ strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.bf-sample-foot {
	margin: 12px 0 0;
	color: #9dccb2;
	font-size: 0.82rem;
	line-height: 1.4;
	text-align: center;
}

.bf-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 52px 24px;
}

.bf-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.bf-section-head h2,
.bf-how h2,
.bf-about h2,
.bf-cta h2 {
	margin: 0;
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	text-transform: none;
}

.bf-section-count {
	flex: 0 0 auto;
	color: var(--color-text-secondary);
	font-size: 0.95rem;
}

.bf-cards {
	display: grid;
	gap: 16px;
}

.bf-cards.is-single {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.bf-cards.is-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.bf-card,
.bf-empty {
	min-width: 0;
	padding: 20px 20px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-card);
	box-shadow: var(--shadow-sm);
}

.bf-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 22px 22px 18px;
	text-align: center;
}

.bf-empty p {
	margin: 0;
}

.bf-empty p + p {
	margin-top: 8px;
	color: var(--color-text-secondary);
}

.bf-empty a {
	color: var(--color-action-green);
	font-weight: 700;
}

.bf-card-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bf-mark,
.bf-step-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--color-brand-green-soft);
	color: var(--color-action-green);
}

.bf-mark svg,
.bf-step-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.bf-card-copy {
	min-width: 0;
}

.bf-card h3 {
	margin: 0;
	color: var(--color-text);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bf-badge {
	margin: 4px 0 0;
	color: var(--color-action-green);
	font-size: 0.95rem;
	font-weight: 700;
}

.bf-card.is-closed .bf-badge,
.bf-card.is-unavailable .bf-badge {
	color: var(--color-text-secondary);
}

.bf-lines {
	margin: 14px 0 0;
}

.bf-lines p {
	margin: 0 0 6px;
	color: var(--color-text);
	overflow-wrap: anywhere;
}

.bf-count {
	position: relative;
	margin-top: 18px;
}

.bf-count-kicker {
	margin: 0 0 10px;
	color: var(--color-text-secondary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.bf-count-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.bf-unit {
    min-width: 0;
    padding: 10px 4px;
    background: var(--color-page, #F4F6F8);
    border-radius: 8px;
    text-align: center;
}

.bf-unit span {
	display: block;
	min-width: 3ch;
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: clamp(1.55rem, 3vw, 2.05rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.bf-unit small {
	display: block;
	margin-top: 3px;
	color: var(--color-text-secondary);
	font-size: clamp(0.68rem, 2vw, 0.78rem);
	line-height: 1.2;
}

.bf-when,
.bf-count-note {
	margin: 12px 0 0;
	color: var(--color-text-secondary);
	font-size: 0.92rem;
	text-align: center;
	overflow-wrap: anywhere;
}

.bf-when span {
	font-weight: 700;
}

.bf-count-note {
	color: var(--color-text);
	font-weight: 600;
}

.bf-how {
	padding-top: 12px;
	text-align: center;
}

.bf-how h2,
.bf-about h2,
.bf-cta h2 {
	text-align: center;
}

.bf-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 32px;
	text-align: left;
}

.bf-step h3 {
	margin: 12px 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.bf-step p {
	margin: 0;
	color: var(--color-text-secondary);
	overflow-wrap: anywhere;
}

.bf-about {
	padding-top: 8px;
	padding-bottom: 12px;
	scroll-margin-top: 80px;
}

.bf-about p:not(.bf-section-kicker) {
    max-width: 42rem;
    margin: 14px auto 0;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    text-align: center;
}

.bf-cta {
	padding-top: 28px;
	padding-bottom: 64px;
	text-align: center;
	scroll-margin-top: 80px;
}

.bf-cta p {
	margin: 10px 0 18px;
	color: var(--color-text-secondary);
}

.bf-how {
	scroll-margin-top: 80px;
}

.bf-footer {
	padding: 28px 20px 32px;
	background: #000;
	color: #c5ced6;
	text-align: center;
}

.bf-footer-brand {
	display: inline-block;
	line-height: 0;
}

.bf-footer-brand img {
	height: 28px;
	width: auto;
	max-width: min(150px, 70vw);
}

.bf-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	margin: 14px 0;
}

.bf-footer-links a {
	color: #eef3f6;
	font-weight: 600;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.bf-footer-links a:hover {
	color: var(--color-brand-green);
}

.bf-footer-copy {
	margin: 0;
	font-size: 0.9rem;
}

.bf-coffee {
	display: inline-block;
	margin-top: 16px;
	line-height: 0;
}

.bf-coffee img {
	width: 150px;
	max-width: 100%;
	height: auto;
}

@media screen and (max-width: 960px) {
	.bf-hero-inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 32px 20px 36px;
		gap: 0;
	}

	.bf-sample {
		display: none;
	}

	.bf-hero h1 {
		max-width: 16ch;
	}
}

@media screen and (max-width: 800px) {
	.bf-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.bf-wrap {
		padding: 36px 16px;
	}
}

@media screen and (max-width: 720px) {
	.bf-header {
		padding: 8px 14px;
	}

	.bf-nav-how,
	.bf-nav-start {
		display: none;
	}

	.bf-actions {
		flex-direction: column;
	}

	.bf-actions .bf-btn {
		width: 100%;
	}

	.bf-section-head {
		align-items: flex-start;
	}
}

@media screen and (max-width: 380px) {
	.bf-brand img {
		height: 28px;
	}

	.bf-header {
		padding-right: 10px;
		padding-left: 10px;
	}

	.bf-hero h1 {
		font-size: 1.9rem;
	}
}


/* ----------------------------------------
   Homepage supporting sections
   ---------------------------------------- */

   .public-home .bf-section-band {
    width: 100%;
    padding: 64px 0;
}

.public-home .bf-section-band .bf-wrap {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.public-home .bf-section-kicker {
    margin: 0 0 10px;
    color: #21804b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.public-home .bf-section-band h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

/* How it works */

.public-home .bf-how-band {
    background: #f4f6f8;
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
}

.public-home .bf-steps {
    gap: 20px;
    margin-top: 32px;
}

.public-home .bf-step {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.025);
}

.public-home .bf-step-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 10px;
}

.public-home .bf-step h3 {
    margin-bottom: 10px;
}

.public-home .bf-step p {
    margin-bottom: 0;
    line-height: 1.65;
}

/* About */

.public-home .bf-about-band {
    background: #ffffff;
}

.public-home .bf-about > p:not(.bf-section-kicker) {
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.8;
}

.public-home .bf-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 28px;
    color: #21804b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Final call to action */

.public-home .bf-cta-band {
    background: #e5f5eb;
    border-top: 1px solid #cbe8d6;
    padding: 72px 0;
}

.public-home .bf-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin-bottom: 12px;
}

.public-home .bf-cta .bf-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #21804b;
    color: #ffffff;
}

.public-home .bf-cta .bf-btn:hover {
    background: #19693c;
}

.public-home .bf-cta .bf-cta-fine {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #52685a;
}

/* Mobile spacing */

@media (max-width: 768px) {

    .public-home .bf-section-band {
        padding: 40px 0;
    }

    .public-home .bf-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .public-home .bf-step {
        padding: 20px;
    }

    .public-home .bf-benefits {
        gap: 12px 18px;
    }

    .public-home .bf-cta-band {
        padding: 48px 0;
    }
}
