/* ============================================================
   Geoboard theme — main.css
   Day 15 cz.2 scope: header + hero + form section + footer.
   Pełen 16-section landing styling: Day 16+.
   ============================================================ */

/* ─── A: @font-face (lokalnie z assets/fonts/) ─── */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
		U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/InterTight-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
		U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/InterTight-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/JetBrainsMono-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── B: Custom properties (brand tokens) ─── */

:root {
	/* Color palette — Geoboard brand */
	--bg:           #faf8f3;
	--paper:        #ffffff;
	--ink:          #14130f;
	--ink-soft:     #5a574e;
	--ink-mute:     #8a8779;
	--line:         rgba(20, 19, 15, 0.10);
	--line-soft:    rgba(20, 19, 15, 0.06);
	--accent:       #c8de3c;
	--accent:       oklch(0.86 0.18 125);
	--accent-soft:  oklch(0.95 0.06 125);
	--accent-ink:   #14130f;

	/* Layout */
	--container-max: 1200px;
	--container-pad: 24px;

	/* Fonts */
	--font-sans:  'Inter', system-ui, -apple-system, sans-serif;
	--font-tight: 'Inter Tight', 'Inter', system-ui, sans-serif;
	--font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

	/* Type scale */
	--fs-xs:    0.8125rem;   /* 13px */
	--fs-sm:    0.9375rem;   /* 15px */
	--fs-base:  1.0625rem;   /* 17px */
	--fs-lg:    1.1875rem;   /* 19px */
	--fs-xl:    1.4375rem;   /* 23px */
	--fs-2xl:   1.875rem;    /* 30px */
	--fs-3xl:   2.5rem;      /* 40px */
	--fs-4xl:   3.25rem;     /* 52px */
	--fs-hero:  clamp(2.25rem, 1.5rem + 3.5vw, 4rem);

	/* Spacing */
	--space-1:  4px;
	--space-2:  8px;
	--space-3:  12px;
	--space-4:  16px;
	--space-5:  24px;
	--space-6:  32px;
	--space-7:  48px;
	--space-8:  64px;
	--space-9:  96px;

	/* Radius + shadow */
	--radius-sm:  6px;
	--radius:     12px;
	--radius-lg:  20px;
	--shadow-sm:  0 1px 2px rgba(20, 19, 15, 0.05);
	--shadow:     0 8px 24px rgba(20, 19, 15, 0.08);
	--shadow-lg:  0 24px 48px rgba(20, 19, 15, 0.12);

	/* Misc */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── C: Reset + base ─── */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	font-feature-settings: 'cv11', 'ss01';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--ink);
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: opacity 0.15s var(--ease);
}

a:hover,
a:focus-visible {
	opacity: 0.7;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

h1, h2, h3, h4 {
	font-family: var(--font-tight);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--ink);
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Skip link (a11y) */
.skip-link {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
.skip-link:focus {
	left: var(--space-4);
	top: var(--space-4);
	background: var(--ink);
	color: var(--bg);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	z-index: 100;
}

/* ─── D: Layout primitives ─── */

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

/* ─── E: Buttons ─── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 14px 24px;
	font-family: var(--font-tight);
	font-size: var(--fs-base);
	font-weight: 600;
	letter-spacing: -0.01em;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

.btn:hover {
	opacity: 1;
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--ink);
	color: var(--bg);
	border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--ink);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	background: var(--ink);
	color: var(--bg);
}

/* ─── F: Site header ─── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 248, 243, 0.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-brand img {
	height: 32px;
	width: auto;
}

.site-header__cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	background: var(--ink);
	color: var(--bg);
	border-radius: var(--radius);
	text-decoration: none;
	font-family: var(--font-tight);
	font-weight: 600;
	font-size: var(--fs-sm);
	letter-spacing: -0.01em;
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
	opacity: 1;
	background: var(--accent);
	color: var(--accent-ink);
}

/* ─── G: Hero ─── */

.hero {
	padding-top: var(--space-9);
	padding-bottom: var(--space-9);
	position: relative;
	overflow: hidden;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	max-width: 920px;
	position: relative;
	z-index: 2;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__heading {
	font-size: var(--fs-hero);
	font-weight: 800;
	letter-spacing: -0.035em;
	max-width: 18ch;
}

.hero__lead {
	font-size: var(--fs-lg);
	color: var(--ink-soft);
	line-height: 1.55;
	max-width: 60ch;
}

.hero__lead strong {
	color: var(--ink);
	font-weight: 700;
}

.hero__lead a {
	color: var(--ink);
	font-weight: 600;
}

.hero__trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-4);
	margin-top: var(--space-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: var(--space-5) 0;
}

.hero__trust-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero__trust-num {
	font-family: var(--font-tight);
	font-weight: 700;
	font-size: var(--fs-base);
	letter-spacing: -0.01em;
	color: var(--ink);
}

.hero__trust-label {
	font-size: var(--fs-xs);
	color: var(--ink-mute);
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.hero__cta-micro {
	font-size: var(--fs-sm);
	color: var(--ink-mute);
	margin-top: calc(var(--space-2) * -1);
}

.hero__preview {
	margin-top: var(--space-7);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--paper);
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.hero__preview img {
	width: 100%;
	height: auto;
}

/* ─── H: Section primitives ─── */

.section-header {
	max-width: 720px;
	margin: 0 auto var(--space-7);
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.section-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-mute);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.section-heading {
	font-size: var(--fs-3xl);
	letter-spacing: -0.03em;
}

.section-lead {
	font-size: var(--fs-lg);
	color: var(--ink-soft);
	line-height: 1.55;
}

/* ─── I: Audit form section ─── */

.audit-form-section {
	padding-top: var(--space-9);
	padding-bottom: var(--space-9);
	background:
		radial-gradient(ellipse at top, var(--accent-soft) 0%, transparent 60%),
		var(--bg);
	border-top: 1px solid var(--line-soft);
}

.audit-form-section__form {
	max-width: 720px;
	margin: 0 auto;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: var(--space-7);
	box-shadow: var(--shadow);
}

/* Form placeholder (gdy plugin nieaktywny) */
.form-placeholder {
	background: #fff8e6;
	border: 1px solid #f0c14b;
	border-radius: var(--radius);
	padding: var(--space-5);
	color: var(--ink);
	font-size: var(--fs-sm);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* ─── J: Basic page (privacy/terms/404) ─── */

.basic-page {
	padding-top: var(--space-9);
	padding-bottom: var(--space-9);
}

.basic-page__article {
	max-width: 720px;
	margin: 0 auto;
}

.basic-page__content {
	font-size: var(--fs-base);
	line-height: 1.7;
	color: var(--ink-soft);
}

.basic-page__content h2,
.basic-page__content h3 {
	margin-top: var(--space-7);
	margin-bottom: var(--space-3);
	color: var(--ink);
}

.basic-page__content p,
.basic-page__content ul,
.basic-page__content ol {
	margin-bottom: var(--space-4);
}

/* ─── K: Footer ─── */

.site-footer {
	background: var(--ink);
	color: var(--bg);
	padding-top: var(--space-8);
	padding-bottom: var(--space-6);
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--accent);
	opacity: 1;
}

.site-footer__inner {
	display: grid;
	gap: var(--space-6);
	grid-template-columns: 1fr;
}

.site-footer__product {
	font-family: var(--font-tight);
	font-size: var(--fs-lg);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: var(--space-2);
}

.site-footer__powered {
	font-size: var(--fs-sm);
	color: rgba(250, 248, 243, 0.7);
	max-width: 60ch;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-5);
	font-size: var(--fs-sm);
}

.site-footer__copy {
	font-size: var(--fs-xs);
	color: rgba(250, 248, 243, 0.5);
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
	border-top: 1px solid rgba(250, 248, 243, 0.1);
	padding-top: var(--space-5);
}

@media (min-width: 720px) {
	.site-footer__inner {
		grid-template-columns: 2fr 1fr;
		align-items: start;
	}
	.site-footer__copy {
		grid-column: 1 / -1;
	}
}

/* ─── L: Responsive ─── */

@media (max-width: 640px) {
	:root {
		--container-pad: 16px;
		--space-9: 64px;
	}
	.hero {
		padding-top: var(--space-7);
		padding-bottom: var(--space-7);
	}
	.hero__heading {
		max-width: none;
	}
	.audit-form-section__form {
		padding: var(--space-5);
	}
}

/* Reduced motion */
@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;
	}
}
