/* Additions for the Cloudflare site (the WordPress look itself is in wp-before.css, theme.css and wp-after.css). */

/* Header and menu: members' items or visitors' items. <html> gets ac-in / ac-out before first paint. */
html:not(.ac-in) .ac-auth-in,
html.ac-in .ac-auth-out {
	display: none !important;
}

/* The header's "Create your video" button is left off the Create Your Video page itself. */
.page-template-page-app .ac-header .aimclips-create-cta {
	display: none;
}

/* Links styled as buttons in forms (log out). */
.ac-linkbutton {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- Features page -------------------------------------------------------- */

/* Each card links to its section below. */
.ac-feature--link {
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ac-feature--link:hover {
	border-color: var(--wp--preset--color--accent-tint-line);
	background: var(--wp--preset--color--accent-card);
}
.ac-feature--link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}
.ac-feature--link .ac-muted {
	flex: 1;
}
.ac-feature-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--accent-tint-line);
	border-radius: var(--ac-radius-field, 10px);
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent);
}
.ac-feature-more {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}

/* Sections land below the sticky header when a card is clicked. */
html {
	scroll-behavior: smooth;
}
.ac-feature-section {
	scroll-margin-top: 96px;
}
.ac-feature-intro {
	gap: 8px;
}

/* Highlight Detection: three looping clips. */
.ac-clips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.ac-clip {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ac-clip__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card, 14px);
	background: var(--wp--preset--color--surface);
}
.ac-clip figcaption {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
.ac-clip__label {
	padding: 2px 10px;
	border: 1px solid var(--wp--preset--color--accent-tint-line);
	border-radius: 999px;
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent-hover);
	font-size: 13px;
	font-weight: 600;
}

/* Clip Analytics and Montage Builder: one app screenshot each. */
.ac-feature-shot {
	margin: 0;
}
.ac-feature-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card, 14px);
}

@media (max-width: 781px) {
	.ac-clips {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* No autoplaying motion for people who asked for less of it; theme.js adds controls. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ---- Pricing page --------------------------------------------------------- */

/* "Coming Soon" in place of a price: quieter than a price, so the free plan stands out. */
.ac-price strong.ac-price__soon {
	font-size: var(--wp--preset--font-size--lg, 19px);
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--muted, #9aa3ad);
}

/* Detection features: each card has its own colour (--c, set inline) and a sample badge in the
   style the app puts on videos. */
.ac-detect-section {
	margin-top: 80px;
	gap: 12px;
}
.ac-detect-section > .ac-grid {
	margin-top: 20px;
}
.ac-detect-eyebrow {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--wp--preset--color--accent-tint-line, #4a2a22);
	border-radius: 999px;
	background: var(--wp--preset--color--accent-tint, #2a1a17);
	color: var(--wp--preset--color--accent-hover, #ff7c5e);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ac-detect {
	position: relative;
	overflow: hidden;
	gap: 10px;
	border-top: 3px solid var(--c);
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%),
		var(--wp--preset--color--surface, #171b22);
	transition: transform 0.15s ease, border-color 0.15s ease;
}
.ac-detect:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--c) 55%, transparent);
	border-top-color: var(--c);
}
.ac-detect h3 {
	font-size: var(--wp--preset--font-size--md, 17px);
}
.ac-detect__badge {
	align-self: flex-start;
	padding: 4px 10px;
	border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--c) 18%, transparent);
	color: color-mix(in srgb, var(--c) 80%, white);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}
/* The app's Victory Royale badge and kill-streak title. */
.ac-detect__badge--gold {
	border-color: transparent;
	background: linear-gradient(135deg, #ffd65a, #f0a81e);
	color: #2a1a00;
}
.ac-detect__badge--streak {
	border: 0;
	border-radius: 4px;
	background: linear-gradient(135deg, #ffb13d, #ff5a36);
	color: #1a0d05;
	font-style: italic;
	transform: skewX(-12deg);
}
.ac-detect__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ac-detect__chips span {
	padding: 3px 9px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--c) 20%, transparent);
	color: color-mix(in srgb, var(--c) 75%, white);
	font-size: 12px;
	font-weight: 700;
}
/* A loadout: five hotbar slots, coloured like the app's loadout strip. */
.ac-detect__hotbar {
	display: flex;
	gap: 4px;
}
.ac-detect__hotbar i {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: var(--s);
}

/* ---- Home page ------------------------------------------------------------ */

/* The highlight badges under the hero (same cards as the pricing page's detection features). */
.ac-highlights {
	margin-top: 48px;
	margin-bottom: 64px;
}
.ac-highlight .ac-detect__badge {
	font-size: 12px;
}
.ac-highlight .ac-muted {
	font-size: var(--wp--preset--font-size--sm, 14px);
}

/* ---- Sign up / Log in card ------------------------------------------------- */

/* The Cloudflare Turnstile check sits between the fields and the button. */
.ac-auth .ac-turnstile {
	min-height: 65px;
	margin: 0;
}

/* ---- My account: footage and clips side by side -------------------------- */

.acm-usage-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem 1.5rem;
}

.acm-usage-pair .acm-usage p {
	margin: 0 0 .5rem;
}

/* ---- Guide (/guide/, src/content/guide.md) -------------------------------- */

.ac-guide__content > * + * {
	margin-top: 1rem;
}

.ac-guide__content h2 {
	margin-top: 2.5rem;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	line-height: 1.2;
	/* jump links land below the sticky header */
	scroll-margin-top: 6rem;
}

.ac-guide__content h3 {
	margin-top: 1.5rem;
	font-size: 1.2rem;
}

.ac-guide__content li + li {
	margin-top: .35rem;
}

.ac-guide__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--line, #232833);
}

.ac-guide__content blockquote {
	margin: 1rem 0;
	padding: .75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--accent, #ff5a36);
	background: var(--wp--preset--color--surface, #171b22);
	border-radius: 0 8px 8px 0;
}

.ac-guide__toc {
	margin: 1.5rem 0 2rem;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface, #171b22);
	border: 1px solid var(--wp--preset--color--line, #232833);
	border-radius: 12px;
}

.ac-guide__toc-title {
	margin: 0 0 .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #9aa3ad);
}

.ac-guide__toc ol {
	margin: 0;
	padding-left: 1.25rem;
	columns: 2 16rem;
	column-gap: 2rem;
}

.ac-guide__toc li {
	margin: 0;
	padding: .15rem 0;
	break-inside: avoid;
}
