/* LevchecK landing page — self-contained styles. Fonts self-hosted (no CDN/runtime requests). */

/* Oswald — condensed "price-board" display face, used for the wordmark, headlines and price numerals.
   Latin + Cyrillic subsets self-hosted in assets/fonts/. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/oswald-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/oswald-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/oswald-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/oswald-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/oswald-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/oswald-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116; }

:root {
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --ink: #111827;
  --muted: #4B5563;
  --faint: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --green: #047857;
  --radius: 12px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  position: relative; /* containing block for the full-height trails layer */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: transparent; /* let the drifting-lines layer show through */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Display face (Oswald) — wordmark, headlines, price numerals ---------- */
.brand-name,
.hero-title,
.section-title,
.legal-title,
.price-eur,
.price-bgn,
.rate-note strong,
.product-price,
.step-num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.brand-name { font-weight: 700; letter-spacing: 0.02em; }
.hero-title { font-weight: 700; letter-spacing: 0.01em; }
.section-title { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.legal-title { font-weight: 700; }
.rate-note strong { font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Animated background: flowing light-blue trails ---------- */
.bg-decor {
  /* absolute (not fixed) + inset:0 inside the relative body = spans the whole
     document height, so the trails scroll with the page instead of staying pinned. */
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.bg-decor .trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.trail {
  stroke-width: 2.5;
  stroke-opacity: 0.5;
  /* keep strokes a constant thin width even when the SVG is stretched to full
     page height (preserveAspectRatio="none") */
  vector-effect: non-scaling-stroke;
  /* normalized path = 1000; one comet (260) with dead space (740), so each line
     enters off one edge, crosses, and exits off the other — no mid-screen pops */
  stroke-dasharray: 260 740;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 7px rgba(37, 99, 235, 0.45));
  will-change: stroke-dashoffset;
  animation: trailFlow 15s linear infinite;
}
.trail:nth-child(1) { animation-duration: 13s; animation-delay: 0s; }
.trail:nth-child(2) { animation-duration: 17s; animation-delay: -4s; }
.trail:nth-child(3) { animation-duration: 15s; animation-delay: -9s; }
.trail:nth-child(4) { animation-duration: 19s; animation-delay: -3s; }
.trail:nth-child(5) { animation-duration: 16s; animation-delay: -11s; }
.trail:nth-child(6) { animation-duration: 21s; animation-delay: -6s; }
.trail:nth-child(7) { animation-duration: 18s; animation-delay: -13s; }

@keyframes trailFlow {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Safety net against horizontal scroll on small screens. `clip` (not `hidden`)
   so it never creates a scroll container or breaks the sticky header, which
   lives outside <main>. */
main { overflow-x: clip; }

/* ---------- Language visibility (BG default, EN on html.lang-en) ---------- */
[data-lang="en"] { display: none; }
html.lang-en [data-lang="bg"] { display: none; }
html.lang-en [data-lang="en"] { display: inline; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { display: block; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}
.lang-btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 52px;
  background: transparent; /* lines show through; cards below provide contrast */
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr; /* more room for the copy/CTAs on the left */
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1240px; /* wider than the standard container */
}
.hero-copy {
  position: relative;
  min-width: 0;
  padding: 34px 34px 30px;
  border-radius: 24px;
  /* Real tinted glass: faint cool tint (never flat white), eased blur so the
     trails behind stay visible-but-blurred, bright top edge + soft inner base. */
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(228, 238, 255, 0.04) 60%);
  -webkit-backdrop-filter: blur(7px) saturate(155%);
  backdrop-filter: blur(7px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.9),
              inset 0 -1px 0 rgba(17, 24, 39, 0.06);
}
/* Specular highlight — light catching the top-left edge of the glass */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%);
}
.hero-copy > * { position: relative; } /* keep content above the sheen */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.hero-copy .cta-row { justify-content: flex-start; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-free {
  color: var(--green);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 24px;
}

/* Before -> after price demo */
.price-demo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  font-size: 1.25rem;
  font-weight: 600;
}
.price-eur { color: var(--ink); }
.price-arrow { color: var(--faint); font-weight: 400; }
.price-bgn {
  color: var(--blue);
  background: #EFF6FF;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.95em;
  white-space: nowrap;
}
.rate-note {
  margin: 16px 0 30px;
  color: var(--faint);
  font-size: 0.95rem;
}
.rate-note strong { color: var(--ink); margin-left: 6px; }

/* CTAs */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { transform: translateY(-2px); }
/* Single browser-aware install button */
.btn-install { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; padding: 15px 32px; }
.install-icon { font-size: 1.15em; line-height: 1; transform: translateY(1px); }
.btn-install:hover .install-icon { animation: nudge 0.6s ease infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(4px); } }
/* Primary: vivid blue glass */
.btn-chrome {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  backdrop-filter: blur(8px) saturate(160%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-chrome:hover {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.98), rgba(29, 78, 216, 0.98));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* Secondary: frosted glass */
.btn-firefox {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);
  color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-firefox:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
.cta-note { margin-top: 14px; color: var(--faint); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}
.how { padding: 64px 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(13px) saturate(170%);
  backdrop-filter: blur(13px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
  border-color: var(--blue);
}
.step:hover .step-num {
  transform: scale(1.08) rotate(-4deg);
}
.step-num { transition: transform 0.18s ease; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Hero product showcase (looping лв reveal below each euro price) ---------- */
/* Circular arrangement: one card top-centre, two along the bottom — each floats independently */
.showcase {
  position: relative;
  width: 100%;
  max-width: 336px;
  height: 338px;
  margin: 0 auto;
}
.product-card {
  position: absolute;
  width: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* generous padding = whitespace buffer so the slight overlap never touches content */
  padding: 20px 18px 18px;
  border-radius: 22px;
  text-align: center;
  /* glass */
  background: rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: floatY 5s ease-in-out infinite;
}
/* Top card; the bottom pair sits at an explicit top below it (no vertical content overlap) */
.product-card:nth-child(1) { top: 0;     left: 50%; margin-left: -88px; z-index: 3; animation-duration: 5s;   animation-delay: 0s; }
.product-card:nth-child(2) { top: 176px; left: 0;   z-index: 1; animation-duration: 6.4s; animation-delay: -1.6s; }
.product-card:nth-child(3) { top: 176px; right: 0;  z-index: 2; animation-duration: 5.7s; animation-delay: -3.2s; }
.product-card:hover {
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Gentle up-and-down float — small amplitude so floating cards never push into each other's content */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.product-img {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(17, 24, 39, 0.14));
}
.product-name {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
}
.product-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.price-eur {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--ink);
}
.price-bgn {
  color: var(--blue);
  background: #EFF6FF;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform-origin: left center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
  animation: bgnReveal 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* The лв price gently slides down into place below the euro price, holds, then resets */
/* Signature: the лв chip "stamps" in over the euro like a shop relabel — drop, tilt-overshoot, settle */
@keyframes bgnReveal {
  0%        { opacity: 0; transform: translateY(-12px) rotate(-5deg) scale(0.9); }
  11%       { opacity: 1; transform: translateY(0) rotate(2deg) scale(1.05); }
  19%       { transform: translateY(0) rotate(0deg) scale(1); }
  76%       { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-12px) rotate(-5deg) scale(0.9); }
}

/* ---------- FAQ ---------- */
.faq { padding: 8px 0 72px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(13px) saturate(170%);
  backdrop-filter: blur(13px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 0 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] { border-color: var(--blue); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blue);
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 0 18px; color: var(--muted); }
.faq-item a { color: var(--blue); font-weight: 600; }

.why { padding: 16px 0 72px; }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.why-list li {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
  transition: transform 0.18s ease, border-left-width 0.18s ease, padding-left 0.18s ease;
}
.why-list li:hover {
  transform: translateX(4px);
  border-left-width: 6px;
  padding-left: 21px;
}

.price-demo { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.price-demo:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
}
.why-list strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.why-list span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.9rem;
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover { text-decoration: underline; }

/* ---------- Legal / privacy page ---------- */
.legal { padding: 56px 0 72px; }
.legal-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 36px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.legal-title { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal-updated { color: var(--faint); font-size: 0.9rem; margin: 0 0 20px; }
.legal-lead { font-size: 1.1rem; color: var(--ink); font-weight: 600; margin: 0 0 22px; }
.legal-card h2 { font-size: 1.15rem; margin: 24px 0 6px; }
.legal-card p { color: var(--muted); margin: 0 0 10px; }
.legal-back { margin-top: 28px; }
.legal-back a { color: var(--blue); text-decoration: none; font-weight: 600; }
.legal-back a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
/* Stack the hero to one column before the two-column grid gets cramped. */
@media (max-width: 900px) {
  .hero-grid {
    /* minmax(0,1fr) — not 1fr — so the track can't be floored at a wide child's
       min-content and stretch the page past the viewport. */
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 30px;
  }
  .hero-copy { overflow-wrap: break-word; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-sub { max-width: 560px; margin-left: auto; margin-right: auto; }
  .live-demo--hero { margin: 0 auto; }
}

/* Tablet portrait: single-column sections; the demo stays a 3-up that still
   fits and reads, just tightened. */
@media (max-width: 768px) {
  .hero { padding: 36px 0 40px; }
  .how { padding: 48px 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .why-list { grid-template-columns: 1fr; max-width: 480px; }
  .showcase {
    position: static;
    height: auto;
    max-width: 460px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .product-card {
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 16px 8px 14px;
    gap: 7px;
  }
  /* Clear the desktop absolute offsets — these nth-child rules outrank the plain
     .product-card reset above, so without this the first card keeps margin-left:-88px. */
  .product-card:nth-child(1),
  .product-card:nth-child(2),
  .product-card:nth-child(3) {
    top: auto; left: auto; right: auto; margin: 0;
  }
  .product-img { font-size: 2.1rem; }
  .product-name { font-size: 0.82rem; }
  .price-eur { font-size: 1.1rem; }
  .price-bgn { font-size: 0.78rem; padding: 2px 7px; }
}

/* Phones: a 3-across grid squeezes the € → лв message into illegibility and
   overflows narrow screens. Re-cast the demo as a price-board list — one row
   per product (icon · name · euro → лв) — which fits any width, never overflows,
   and lets the лв chip still stamp in beside each price. */
@media (max-width: 520px) {
  .hero-copy { padding: 24px 20px 22px; }
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.25rem); }
  .hero-sub { font-size: 1.02rem; }
  .brand { min-width: 0; }
  .brand-name { white-space: nowrap; }
  .lang-toggle { flex-shrink: 0; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .btn-install { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }

  /* Privacy page: less wall-hugging padding on phones */
  .legal { padding: 36px 0 48px; }
  .legal-card { padding: 24px 20px 22px; }

  .hero-visual { align-self: stretch; width: 100%; min-width: 0; max-width: 100%; }
  .showcase {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;         /* phone is always narrower than the old 420 cap */
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .product-card {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    padding: 13px 16px;
    text-align: left;
    border-radius: 16px;
    animation: none; /* no per-row bob in a list; the лв stamp carries the motion */
  }
  .product-img { font-size: 1.9rem; flex-shrink: 0; }
  .product-name {
    font-size: 0.95rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;   /* graceful fallback if a name is ever too long */
  }
  /* €price stacked over its лв chip, right-aligned — narrow enough to fit 320px
     and keeps the "лв lands under the euro" reading. */
  .product-price {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }
  .price-eur { font-size: 1.1rem; }
  .price-bgn { font-size: 0.82rem; padding: 2px 8px; }
}

/* Accessibility: honor reduced-motion — no looping/hover motion, labels stay visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .lev-label { opacity: 1 !important; transform: none !important; }
  .bg-decor { display: none; }
}
