/* GSC Helper marketing site. Colors follow the extension palette. */

:root {
	--color-primary: #2f7d69;
	--color-primary-hover: #256b58;
	--color-secondary: #007f96;
	--color-text: #2e3333;
	--color-text-light: #4b5555;
	--color-bg: #ffffff;
	--color-bg-muted: #f3f7f6;
	--color-border: #e5e7eb;
	--color-header: #ffffff;
	--content-width: 72rem;
	--prose-width: 46rem;
	color-scheme: light;
}

html {
	scrollbar-gutter: stable;
}

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

body {
	margin: 0;
	color: var(--color-text);
	background: var(--color-bg);
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 1.05rem;
	line-height: 1.6;
}

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

a {
	color: var(--color-primary);
}

a:hover {
	color: var(--color-primary-hover);
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -3rem;
	background: #fff;
	color: var(--color-text);
	padding: 0.4rem 0.7rem;
	z-index: 20;
}

.skip-link:focus {
	top: 0.75rem;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--color-header);
	border-bottom: 3px solid var(--color-primary);
}

.header-inner {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0.7rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.logo img {
	display: block;
	height: 48px;
	width: auto;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1.1rem;
	margin-left: auto;
}

.nav a {
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
}

.nav a:hover {
	text-decoration: underline;
	color: var(--color-primary);
}

.nav a[aria-current="page"] {
	color: var(--color-primary);
}

.nav .button {
	margin-left: 0.4rem;
	color: #fff;
}

.nav .button:hover {
	color: #fff;
	text-decoration: none;
}

/* Buttons and layout */

.button {
	display: inline-block;
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	padding: 0.6rem 1.05rem;
	border-radius: 999px;
}

button.button {
	border: 0;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.button:hover {
	background: var(--color-primary-hover);
	color: #fff;
}

/* Monochrome Chrome mark. currentColor keeps it white on the green button. */
.button[href="https://seobuch.net/gsc-helper-cws"],
.footer-cta[href="https://seobuch.net/gsc-helper-cws"] {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.button[href="https://seobuch.net/gsc-helper-cws"]::before,
.footer-cta[href="https://seobuch.net/gsc-helper-cws"]::before {
	content: "";
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.92 5.46A10.40 10.40 0 0 1 20.08 5.46L14.80 9.73A3.60 3.60 0 0 0 9.20 9.73Z M10.37 22.27A10.40 10.40 0 0 1 2.29 8.27L8.64 10.71A3.60 3.60 0 0 0 11.44 15.56Z M21.71 8.27A10.40 10.40 0 0 1 13.63 22.27L12.56 15.56A3.60 3.60 0 0 0 15.36 10.71Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.92 5.46A10.40 10.40 0 0 1 20.08 5.46L14.80 9.73A3.60 3.60 0 0 0 9.20 9.73Z M10.37 22.27A10.40 10.40 0 0 1 2.29 8.27L8.64 10.71A3.60 3.60 0 0 0 11.44 15.56Z M21.71 8.27A10.40 10.40 0 0 1 13.63 22.27L12.56 15.56A3.60 3.60 0 0 0 15.36 10.71Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.button-secondary {
	background: transparent;
	color: var(--color-primary);
	box-shadow: inset 0 0 0 2px var(--color-primary);
}

.button-secondary:hover {
	background: #e7f3ef;
	color: var(--color-primary-hover);
}

.wrap {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.hero {
	background: linear-gradient(180deg, #e7f3ef 0%, #fff 78%);
}

.hero-inner {
	max-width: 44rem;
	margin: 0 auto;
	padding: 4.2rem 1.25rem 3rem;
}

.eyebrow {
	margin: 0 0 0.6rem;
	color: var(--color-secondary);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.82rem;
}

.hero h1,
.page-title {
	margin: 0 0 0.8rem;
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.lede {
	margin: 0 0 1.5rem;
	font-size: 1.2rem;
	color: var(--color-text-light);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.section-head {
	margin: 0 0 1.25rem;
	font-size: 1.7rem;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
	gap: 1rem;
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.card:hover {
	border-color: var(--color-primary);
	color: inherit;
}

.card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--color-bg-muted);
}

.card h3 {
	margin: 0.9rem 1rem 0.25rem;
	font-size: 1.08rem;
}

.card p {
	margin: 0 1rem 1rem;
	color: var(--color-text-light);
}

.highlight-list {
	display: flex;
	flex-direction: column;
	gap: 4.5rem;
}

.highlight {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 2rem 3rem;
	align-items: center;
}

.highlight:nth-child(even) .highlight-copy {
	order: 2;
}

.highlight img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	background: #fff;
	cursor: zoom-in;
}

.highlight h3 {
	margin: 0 0 0.55rem;
	font-size: 1.7rem;
}

.highlight h3 a {
	color: inherit;
	text-decoration: none;
}

.highlight h3 a:hover {
	color: var(--color-primary);
}

.highlight p {
	margin: 0 0 1rem;
	color: var(--color-text-light);
}

.highlight-more {
	font-weight: 700;
}

.highlights-all {
	margin: 3rem 0 0;
	font-weight: 700;
}

.privacy-band {
	background: var(--color-bg-muted);
}

.privacy-band .wrap {
	padding-top: 2rem;
	padding-bottom: 2rem;
	max-width: var(--prose-width);
}

.privacy-band h2 {
	margin: 0 0 0.4rem;
	font-size: 1.3rem;
}

.privacy-band p {
	margin: 0;
}

.newsletter-band .wrap {
	max-width: 40rem;
	padding-top: 2.5rem;
	padding-bottom: 2.75rem;
}

.newsletter-band h1,
.newsletter-band h2 {
	margin: 0 0 0.45rem;
	font-size: 1.7rem;
	line-height: 1.25;
}

.newsletter-band > .wrap > p:not(.form-status) {
	margin: 0;
	color: var(--color-text-light);
}

.newsletter-band .form-status {
	margin-top: 1rem;
}

.newsletter-form {
	position: relative;
	margin-top: 1.25rem;
}

/* Article pages use the shared .wrap column (--content-width). */

.prose h1 {
	margin-top: 0;
}

.prose h2 {
	margin: 2.2rem 0 0.6rem;
	font-size: 1.55rem;
	line-height: 1.25;
}

.prose h3 {
	margin: 1.6rem 0 0.4rem;
	font-size: 1.22rem;
}

.prose h4 {
	margin: 1.2rem 0 0.35rem;
	font-size: 1.05rem;
}

.prose p:not(.form-status),
.prose ul,
.prose ol,
.prose figure,
.prose blockquote {
	margin: 0.8rem 0;
}

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

.prose li > p {
	margin: 0.2rem 0;
}

.prose img {
	display: block;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	cursor: zoom-in;
}

.prose figcaption {
	margin-top: 0.45rem;
	color: var(--color-text-light);
	font-size: 0.92rem;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 2rem 0;
}

.prose a {
	overflow-wrap: anywhere;
}

.prose code {
	font-family: Consolas, ui-monospace, monospace;
	font-size: 0.92em;
	background: var(--color-bg-muted);
	padding: 0.05em 0.3em;
	border-radius: 4px;
	overflow-wrap: anywhere;
}

.prose .table-scroll {
	overflow-x: auto;
	margin: 1rem 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.prose th,
.prose td {
	border: 1px solid var(--color-border);
	padding: 0.45rem 0.6rem;
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--color-bg-muted);
}

.jump-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.jump-list a {
	font-size: 0.92rem;
	font-weight: 600;
}

.feature-links {
	padding-left: 1.2rem;
}

.feature-links li {
	margin: 0.25rem 0;
}

details {
	border-bottom: 1px solid var(--color-border);
	padding: 0.75rem 0;
}

summary {
	cursor: pointer;
	font-weight: 700;
}

details p:last-child,
details ul:last-child,
details ol:last-child {
	margin-bottom: 0.2rem;
}

/* Footer */

.site-footer {
	background: var(--color-bg-muted);
	border-top: 1px solid var(--color-border);
	color: var(--color-text-light);
}

.site-footer a {
	color: var(--color-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.footer-inner {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 2.5rem 1.25rem 1.4rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(16rem, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 2rem 1.75rem;
}

.footer-logo img {
	display: block;
	height: 40px;
	width: auto;
}

.footer-brand p {
	max-width: 26rem;
	margin: 0.85rem 0 1rem;
}

.footer-cta {
	font-weight: 700;
}

.footer-heading {
	margin: 0 0 0.75rem;
	color: var(--color-text);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.footer-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-grid li + li {
	margin-top: 0.45rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.92rem;
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
}

.footer-newsletter {
	display: grid;
	grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
	gap: 0.75rem 2.5rem;
	align-items: start;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-border);
}

.footer-newsletter-copy p:last-child {
	margin: 0;
}

.footer-newsletter .newsletter-form {
	margin-top: 0;
}

.footer-newsletter-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 1rem;
}

.footer-newsletter-fields .field {
	margin-bottom: 0.85rem;
}

.footer-newsletter .newsletter-form label {
	color: var(--color-text);
}

.site-footer .newsletter-consent a {
	color: var(--color-primary);
	text-decoration: underline;
}

.site-footer .newsletter-consent a:hover {
	color: var(--color-primary-hover);
}

.site-footer a.linkedin-mark {
	display: inline-block;
	margin-left: 0.35rem;
	color: #0a66c2;
	line-height: 0;
	vertical-align: -0.22em;
}

.site-footer a.linkedin-mark:hover {
	color: #004182;
	text-decoration: none;
}

.linkedin-mark svg {
	display: block;
	width: 1.05em;
	height: 1.05em;
	fill: currentColor;
}

@media (max-width: 760px) {
	.header-inner {
		flex-wrap: wrap;
	}

	.nav {
		width: 100%;
		margin-left: 0;
	}

	.hero-inner {
		padding-top: 2.6rem;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.footer-brand {
		grid-column: 1 / -1;
	}

	.footer-newsletter,
	.footer-newsletter-fields {
		grid-template-columns: 1fr;
	}

	.highlight {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.highlight img {
		order: -1;
	}

	.highlight-list {
		gap: 2.75rem;
	}
}

/* Contact form */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
	gap: 1.5rem 2rem;
	align-items: start;
}

.contact-layout[hidden] {
	display: none;
}

.form-status {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: #e7f3ef;
	color: var(--color-text);
}

.form-status:focus {
	outline: none;
}

.form-status-error {
	background: #f8ecec;
}

.contact-form {
	position: relative;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.field {
	margin: 0 0 1rem;
}

.contact-form label,
.newsletter-form label,
.topic-options legend {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
}

.optional,
.field-hint {
	font-weight: 600;
	color: var(--color-text-light);
}

.field-hint {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.35rem;
	font-size: 0.92rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.contact-form textarea {
	resize: vertical;
	min-height: 9rem;
}

.topic-options {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.topic-options div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.topic-options label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

.topic-options input {
	margin: 0 0.4rem 0 0;
}

.topic-options label:has(input:checked) {
	border-color: var(--color-primary);
	background: #e7f3ef;
}

.contact-honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.newsletter-form label.newsletter-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-weight: 600;
}

.newsletter-consent input {
	flex: 0 0 auto;
	margin-top: 0.35rem;
}

button.button:disabled {
	opacity: 0.7;
	cursor: progress;
}

.contact-aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.info-card {
	padding: 1.1rem 1.2rem;
	border-radius: 12px;
	background: var(--color-bg-muted);
}

.info-card h2 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
}

.info-card p,
.info-card ul {
	margin: 0;
}

.info-card li + li {
	margin-top: 0.45rem;
}

@media (max-width: 760px) {
	.contact-layout,
	.form-row {
		grid-template-columns: 1fr;
	}
}

/* Enlarged article screenshots */

.lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 92vw;
	overflow: visible;
}

.lightbox::backdrop {
	background: rgba(17, 24, 24, 0.82);
}

.lightbox-frame {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.55rem;
}

.lightbox-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: #fff;
	color: var(--color-text);
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.lightbox-close:hover {
	background: #e7f3ef;
}

.lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 8px;
	background: #fff;
	cursor: default;
}

.lightbox-caption {
	align-self: stretch;
	margin: 0;
	color: #fff;
	font-size: 0.95rem;
}
