/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800&display=swap');

/* GLOBAL STYLES */
:root {
	--font-heading: 'Manrope', sans-serif;
	--font-body: 'Inter', sans-serif;

	--color-bg: #ffffff;
	--color-text: #111827;
	--color-text-secondary: #6b7280;
	--color-primary: #4f46e5;
	--color-primary-light: #eef2ff;
	--color-border: #e5e7eb;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 700;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

ul {
	list-style: none;
}

/* HEADER */
.header {
	height: var(--header-height);
	background-color: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
}

.header__container {
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-text);
}

.header__logo:hover {
	color: var(--color-primary);
}

.header__nav-list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__nav-link {
	font-size: 1rem;
	font-weight: 500;
	color: var(--color-text);
	position: relative;
	padding: 0.5rem 0;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__nav-link:hover {
	color: var(--color-primary);
}

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
}

/* FOOTER */
.footer {
	background-color: #f9fafb;
	padding: 4rem 0;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-secondary);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.footer__column--brand {
	grid-column: span 1;
}

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-text);
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: 0.875rem;
}

.footer__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 1rem;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.footer__icon {
	flex-shrink: 0;
	margin-top: 3px;
	width: 16px;
	height: 16px;
	color: var(--color-text-secondary);
}

.footer__link {
	color: var(--color-text-secondary);
	font-size: 0.95rem;
}

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

/* ADAPTIVE STYLES */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background-color: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		padding: 1rem 0;
	}
	.header__nav.is-active {
		display: block;
	}
	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}
	.header__burger {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
	}
}

/* GENERAL COMPONENTS */
.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	color: #ffffff;
	background-color: var(--color-primary);
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #4338ca; /* A bit darker indigo */
	transform: translateY(-2px);
	color: #ffffff;
}

/* HERO SECTION */
.hero {
	padding: 6rem 0;
	overflow: hidden; /* Important for AOS animations */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
}

.hero__title {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	color: var(--color-text);
}

.hero__subtitle {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin-bottom: 2.5rem;
	max-width: 500px;
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

/* ADAPTIVE STYLES for Hero */
@media (max-width: 992px) {
	.hero__title {
		font-size: 2.75rem;
	}
	.hero {
		padding: 4rem 0;
	}
}

@media (max-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__content {
		order: 2; /* Text goes below image */
	}
	.hero__image-wrapper {
		order: 1; /* Image goes on top */
		margin-bottom: 2rem;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* REUSABLE SECTION STYLES */
.section {
	padding: 5rem 0;
}

.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.section-header__title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.125rem;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* WHAT IS IT SECTION */
.what-is-it__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.what-is-it__card {
	background-color: #f9fafb;
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	padding: 2.5rem 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-it__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.what-is-it__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--color-primary-light);
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.what-is-it__card-icon i {
	width: 32px;
	height: 32px;
}

.what-is-it__card-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--color-text);
}

.what-is-it__card-text {
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ADAPTIVE STYLES for What Is It */
@media (max-width: 992px) {
	.what-is-it__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 4rem 0;
	}
	.section-header__title {
		font-size: 2rem;
	}
}

/* TOOLS SECTION */
.section--gray {
	background-color: #f9fafb;
}

.tools-container {
	max-width: 900px;
	margin: 0 auto;
}

.tools__tabs {
	display: flex;
	justify-content: center;
	margin-bottom: 2rem;
	background-color: var(--color-bg);
	border-radius: 0.75rem;
	padding: 0.5rem;
	border: 1px solid var(--color-border);
}

.tools__tab-btn {
	flex: 1;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-secondary);
	background-color: transparent;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.tools__tab-btn:hover {
	background-color: var(--color-primary-light);
	color: var(--color-primary);
}

.tools__tab-btn.is-active {
	background-color: var(--color-primary);
	color: #ffffff;
}

.tools__tab-btn i {
	width: 18px;
	height: 18px;
}

.tools__content {
	background-color: var(--color-bg);
	border-radius: 0.75rem;
	padding: 2.5rem;
	border: 1px solid var(--color-border);
}

.tools__tab-panel {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tools__tab-panel.is-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tools__list {
	list-style: none;
	padding-left: 0;
}

.tools__list-item {
	font-size: 1.05rem;
	color: var(--color-text);
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
}

.tools__list-item:last-child {
	border-bottom: none;
}

.tools__list-item strong {
	color: var(--color-primary);
}

/* ADAPTIVE STYLES for Tools */
@media (max-width: 768px) {
	.tools__tabs {
		flex-direction: column;
		padding: 0.5rem;
	}
}

/* EXAMPLES SECTION */
.examples__wrapper {
	display: flex;
	flex-direction: column;
	gap: 5rem;
}

.example-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.example-item--reverse {
	/* No specific grid changes needed, just order of elements in HTML matters for content flow. 
       We will control image/text order with grid-auto-flow or simple ordering. */
}

.example-item--reverse .example-item__image-wrapper {
	order: 2;
}

.example-item--reverse .example-item__content {
	order: 1;
}

.example-item__image-wrapper {
	/* Flex for centering if needed */
}

.example-item__image {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	object-fit: cover;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.example-item__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.example-item__text {
	font-size: 1.05rem;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ADAPTIVE STYLES for Examples */
@media (max-width: 992px) {
	.example-item {
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.examples__wrapper {
		gap: 3rem;
	}
	.example-item,
	.example-item--reverse {
		grid-template-columns: 1fr;
	}
	.example-item--reverse .example-item__image-wrapper,
	.example-item--reverse .example-item__content {
		order: unset; /* Reset order for mobile stack */
	}
	.example-item__image-wrapper {
		margin-bottom: 1.5rem;
	}
	.example-item__title {
		font-size: 1.5rem;
	}
}

/* HOW TO START SECTION */
.how-to-start__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-bottom: 4rem;
}

.how-to-start__step {
	background-color: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 1rem;
	padding: 2.5rem 2rem;
	position: relative;
	overflow: hidden;
}

.how-to-start__step-number {
	position: absolute;
	top: -10px;
	right: 20px;
	font-size: 5rem;
	font-weight: 800;
	font-family: var(--font-heading);
	color: #f3f4f6; /* Very light gray */
	z-index: 1;
	user-select: none;
}

.how-to-start__step-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
	position: relative;
	z-index: 2;
}

.how-to-start__step-text {
	color: var(--color-text-secondary);
	line-height: 1.6;
	position: relative;
	z-index: 2;
}

.how-to-start__cta {
	text-align: center;
}

.how-to-start__cta p {
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

/* ADAPTIVE STYLES for How To Start */
@media (max-width: 992px) {
	.how-to-start__grid {
		grid-template-columns: 1fr;
	}
}

/* CONTACT SECTION */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.contact__title,
.contact__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.contact__subtitle {
	margin-bottom: 0;
}

.contact__form-wrapper {
	background-color: #f9fafb;
	padding: 3rem;
	border-radius: 1rem;
	border: 1px solid var(--color-border);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.form-checkbox {
	margin-top: 4px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.form-checkbox-label {
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

.form-checkbox-label a {
	text-decoration: underline;
}

.contact__form-btn {
	width: 100%;
}

.form-success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 1px solid #a7f3d0;
	background-color: #f0fdf4;
	border-radius: 0.75rem;
	color: #065f46;
}

.form-success-message.is-visible {
	display: block; /* Shown via JS */
	animation: fadeIn 0.5s ease;
}

.form-success-message i {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	color: #10b981;
}

.form-success-message h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

/* ADAPTIVE STYLES for Contact */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__info {
		text-align: center;
	}
	.contact__title,
	.contact__subtitle {
		text-align: center;
	}
}

/* ========================================= */
/* COOKIE POP-UP                             */
/* ========================================= */
.cookie-popup {
	position: fixed;
	bottom: -200px; /* Initially hidden below the screen */
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: var(--color-text);
	color: #ffffff;
	padding: 1.5rem;
	border-radius: 0.75rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 20px; /* Slides into view */
}

.cookie-popup__text {
	font-size: 0.9rem;
	line-height: 1.5;
}

.cookie-popup__text a {
	color: #ffffff;
	text-decoration: underline;
}

.cookie-popup__text a:hover {
	text-decoration: none;
}

.btn--small {
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
}

/* On mobile, stack elements */
@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
}

/* ========================================= */
/* POLICY & TEXT PAGES                       */
/* ========================================= */
.pages {
	padding: 4rem 0;
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
}

.pages p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 0.75rem;
	color: var(--color-text-secondary);
	font-size: 1.05rem;
}

.pages a {
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}

.pages strong {
	color: var(--color-text);
	font-weight: 600;
}
