/*
 * ChatGPT Ads Management page (/chatgpt-ads/): the few page-specific pieces.
 *
 * Built from the design tokens only: white surface, the standard hairlines,
 * mono micro-labels, the card hover wash, the one pink accent. Everything else
 * on the page reuses existing classes (hero-lite, dare, reframe-grid, diptych/
 * dip, halves-line, offer-card, faq, close).
 */

/* Example prompts: mono chips, the wlg-example pattern. */
.ca-chips {
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.ca-chips li {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.88rem;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 0.55em 0.9em;
	margin: 0.45rem 0.45rem 0 0;
}

/* A highlighted statement: display type on an accent keyline. */
.ca-statement {
	margin: clamp(28px, 3.4vw, 40px) 0 0;
	padding: 0.3em 0 0.3em 1.1em;
	border-left: 3px solid var(--accent);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.15rem, 1.9vw, 1.45rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--ink);
	max-width: 34em;
}

.dare .ca-statement {
	color: #fff;
	border-left-color: var(--accent);
}

/* The two layers, side by side (dip cards) plus their labels. */
.ca-layers {
	margin-top: clamp(28px, 3.4vw, 40px);
}

.ca-layer-k {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 0.6rem;
}

/* Capability cards: three across, one on narrow screens. */
.ca-cards .offer-card p + p {
	margin-top: 0.6em;
}

.ca-cards .offer-card p strong {
	color: var(--ink);
}

/* Headline numbers from the test. */
.ca-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: clamp(28px, 3.4vw, 40px);
}

.ca-stat {
	background: var(--surface);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.ca-stat-v {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.ca-stat-k {
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/* A real screenshot, bordered, with a mono caption. */
.ca-figure {
	margin: clamp(28px, 3.4vw, 40px) 0 0;
}

.ca-figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.ca-figure figcaption {
	margin-top: 0.7rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* A short caveat under a figure or table. */
.ca-note {
	margin: 1.1rem 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--muted);
	max-width: 60ch;
}

/* The cost table: the sg-table language (SEO and GEO page) with a generic
 * mobile stack driven by data-label, so the labels are always the column
 * heads rather than fixed words. */
.ca-table-wrap {
	margin-top: clamp(28px, 3.4vw, 40px);
}

.ca-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}

.ca-table th,
.ca-table td {
	text-align: left;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.ca-table tr:last-child th,
.ca-table tr:last-child td {
	border-bottom: 0;
}

.ca-table thead th {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--muted);
}

.ca-table tbody th {
	width: 44%;
	font-weight: 600;
	color: var(--ink);
}

.ca-table tbody td {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink);
	border-left: 1px solid var(--line);
	font-variant-numeric: tabular-nums;
}

.ca-table thead th + th {
	border-left: 1px solid var(--line);
}

.ca-table tbody tr {
	transition: background 0.2s var(--ease);
}

.ca-table tbody tr:hover {
	background: var(--card-hover-fill);
}

/* Body copy inside the reframe grid keeps its paragraph rhythm. */
.ca-copy p.body + p.body {
	margin-top: 1rem;
}

.ca-copy p.body strong {
	color: var(--ink);
}

.dare .ca-copy p.body strong {
	color: #fff;
}

.ca-copy code {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

.ca-copy .hero-textlink {
	margin-top: 1.2rem;
}

@media (max-width: 720px) {
	.ca-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ca-table,
	.ca-table tbody,
	.ca-table tr,
	.ca-table th,
	.ca-table td {
		display: block;
		width: auto;
	}

	.ca-table thead {
		display: none;
	}

	.ca-table tbody tr {
		padding: 4px 0 10px;
		border-bottom: 1px solid var(--line);
	}

	.ca-table tbody tr:last-child {
		border-bottom: 0;
	}

	.ca-table tbody th {
		width: auto;
		padding: 14px 18px 6px;
	}

	.ca-table tbody td {
		padding: 2px 18px 4px;
		border-left: 0;
		border-bottom: 0;
	}

	.ca-table tbody td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-family: var(--font-mono);
		font-size: 0.64rem;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--muted);
	}
}
