/* Motorly Landing – style uzupełniające theme.json. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Nagłówek przyklejony u góry, z rozmyciem tła. */
.motorly-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 11, 15, 0.78);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-bar .motorly-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .motorly-header { top: 46px; } }
.motorly-nav a { color: var(--wp--preset--color--muted); text-decoration: none; font-weight: 600; }
.motorly-nav a:hover { color: var(--wp--preset--color--contrast); }
@media (max-width: 600px) { .motorly-nav { display: none; } }

/* Poświata za sekcjami. */
.motorly-glow {
	background: var(--wp--preset--gradient--glow);
}

/* Etykieta nad nagłówkiem sekcji. */
.motorly-eyebrow {
	color: var(--wp--preset--color--accent);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8125rem;
}

/* Zrzut ekranu w ramce telefonu. */
.wp-block-image.is-style-phone img,
.is-style-phone img {
	border-radius: 2.6rem;
	border: 10px solid #121318;
	outline: 2px solid #3A3D46;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
	background: #000;
	width: 100%;
	height: auto;
}
.wp-block-image.is-style-phone { max-width: 320px; margin-inline: auto; }
.motorly-hero .wp-block-image.is-style-phone { max-width: 340px; transform: rotate(3deg); }
.wp-block-image.is-style-phone figcaption {
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 1rem;
}

/* Karta. */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	height: 100%;
}
.wp-block-group.is-style-card.motorly-premium-card {
	background: linear-gradient(160deg, rgba(236, 108, 52, 0.16), rgba(236, 108, 52, 0) 55%), var(--wp--preset--color--surface);
	border-color: rgba(236, 108, 52, 0.45);
}
.wp-block-group.is-style-card > :first-child { margin-top: 0; }

/* Ikona korzyści (emoji/znak w kółku). */
.motorly-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	background: rgba(236, 108, 52, 0.14);
	color: var(--wp--preset--color--accent);
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: 0;
}

/* Listy z „ptaszkami”. */
.motorly-check {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}
.motorly-check li {
	position: relative;
	padding-left: 1.9rem;
	margin: 0.55rem 0;
}
.motorly-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.32em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 75% no-repeat;
}
.motorly-premium-card .motorly-check li::before { background-color: var(--wp--preset--color--accent); }
.motorly-free-card .motorly-check li::before { background-color: #3A3E48; }

/* Odznaka „Dostępne w App Store” (styl przycisku). */
.wp-block-button.is-style-app-store .wp-block-button__link {
	background: #000;
	color: #fff;
	border: 1.5px solid #A6A6A6;
	border-radius: 0.8rem;
	padding: 0.55rem 1.3rem 0.55rem 3.1rem;
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.05;
	text-align: left;
	position: relative;
	min-width: 12rem;
}
.wp-block-button.is-style-app-store .wp-block-button__link::before {
	content: "Dostępne w";
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	margin-bottom: 0.1rem;
}
.wp-block-button.is-style-app-store .wp-block-button__link::after {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 1.55rem;
	height: 1.85rem;
	transform: translateY(-52%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='white' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}
.wp-block-button.is-style-app-store .wp-block-button__link:hover {
	background: #1a1a1a;
	color: #fff;
}

/* Kod QR na białej karcie. */
.motorly-qr img {
	background: #fff;
	padding: 14px;
	border-radius: 1.25rem;
	box-shadow: 0 20px 50px -20px rgba(236, 108, 52, 0.55);
	image-rendering: pixelated;
}

/* FAQ. */
.motorly-faq .wp-block-details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	padding: 1rem 1.25rem;
}
.motorly-faq .wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.motorly-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.motorly-faq .wp-block-details summary::after {
	content: "+";
	float: right;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1;
}
.motorly-faq .wp-block-details[open] summary::after { content: "–"; }
.motorly-faq .wp-block-details p { color: var(--wp--preset--color--muted); }

/* Kolumny ze zrzutami: przewijanie w poziomie na telefonie. */
@media (max-width: 781px) {
	.motorly-screens.wp-block-columns {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 1rem;
	}
	.motorly-screens.wp-block-columns > .wp-block-column {
		flex: 0 0 70% !important;
		scroll-snap-align: center;
	}
	.motorly-hero .wp-block-image.is-style-phone { transform: none; max-width: 260px; }
}

/* Delikatne pojawianie się sekcji. */
@media (prefers-reduced-motion: no-preference) {
	.motorly-hero h1, .motorly-hero .motorly-lead { animation: motorly-rise 0.7s ease-out both; }
	.motorly-hero .motorly-lead { animation-delay: 0.1s; }
	@keyframes motorly-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* Poradniki: wpis i lista. */
.motorly-article .motorly-eyebrow a { color: inherit; text-decoration: none; }
.motorly-meta { color: var(--wp--preset--color--muted); gap: 0.4rem 1.2rem; }
.motorly-article .wp-block-post-content { line-height: 1.7; }
.motorly-article .wp-block-post-content h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.motorly-article .wp-block-post-content h3 { margin-top: 2rem; font-size: 1.3rem; }
.motorly-article .wp-block-post-content a { color: var(--wp--preset--color--accent); }
.motorly-article .wp-block-table table { border-collapse: collapse; width: 100%; }
.motorly-article .wp-block-table th,
.motorly-article .wp-block-table td { border: 1px solid var(--wp--preset--color--border); padding: 0.6rem 0.8rem; text-align: left; }
.motorly-article .wp-block-table th { background: var(--wp--preset--color--surface); }
.motorly-guides .wp-block-post-template { display: grid; gap: 1.25rem; padding: 0; }
.motorly-guides .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.motorly-guides .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.motorly-note {
	background: var(--wp--preset--color--surface);
	border-left: 4px solid var(--wp--preset--color--accent);
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
}

/* Kalkulator w poradniku. */
.motorly-calc {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	margin: 2rem 0;
}
.motorly-calc h3 { margin-top: 0 !important; }
.motorly-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem 1.25rem; }
.motorly-calc label { display: grid; gap: 0.35rem; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.motorly-calc input {
	font: inherit;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.6rem;
	padding: 0.6rem 0.75rem;
	width: 100%;
	box-sizing: border-box;
}
.motorly-calc input:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }
.motorly-calc-result { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--wp--preset--color--border); }
.motorly-calc-result strong { color: var(--wp--preset--color--accent); font-size: 1.6rem; }
