/* Hogskins Kit Builder — styles.
   Dynamic values (accent, bg, text, radius, font) come from settings as
   CSS custom properties on .hkb-root. Everything else lives here. */

/*@property --hkb-angle-red {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}
@property --hkb-angle-green {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

.hkb-root-wrapper {
	--hkb-rotation-speed: 3s;
	--hkb-cycle-speed: calc(var(--hkb-rotation-speed) * 2);
	position: relative;
	max-width: 1040px;
	margin: 0 auto;
	overflow: visible;
	border-radius: calc(var(--hkb-radius, 10px) + 6px);
}
.hkb-root-wrapper::before {
	pointer-events: none;
	content: '';
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: inherit;
	background: conic-gradient(from var(--hkb-angle-red), transparent 0deg, #FF0400 30deg, #FF0400 40deg, transparent 40deg, transparent 360deg) border-box;
	-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hkb-red-rotate var(--hkb-rotation-speed) linear infinite, hkb-red-opacity var(--hkb-cycle-speed) linear infinite;
	z-index: 2;
}
.hkb-root-wrapper::after {
	pointer-events: none;
	content: '';
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: inherit;
	background: conic-gradient(from var(--hkb-angle-green), transparent 0deg, #75FFA4 30deg, #75FFA4 40deg, transparent 40deg, transparent 360deg) border-box;
	-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hkb-green-rotate var(--hkb-rotation-speed) linear infinite, hkb-green-opacity var(--hkb-cycle-speed) linear infinite;
	z-index: 2;
}
@keyframes hkb-red-rotate {
	0% { --hkb-angle-red: 0deg; }
	100% { --hkb-angle-red: 360deg; }
}
@keyframes hkb-red-opacity {
	0% { opacity: 1; }
	48% { opacity: 1; }
	50% { opacity: 0; }
	98% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes hkb-green-rotate {
	0% { --hkb-angle-green: 0deg; }
	100% { --hkb-angle-green: 360deg; }
}
@keyframes hkb-green-opacity {
	0% { opacity: 0; }
	48% { opacity: 0; }
	50% { opacity: 1; }
	98% { opacity: 1; }
	100% { opacity: 0; }
}
*/

.hkb-root {
	--hkb-accent: #ff6a00;
	--hkb-bg: #0a0a0a;
	--hkb-text: #f2f2f2;
	--hkb-radius: 10px;
	--hkb-font: inherit;
	--hkb-panel: #141414;
	--hkb-panel-2: #1c1c1c;
	--hkb-line: #2a2a2a;
	--hkb-muted: #9a9a9a;
	--hkb-accent-2: color-mix(in srgb, var(--hkb-accent) 70%, #ffd089);
	--hkb-accent-soft: color-mix(in srgb, var(--hkb-accent) 22%, transparent);
	--hkb-accent-glow: color-mix(in srgb, var(--hkb-accent) 50%, transparent);
	font-family: var(--hkb-font);
	color: var(--hkb-text);
	position: relative;
	overflow: visible;
	box-shadow: 0 0 75px #ffffff40;
	background: none;
	border: 1px solid var(--hkb-line);
	border-radius: calc(var(--hkb-radius) + 6px);
	padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 72px) clamp(20px, 3vw, 40px);
	max-width: 1040px;
	margin: 0 auto;
	box-sizing: border-box;
	padding-top: 75px;
	min-height: 1000px;
}
.hkb-root *, .hkb-root *::before, .hkb-root *::after { box-sizing: border-box; }

/* Fire backdrop — behind .hkb-root. */
.hkb-root::before {
	content: "";
	position: absolute;
	top: -116px;
	left: -28%;
	width: 150%;
	height: 100%;
	background-image: url('https://megaphonedemo.com/hogskins/wp-content/uploads/2026/07/fire-bg.png');
	background-position: 50% 0%;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 0;
	pointer-events: none;
}

/* Panel gradient — above the fire, below content. */
.hkb-root::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(0deg, rgb(255 255 255 / 14%) 0px, rgb(255 255 255 / 0%) 2px, transparent 2px, #000000 3px, transparent 4px),
		repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 1px, transparent 1px, transparent 4px),
		radial-gradient(circle, #323232, #000000);
	border-radius: calc(var(--hkb-radius) + 6px);
	z-index: 0;
	pointer-events: none;
	border: 2px solid #fa6503;
	animation: border-glow infinite 5s;
}

@keyframes border-glow {
	0% {
		border: 2px solid #fa6503;
		box-shadow: 0 0 4px #e184166e;
	}
	30% {
		border: 2px solid #f19d48;
		box-shadow: 0 0 13px #e184166e;
	}

	60% {
		border: 2px solid #de8200;
		box-shadow: 0 0 13px #e184166e;
	}
	830% {
		border: 2px solid #fa6503;
		box-shadow: 0 0 4px #e184166e;
	}
}


/* Header banner: chrome title over a hot orange glow bar with dark torn edges. */
.hkb-header {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-bottom: clamp(18px, 5vw, 76px);
	padding: 0;
}
.hkb-header::before {
	content: "";
	position: absolute;
	inset: -80% -20%;
	z-index: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgb(0 0 0 / 25%) 0px, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 3px), repeating-linear-gradient(0deg, rgba(255, 210, 150, 0.07) 0px, rgba(255, 210, 150, 0.07) 1px, transparent 1px, transparent 5px), radial-gradient(52% 38% at 50% 50%, color-mix(in srgb, var(--hkb-accent) 95%, #fff) 0%, var(--hkb-accent) 22%, color-mix(in srgb, var(--hkb-accent) 50%, #000) 46%, transparent 78%);
	-webkit-mask-image: radial-gradient(52% 38% at 50% 50%, #000 0%, #000 46%, transparent 78%);
	mask-image: radial-gradient(52% 38% at 50% 50%, #000 0%, #000 46%, transparent 78%);
	opacity: 0;
}
.hkb-title {
	position: relative;
	z-index: 2;
	display: inline-block;
	font-weight: 800;
	font-style: italic;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	font-size: 74px;
	line-height: 1;
	/* background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 30%, #cfcfcf 41%, #a1a1a1 59%, #8f8f8f 83%, #ffffff 100%); */
	/* -webkit-background-clip: text; */
	/* background-clip: text; */
	/* color: transparent; */
	/* -webkit-text-stroke: 1px rgba(0,0,0,0.55); */
	filter: drop-shadow(0 2px 2px rgba(0,0,0,0.9)) drop-shadow(0 0 1px rgba(0,0,0,0.9));
	position: relative;
	font-family: Oswald, sans-serif;
}
.hkb-title:after {
	content: '';
	width: 138%;
	height: 78px;
	background: url('https://megaphonedemo.com/hogskins/wp-content/uploads/2026/07/orange-streak.png');
	background-repeat: no-repeat;
	position: absolute;
	bottom: -39px;
	left: -13%;
	z-index: -1;
	background-position: 50% 50%;
	background-size: contain;
}
.hkb-title-underline { display: none; }

/* Stack + sections */
.hkb-stack { position: relative; z-index: 1; }
.hkb-section {margin: 0 0 8px;scroll-margin-top: 99px;}
.hkb-section-new { animation: hkb-rise .35s ease both; }
@keyframes hkb-rise {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hkb-section-body { padding: 6px 0 22px; }

/* Section divider with number */
.hkb-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; }
.hkb-divider-num {
	flex: 0 0 auto;
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 14px; color: #160d04;
	background: linear-gradient(180deg, var(--hkb-accent-2), var(--hkb-accent));
	box-shadow: 0 0 16px var(--hkb-accent-glow);
}
.hkb-divider-line {
	flex: 1 1 auto; height: 1px;
	background: linear-gradient(90deg, var(--hkb-accent), transparent);
}

/* Step headings */
.hkb-step-head { text-align: center; margin-bottom: 18px; }
.hkb-kicker {
	color: var(--hkb-accent); text-transform: uppercase; letter-spacing: 0.2em;
	font-size: 12px; font-weight: 700; margin-bottom: 6px;
	text-shadow: 0 0 12px var(--hkb-accent-glow);
}
.hkb-h2 { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(20px, 3vw, 30px); }
.hkb-sub { color: var(--hkb-muted); margin: 8px 0 0; }

/* Grid + cards */
.hkb-grid {
	display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.hkb-grid > .hkb-card { flex: 0 1 200px; }
.hkb-grid-2 { max-width: 760px; margin: 0 auto; }
.hkb-grid-2 > .hkb-card { flex: 0 1 320px; }

.hkb-card {
	position: relative; text-align: center; cursor: pointer;
	background: linear-gradient(180deg, var(--hkb-panel-2), var(--hkb-panel));
	border: 1px solid var(--hkb-line);
	border-radius: var(--hkb-radius);
	padding: 18px 14px; color: var(--hkb-text);
	min-height: 120px;
	transition: border-color .15s, box-shadow .15s, transform .05s;
	display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
}
.hkb-card:has(.hkb-card-img) { justify-content: flex-start; min-height: 0; }
.hkb-card:hover { border-color: var(--hkb-accent); box-shadow: 0 0 0 1px var(--hkb-accent-soft), 0 10px 26px rgba(0,0,0,0.45); }
.hkb-card:active { transform: translateY(1px); }
.hkb-card.is-selected {
	border-color: var(--hkb-accent);
	box-shadow: 0 0 0 1px var(--hkb-accent), 0 0 26px var(--hkb-accent-glow);
}
.hkb-card-img {
	width: 100%;
	aspect-ratio: 16 / 10; background: #000; border-radius: calc(var(--hkb-radius) - 2px);
	overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hkb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hkb-card-text { display: flex; flex-direction: column; gap: 4px; }
.hkb-year { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.05; }
.hkb-year-n { font-size: 30px; font-weight: 800; letter-spacing: 0.02em; }
.hkb-year-to { font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--hkb-muted); }
.hkb-card-year { min-height: 130px; }
.hkb-card-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px; }
.hkb-card-sub { color: var(--hkb-muted); font-size: 13px; }

/* Option groups */
.hkb-optgroup { margin: 0 auto 16px; max-width: 760px; }
.hkb-optgroup-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--hkb-muted); margin-bottom: 8px; font-weight: 700; text-align: center; }
.hkb-optrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hkb-opt {
	cursor: pointer;
	background: #5a5a5a;
	color: var(--hkb-text);
	border: 1px solid var(--hkb-line);
	border-radius: var(--hkb-radius);
	padding: 10px 16px;
	font-weight: 600;
	transition: border-color .15s, box-shadow .15s;
}
.hkb-opt:hover {border-color: var(--hkb-accent);background: #191919;}
.hkb-opt.is-selected {border-color: var(--hkb-accent);box-shadow: 0 0 0 1px var(--hkb-accent), 0 0 16px var(--hkb-accent-glow);background: #191919;}

/* Paint option with confidence note stacks label over note */
.hkb-opt:has(.hkb-opt-note) { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; }
.hkb-opt-label { display: block; }
.hkb-opt-note { display: block; font-weight: 500; font-size: 11px; color: var(--hkb-muted); text-transform: none; letter-spacing: 0; }
.hkb-opt.is-selected .hkb-opt-note { color: var(--hkb-accent-2); }

/* Part config blocks */
.hkb-part-options { margin: 0 auto 22px; max-width: 760px; }
.hkb-part-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; text-align: center; color: var(--hkb-accent); }

/* Summary */
.hkb-summary {
	position: relative; z-index: 1;
	margin-top: 22px; background: var(--hkb-panel); border: 1px solid var(--hkb-line);
	border-radius: var(--hkb-radius); padding: 16px;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hkb-accent) 8%, transparent);
}
.hkb-summary-title { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--hkb-accent); font-weight: 700; margin-bottom: 10px; }
.hkb-summary-empty { color: var(--hkb-muted); }
.hkb-summary-list { display: flex; flex-direction: column; gap: 6px; }
.hkb-summary-item { display: flex; justify-content: space-between; gap: 12px; }
.hkb-summary-item-price { color: var(--hkb-muted); font-variant-numeric: tabular-nums; }
.hkb-summary-total {
	display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px;
	border-top: 1px solid var(--hkb-line); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.hkb-summary-total span:last-child { color: var(--hkb-accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px var(--hkb-accent-glow); }

/* Review */
.hkb-review { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin: 0 auto; }
.hkb-review-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hkb-line); }
.hkb-review-name { font-weight: 600; }
.hkb-review-price { font-variant-numeric: tabular-nums; color: var(--hkb-muted); }
.hkb-review-total {
	display: flex; justify-content: space-between; max-width: 640px; margin: 14px auto 0;
	font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 18px;
}
.hkb-review-total span:last-child { color: var(--hkb-accent); text-shadow: 0 0 14px var(--hkb-accent-glow); }

/* CTA */
.hkb-cta {
	display: block; width: 100%; max-width: 640px; margin: 20px auto 0; cursor: pointer;
	background: linear-gradient(180deg, var(--hkb-accent-2), var(--hkb-accent));
	color: #1a1106; border: none; border-radius: var(--hkb-radius);
	padding: 16px 20px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
	box-shadow: 0 8px 30px var(--hkb-accent-glow);
	transition: transform .05s, box-shadow .15s, filter .15s;
}
.hkb-cta:hover { box-shadow: 0 12px 40px var(--hkb-accent-glow); filter: brightness(1.05); }
.hkb-cta:active { transform: translateY(1px); }

/* States */
.hkb-loading, .hkb-error { text-align: center; color: var(--hkb-muted); padding: 40px 0; position: relative; z-index: 1; }
.hkb-error { color: #ff7a7a; }
.hkb-msg { text-align: center; margin-top: 12px; color: var(--hkb-muted); min-height: 1.2em; }
.hkb-msg.is-error { color: #ff7a7a; }

/* Focus visibility */
.hkb-root button:focus-visible { outline: 2px solid var(--hkb-accent); outline-offset: 2px; }



/*Tablet*/
@media (max-width: 1024px) {
	.hkb-title {
		font-size: 58px;
	}

	.hkb-root::before {
		top: -105px;
	}
}

/* Mobile */
@media (max-width: 860px) {
	.hkb-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.hkb-title {
		font-size: 37px;
		margin-bottom: 24px;
	}

	.hkb-title:after {
		bottom: -43px;
		width: 120%;
		left: -5%;
	}

	.hkb-root::before {
		top: -65px;
		width: 160%;
		left: -30%;
		background-size: 100% 428px;
		background-size100%: AUTO;
		background-size100%: AUT;
		background-size100%: AU;
		background-size100%: INITIAL;
		background-size100%: INITIAL;
		background-size100%: A;
	}
}

@media (max-width: 600px) {
	.hkb-grid > .hkb-card {
		flex: 0 0 260px;
		max-width: 100%;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hkb-card, .hkb-cta, .hkb-opt { transition: none; }
	.hkb-section-new { animation: none; }
}

/* This Kit Includes — collapsible block in the config step. */
.hkb-includes {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto 22px;
	border: 1px solid var(--hkb-line);
	border-radius: var(--hkb-radius);
	background: linear-gradient(180deg, var(--hkb-panel-2), var(--hkb-panel));
	overflow: hidden;
}
.hkb-includes-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--hkb-text);
	padding: 12px 16px;
	font: inherit;
	text-align: left;
}

.hkb-includes-toggle:focus .hkb-includes-toggle-label{
	color: #fff !important;
}
.hkb-includes-toggle:hover { background: color-mix(in srgb, var(--hkb-accent) 8%, transparent); }
.hkb-includes-toggle-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	font-weight: 700;
	color: var(--hkb-accent);
}
.hkb-includes-caret {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--hkb-accent);
	border-bottom: 2px solid var(--hkb-accent);
	transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease;
}
.hkb-includes.is-open .hkb-includes-caret { transform: rotate(225deg) translateY(-2px); }

/* Collapsed by default; height is animated in JS between 0 and the measured
   content height, so the padding lives on the inner element instead. */
.hkb-includes-panel {
	height: 0;
	overflow: hidden;
	transition: height .26s ease;
}
.hkb-includes.is-open .hkb-includes-panel { border-top: 1px solid var(--hkb-line); }
.hkb-includes-inner {
	padding: 2px 16px 12px;
	opacity: 0;
	transition: opacity .2s ease .04s;
}
.hkb-includes.is-open .hkb-includes-inner { opacity: 1; }
.hkb-includes-entry {
	padding: 10px 0;
	border-bottom: 1px solid var(--hkb-line);
}
.hkb-includes-entry:last-child { border-bottom: none; padding-bottom: 2px; }
.hkb-includes-head { line-height: 1.4; }
.hkb-includes-name {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--hkb-text);
	font-size: 13px;
}
.hkb-includes-name::after {
	content: "\2014";
	color: var(--hkb-muted);
	font-weight: 400;
	margin: 0 6px;
}
.hkb-includes-lead {
	color: var(--hkb-text);
	font-size: 14px;
}
.hkb-includes-desc {
	color: var(--hkb-muted);
	font-size: 13px;
	line-height: 1.5;
	margin-top: 3px;
}

.hkb-includes-subhead {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 11px;
	font-weight: 700;
	color: var(--hkb-muted);
	/* margin: 14px 0 2px; */
	padding-top: 12px;
	/* border-top: 1px solid var(--hkb-line); */
}
.hkb-includes-entry.is-optional .hkb-includes-name { color: var(--hkb-muted); }

@media (prefers-reduced-motion: reduce) {
	.hkb-includes-caret,
	.hkb-includes-panel,
	.hkb-includes-inner { transition: none; }
}