/* vet100 Rating Gap Check. Loaded only on /rating-gap-check/. Uses the theme tokens in style.css. */

.gc-hero { padding-block: var(--s-6) var(--s-5); }
.gc-hero .hero__lede { margin-bottom: 0; }
.gc-hero .hero__proof { margin-top: var(--s-4); }
.gc-section { padding-top: var(--s-5); }

.gc {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: var(--s-5) var(--s-4);
	font-family: var(--f-ui);
	font-size: 1rem;
	line-height: 1.5;
	max-width: var(--w-prose);
	margin-inline: auto;
	min-width: 0;
}
@media (min-width: 720px) { .gc { padding: var(--s-6); } }

.gc:not(.is-enhanced) .gc-step,
.gc:not(.is-enhanced) .gc-result { display: none; }
.gc.is-enhanced .gc-step { display: none; }
.gc.is-enhanced .gc-step.is-active { display: block; animation: gc-in 0.22s ease-out; }
.gc [hidden] { display: none !important; }

@keyframes gc-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* Top bar: Back link and progress */
.gc-top { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); min-height: 32px; }
.gc-back {
	flex: none;
	background: none; border: 0; padding: var(--s-1) 0;
	color: var(--muted);
	font: 600 0.9375rem/1.2 var(--f-ui);
	cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
	min-height: 32px;
}
.gc-back:hover { color: var(--accent); }
.gc-progress { flex: 1 1 auto; min-width: 0; }
.gc-progress__label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); text-align: right; }
.gc-progress__track { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.gc-progress__bar { height: 100%; width: 10%; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }

/* Question */
.gc-q {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: clamp(1.75rem, 6.5vw, 2.25rem);
	line-height: 1.08;
	text-transform: uppercase;
	margin: 0 0 var(--s-2);
}
.gc-q:focus { outline: none; }
.gc-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.gc-help { color: var(--muted); font-size: 0.9375rem; margin: 0 0 var(--s-5); }
.gc-sub { font-weight: 600; margin: var(--s-4) 0 var(--s-2); color: var(--text); }
.gc-sub:first-of-type { margin-top: 0; }

/* Option cards */
.gc-opts { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: 0 0 var(--s-2); }
.gc-opt {
	position: relative;
	display: flex; align-items: center; gap: var(--s-3);
	width: 100%;
	min-height: 60px;
	padding: var(--s-3) var(--s-4);
	background: var(--surface-2);
	border: 2px solid var(--border-strong);
	border-radius: var(--radius);
	color: var(--text);
	font: 600 1.0625rem/1.3 var(--f-ui);
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none; appearance: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}
.gc-opt::before {
	content: "";
	flex: none;
	width: 20px; height: 20px;
	border: 2px solid var(--border-strong);
	border-radius: 50%;
	background: var(--bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gc-opt:hover { border-color: var(--accent); }
.gc-opt:hover::before { border-color: var(--accent); }
.gc-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.gc-opt[aria-pressed="true"]::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg); background: var(--accent); }
.gc-opt:active { transform: translateY(1px); }

/* Rating chips */
.gc-opts--chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.gc-opts--chips .gc-opt { justify-content: center; text-align: center; min-height: 52px; padding: var(--s-2); font-size: 1.0625rem; }
.gc-opts--chips .gc-opt::before { display: none; }
.gc-opts--chips .gc-opt--wide { grid-column: span 3; }
@media (min-width: 600px) {
	.gc-opts--chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.gc-opts--chips .gc-opt--wide { grid-column: span 5; }
}

/* Multi select uses square checks */
[data-type="multi"] .gc-opt::before { border-radius: 4px; }
[data-type="multi"] .gc-opt[aria-pressed="true"]::before {
	box-shadow: none;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1420' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (min-width: 600px) { .gc-opts--grid { grid-template-columns: 1fr 1fr; } }
.gc-opts--pair { grid-template-columns: 1fr 1fr; }

/* Actions */
.gc-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-3); margin-top: var(--s-5); }
.gc-actions .btn { width: 100%; }
.gc-skip {
	align-self: center;
	background: none; border: 0; padding: var(--s-2);
	color: var(--muted);
	font: 500 0.9375rem/1.3 var(--f-ui);
	text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer;
	min-height: 44px;
}
.gc-skip:hover { color: var(--accent); }
[data-type="date"] .gc-opts { margin-top: var(--s-3); }
.gc-error { margin: var(--s-2) 0 0; }
.gc-error:empty { display: none; }
@media (min-width: 600px) {
	.gc-actions { flex-direction: row; align-items: center; }
	.gc-actions .btn { width: auto; min-width: 220px; }
	.gc-skip { align-self: auto; }
}

/* Ratings rows */
.gc-rows { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
.gc-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 44px;
	gap: var(--s-2) var(--s-3);
	align-items: center;
	padding: var(--s-3);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.gc-row__pct { margin: 0; }
.gc-row__sel { padding-left: var(--s-3); padding-right: 34px; background-position: right 10px center; }
.gc-row__bilwrap { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-weight: 500; font-size: 0.875rem; line-height: 1.3; cursor: pointer; min-height: 44px; }
.gc-row__remove {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 1.5rem; line-height: 1;
	cursor: pointer;
}
.gc-row__remove:hover { color: var(--danger); border-color: var(--danger); }
.gc-teaser {
	margin: var(--s-4) 0 0;
	padding: var(--s-4);
	background: var(--accent-soft);
	border: 1px solid rgba(242, 168, 29, 0.35);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	font-weight: 600;
}
.gc-teaser:empty { display: none; }

/* Household stepper */
.gc-stepper { display: inline-flex; align-items: center; gap: var(--s-3); }
.gc-stepper__btn {
	width: 52px; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--surface-2);
	border: 2px solid var(--border-strong);
	border-radius: var(--radius);
	color: var(--text);
	font: 700 1.5rem/1 var(--f-ui);
	cursor: pointer;
}
.gc-stepper__btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.gc-stepper__btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.gc-stepper__val { min-width: 2ch; text-align: center; font: 700 2rem/1 var(--f-head); color: var(--text); }

/* Result */
.gc-res > :last-child { margin-bottom: 0; }
.gc-res__title { font-size: clamp(2rem, 7vw, 2.75rem); margin-bottom: var(--s-2); }
.gc-res__title:focus { outline: none; }
.gc-res__title:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.gc-res__note, .gc-fine { color: var(--muted); font-size: 0.875rem; }
.gc-res h3 { margin-top: var(--s-6); text-transform: uppercase; font-weight: 700; }

.gc-big {
	display: flex; flex-direction: column; align-items: flex-start;
	margin: var(--s-5) 0 var(--s-4);
	padding: var(--s-4) 0 var(--s-4) var(--s-4);
	border-left: 4px solid var(--accent);
}
.gc-big__num { font: 700 clamp(4rem, 20vw, 6rem)/0.95 var(--f-head); color: var(--accent); }
.gc-big__label { margin-top: var(--s-2); color: var(--muted); font-size: 0.9375rem; }

.gc-math { margin: 0 0 var(--s-5); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.gc-math summary { cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.gc-math__list { margin: 0; padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 1.25em); font-size: 0.9375rem; color: var(--text); }
.gc-math__list li { margin-bottom: var(--s-2); }
.gc-math__list li::marker { color: var(--accent); font-weight: 700; }

.gc-cards { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
@media (min-width: 600px) { .gc-cards { grid-template-columns: 1fr 1fr; } }
.gc-card { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); min-width: 0; }
.gc-card__label { font-size: 0.8125rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.gc-card__num { font: 700 2.25rem/1.05 var(--f-head); color: var(--text); }
.gc-card__sub { font-size: 0.9375rem; color: var(--accent); font-weight: 600; }
.gc-points { font-size: 1.0625rem; }
.gc-points strong { color: var(--accent); }

.gc-deadline, .gc-family {
	margin: var(--s-5) 0;
	padding: var(--s-4) var(--s-5);
	background: var(--accent-soft);
	border: 1px solid rgba(242, 168, 29, 0.35);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
}
.gc-deadline > :last-child, .gc-family > :last-child { margin-bottom: 0; }
.gc-deadline--plain, .gc-family { background: var(--bg); border-color: var(--border); border-left-color: var(--border-strong); }
.gc-family .callout__title { color: var(--text); }
.gc-family ul { margin-bottom: var(--s-3); }

.gc-edu { padding-left: 1.25em; }
.gc-edu li { margin-bottom: var(--s-3); }
.gc-edu li::marker { color: var(--accent); }

.gc-offer {
	margin: var(--s-6) 0 var(--s-5);
	padding: var(--s-5) var(--s-4);
	background: var(--bg);
	border: 2px solid var(--accent);
	border-radius: var(--radius-lg);
}
@media (min-width: 720px) { .gc-offer { padding: var(--s-6); } }
.gc-offer h3 { margin-top: 0; }
.gc-modules { padding-left: 0; list-style: none; margin-bottom: var(--s-4); }
.gc-modules li { position: relative; padding: var(--s-2) 0 var(--s-2) 28px; border-bottom: 1px solid var(--border); }
.gc-modules li:last-child { border-bottom: 0; }
.gc-modules li::before {
	content: "";
	position: absolute; left: 0; top: calc(var(--s-2) + 4px);
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1420' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.gc-price { font-size: 1.125rem; margin-bottom: var(--s-1); }
.gc-price strong { font: 700 2rem/1 var(--f-head); color: var(--accent); margin-right: var(--s-1); }
.gc-offer .btn-row { margin-top: var(--s-4); }
.gc-offer .btn-row .btn { width: 100%; }
@media (min-width: 600px) { .gc-offer .btn-row .btn { width: auto; } }
.gc-alt { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 0.9375rem; }
@media (min-width: 600px) { .gc-alt { flex-direction: row; gap: var(--s-5); } }
.gc-sent { font-weight: 600; }

/* Funnel Builder: VSL video (16:9), Start button, watch gate, Not a fit screen */
.fb-vsl-section { padding-top: var(--s-5); padding-bottom: 0; }
.gc-hero--vsl .fb-vsl { margin-top: var(--s-5); }
.fb-vsl { max-width: var(--w-prose); margin-inline: auto; }
.fb-vsl__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #000;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.fb-vsl__frame iframe, .fb-vsl__frame video, .fb-vsl__facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.fb-vsl__frame video { object-fit: contain; background: #000; }
.fb-vsl__facade { padding: 0; margin: 0; background: #000; cursor: pointer; }
.fb-vsl__facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-vsl__play {
	position: absolute; left: 50%; top: 50%;
	width: 76px; height: 76px; margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s ease, background-color 0.15s ease;
}
.fb-vsl__play::after {
	content: ""; position: absolute; left: 31px; top: 23px;
	border-style: solid; border-width: 15px 0 15px 24px;
	border-color: transparent transparent transparent var(--accent-ink);
}
.fb-vsl__facade:hover .fb-vsl__play, .fb-vsl__facade:focus-visible .fb-vsl__play { transform: scale(1.06); background: var(--accent-hover); }
.fb-vsl__facade:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.fb-vsl__gate { margin: var(--s-3) 0 0; color: var(--muted); font: 500 0.9375rem/1.4 var(--f-ui); text-align: center; }
.fb-vsl__start { display: flex; justify-content: center; margin-top: var(--s-4); }
.fb-vsl__start .btn { width: 100%; }
@media (min-width: 600px) { .fb-vsl__start .btn { width: auto; min-width: 260px; } }
.fb-vsl [hidden], .gc-section[hidden] { display: none !important; }
.gc-res .fb-vsl { margin: var(--s-6) 0 0; }
.gc-notfit__btns { margin-top: var(--s-5); }
.gc-notfit__btns .btn { width: 100%; }
@media (min-width: 600px) { .gc-notfit__btns .btn { width: auto; } }

@media (prefers-reduced-motion: reduce) {
	.gc *, .gc *::before, .gc *::after { animation: none !important; transition: none !important; }
	.gc.is-enhanced .gc-step.is-active { animation: none; }
	.fb-vsl__play { transition: none; }
}
