/* ==========================================================================
   AIGator 1.0 · site
   Warm paper surfaces, the logo's gator green for actions, ember and honey
   only where the product talks about evidence. See DESIGN.md.
   ========================================================================== */

:root {
	/* Surfaces */
	--ag-paper: #fffdf9;
	--ag-white: #ffffff;
	--ag-linen: #f6f1e8;
	--ag-sand: #eee7da;
	--ag-line: #e8e1d4;
	--ag-line-strong: #d8cfbf;

	/* Text */
	--ag-ink: #1d1b17;
	--ag-ink-2: #3b372f;
	--ag-stone: #6b645a;
	--ag-pebble: #8f877b;
	--ag-hint: #787166;

	/* Brand */
	--ag-green: #2f7d2a;
	--ag-green-hover: #2b7326;
	--ag-green-ink: #235c1f;
	--ag-leaf: #edf5e4;
	--ag-leaf-strong: #dcebcb;
	--ag-lime: #7cbb4e;

	/* Evidence */
	--ag-ember: #cf5f22;
	--ag-ember-ink: #a5410f;
	--ag-ember-tint: #fbe3d2;
	--ag-honey: #c58a17;
	--ag-honey-ink: #8a5a00;
	--ag-honey-tint: #fbf1d8;
	--ag-human: #4a88c7;
	--ag-human-ink: #1d5a8e;
	--ag-human-tint: #dfebf7;

	/* Type */
	--ag-font: "AG Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ag-font-display: "AG Display", "AG Sans", ui-sans-serif, system-ui, sans-serif;
	--ag-font-serif: "AG Serif", "Iowan Old Style", Charter, Georgia, serif;
	--ag-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

	/* Shape */
	--ag-r-sm: 8px;
	--ag-r: 12px;
	--ag-r-lg: 18px;
	--ag-r-xl: 24px;
	--ag-shadow-sm: 0 1px 2px rgba(64, 48, 24, 0.06);
	--ag-shadow: 0 1px 2px rgba(64, 48, 24, 0.05), 0 12px 32px -14px rgba(64, 48, 24, 0.22);
	--ag-shadow-lg: 0 2px 4px rgba(64, 48, 24, 0.04), 0 28px 60px -28px rgba(64, 48, 24, 0.32);
	--ag-focus: 0 0 0 2px var(--ag-paper), 0 0 0 4px var(--ag-green);

	/* Layout */
	--ag-max: min(var(--ag-container, 1120px), 1180px);
	--ag-gutter: clamp(16px, 4vw, 32px);
	--ag-header-h: 64px;
	--ag-section: clamp(64px, 9vw, 120px);
	--ag-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ag-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ag-paper);
	color: var(--ag-ink);
	font-family: var(--ag-font);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 420;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Short pages keep the footer at the bottom of the window. */
body.ag-public {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.ag-public > .site-main,
body.ag-public > main {
	flex: 1 0 auto;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--ag-font-display);
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: -0.022em;
	color: var(--ag-ink);
	text-wrap: balance;
	font-optical-sizing: auto;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--ag-green-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ag-ink);
}

/* Elements that only receive focus from a script (tabindex="-1": headings a
   view moves focus to, image links hidden from the keyboard) get no ring. */
:where(a, button, input, select, textarea, summary, [tabindex]):where(:not([tabindex="-1"])):focus-visible {
	outline: none;
	box-shadow: var(--ag-focus);
	border-radius: 6px;
}

::selection {
	background: var(--ag-leaf-strong);
	color: var(--ag-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ag-skip-link {
	position: fixed;
	left: 16px;
	top: 12px;
	transform: translateY(-200%);
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--ag-r);
	background: var(--ag-ink);
	color: var(--ag-paper);
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s var(--ag-ease);
}

.ag-skip-link:focus {
	transform: none;
	color: var(--ag-paper);
}

.ag-icon {
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-pixel-gator {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	width: 80px;
	height: auto;
}

.ag-wrap {
	width: min(100% - 2 * var(--ag-gutter), var(--ag-max));
	margin-inline: auto;
}

.ag-wrap--text {
	width: min(100% - 2 * var(--ag-gutter), 700px);
}

.site-main {
	display: block;
}

/* The hidden attribute must always win over layout rules: the workspace hides
   private views with it. */
[hidden] {
	display: none !important;
}

/* ---------- Buttons ------------------------------------------------------- */

.ag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: 600 15px/1.2 var(--ag-font);
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s var(--ag-ease), border-color 0.15s var(--ag-ease), color 0.15s var(--ag-ease);
}

.ag-btn:active {
	transform: translateY(1px);
}

.ag-btn--primary {
	background: var(--ag-green);
	color: #fff;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ag-btn--primary:hover {
	background: var(--ag-green-hover);
	color: #fff;
}

.ag-btn--quiet {
	background: var(--ag-white);
	border-color: var(--ag-line-strong);
	color: var(--ag-ink);
}

.ag-btn--quiet:hover {
	background: var(--ag-linen);
	color: var(--ag-ink);
}

.ag-btn--lg {
	min-height: 48px;
	padding: 0 22px;
	font-size: 16px;
	border-radius: 12px;
}

.ag-btn--block {
	width: 100%;
}

.ag-btn--sm {
	min-height: 34px;
	padding: 0 12px;
	gap: 6px;
	border-radius: 9px;
	font-size: 14px;
}

.ag-btn--sm .ag-icon {
	width: 17px;
	height: 17px;
}

.ag-btn--danger {
	color: var(--ag-ember-ink);
}

.ag-btn--danger:hover {
	border-color: #f1c7b5;
	background: var(--ag-ember-tint);
	color: var(--ag-ember-ink);
}

.ag-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.ag-btn:focus-visible,
.ag-iconbtn:focus-visible {
	outline: none;
	box-shadow: var(--ag-focus);
}

.ag-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
}

.ag-link-arrow .ag-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.15s var(--ag-ease);
}

.ag-link-arrow:hover .ag-icon {
	transform: translateX(2px);
}

/* ---------- Header -------------------------------------------------------- */

.ag-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 253, 249, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--ag-ease), box-shadow 0.2s var(--ag-ease);
}

.admin-bar .ag-header {
	top: 32px;
}

.ag-header.is-scrolled {
	border-bottom-color: var(--ag-line);
}

.ag-header__bar {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--ag-header-h);
}

.ag-header__brand {
	display: flex;
	align-items: center;
	flex: none;
}

.ag-header__brand a {
	display: flex;
	border-radius: 6px;
}

.ag-header__brand img {
	display: block;
	width: min(var(--ag-logo-width-desktop, 136px), 140px);
	height: auto;
}

.ag-nav {
	flex: 1;
}

.ag-nav__list,
.ag-nav .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-nav a {
	display: block;
	padding: 7px 12px;
	border-radius: 9px;
	color: var(--ag-ink-2);
	font-size: 15px;
	font-weight: 550;
	text-decoration: none;
	transition: background-color 0.15s var(--ag-ease), color 0.15s var(--ag-ease);
}

.ag-nav a:hover {
	background: var(--ag-linen);
	color: var(--ag-ink);
}

.ag-nav .current-menu-item > a,
.ag-nav .current_page_item > a,
.ag-nav [aria-current="page"] {
	color: var(--ag-ink);
	background: var(--ag-linen);
}

.ag-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.ag-header__link {
	padding: 8px 12px;
	border-radius: 9px;
	color: var(--ag-ink-2);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ag-header__link:hover {
	background: var(--ag-linen);
	color: var(--ag-ink);
}

.ag-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ag-ink);
	cursor: pointer;
}

.ag-menu-toggle:hover {
	background: var(--ag-linen);
}

.ag-menu-toggle .ag-icon {
	width: 24px;
	height: 24px;
}

.ag-menu-toggle__close,
.ag-menu-toggle[aria-expanded="true"] .ag-menu-toggle__open {
	display: none;
}

.ag-menu-toggle[aria-expanded="true"] .ag-menu-toggle__close {
	display: flex;
}

.ag-menu-toggle__open {
	display: flex;
}

.ag-mobile-menu {
	border-top: 1px solid var(--ag-line);
	background: var(--ag-paper);
	padding: 12px 0 20px;
	box-shadow: 0 24px 40px -24px rgba(64, 48, 24, 0.25);
}

.ag-mobile-menu__list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ag-mobile-menu__list a {
	display: block;
	padding: 13px 4px;
	border-bottom: 1px solid var(--ag-line);
	color: var(--ag-ink);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}

.ag-mobile-menu__actions {
	display: grid;
	gap: 10px;
}

@media (max-width: 880px) {
	.ag-nav,
	.ag-header__actions {
		display: none;
	}

	.ag-menu-toggle {
		display: inline-flex;
	}

	.ag-header__brand img {
		width: min(var(--ag-logo-width-mobile, 124px), 126px);
	}
}

@media (min-width: 881px) {
	.ag-mobile-menu {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.admin-bar .ag-header {
		top: 46px;
	}
}

/* ---------- Footer -------------------------------------------------------- */

.ag-footer {
	margin-top: var(--ag-section);
	background: var(--ag-linen);
	border-top: 1px solid var(--ag-line);
	color: var(--ag-ink-2);
	font-size: 15px;
}

.ag-home + .ag-footer,
.ag-auth-main + .ag-footer,
.ag-footer--flush {
	margin-top: 0;
}

.ag-footer__top {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
	gap: 48px;
	padding: 56px 0 40px;
}

.ag-footer__logo {
	display: inline-flex;
	border-radius: 6px;
}

.ag-footer__logo img {
	width: 124px;
	height: auto;
}

.ag-footer__brand p {
	max-width: 30ch;
	margin: 14px 0 0;
	color: var(--ag-stone);
}

.ag-footer__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.ag-footer__col h2 {
	margin: 0 0 12px;
	font-family: var(--ag-font);
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0;
	color: var(--ag-ink);
}

.ag-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-footer__col li + li {
	margin-top: 6px;
}

.ag-footer__col a {
	color: var(--ag-stone);
	text-decoration: none;
}

.ag-footer__col a:hover {
	color: var(--ag-ink);
	text-decoration: underline;
}

.ag-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	padding: 20px 0 28px;
	border-top: 1px solid var(--ag-line-strong);
	color: var(--ag-stone);
	font-size: 13px;
}

.ag-footer__bottom p {
	margin: 0;
}

@media (max-width: 760px) {
	.ag-footer__top {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ag-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Homepage: hero ------------------------------------------------ */
/* The text box is the hero. Desktop: a compact intro column beside a tall box,
   both above the fold. Narrow screens: headline, box, then the facts. */

.ag-hero {
	padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
}

.ag-hero > .ag-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "intro" "tool" "facts";
	gap: 26px 0;
}

.ag-hero__intro {
	grid-area: intro;
}

.ag-hero__title {
	margin: 0;
	font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.032em;
	text-wrap: balance;
}

.ag-hero__lead {
	max-width: 44ch;
	margin: 18px 0 0;
	color: var(--ag-ink-2);
	font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
	line-height: 1.55;
}

.ag-hero__tool {
	grid-area: tool;
	position: relative;
	margin-top: 22px; /* room for the gator on the box's edge */
}

/* The gator perched on the text box. It peeks up once when the page opens,
   bites while text is typed or pasted (the letters drop from its mouth), and
   hops once the text is long enough to check. When nobody types for a while it
   looks at the reader, then walks along the box's edge (biter.js moves it).
   Frames of 40 x 20 pixels: closed, open, blink, step, front, front blink.
   Drawn after the gator in the logo. */
.ag-biter {
	--biter-scale: 2;
	position: absolute;
	right: clamp(28px, 5vw, 64px);
	top: calc(-20px * var(--biter-scale));
	width: calc(40px * var(--biter-scale));
	height: calc(20px * var(--biter-scale) + 3px); /* feet rest on the box's edge */
	z-index: 2;
	pointer-events: none;
}

.ag-biter__clip {
	position: absolute;
	inset: 0;
	overflow: hidden; /* the gator rises from behind the box's edge */
}

.ag-biter__body,
.ag-biter__gator {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: calc(20px * var(--biter-scale));
}

/* The entrance moves the body; bites and hops animate the gator inside it,
   so ending a bite never replays the entrance. */
.ag-biter__gator {
	--frame: calc(-40px * var(--biter-scale)); /* one frame to the left */
	background: url("../images/gator-sprite-3.png") 0 0 / 600% 100% no-repeat;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.ag-biter.is-facing-left .ag-biter__gator {
	scale: -1 1;
}

.ag-biter.is-stepping .ag-biter__gator {
	background-position: calc(var(--frame) * 3) 0;
}

.ag-biter.is-blinking .ag-biter__gator {
	background-position: calc(var(--frame) * 2) 0;
}

.ag-biter.is-front .ag-biter__gator {
	background-position: calc(var(--frame) * 4) 0;
}

.ag-biter.is-front.is-blinking .ag-biter__gator {
	background-position: calc(var(--frame) * 5) 0;
}

.ag-biter.is-chomping:not(.is-front) .ag-biter__gator {
	animation: ag-biter-chomp 0.3s steps(1, end) infinite;
}

.ag-biter.is-hopping .ag-biter__clip {
	overflow: visible;
}

.ag-biter.is-hopping .ag-biter__gator {
	animation: ag-biter-hop 0.48s steps(1, end) 1;
}

.ag-biter__crumbs {
	position: absolute;
	left: calc(35px * var(--biter-scale)); /* the front of the mouth */
	top: calc(10px * var(--biter-scale));
	width: 0;
	height: 0;
}

.ag-biter__crumb {
	position: absolute;
	left: 0;
	top: -0.5em;
	color: var(--ag-ink);
	font: 600 17px/1 var(--ag-font-serif);
	white-space: pre;
	animation: ag-biter-crumb 0.85s linear forwards;
}

/* Hearts that float up when the gator looks at the reader (biter.js). */
.ag-biter__hearts {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	z-index: 3;
	pointer-events: none;
}

.ag-biter__heart {
	position: absolute;
	display: block;
	opacity: 0;
	animation: ag-biter-heart 1.6s cubic-bezier(0.25, 0.7, 0.35, 1) forwards;
}

.ag-biter__heart svg {
	display: block;
	width: 100%;
	height: 100%;
}

@keyframes ag-biter-heart {
	0% { opacity: 0; transform: translate(-50%, 0) scale(0.4); }
	14% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
	55% { opacity: 1; transform: translate(calc(-50% + var(--sway, 0px)), calc(var(--rise, 48px) * -0.55)) scale(1); }
	100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 8px)), calc(var(--rise, 48px) * -1)) scale(0.85); }
}

@keyframes ag-biter-chomp {
	0% { background-position: 0 0; }
	50% { background-position: var(--frame) 0; }
}

@keyframes ag-biter-hop {
	0% { transform: translateY(0); }
	17% { transform: translateY(-6px); }
	33% { transform: translateY(-9px); }
	50% { transform: translateY(-9px); }
	67% { transform: translateY(-6px); }
	83% { transform: translateY(-2px); }
	100% { transform: translateY(0); }
}

/* Spat out of the mouth: a short arc forward and up, then a fall into the box. */
@keyframes ag-biter-crumb {
	0% { transform: translate(0, 0) rotate(0deg) scale(0.6); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
	8% { opacity: 1; }
	30% { transform: translate(calc(var(--dx, 20px) * 0.4), -12px) rotate(calc(var(--rot, 40deg) * 0.3)) scale(1); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.45); }
	78% { opacity: 1; }
	100% { transform: translate(var(--dx, 20px), var(--dy, 44px)) rotate(var(--rot, 40deg)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
	.ag-biter__body {
		animation: ag-biter-peek 0.6s steps(6, end) 0.35s both;
	}
}

@keyframes ag-biter-peek {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.ag-biter .ag-biter__body,
	.ag-biter .ag-biter__gator { animation: none !important; }
	.ag-biter__crumbs,
	.ag-biter__hearts { display: none; }
}

.ag-hero__facts {
	grid-area: facts;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ag-stone);
	font-size: 14px;
}

.ag-hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ag-hero__facts .ag-icon {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--ag-green);
}

@media (min-width: 960px) {
	.ag-hero > .ag-wrap {
		grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "intro tool" "facts tool";
		column-gap: clamp(40px, 4.5vw, 72px);
		row-gap: 24px;
	}

	.ag-hero__intro {
		padding-top: 30px; /* lines the headline up with the box's first line */
	}

	.ag-hero__facts {
		align-self: end;
		flex-direction: column;
		gap: 12px;
		padding-bottom: 20px; /* sits level with the Check text row */
	}

	.ag-hero .ag-launcher textarea {
		height: clamp(220px, 36vh, 330px);
	}
}

/* Once a report is showing, the page is about the report. */
.ag-hero:has(.aigator-detector.has-workspace-result) .ag-hero__intro,
.ag-hero:has(.aigator-detector.has-workspace-result) .ag-biter,
.ag-hero:has(.aigator-detector.has-workspace-result) .ag-hero__facts,
.ag-hero:has(.aigator-detector.has-result) .ag-hero__intro,
.ag-hero:has(.aigator-detector.has-result) .ag-biter,
.ag-hero:has(.aigator-detector.has-result) .ag-hero__facts {
	display: none;
}

.ag-hero:has(.aigator-detector.has-workspace-result),
.ag-hero:has(.aigator-detector.has-result) {
	padding-top: clamp(20px, 3vw, 36px);
}

@media (max-width: 640px) {
	.ag-hero__tool {
		margin-top: 14px;
	}

	.ag-biter {
		--biter-scale: 1.5;
		right: 20px;
	}

	.ag-hero__facts {
		flex-direction: column;
		gap: 8px;
	}
}

/* ---------- Homepage: launcher (New experience) -------------------------- */
/* One fixed-height box. Check text carries the text into /app/ in memory. */

.ag-launcher {
	position: relative;
	display: grid;
	background: var(--ag-white);
	border-radius: 18px;
	box-shadow: var(--ag-shadow), 0 0 0 1px var(--ag-line-strong);
	text-align: left;
}

.ag-launcher:focus-within {
	box-shadow: var(--ag-shadow), 0 0 0 1px var(--ag-green), 0 0 0 4px color-mix(in srgb, var(--ag-green) 16%, transparent);
}

.ag-launcher-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 0 22px;
	color: var(--ag-stone);
	font-size: 13.5px;
	font-weight: 600;
}

.ag-launcher-tools {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ag-launcher-tools a,
.ag-launcher-tools button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ag-ink-2);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ag-launcher-tools a:hover,
.ag-launcher-tools button:hover {
	background: rgba(64, 48, 24, 0.06);
	color: var(--ag-ink);
}

.ag-launcher-tools svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-launcher textarea {
	display: block;
	width: 100%;
	height: 210px;
	resize: none;
	border: 0;
	background: transparent;
	padding: 10px 22px 18px;
	color: var(--ag-ink);
	font: 400 17.5px/1.65 var(--ag-font-serif);
	box-shadow: none;
}

.ag-launcher textarea:focus {
	outline: none;
}

.ag-launcher textarea::placeholder {
	color: var(--ag-hint);
}

.ag-launcher-action {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 22px;
	border-top: 1px solid var(--ag-line);
	color: var(--ag-stone);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.ag-launcher-action [data-ag-launch-count] {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
}

/* Over the character limit: the count says so before Check text does. */
.ag-launch-chars.is-over {
	color: #9c2a17;
	font-weight: 600;
}

.ag-launcher .ag-check-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--ag-green);
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 650;
	cursor: pointer;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ag-launcher .ag-check-button:hover {
	background: var(--ag-green-hover);
}

.ag-launcher .ag-check-button:disabled {
	opacity: 0.7;
	cursor: progress;
}

.ag-launcher .ag-check-button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Over the free limit: Check text becomes Unlock this check (launcher.js). */
.ag-launcher .ag-check-button.is-unlock svg {
	flex: none;
}

.ag-launcher-unlock {
	padding: 12px 22px 16px;
	border-top: 1px solid var(--ag-line);
	background: var(--ag-leaf);
	color: var(--ag-ink-2);
	font-size: 14px;
	line-height: 1.5;
}

.ag-launcher-unlock p {
	margin: 0;
}

.ag-launcher-unlock b {
	display: block;
	margin-bottom: 2px;
	color: var(--ag-ink);
	font-weight: 650;
}

.ag-launcher-unlock__alt {
	margin-top: 6px !important;
	color: var(--ag-stone);
}

.ag-launcher-unlock a {
	color: var(--ag-green-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ag-launcher-error {
	margin: 0;
	padding: 10px 22px 14px;
	color: #9c2a17;
	font-size: 14px;
}

.ag-launcher noscript p {
	margin: 0;
	padding: 0 22px 14px;
	color: var(--ag-stone);
	font-size: 14px;
}

@media (max-width: 640px) {
	.ag-launcher textarea {
		height: 180px;
		padding: 8px 16px 14px;
		font-size: 16.5px;
	}

	.ag-launcher-toolbar {
		padding: 10px 8px 0 16px;
	}

	.ag-launcher-action {
		flex-wrap: wrap;
		padding: 10px;
	}

	.ag-launcher-action [data-ag-launch-count] {
		padding-left: 6px;
	}

	.ag-launcher .ag-check-button {
		width: 100%;
	}
}

/* ---------- Homepage: evidence section ----------------------------------- */

.ag-proof {
	padding: var(--ag-section) 0;
	background: var(--ag-linen);
	border-block: 1px solid var(--ag-line);
}

.ag-proof__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}

.ag-proof h2,
.ag-principles h2,
.ag-audiences h2,
.ag-start h2 {
	font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.ag-proof__lead {
	margin-bottom: 32px;
	color: var(--ag-ink-2);
	font-size: 18px;
	max-width: 44ch;
}

.ag-proof__list {
	display: grid;
	gap: 20px;
	margin: 0;
}

.ag-proof__list dt {
	font-weight: 650;
	line-height: 1.4;
}

.ag-proof__list dd {
	margin: 6px 0 0;
	color: var(--ag-stone);
	max-width: 46ch;
}

.ag-proof__term {
	display: inline;
	padding: 1px 3px;
	border-radius: 3px;
}

.ag-proof__term--ai {
	background: var(--ag-ember-tint);
	box-shadow: inset 0 -2px 0 rgba(212, 85, 42, 0.55);
}

.ag-proof__term--human {
	background: var(--ag-human-tint);
	box-shadow: inset 0 -2px 0 rgba(47, 125, 42, 0.5);
}

.ag-proof__term--note {
	display: inline-block;
	padding: 0 0 0 11px;
	border-left: 2px solid var(--ag-ink-2);
	border-radius: 0;
}

.ag-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	flex: none;
	background: var(--ag-line-strong);
}

.ag-swatch--ai {
	background: var(--ag-ember);
}

.ag-swatch--human {
	background: var(--ag-human);
}

/* Example result: the same layout as the app's result. */

.ag-sample {
	margin: 0;
}

.ag-sample__sheet {
	padding: 24px 26px 22px;
	border-radius: var(--ag-r-lg);
	background: var(--ag-white);
	box-shadow: var(--ag-shadow-lg), 0 0 0 1px var(--ag-line);
}

.ag-sample__head {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.ag-sample__tag {
	margin: 0;
	color: var(--ag-stone);
	font-size: 13px;
	font-weight: 600;
}

.ag-sample__verdict {
	margin: 0;
	font-family: var(--ag-font-display);
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ag-sample__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	color: var(--ag-stone);
	font-size: 14px;
}

.ag-sample__meta b {
	color: var(--ag-ink);
	font-weight: 650;
}

.ag-sample__strip {
	display: flex;
	gap: 2px;
	height: 10px;
	margin-top: 4px;
	border-radius: 4px;
	overflow: hidden;
}

.ag-sample__seg--ai {
	background: var(--ag-ember);
}

.ag-sample__seg--hu {
	background: var(--ag-human);
}

.ag-sample__keys {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
}

.ag-sample__key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 650;
}

.ag-sample__key::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 3px;
	background: currentColor;
}

.ag-sample__key--ai {
	color: var(--ag-ember-ink);
}

.ag-sample__key--hu {
	color: var(--ag-human-ink);
}

.ag-sample__doc {
	padding-top: 16px;
	border-top: 1px solid var(--ag-line);
	font-family: var(--ag-font-serif);
	font-size: 16.5px;
	line-height: 1.7;
}

.ag-sample__doc > p {
	margin: 0 0 0.9em;
}

.ag-mark {
	padding: 0.05em 0.08em;
	border-radius: 3px;
	color: inherit;
	background-color: transparent;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.ag-mark--ai {
	background-image: linear-gradient(var(--ag-ember-tint), var(--ag-ember-tint));
	box-shadow: inset 0 -2px 0 var(--ag-ember);
}

.ag-mark--human {
	background-image: linear-gradient(var(--ag-human-tint), var(--ag-human-tint));
	box-shadow: inset 0 -2px 0 var(--ag-human);
}

.ag-sample__note {
	position: relative;
	margin: -0.2em 0 1em;
	padding: 12px 14px 12px 16px;
	border-radius: 12px;
	background: var(--ag-white);
	box-shadow: 0 0 0 1px var(--ag-line), var(--ag-shadow);
	font-family: var(--ag-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ag-ink-2);
}

.ag-sample__note::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--ag-human);
}

.ag-sample__note p {
	margin: 0 0 4px;
}

.ag-sample__note-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.ag-sample__note-head b {
	color: var(--ag-ink);
	font-weight: 650;
}

.ag-sample__alt {
	margin: 6px 0 0 !important;
	padding-top: 6px;
	border-top: 1px dashed var(--ag-line-strong);
	color: var(--ag-stone);
}

.ag-sample__alt b {
	color: var(--ag-ink-2);
}

.ag-sample > figcaption {
	margin-top: 12px;
	color: var(--ag-stone);
	font-size: 13px;
	text-align: right;
}

/* One orchestrated moment: the example gets marked up sentence by sentence. */
@media (prefers-reduced-motion: no-preference) {
	.ag-sample.is-pending .ag-mark {
		background-size: 0% 100%;
		box-shadow: inset 0 -2px 0 transparent;
	}

	.ag-sample.is-pending .ag-sample__note {
		opacity: 0;
		transform: translateY(-4px);
	}

	.ag-sample .ag-mark {
		transition: background-size 0.7s var(--ag-ease) calc(var(--i, 0) * 0.22s), box-shadow 0.3s ease calc(var(--i, 0) * 0.22s + 0.5s);
	}

	.ag-sample .ag-sample__note {
		transition: opacity 0.4s ease 1.3s, transform 0.4s var(--ag-ease) 1.3s;
	}
}

@media (max-width: 960px) {
	.ag-proof__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ag-sample__sheet {
		padding: 18px 16px 14px;
	}

}

/* Categorical verdict scale (also used by the live report enhancer). */

.ag-verdict-scale {
	--ag-scale-pos: 50%;
}

.ag-verdict-scale[data-verdict="human"] {
	--ag-scale-pos: 12%;
}

.ag-verdict-scale[data-verdict="mixed"] {
	--ag-scale-pos: 50%;
}

.ag-verdict-scale[data-verdict="ai"] {
	--ag-scale-pos: 88%;
}

.ag-verdict-scale__track {
	position: relative;
	display: block;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, #cfe3bb 0 32.8%, transparent 32.8% 33.6%, #f0dba2 33.6% 66.4%, transparent 66.4% 67.2%, #f4c4ae 67.2% 100%);
}

.ag-verdict-scale__marker {
	position: absolute;
	top: 50%;
	left: var(--ag-scale-pos);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ag-ink);
	box-shadow: 0 0 0 3px var(--ag-white), 0 1px 4px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
}

.ag-verdict-scale[data-verdict="uncertain"] .ag-verdict-scale__marker,
.ag-verdict-scale[data-verdict="unknown"] .ag-verdict-scale__marker {
	display: none;
}

.ag-verdict-scale[data-verdict="uncertain"] .ag-verdict-scale__track {
	background: repeating-linear-gradient(135deg, var(--ag-linen) 0 6px, var(--ag-sand) 6px 12px);
}

.ag-verdict-scale__labels {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	margin-top: 8px;
	color: var(--ag-stone);
	font-size: 12px;
	font-weight: 550;
}

.ag-verdict-scale__labels > :last-child {
	text-align: right;
}

.ag-verdict-scale[data-verdict="human"] .ag-verdict-scale__labels > :nth-child(1),
.ag-verdict-scale[data-verdict="mixed"] .ag-verdict-scale__labels > :nth-child(2),
.ag-verdict-scale[data-verdict="ai"] .ag-verdict-scale__labels > :nth-child(3) {
	color: var(--ag-ink);
	font-weight: 700;
}

/* ---------- Homepage: principles, audiences, start, latest --------------- */

.ag-principles {
	padding: var(--ag-section) 0 calc(var(--ag-section) * 0.7);
}

.ag-principles__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 96px);
}

.ag-principles__intro p {
	max-width: 36ch;
	color: var(--ag-ink-2);
	font-size: 18px;
}

.ag-principles__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ag-line-strong);
}

.ag-principles__list li {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 8px 32px;
	padding: 24px 0;
	border-bottom: 1px solid var(--ag-line-strong);
}

.ag-principles__list h3 {
	margin: 0;
	font-size: 21px;
	letter-spacing: -0.02em;
}

.ag-principles__list p {
	margin: 0;
	color: var(--ag-stone);
}

.ag-audiences {
	padding: calc(var(--ag-section) * 0.5) 0 var(--ag-section);
}

.ag-audiences h2 {
	max-width: 18ch;
	margin-bottom: 40px;
}

.ag-audiences__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.ag-audiences__grid article {
	padding-top: 20px;
	border-top: 3px solid var(--ag-ink);
}

.ag-audiences__grid h3 {
	margin-bottom: 8px;
	font-size: 22px;
}

.ag-audiences__grid p {
	margin: 0;
	color: var(--ag-stone);
	max-width: 32ch;
}

.ag-start {
	padding-bottom: var(--ag-section);
}

.ag-start__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 32px;
	align-items: end;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--ag-r-xl);
	background: var(--ag-leaf);
	overflow: hidden;
}

.ag-start h2 {
	margin-bottom: 18px;
}

.ag-start__offers {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ag-ink-2);
	font-size: 17px;
}

.ag-start__offers li {
	position: relative;
	padding-left: 28px;
}

.ag-start__offers li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.42em;
	width: 14px;
	height: 8px;
	border-left: 2.5px solid var(--ag-green);
	border-bottom: 2.5px solid var(--ag-green);
	transform: rotate(-45deg);
}

.ag-start__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width: 860px) {
	.ag-principles__grid,
	.ag-principles__list li {
		grid-template-columns: 1fr;
	}

	.ag-audiences__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ag-start__panel {
		grid-template-columns: 1fr;
	}

	.ag-start__actions .ag-btn {
		flex: 1 1 220px;
	}
}

.ag-latest {
	padding: 0 0 var(--ag-section);
}

.ag-latest__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 5vw, 64px);
}

.ag-latest__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ag-line-strong);
}

.ag-latest__head h3 {
	margin: 0;
	font-size: 22px;
}

.ag-latest__head a {
	font-size: 14px;
	font-weight: 600;
}

.ag-mini-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-mini__link {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--ag-line);
	color: var(--ag-ink);
	text-decoration: none;
}

.ag-mini__thumb {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: none;
	overflow: hidden;
	border-radius: 12px;
	background: var(--ag-linen);
	color: var(--ag-stone);
}

.ag-mini__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag-mini__body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.ag-mini__title {
	font-weight: 600;
	line-height: 1.35;
}

.ag-mini__link:hover .ag-mini__title {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.ag-mini__meta {
	color: var(--ag-stone);
	font-size: 13px;
}

@media (max-width: 760px) {
	.ag-latest__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Page headers and prose ---------------------------------------- */

.ag-page-head {
	padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.ag-page-head--center {
	text-align: center;
}

.ag-page-head--center .ag-page-head__lead {
	margin-inline: auto;
}

.ag-page-head h1,
.ag-page-title {
	margin: 0;
	font-size: clamp(2.25rem, 1.9rem + 2.2vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.032em;
	line-height: 1.02;
	max-width: 22ch;
}

.ag-page-head--center h1 {
	margin-inline: auto;
}

.ag-page-head__lead,
.ag-page-intro {
	max-width: 60ch;
	margin: 16px 0 0;
	color: var(--ag-ink-2);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.ag-eyebrow-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ag-leaf);
	color: var(--ag-green-ink);
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}

.ag-eyebrow-link:hover {
	background: var(--ag-leaf-strong);
	color: var(--ag-green-ink);
}

.ag-prose {
	width: min(100% - 2 * var(--ag-gutter), 700px);
	margin-inline: auto;
	font-size: 18px;
	line-height: 1.72;
	color: var(--ag-ink-2);
}

.ag-prose > * + * {
	margin-top: 1.1em;
}

.ag-prose p {
	margin: 0;
}

.ag-prose > p + p {
	margin-top: 1em;
}

.ag-prose h2 {
	margin: 2em 0 0.6em;
	font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
	letter-spacing: -0.025em;
	color: var(--ag-ink);
}

.ag-prose h3 {
	margin: 1.7em 0 0.5em;
	font-size: 1.3rem;
	color: var(--ag-ink);
}

.ag-prose h2 + *,
.ag-prose h3 + * {
	margin-top: 0;
}

.ag-prose ul,
.ag-prose ol {
	padding-left: 1.3em;
}

.ag-prose li + li {
	margin-top: 0.4em;
}

.ag-prose li::marker {
	color: var(--ag-green);
}

.ag-prose a {
	color: var(--ag-green-ink);
	text-decoration: underline;
	text-decoration-color: rgba(35, 92, 31, 0.35);
}

.ag-prose a:hover {
	text-decoration-color: currentColor;
}

.ag-prose strong {
	color: var(--ag-ink);
	font-weight: 650;
}

.ag-prose blockquote,
.ag-prose .wp-block-quote {
	margin: 1.8em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--ag-lime);
	color: var(--ag-ink);
	font-family: var(--ag-font-display);
	font-size: 1.35rem;
	line-height: 1.4;
	letter-spacing: -0.015em;
}

.ag-prose blockquote p {
	margin: 0;
}

.ag-prose blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--ag-stone);
	font-family: var(--ag-font);
	font-size: 14px;
	font-style: normal;
}

.ag-prose img,
.ag-prose .wp-block-image img {
	border-radius: var(--ag-r);
}

.ag-prose figure {
	margin-inline: 0;
}

.ag-prose figcaption {
	margin-top: 8px;
	color: var(--ag-stone);
	font-size: 14px;
}

.ag-prose code {
	padding: 0.12em 0.36em;
	border-radius: 6px;
	background: var(--ag-linen);
	font-family: var(--ag-font-mono);
	font-size: 0.86em;
}

.ag-prose pre {
	padding: 18px 20px;
	overflow-x: auto;
	border: 1px solid var(--ag-line);
	border-radius: var(--ag-r);
	background: var(--ag-linen);
	font-size: 15px;
	line-height: 1.6;
}

.ag-prose pre code {
	padding: 0;
	background: none;
}

.ag-prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--ag-line-strong);
}

.ag-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.ag-prose th,
.ag-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--ag-line);
	text-align: left;
}

.ag-prose th {
	color: var(--ag-ink);
	font-weight: 650;
}

.ag-prose .alignwide {
	width: min(100vw - 2 * var(--ag-gutter), 1040px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ag-prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.ag-prose--page {
	font-size: 17px;
}

.ag-page-body {
	padding-bottom: 24px;
}

.ag-page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2em;
	font-size: 15px;
}

/* Sign-in pages: one calm column on linen. */
.ag-auth-main {
	padding: clamp(40px, 8vh, 96px) var(--ag-gutter) clamp(56px, 10vh, 120px);
	background: var(--ag-linen);
}

.ag-auth-wrap {
	position: relative;
	display: grid;
	justify-items: center;
	width: min(100%, 440px);
	margin: 0 auto;
}

.ag-auth-main .aigator-auth,
.ag-auth-main .aigator-auth__message {
	width: 100%;
}

.ag-auth-main__note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 20px 0 0;
	color: var(--ag-stone);
	font-size: 13.5px;
}

.ag-auth-main__note .ag-icon {
	width: 16px;
	height: 16px;
	color: var(--ag-green);
}

.ag-pricing-main {
	padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}

.ag-account-main {
	padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
}

.ag-workspace .ag-account-main,
.ag-workspace .ag-pricing-main {
	padding-top: clamp(16px, 3vw, 32px);
}

/* ---------- Blog ---------------------------------------------------------- */

.ag-blog-head {
	padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 44px);
}

.ag-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding-bottom: clamp(40px, 6vw, 72px);
	margin-bottom: clamp(40px, 6vw, 72px);
	border-bottom: 1px solid var(--ag-line-strong);
}

.ag-feature__media,
.ag-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--ag-r-lg);
	background: var(--ag-linen);
	aspect-ratio: 16 / 10;
}

.ag-feature__media img,
.ag-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ag-ease);
}

.ag-feature:hover .ag-feature__media img,
.ag-card:hover .ag-card__media img {
	transform: scale(1.025);
}

.ag-feature__title {
	margin: 12px 0 14px;
	font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.ag-feature__title a,
.ag-card__title a {
	color: var(--ag-ink);
	text-decoration: none;
}

.ag-feature__title a:hover,
.ag-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.12em;
}

.ag-feature__excerpt {
	color: var(--ag-ink-2);
	font-size: 18px;
}

.ag-cat {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ag-leaf);
	color: var(--ag-green-ink);
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}

a.ag-cat:hover {
	background: var(--ag-leaf-strong);
	color: var(--ag-green-ink);
}

.ag-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	color: var(--ag-stone);
	font-size: 14px;
}

.ag-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px);
}

.ag-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ag-card__media {
	margin-bottom: 16px;
	border-radius: var(--ag-r);
}

.ag-card__title {
	margin: 10px 0 8px;
	font-size: 1.32rem;
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.ag-card__excerpt {
	margin: 0 0 12px;
	color: var(--ag-stone);
	font-size: 15.5px;
}

.ag-card__excerpt p {
	margin: 0;
}

.ag-card .ag-meta {
	margin-top: auto;
}

.ag-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--ag-pebble);
}

.ag-card__placeholder .ag-icon {
	width: 36px;
	height: 36px;
}

.ag-card--prompt .ag-chips {
	margin-bottom: 2px;
}

.ag-card--prompt .ag-card__media {
	aspect-ratio: 4 / 3;
}

@media (max-width: 960px) {
	.ag-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-feature {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.ag-card-grid {
		grid-template-columns: 1fr;
	}
}

/* Single post */

.ag-article-head {
	width: min(100% - 2 * var(--ag-gutter), 700px);
	margin: 0 auto;
	padding: clamp(36px, 6vw, 72px) 0 28px;
}

.ag-article-head h1 {
	margin: 16px 0 18px;
	font-size: clamp(2.2rem, 1.8rem + 2.4vw, 3.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.034em;
}

.ag-article-head .ag-lead {
	margin: 0 0 22px;
	color: var(--ag-ink-2);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	line-height: 1.5;
}

.ag-article-media {
	width: min(100% - 2 * var(--ag-gutter), 1040px);
	margin: 8px auto clamp(32px, 5vw, 56px);
	overflow: hidden;
	border-radius: var(--ag-r-xl);
	background: var(--ag-linen);
}

.ag-article-media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
}

.ag-article-end {
	width: min(100% - 2 * var(--ag-gutter), 700px);
	margin: 56px auto 0;
}

.ag-cta-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 20px;
	align-items: center;
	padding: 22px 24px;
	border-radius: var(--ag-r-lg);
	background: var(--ag-linen);
	border: 1px solid var(--ag-line);
}

.ag-cta-card h2 {
	margin: 0 0 2px;
	font-size: 1.25rem;
}

.ag-cta-card p {
	margin: 0;
	color: var(--ag-stone);
	font-size: 15px;
}

@media (max-width: 600px) {
	.ag-cta-card {
		grid-template-columns: 1fr;
	}
}

.ag-related {
	margin-top: 72px;
	padding-top: 32px;
	border-top: 1px solid var(--ag-line-strong);
}

.ag-related h2 {
	margin-bottom: 24px;
	font-size: 1.6rem;
}

.ag-related .ag-card-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
	.ag-related .ag-card-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Prompt library ------------------------------------------------ */

.ag-filter {
	display: grid;
	grid-template-columns: minmax(200px, 1.6fr) repeat(2, minmax(150px, 1fr)) auto;
	gap: 8px;
	margin-top: 28px;
	padding: 8px;
	border: 1px solid var(--ag-line);
	border-radius: 16px;
	background: var(--ag-white);
	box-shadow: var(--ag-shadow-sm);
}

.ag-filter label {
	position: relative;
	display: block;
}

.ag-filter__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ag-filter input,
.ag-filter select {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--ag-linen);
	color: var(--ag-ink);
	font: 500 15px var(--ag-font);
	appearance: none;
	-webkit-appearance: none;
}

.ag-filter input {
	padding-left: 40px;
}

.ag-filter__search .ag-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ag-stone);
	pointer-events: none;
}

.ag-filter select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b645a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 18px;
}

.ag-filter input:hover,
.ag-filter select:hover {
	background-color: var(--ag-sand);
}

.ag-filter input:focus,
.ag-filter select:focus {
	outline: none;
	border-color: var(--ag-green);
	background-color: var(--ag-white);
	box-shadow: 0 0 0 3px rgba(47, 125, 42, 0.15);
}

.ag-filter .ag-btn {
	min-height: 44px;
}

.ag-filter-status a {
	color: var(--ag-green-ink);
	font-weight: 650;
}

.ag-filter-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 18px 0 0;
	color: var(--ag-stone);
	font-size: 14px;
}

@media (max-width: 860px) {
	.ag-filter {
		grid-template-columns: 1fr 1fr;
	}

	.ag-filter__search {
		grid-column: 1 / -1;
	}

	.ag-filter .ag-btn {
		grid-column: 1 / -1;
	}
}

.ag-prompt-grid {
	padding-top: clamp(28px, 4vw, 44px);
}

.ag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ag-linen);
	color: var(--ag-ink-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

a.ag-chip:hover {
	background: var(--ag-sand);
	color: var(--ag-ink);
}

.ag-chip--use {
	background: var(--ag-leaf);
	color: var(--ag-green-ink);
}

a.ag-chip--use:hover {
	background: var(--ag-leaf-strong);
	color: var(--ag-green-ink);
}

.ag-prompt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
	padding-bottom: 24px;
}

.ag-prompt-main .ag-prose {
	width: auto;
	margin: 40px 0 0;
}

.ag-prompt-head {
	padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 36px);
}

.ag-prompt-head h1 {
	margin: 14px 0 14px;
	font-size: clamp(2rem, 1.7rem + 2vw, 3.2rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.032em;
	max-width: 20ch;
}

.ag-prompt-head .ag-chips a {
	text-decoration: none;
}

.ag-prompt-head .ag-lead {
	max-width: 58ch;
	margin: 0 0 18px;
	color: var(--ag-ink-2);
	font-size: 1.15rem;
}

.ag-copy {
	position: relative;
	border: 1px solid var(--ag-line-strong);
	border-radius: var(--ag-r-lg);
	background: var(--ag-white);
	box-shadow: var(--ag-shadow);
	overflow: hidden;
}

.ag-copy__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 10px 18px;
	border-bottom: 1px solid var(--ag-line);
	background: var(--ag-paper);
}

.ag-copy__bar h2 {
	margin: 0;
	font-family: var(--ag-font);
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
}

.ag-copy__text {
	margin: 0;
	padding: 20px 22px 24px;
	white-space: pre-wrap;
	color: var(--ag-ink);
	font-size: 16.5px;
	line-height: 1.7;
}

.ag-copy__note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 12px 18px;
	border-top: 1px solid var(--ag-line);
	background: var(--ag-honey-tint);
	color: var(--ag-honey-ink);
	font-size: 14px;
	font-weight: 550;
}

.ag-copy__note .ag-icon {
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

/* Prompts inside the post (variants): the same card, a little quieter. */
.ag-copy--inline {
	margin: 14px 0 30px;
	box-shadow: var(--ag-shadow-sm);
}

.ag-copy__label {
	color: var(--ag-stone);
	font-size: 14px;
	font-weight: 600;
}

.ag-prose .ag-copy--inline pre,
.ag-prose .ag-copy--inline pre.wp-block-code {
	margin: 0;
	padding: 18px 22px 22px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ag-ink);
	font-family: var(--ag-font);
	font-size: 16px;
	line-height: 1.7;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.ag-prose .ag-copy--inline pre code {
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
}

.ag-copy-button.is-copied {
	background: var(--ag-ink);
	color: #fff;
}

.ag-prompt-aside {
	position: sticky;
	top: calc(var(--ag-header-h) + 24px);
}

.ag-prompt-figure {
	margin: 0;
}

.ag-prompt-figure__frame {
	overflow: hidden;
	border-radius: var(--ag-r-lg);
	background: var(--ag-linen);
	border: 1px solid var(--ag-line);
}

.ag-prompt-figure__frame img {
	display: block;
	width: 100%;
	height: auto;
}

.ag-prompt-figure figcaption {
	margin-top: 10px;
	color: var(--ag-stone);
	font-size: 13px;
	line-height: 1.5;
}

.ag-prompt-figure figcaption strong {
	color: var(--ag-ink-2);
	font-weight: 650;
}

/* ---------- See an image larger (zoom.js) ---------- */
.ag-zoom-link {
	position: relative;
	display: block;
	cursor: zoom-in;
}

.ag-zoom-link:focus-visible {
	outline: 3px solid var(--ag-green);
	outline-offset: -3px;
}

/* Says the image opens larger, on touch screens too (no hover there). */
.ag-zoom-link__badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(255, 253, 249, 0.94);
	color: var(--ag-ink);
	box-shadow: 0 1px 2px rgba(29, 27, 23, 0.12), 0 6px 16px -6px rgba(29, 27, 23, 0.3);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.ag-zoom-link__badge .ag-icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-zoom-link:hover .ag-zoom-link__badge {
	transform: scale(1.06);
	background: #fff;
}

html.ag-zoom-open {
	overflow: hidden;
}

.ag-zoom {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #f4efe6;
	overflow: hidden;
}

.ag-zoom[open] {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
}

.ag-zoom::backdrop {
	background: rgba(20, 22, 18, 0.96);
}

.ag-zoom__stage {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr); /* a definite area, so the image's max-height: 100% applies */
	min-height: 0;
	overflow: auto;
	padding: 68px clamp(12px, 4vw, 56px) 12px;
	overscroll-behavior: contain;
}

/* margin: auto centres the image while it fits and lets it scroll from its
   top-left corner when it is shown at full size. */
.ag-zoom__img {
	display: block;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.6);
}

.ag-zoom.can-zoom .ag-zoom__img {
	cursor: zoom-in;
}

.ag-zoom.is-actual .ag-zoom__img {
	max-width: none;
	max-height: none;
	border-radius: 0;
	cursor: zoom-out;
}

.ag-zoom__cap {
	max-width: 68ch;
	margin: 0 auto;
	padding: 6px 20px max(20px, env(safe-area-inset-bottom));
	color: rgba(244, 239, 230, 0.78);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.ag-zoom__close {
	position: fixed;
	top: max(14px, env(safe-area-inset-top));
	right: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.ag-zoom__close svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.ag-zoom__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.ag-zoom__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.ag-zoom[open] .ag-zoom__img {
		animation: ag-zoom-in 0.2s cubic-bezier(0.2, 0.7, 0.3, 1);
	}

	.ag-zoom[open]::backdrop {
		animation: ag-zoom-fade 0.2s ease-out;
	}
}

@keyframes ag-zoom-in {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes ag-zoom-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ag-prompt-main .aigator-prompt-variant-code,
.ag-prose .wp-block-code {
	white-space: pre-wrap;
	font-family: var(--ag-font);
	font-size: 16px;
	color: var(--ag-ink);
	background: var(--ag-white);
	border: 1px solid var(--ag-line-strong);
}

.ag-prose .aigator-prompt-variant-note {
	color: var(--ag-stone);
	font-size: 16px;
}

/* On narrow screens the example comes first; this link skips to the prompt. */
.ag-jump {
	display: none;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 10px;
	background: var(--ag-white);
	box-shadow: 0 0 0 1px var(--ag-line-strong);
	color: var(--ag-ink);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.ag-jump:hover {
	background: var(--ag-linen);
}

@media (max-width: 960px) {
	.ag-prompt-layout {
		grid-template-columns: 1fr;
	}

	.ag-prompt-aside {
		position: static;
		order: -1;
	}

	.ag-jump {
		display: inline-flex;
	}
}



/* ---------- Search, 404, pagination, notices ----------------------------- */

.ag-search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-top: 24px;
}

.ag-search-form input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--ag-line-strong);
	border-radius: 12px;
	background: var(--ag-white);
	font: 500 16px var(--ag-font);
	color: var(--ag-ink);
}

.ag-search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--ag-green);
	box-shadow: 0 0 0 3px rgba(47, 125, 42, 0.15);
}

.ag-result-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ag-line-strong);
}

.ag-result-list li {
	padding: 22px 0;
	border-bottom: 1px solid var(--ag-line);
}

.ag-result-list h2 {
	margin: 6px 0 6px;
	font-size: 1.35rem;
}

.ag-result-list h2 a {
	color: var(--ag-ink);
	text-decoration: none;
}

.ag-result-list h2 a:hover {
	text-decoration: underline;
}

.ag-result-list p {
	margin: 0;
	color: var(--ag-stone);
}

.ag-empty {
	padding: 48px 24px;
	border: 1px dashed var(--ag-line-strong);
	border-radius: var(--ag-r-lg);
	background: var(--ag-white);
	text-align: center;
}

.ag-empty .ag-pixel-gator {
	width: 80px;
	margin-bottom: 14px;
}

.ag-empty h2 {
	font-size: 1.4rem;
}

.ag-empty p {
	max-width: 46ch;
	margin-inline: auto;
	color: var(--ag-stone);
}

.ag-404 {
	padding: clamp(64px, 10vw, 140px) 0;
	text-align: center;
}

.ag-404 .ag-pixel-gator {
	width: 160px;
	margin-bottom: 28px;
}

.ag-404 h1 {
	font-size: clamp(2.4rem, 2rem + 2.5vw, 3.8rem);
	font-weight: 700;
	letter-spacing: -0.034em;
}

.ag-404 p {
	max-width: 44ch;
	margin: 0 auto 28px;
	color: var(--ag-ink-2);
	font-size: 18px;
}

.ag-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.ag-pagination {
	margin-top: 56px;
}

.ag-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-pagination a,
.ag-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--ag-ink-2);
	font-weight: 600;
	text-decoration: none;
}

.ag-pagination a:hover {
	background: var(--ag-linen);
	color: var(--ag-ink);
}

.ag-pagination .current {
	background: var(--ag-ink);
	color: var(--ag-paper);
}

.ag-notice {
	padding: 14px 18px;
	border-radius: var(--ag-r);
	background: var(--ag-honey-tint);
	color: var(--ag-honey-ink);
	font-weight: 550;
}

/* WordPress core helpers */

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	color: var(--ag-stone);
	font-size: 14px;
}

.wp-block-button__link {
	border-radius: 10px;
	background: var(--ag-green);
	color: #fff;
	font-weight: 600;
}

/* Legacy homepage and editor-managed blocks keep a readable rhythm. */
.ag-home--editor .ag-container,
.ag-container {
	width: min(100% - 2 * var(--ag-gutter), var(--ag-max));
	margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
