/*
 * Landing page styles (template smaniav1-bundel-checkout). Mobile first.
 * Colours and sizes are variables so a market or design can restyle them in one place.
 */
:root {
	--lp-cta: #2e9e47;
	--lp-cta-hover: #25853b;
	--lp-accent: #1b6fb5;
	--lp-text: #1d2530;
	--lp-muted: #5c6674;
	--lp-bg: #ffffff;
	--lp-bg-soft: #f3f5f7;
	--lp-border: #dfe3e8;
	--lp-sale: #d7263d;
	--lp-radius: 10px;
	--lp-gap: 16px;
	--lp-max: 1080px;
}

html { scroll-behavior: smooth; }
body.lp-page { margin: 0; background: var(--lp-bg); color: var(--lp-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; padding-bottom: 76px; }
.lp-page img { max-width: 100%; height: auto; display: block; }

.lp-main { max-width: var(--lp-max); margin: 0 auto; padding: 0 var(--lp-gap); }
.lp-section { padding: 28px 0; border-bottom: 1px solid var(--lp-border); }
.lp-heading { font-size: 1.35rem; margin: 0 0 var(--lp-gap); text-align: center; text-transform: uppercase; letter-spacing: .02em; color: var(--lp-accent); }
.lp-title { font-size: 1.6rem; line-height: 1.2; margin: 0 0 8px; }
.lp-subtitle { margin: 0 0 12px; color: var(--lp-muted); }

/* Header */
.lp-header { padding: 14px var(--lp-gap); text-align: center; border-bottom: 1px solid var(--lp-border); }
.lp-logo { margin: 0 auto; max-height: 44px; width: auto; }
.lp-logo-text { font-weight: 700; font-size: 1.25rem; }

/* Hero */
.lp-hero { display: grid; gap: var(--lp-gap); }
.lp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--lp-radius); background: var(--lp-bg-soft); }
.lp-gallery__img { flex: 0 0 100%; scroll-snap-align: center; object-fit: cover; aspect-ratio: 1 / 1; width: 100%; }
.lp-price { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 1.6rem; font-weight: 700; }
.lp-price del { color: var(--lp-muted); font-size: 1rem; font-weight: 400; }
.lp-price ins { text-decoration: none; }
.lp-delivery { margin: 0 0 12px; color: var(--lp-muted); font-size: .95rem; }
.lp-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.lp-rating__meta { color: var(--lp-muted); font-size: .9rem; }
.lp-stars { --lp-pct: calc(var(--lp-score, 0) / 5 * 100%); display: inline-block; font-size: 1.15rem; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #f5a623 var(--lp-pct), #d3d7dc var(--lp-pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stars::before { content: "★★★★★"; }
.lp-placeholder, .lp-notice { padding: 10px 12px; border: 1px dashed var(--lp-border); border-radius: var(--lp-radius); color: var(--lp-muted); font-size: .9rem; }

/* Buttons and badges */
.lp-btn { display: block; width: 100%; box-sizing: border-box; padding: 16px 20px; border-radius: var(--lp-radius); background: var(--lp-cta); color: #fff; font-weight: 700; font-size: 1.05rem; text-align: center; text-transform: uppercase; text-decoration: none; }
.lp-btn:hover, .lp-btn:focus { background: var(--lp-cta-hover); color: #fff; }
.lp-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.lp-badge--sale { background: var(--lp-sale); }
.lp-badge--best { background: var(--lp-accent); position: absolute; top: -10px; left: 12px; }

/* Opinion cards */
.lp-opinion { margin: 0 0 12px; padding: 12px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-bg); }
.lp-opinion__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.lp-hero .lp-opinion { display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; align-items: center; }
.lp-hero .lp-opinion__img { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; border-radius: 50%; }
.lp-hero .lp-opinion figcaption { align-self: end; }
.lp-hero .lp-opinion blockquote { grid-column: 2; margin: 0; font-size: .9rem; }
.lp-hero .lp-opinion:not(:has(img)) { grid-template-columns: 1fr; }
.lp-hero .lp-opinion:not(:has(img)) blockquote { grid-column: 1; }
.lp-opinion blockquote { margin: 4px 0 0; color: var(--lp-muted); }
.lp-opinions { display: grid; gap: 12px; align-items: start; }
.lp-opinions .lp-opinion { margin: 0; }

/* Checklists */
.lp-checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-checklist li { padding: 10px 12px 10px 38px; position: relative; background: var(--lp-bg-soft); border-radius: 8px; }
.lp-checklist li::before { content: "✓"; position: absolute; left: 12px; top: 10px; color: var(--lp-accent); font-weight: 700; }

/* Bundle cards */
.lp-bundles { display: grid; gap: 18px; margin: 8px 0 0; }
.lp-bundle { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; width: 100%; box-sizing: border-box; padding: 16px; border: 2px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-bg); color: var(--lp-text); font: inherit; text-align: left; cursor: pointer; }
.lp-bundle:hover, .lp-bundle:focus { border-color: var(--lp-cta); }
.lp-bundle--recommended { border-color: var(--lp-accent); background: #f4f9fd; }
.lp-bundle__qty { grid-row: 1 / span 2; font-size: 1.5rem; font-weight: 800; }
.lp-bundle__unit { color: var(--lp-muted); font-size: .9rem; }
.lp-bundle__discount { margin-left: 6px; color: var(--lp-sale); font-weight: 700; }
.lp-bundle__total { grid-column: 3; grid-row: 1; justify-self: end; font-size: 1.2rem; font-weight: 800; }
.lp-bundle__savings { grid-column: 2 / span 2; color: var(--lp-cta); font-size: .85rem; font-weight: 600; }

/* Trust */
.lp-guarantee { padding: 14px; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); background: var(--lp-bg-soft); }
.lp-guarantee p { margin: 4px 0 0; color: var(--lp-muted); }
.lp-icons { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: center; }
.lp-icons li { display: grid; justify-items: center; gap: 6px; font-size: .85rem; }
.lp-icon { color: var(--lp-accent); }

/* Benefits */
.lp-tiles { display: grid; gap: var(--lp-gap); align-items: start; }
.lp-tile { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); overflow: hidden; background: var(--lp-bg); }
.lp-tile h3, .lp-tile p { margin: 0; padding: 12px 14px 0; }
.lp-tile p { padding-bottom: 14px; color: var(--lp-muted); }
.lp-tile h3 { padding-bottom: 0; font-size: 1.05rem; line-height: 1.3; }
.lp-tile h3:last-child { padding-bottom: 14px; }
.lp-tile__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* FAQ */
.lp-faq__item { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); margin-bottom: 8px; padding: 0 14px; }
.lp-faq__item summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.lp-faq__item p { margin: 0 0 14px; color: var(--lp-muted); }

/* Final CTA and sticky CTA */
.lp-final-cta { text-align: center; border-bottom: 0; }
.lp-final-cta .lp-heading { text-transform: none; }
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--lp-gap); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--lp-border); }

/* Footer */
.lp-footer { max-width: var(--lp-max); margin: 0 auto; padding: 24px var(--lp-gap); display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--lp-muted); }
.lp-debug { flex-basis: 100%; margin: 0; font-size: .75rem; }

@media (min-width: 768px) {
	body.lp-page { padding-bottom: 0; }
	.lp-hero { grid-template-columns: 1fr 1fr; align-items: start; }
	.lp-title { font-size: 2rem; }
	.lp-tiles { grid-template-columns: repeat(2, 1fr); }
	.lp-opinions { grid-template-columns: repeat(3, 1fr); }
	.lp-icons { grid-template-columns: repeat(4, 1fr); }
	.lp-bundles { grid-template-columns: repeat(2, 1fr); }
	.lp-sticky { display: none; }
}
