/**
 * Black Friday 2026 landing page
 *
 * The countdown and buy card sizing follow the Photo RAW 2027 flash sale page.
 * The layout is Patrick's handoff, mapped to base.css tokens. This sheet
 * styles the signed-out, no-?v= design; black-friday-signed-in.css styles
 * the earlier one.
 *
 * @copyright   2026, ON1
 */

/* !- Buttons
   House sizing, same as the blog index. */
#site-main .btn {
	font-size: var(--text-sm);
	padding: 0.75rem 1.25rem;
}

/* !- Section rhythm */
#site-main > section {
	padding: 5rem 0;
}

#site-main section h2 {
	text-wrap: balance;
}

/* !- Passed video. ?vs= and ?vid= put a video and the main box's price and
   button above the hero. Pinned dark, so it states its own text color. */
#site-main > #passed-video {
	background-color: #141414;
	color: var(--text-300);
	padding: 3.5rem 0;
}

#passed-video .video-figure {
	margin-bottom: 1.75rem;
}

#site-main #passed-video h2 {
	color: var(--text-50);
	font-size: 1.875rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

#passed-video .buy-box-price {
	color: var(--text-50);
	font-size: 2.625rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 1.5rem;
}

#passed-video .buy-box-price del {
	color: var(--text-500);
	font-size: var(--text-lg);
	font-weight: 400;
	letter-spacing: 0;
	margin-right: 0.875rem;
}

#passed-video .buy-box-price .fa-spin {
	color: var(--text-100);
	font-size: var(--text-base);
}

#site-main #passed-video .btn {
	font-size: var(--text-sm);
	padding: 0.75rem 1.25rem;
}

#passed-video .passed-video-ends {
	color: var(--text-400);
	font-size: var(--text-micro);
	margin: 0.75rem 0 0;
}

/* !- Shared
   The campaign gradient, same as the homepage overlay. Each line of gradient
   text is its own block, sized to its text, so every line gets the full sweep. */
#site-main {
	--gradient-bf2026: linear-gradient(90deg, #2181e8 0%, #ff8329 55%, #ff5b73 100%);
}

.bf-gradient-text span {
	display: block;
	margin: 0 auto;
	padding-bottom: 0.04em;
	width: fit-content;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
	.bf-gradient-text span,
	i.bf-gradient-text {
		-webkit-background-clip: text;
		background-clip: text;
		background-image: var(--gradient-bf2026);
		color: transparent;
	}
}

@media (forced-colors: active) {
	.bf-gradient-text span,
	i.bf-gradient-text {
		background: none;
		color: CanvasText;
	}
}

.bf-section-title {
	color: var(--text-50);
	font-size: 3.5rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin-bottom: 0;
}

.bf-lead {
	color: var(--text-300);
	font-size: var(--text-lg);
	line-height: 1.6;
	margin: 1.25rem 0 0;
}

.bf-product {
	color: var(--white);
	font-size: var(--text-4xl);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1.875rem;
}

.bf-product img {
	border-radius: 22%;
	margin-right: 1.25rem;
	vertical-align: middle;
}

/* Photo credit, bottom right of a photo section */
.bf-credit {
	bottom: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--text-micro);
	margin: 0;
	position: absolute;
	right: 1rem;
}

/* !- Hero
   Pinned dark over the photo, so it states its own text color. */
#site-main > #hero {
	align-items: center;
	background:
		linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://ononesoft.cachefly.net/images/landing/2026/black-friday/black-friday-closing.jpg) center / cover no-repeat;
	background-color: #1e1e1e;
	color: var(--white);
	display: flex;
	min-height: 45rem;
	padding: 3.75rem 0;
	position: relative;
}

#hero > .container {
	width: 100%;
}

/* Black Friday drawer sign-up landing here with ?subscribed=1 */
#hero .hero-thanks {
	color: var(--white);
	font-size: var(--text-lg);
	font-weight: 600;
	margin: 0 0 1.875rem;
}

#hero h1 {
	color: var(--white);
	font-size: clamp(3.25rem, 9.5vw, 7.25rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 0.98;
	margin-bottom: 1.875rem;
}

#hero .hero-sub {
	color: var(--white);
	font-size: var(--text-xl);
	font-weight: 600;
	margin: 0 0 1.875rem;
}

/* Pat's mockup sizes: 75px tall in the hero and closing, 65px elsewhere.
   The padding includes Bootstrap's 1px border and 1.5 line height. */
#hero .btn,
#closing .btn {
	font-size: var(--text-2xl);
	font-weight: 700;
	padding: 1.15625rem 3rem;
}

#product-video .btn {
	font-size: var(--text-xl);
	font-weight: 700;
	padding: 1.03125rem 2.5rem;
}

#hero .hero-whats-new {
	margin: 1rem 0 0;
}

#hero .hero-whats-new a {
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

#hero .hero-whats-new a:hover {
	text-decoration: underline;
}

/* !- Trust strip. Pinned dark with the hero and the buy boxes. */
#site-main > #trust {
	background-color: #282828;
	color: var(--text-300);
	padding: 2.75rem 0;
}

.trust-item {
	align-items: center;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 4rem 1fr;
}

.trust-icon {
	align-items: center;
	background-color: #303030;
	border-radius: var(--border-radius);
	color: var(--blue-300);
	display: flex;
	font-size: 1.5rem;
	height: 4rem;
	justify-content: center;
	width: 4rem;
}

.trust-item p {
	font-size: var(--text-base);
	line-height: 1.5;
	margin: 0;
}

.trust-item strong {
	color: var(--text-50);
	display: block;
	font-size: var(--text-xl);
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

@media (min-width: 992px) {
	.trust-item + .trust-item {
		border-left: 1px solid #303030;
	}
}

/* !- Deals. Pinned dark so the buy boxes keep their look in either theme. */
#site-main > #deals {
	background-color: #1e1e1e;
	color: var(--text-300);
}

/* !- Why ON1 */
#site-main > #why {
	background-color: var(--bg-950);
	color: var(--text-300);
}

.why-grid {
	margin-top: 1.75rem;
}

.why-item {
	background-color: var(--bg-800);
	border: 1px solid var(--bg-700);
	border-radius: var(--border-radius);
	height: 100%;
	overflow: hidden;
	padding-bottom: 1.875rem;
}

.why-media img {
	aspect-ratio: 3 / 2;
	display: block;
	object-fit: cover;
	width: 100%;
}

.why-item h3 {
	color: var(--text-100);
	font-size: var(--text-xl);
	font-weight: 700;
	line-height: 1.35;
	margin: 1.75rem 1.875rem 0.5rem;
}

.why-item p {
	font-size: var(--text-base);
	line-height: 1.6;
	margin: 0 1.875rem;
}

.why-item .why-note {
	color: var(--text-500);
	font-size: var(--text-xs);
	line-height: 1.5;
	margin-top: 0.75rem;
}

/* !- Product video. Runs on from the section above, so no top padding. */
#site-main > #product-video {
	background-color: var(--bg-950);
	color: var(--text-300);
	padding-top: 0;
}

#product-video .bf-lead {
	margin: 1.875rem 0 1.5rem;
}

/* !- Countdown */
.offer-countdown {
	margin: 1.5rem 0;
}

.offer-countdown-label {
	color: var(--text-50);
	font-size: var(--text-lg);
	font-weight: 700;
	margin: 0 0 1.5rem;
}

.offer-countdown-clock {
	display: inline-flex;
	gap: 0.5rem;
}

.offer-countdown-unit {
	background: var(--blue-transparent);
	border-radius: var(--border-radius);
	color: var(--text-400);
	font-size: var(--text-micro);
	min-width: 4.5rem;
	padding: 0.5rem 0.75rem;
	text-transform: uppercase;
}

.offer-countdown-unit span {
	color: var(--text-50);
	display: block;
	font-family: var(--monospace);
	font-size: var(--text-3xl);
	font-weight: 700;
	line-height: 1.2;
}

/* !- Buy cards */
#buy {
	margin-top: 2.5rem;
	scroll-margin-top: 6rem;
}

.bf-card {
	background: var(--bg-800);
	border: 1px solid var(--bg-600);
	border-radius: var(--border-radius);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	padding: 2.25rem 2.125rem 2rem;
	position: relative;
	text-align: left;
}

.bf-card::before {
	background: linear-gradient(90deg, var(--blue-500) 0%, var(--legacy-purple-500) 30%, #bf25bf 52%, var(--orange-500) 78%, #ffcb6b 100%);
	content: '';
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.bf-card.is-main {
	border: 2px solid var(--blue-500);
}

@media (max-width: 575.98px) {
	.bf-card {
		padding: 2rem 1.5rem;
	}
}

.bf-card-name {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
}

.bf-card-name img {
	border-radius: 22%;
	flex: none;
}

.bf-pill {
	border-radius: var(--border-radius);
	display: inline-block;
	font-size: var(--text-tiny);
	letter-spacing: 0.12em;
	margin: 0 0 0.5rem;
	padding: 0.3125rem 0.5625rem;
	text-transform: uppercase;
}

.bf-pill.is-own {
	background: var(--blue-transparent);
	color: var(--blue-300);
}

.bf-pill.is-sub {
	background: color-mix(in srgb, var(--legacy-purple-500) 30%, transparent);
	color: var(--legacy-purple-300);
}

.bf-card .buy-box-name {
	color: var(--text-50);
	font-size: var(--text-2xl);
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.bf-card-for {
	color: var(--text-400);
	font-size: var(--text-xs);
	line-height: 1.4;
	margin: 0.875rem 0 0;
}

.bf-card .buy-box-price {
	color: var(--text-50);
	font-size: 2.625rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 1.125rem 0 0.375rem;
}

.bf-card .buy-box-price small {
	font-size: var(--text-base);
	font-weight: 400;
	letter-spacing: 0;
}

.bf-card .buy-box-price del {
	color: var(--text-500);
	font-size: var(--text-lg);
	font-weight: 400;
	letter-spacing: 0;
	margin-left: 0.875rem;
}

.bf-card .buy-box-price .fa-spin {
	color: var(--text-100);
	font-size: var(--text-base);
}

.bf-price-note {
	color: var(--text-400);
	font-size: var(--text-mini);
	letter-spacing: 0.06em;
	margin: 0 0 1.375rem;
	text-transform: uppercase;
}

.bf-includes {
	color: var(--text-500);
	font-size: var(--text-tiny);
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 0.875rem;
	text-transform: uppercase;
}

.bf-features {
	color: var(--text-300);
	flex: 1;
	font-size: var(--text-sm);
	list-style: none;
	margin-bottom: 1rem;
	padding-left: 0;
}

.bf-features li {
	align-items: baseline;
	display: flex;
	gap: 0.75rem;
	line-height: 1.45;
	margin-bottom: 0.75rem;
}

.bf-features li::before {
	color: var(--blue-500);
	content: '\f058';
	flex: none;
	font: var(--fa-font-regular);
}

.bf-card.is-max-sub .bf-features li::before {
	color: #bf25bf;
}

#site-main .bf-card .btn {
	margin-bottom: 1.75rem;
	padding: 1rem 1.25rem;
	width: 100%;
}

/* Under the button, above the feature list. Checkbox in a col-auto, label and
   info button in a col, so a wrapped label lines up under its first line. The
   info button sits outside the label so a click on it doesn't tick the box;
   the line break before it in the markup renders as the space. */
.bf-auto-upgrade {
	color: var(--text-300);
	font-size: var(--text-xs);
	margin-bottom: 1.75rem;
	margin-top: -0.75rem;
}

.bf-auto-upgrade label {
	cursor: pointer;
	display: inline;
}

.bf-auto-upgrade .form-check-input {
	cursor: pointer;
	margin: 0.3em 0 0;
}

.bf-auto-upgrade-info {
	background: none;
	border: 0;
	color: var(--text-500);
	cursor: help;
	font-size: var(--text-xs);
	line-height: 1;
	padding: 0;
}

.bf-auto-upgrade-info:hover {
	color: var(--text-300);
}

.tooltip.bf-tooltip {
	--bs-tooltip-max-width: 350px;
	--bs-tooltip-padding-x: 0.75rem;
	--bs-tooltip-padding-y: 0.5rem;
}

.tooltip.bf-tooltip .tooltip-inner {
	text-align: start;
}

.bf-fine {
	color: var(--text-400);
	font-size: var(--text-micro);
	line-height: 1.5;
	margin: 0;
	text-align: center;
}

/* !- More options */
/* While open, the panel contains its row's negative gutter margin, the way it
   is contained during the animation. Otherwise the panel ends 24px taller than
   the height Bootstrap animated to, and jumps at the end. */
#bf-more.show {
	display: flow-root;
}

.bf-more-toggle {
	background: none;
	border: 0;
	color: var(--blue-400);
	font-size: var(--text-base);
	font-weight: 600;
	margin: 2.125rem 0 -0.625rem;
	padding: 0.625rem 0.375rem;
}

.bf-more-toggle:hover {
	color: var(--blue-300);
	text-decoration: underline;
}

.bf-more-toggle i {
	margin-left: 0.375rem;
	transition: transform 200ms ease;
}

.bf-more-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

.bf-more-intro {
	color: var(--text-400);
	font-size: var(--text-sm);
	margin: 1.375rem 0 0;
}

#bf-more .bf-card .buy-box-name {
	font-size: var(--text-xl);
}

#bf-more .bf-card .buy-box-price {
	font-size: 2.5rem;
}

/* !- Quotes
   Pinned dark over the photo. The slides share one grid cell, so the box is
   as tall as the longest quote and nothing jumps as they change. */
#site-main > #quotes {
	background:
		linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
		url(https://ononesoft.cachefly.net/images/landing/2026/black-friday/black-friday-quotes.jpg) center / cover no-repeat;
	background-color: #1e1e1e;
	color: var(--white);
	position: relative;
}

#quotes .bf-section-title {
	color: var(--white);
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.quote-slides {
	display: grid;
	margin-top: 3rem;
}

.quote-slide {
	align-self: center;
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	transition: opacity 0.6s ease, visibility 0.6s;
	visibility: hidden;
}

.quote-slide.is-on {
	opacity: 1;
	visibility: visible;
}

.quote-slide > i {
	font-size: 3rem;
}

#quotes blockquote {
	border-left: 0;
	color: var(--white);
	font-style: italic;
	font-weight: 400;
	margin: 1.5rem 0;
	padding: 0;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
	text-wrap: pretty;
}

#quotes blockquote.is-short {
	font-size: var(--text-5xl);
	line-height: 1.35;
}

#quotes blockquote.is-mid {
	font-size: var(--text-4xl);
	line-height: 1.4;
}

#quotes blockquote.is-long {
	font-size: var(--text-3xl);
	line-height: 1.45;
}

#quotes blockquote.is-longest {
	font-size: var(--text-2xl);
	line-height: 1.5;
}

#quotes blockquote p {
	margin: 0;
}

#quotes blockquote p + p {
	margin-top: 1.125rem;
}

.quote-slide figcaption {
	color: var(--white);
	font-size: var(--text-sm);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: left;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.quote-dots {
	display: flex;
	gap: 0.75rem;
	margin-top: 3rem;
}

.quote-dot {
	background: rgba(255, 255, 255, 0.4);
	border: 0;
	border-radius: 50%;
	height: 0.75rem;
	padding: 0;
	transition: background 0.3s, transform 0.3s;
	width: 0.75rem;
}

.quote-dot.is-on {
	background: var(--blue-500);
	transform: scale(1.25);
}

.quote-dot:focus-visible {
	outline: 2px solid var(--blue-300);
	outline-offset: 3px;
}

/* !- Closing. Pinned dark over the hero photo. */
#site-main > #closing {
	background:
		linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
		url(https://ononesoft.cachefly.net/images/landing/2026/black-friday/black-friday-closing.jpg) center 40% / cover no-repeat;
	background-color: #1e1e1e;
	color: var(--white);
	padding: 6.25rem 0;
}

#closing h2 {
	font-size: clamp(3.25rem, 7.5vw, 6rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 0.98;
	margin-bottom: 1.875rem;
}

#closing .bf-product {
	font-size: var(--text-3xl);
}

#closing .closing-ends {
	font-size: var(--text-sm);
	margin: 1.5rem 0 0;
}

/* !- Small screens */
@media (max-width: 767.98px) {
	#site-main > section {
		padding: 3rem 0;
	}

	#site-main > #hero {
		min-height: 0;
		padding: 4rem 0;
	}

	#site-main > #product-video {
		padding-top: 0;
	}

	.bf-section-title {
		font-size: var(--text-4xl);
	}

	.bf-product {
		font-size: var(--text-2xl);
	}

	.bf-product img {
		height: 3rem;
		margin-right: 0.75rem;
		width: 3rem;
	}

	#hero .btn,
	#closing .btn {
		font-size: var(--text-xl);
		padding: 1.03125rem 1.25rem;
		width: 100%;
	}

	#quotes blockquote.is-short {
		font-size: var(--text-3xl);
	}

	#quotes blockquote.is-mid,
	#quotes blockquote.is-long {
		font-size: var(--text-2xl);
	}

	#quotes blockquote.is-longest {
		font-size: var(--text-xl);
	}

	.offer-countdown-unit {
		min-width: 4rem;
		padding: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-more-toggle i,
	.quote-slide,
	.quote-dot {
		animation: none !important;
		transition: none !important;
	}
}
