/* =============================================================
   Avto savdo landing — dizayn tokenlari MOBIL ILOVADAN olingan
   (lib/assets/colors/colors.dart + lib/assets/theme/theme.dart):
   - Yashil brend: #34C759 (dark: #30D158), bosilgan/matn: #248A3D
   - Fon: #F2F2F7 (dark #0E0E10), karta: #FFFFFF (dark #1E1E20)
   - Radius: karta 24, input/chip 18, tugma to'liq pill (56/2=28)
   - Soyalar juda yumshoq: rgba(0,0,0,.08) 0 4 16 — chegara YO'Q
   - Shrift: Inter (fallback: iOS tizim shriftlari), sarlavha w800,
     letter-spacing -0.5
   ============================================================= */

:root {
	--green: #34c759;
	--green-deep: #248a3d;
	--green-tint: #e7f8ec;
	--bg: #f2f2f7;
	--card: #ffffff;
	--card-high: #e9e9ef;
	--text: #111113;
	--text-2: #8e8e93;
	--outline: #d8d8de;
	--shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-float: 0 8px 20px rgba(0, 0, 0, 0.1);
	--radius-card: 24px;
	--radius-field: 18px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--green: #30d158;
		--green-deep: #30d158;
		--green-tint: #13301d;
		--bg: #0e0e10;
		--card: #1e1e20;
		--card-high: #2c2c2e;
		--text: #ffffff;
		--text-2: #8e8e93;
		--outline: #3a3a3c;
		--shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
		--shadow-float: 0 8px 20px rgba(0, 0, 0, 0.55);
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family:
		"Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px; /* ilovadagi ekran chetki padding'i */
}

/* ---------- Yuqori panel (app bar uslubi: shaffof, blur) ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(16px); /* ilovadagi floating nav blur qiymati */
	-webkit-backdrop-filter: blur(16px);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.wordmark {
	font-size: 26px; /* main_app_bar.dart: 26 / w800 / -0.5 */
	font-weight: 800;
	letter-spacing: -0.5px;
}

.wordmark-small {
	font-size: 20px;
}

/* ---------- Tugmalar (custom_button.dart: to'liq pill, 56 balandlik) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	padding: 0 28px;
	border-radius: 28px; /* balandlik / 2 — to'liq pill */
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-decoration: none;
	transition:
		transform 0.1s cubic-bezier(0.33, 1, 0.68, 1),
		background 0.15s;
}

.btn:active {
	transform: scale(0.94); /* ilovadagi bosish effekti */
}

.btn-primary {
	background: var(--green);
	color: #ffffff;
}

.btn-primary:hover {
	background: var(--green-deep);
}

.btn-secondary {
	background: var(--card);
	color: var(--text);
	box-shadow: var(--shadow-card);
}

.btn-small {
	height: 44px;
	padding: 0 20px;
	border-radius: 22px;
	font-size: 14px;
}

.btn-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* ---------- Hero ---------- */
.hero {
	padding: 72px 0 56px;
	text-align: center;
}

.hero h1 {
	font-size: clamp(34px, 6vw, 56px);
	font-weight: 800;
	letter-spacing: -0.5px; /* displayLarge uslubi */
	line-height: 1.15;
}

.accent {
	color: var(--green-deep);
}

.hero-sub {
	max-width: 640px;
	margin: 20px auto 0;
	font-size: 17px;
	color: var(--text-2);
	font-weight: 500;
	line-height: 1.55;
}

.hero-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
	margin-top: 32px;
	scroll-margin-top: 100px;
}

/*
  Store badge — rasmiy App Store / Google Play andozasi.
  Light fon: oq badge + qora matn.
  Dark fon: qora badge + oq matn.
  Radius: sayt tugmalari bilan bir xil pill (28px).
*/
.store-badge {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 200px;
	height: 60px;
	padding: 0 22px 0 16px;
	border: 1.5px solid #c8c8cc;
	border-radius: 28px;
	background: #ffffff;
	color: #111113;
	text-decoration: none !important;
	box-sizing: border-box;
	box-shadow: var(--shadow-card);
	transition:
		transform 0.1s cubic-bezier(0.33, 1, 0.68, 1),
		box-shadow 0.15s,
		background 0.15s;
}

.store-badge:visited,
.store-badge:hover,
.store-badge:active,
.store-badge:focus {
	color: #111113;
	text-decoration: none !important;
}

.store-badge:hover {
	box-shadow: var(--shadow-float);
}

.store-badge:active {
	transform: scale(0.96);
}

.store-badge-logo {
	flex: 0 0 auto;
	display: block;
	width: 28px;
	height: 28px;
	color: inherit;
}

.store-badge-logo-play {
	width: 26px;
	height: 26px;
}

.store-badge-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	line-height: 1;
	text-align: left;
	color: inherit;
}

.store-badge-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.4px;
	text-transform: none;
	color: inherit;
	opacity: 0.92;
}

.store-badge-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
	color: inherit;
}

/* Dark rejim: qora badge (misoldagi pastki qator) */
@media (prefers-color-scheme: dark) {
	.store-badge {
		background: #000000;
		border-color: #5c5c5e;
		color: #ffffff;
	}

	.store-badge:visited,
	.store-badge:hover,
	.store-badge:active,
	.store-badge:focus {
		color: #ffffff;
	}
}

.hero-note {
	margin-top: 18px;
	font-size: 13px;
	color: var(--text-2);
}

/* ---------- Bo'limlar ---------- */
.section {
	padding: 44px 0;
}

.section h2 {
	font-size: 28px; /* displayLarge: 28 / w800 / -0.5 */
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.15;
	margin-bottom: 24px;
}

/* ---------- Kartalar (radius 24, chegarasiz, yumshoq soya) ---------- */
.grid {
	display: grid;
	gap: 16px;
}

.features {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.how {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contacts {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
	background: var(--card);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 20px;
}

.card h3 {
	font-size: 18px; /* titleLarge: 18 / w700 */
	font-weight: 700;
	margin: 14px 0 6px;
}

.card p {
	font-size: 14px;
	color: var(--text-2);
	line-height: 1.5;
}

.card-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--green-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-icon svg {
	width: 24px;
	height: 24px;
	fill: var(--green-deep);
}

/* ---------- Qadamlar ---------- */
.pill-label {
	display: inline-block;
	background: var(--green-tint);
	color: var(--green-deep);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	padding: 8px 16px;
	border-radius: var(--radius-field);
	margin-bottom: 18px;
}

.steps {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.steps li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.steps strong {
	display: block;
	font-size: 16px; /* titleMedium: 16 / w600 */
	font-weight: 600;
	margin-bottom: 2px;
}

.step-num {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 16px;
	background: var(--green);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Bog'lanish ---------- */
.contact-card {
	text-decoration: none;
	color: inherit;
	transition: transform 0.1s cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-card:active {
	transform: scale(0.97);
}

.contact-card p {
	color: var(--green-deep);
	font-weight: 600;
	word-break: break-all;
}

.support-note {
	margin-top: 24px;
	font-size: 15px;
	color: var(--text-2);
}

.accent-link {
	color: var(--green-deep);
	font-weight: 600;
	text-decoration: none;
}

.accent-link:hover {
	text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
	margin-top: 32px;
	padding: 32px 0 40px;
	background: var(--card);
	border-radius: var(--radius-card) var(--radius-card) 0 0; /* bottom sheet uslubi */
	box-shadow: var(--shadow-float);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.footer-links {
	display: flex;
	gap: 20px;
}

.footer-links a {
	color: var(--text-2);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.footer-links a:hover {
	color: var(--green-deep);
}

.copyright {
	font-size: 13px;
	color: var(--text-2);
}

/* ---------- Mobil moslashuv ---------- */
@media (max-width: 560px) {
	.hero {
		padding: 48px 0 40px;
	}

	.hero-actions .btn {
		width: 100%;
	}

	.hero-actions .store-badge {
		width: min(200px, calc(50% - 6px));
		justify-content: flex-start;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
}
