:root {
  color-scheme: dark;
  --base: #101223;
  --paper: #f6f4ff;
  --text-muted: #c4c5d8;
  --line: #a2a7da42;
  --accent: #d2c6ff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--base);
  color: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 900px 560px at 75% 7%, #352653 0%, transparent 72%),
    radial-gradient(ellipse 720px 580px at 90% 73%, #163a4644, transparent 76%);
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid #b6ecff; outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand-sub, .header nav { color: var(--text-muted); font-weight: 450; font-size: 14px; }
.header nav { display: flex; gap: 24px; }
.header nav a { text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 11px; text-decoration: none; font-weight: 700; line-height: 1.2; }
.button-main { background: linear-gradient(110deg, #c6a4ff, #95b4ff 75%, #82e3ef); color: #120f24; box-shadow: 0 10px 30px #a587ff55; transition: box-shadow .18s, transform .18s; }
.button-main:hover { transform: translateY(-2px); box-shadow: 0 12px 34px #b8a0fa60; }
.button-quiet { border: 1px solid var(--line); min-height: 40px; }
.hero { display: grid; grid-template-columns: .97fr 1.03fr; align-items: center; gap: 34px; padding: 72px 0 82px; }
/* Hero motion avoids opacity so the heading and image count for LCP on the first paint. */
.hero-copy { animation: enter .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes enter {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(38px, 4.7vw, 68px); letter-spacing: normal; line-height: 1.06; font-weight: 740; }
.hero-copy > p { max-width: 46ch; font-size: clamp(16px, 1.65vw, 20px); color: var(--text-muted); line-height: 1.55; margin-top: 24px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; }
.button-reviews { gap: 8px; border: 1px solid #d9a64f66; background: transparent; color: #ffefce; }
.button-reviews span { color: #ffd476; font-size: 20px; line-height: 1; }
.button-reviews:hover { background: #d9a64f1a; }
.text-link { text-underline-offset: 5px; font-size: 14px; }
.hero-copy > .compatibility-note { font-size: 14px; color: var(--paper); margin-top: 18px; max-width: 60ch; }
.hero-copy > .parking { font-size: 13px; margin-top: 7px; }
.hero-visual { margin: 0; overflow: hidden; border-radius: 27px 27px 90px 27px; background: #24213a; box-shadow: 0 22px 66px #0006; border: 1px solid #a39bd346; }
h2 { font-size: clamp(30px, 4vw, 49px); line-height: 1.09; letter-spacing: -.045em; }
.offer { border-top: 1px solid var(--line); padding-block: 48px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; }
.offer-copy p, .steps p, .answers p, .contact p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.offer-copy p + p { margin-top: 12px; }
.process { padding-block: 52px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; gap: 26px; padding: 0; margin: 32px 0 0; counter-reset: step; }
.steps li { border-top: 1px solid #ac9ee278; padding: 18px 0 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 13px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; margin-bottom: 9px; letter-spacing: -.02em; }
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 38px; padding-block: 56px 64px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.45;
  transition: color .2s ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 10px no-repeat;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), background-size .3s ease, border-color .2s ease;
}
summary:hover, summary[aria-expanded="true"], details[open] > summary:not([aria-expanded]) { color: var(--accent); }
summary:hover::after { border-color: var(--accent); }
summary[aria-expanded="true"]::after, details[open] > summary:not([aria-expanded])::after {
  transform: rotate(180deg);
  background-size: 10px 2px, 2px 0;
}
.answers p { padding-top: 12px; }
.answers a, .offer-copy a { color: var(--accent); text-underline-offset: 4px; }
.contact { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(130deg, #31244c, #192638 85%); padding: 34px; display: flex; gap: 25px; align-items: center; justify-content: space-between; }
.contact h2 { font-size: clamp(27px, 3.4vw, 42px); }
.contact p { margin-top: 10px; }
.contact .button { flex: none; }
.footer { font-size: 13px; color: var(--text-muted); padding-block: 26px 36px; line-height: 1.5; }
.footer p + p { margin-top: 6px; opacity: .75; }
@media (max-width: 800px) {
  .shell { width: min(680px, calc(100% - 36px)); }
  .header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .offer, .faq { grid-template-columns: 1fr; gap: 20px; padding-block: 35px; }
  .process { padding-block: 35px; }
  .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .contact { align-items: flex-start; flex-direction: column; padding: 24px; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .button-main { transition: none; }
}


.brand-logo { display: block; border-radius: 9px; flex: none; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; animation: photo-focus .8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes photo-focus {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-copy > .hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; font-size: 14px; }
.hero-price strong { color: var(--paper); font-size: 27px; line-height: 1.1; }
.header-contact { flex: none; font-size: 14px; color: var(--paper); transition: border-color .18s, background-color .18s; }
.header-contact:hover { border-color: var(--accent); background: #d2c6ff14; }
@media (max-width: 600px) {
  .header { gap: 8px; }
  .brand-sub { display: none; }
  .header-contact { padding: 9px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  summary, summary::after, .header-contact { transition: none; }
}

/* Trust points under the hero buttons. */
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { flex: none; color: #8ef0c3; }

/* Version comparison. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.compare-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.compare-card strong { color: var(--paper); font-size: 16px; }
.compare-version { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.compare-before .compare-version { color: #ff8a9b; }
.compare-after { border-color: #8ef0c366; background: #8ef0c30d; }
.compare-after .compare-version { color: #8ef0c3; }

/* Real photos. */
.proof { padding-block: 52px 20px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr .62fr; gap: 16px; margin-top: 32px; }
.proof-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.proof-grid img { display: block; width: 100%; height: 330px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #24213a; }
/* Tall iPhone screenshot: keep the "Об APTV 1.5.12" row in frame. */
.proof-grid img.proof-version { object-position: 50% 80%; }
.proof-grid figcaption, .proof-note { font-size: 14px; color: var(--text-muted); }
.proof-note { margin-top: 14px; font-size: 13px; }

/* Reviews. */
.reviews { padding-block: 52px; }
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; }
.reviews-score { font-weight: 650; color: var(--paper); }
.stars { color: #ffd476; letter-spacing: 2px; }
.reviews-viewport { margin: 32px 0 22px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #ffffff06; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; flex: 1; }
.review p { color: var(--paper); font-size: 16px; line-height: 1.55; }
.review figcaption { font-size: 14px; color: var(--text-muted); font-weight: 600; }

@media (max-width: 800px) {
  .compare { grid-template-columns: 1fr; }
  .proof { padding-block: 35px 10px; }
  .proof-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .proof-grid img { height: auto; aspect-ratio: 4 / 3; }
  .proof-grid img.proof-version { height: 240px; aspect-ratio: auto; }
  .reviews { padding-block: 35px; }
  .reviews-viewport { margin-top: 24px; }
}

/* Rollback number in the "where did Quick go" section. */
.offer-side { display: flex; flex-direction: column; gap: 34px; }
.rollback { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.rollback-chip { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); padding: 6px 12px; border: 1px solid #d2c6ff40; border-radius: 999px; background: #d2c6ff0d; }
.rollback-number { display: flex; font-size: clamp(84px, 10.5vw, 148px); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rollback-fixed { background: linear-gradient(180deg, #fff 10%, #9f99c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rollback-digit { display: inline-block; height: 1em; overflow: hidden; }
.rollback-reel { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.rollback-reel span { display: block; height: 1em; }
.rollback-reel span:first-child { color: #ff8a9b; }
.rollback-reel span:last-child { color: #8ef0c3; }
.rollback[data-version="1.5.12"] .rollback-reel { transform: translateY(-1em); }
.rollback-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rollback-tabs span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--text-muted); transition: color .5s, border-color .5s, background-color .5s, box-shadow .5s, opacity .5s; }
.rollback[data-version="1.5.12"] .rollback-quick { color: #fff; font-weight: 700; border-color: #8ef0c380; background: #8ef0c31f; box-shadow: 0 0 24px #8ef0c333; }
.rollback[data-version="1.5.13"] .rollback-quick { color: #ff8a9b; border-style: dashed; border-color: #ff8a9b80; text-decoration: line-through; opacity: .55; }
.rollback-caption { font-size: 15px; font-weight: 650; }
.rollback-old { color: #ff8a9b; }
.rollback-new { color: #8ef0c3; }
.rollback[data-version="1.5.12"] .rollback-old,
.rollback[data-version="1.5.13"] .rollback-new { display: none; }
.compare-card { transition: border-color .4s, box-shadow .4s, transform .4s cubic-bezier(.22, 1, .36, 1); }
.compare-before.is-active { border-color: #ff8a9b80; box-shadow: 0 0 0 1px #ff8a9b40, 0 12px 30px #ff8a9b14; transform: translateY(-3px); }
.compare-after.is-active { box-shadow: 0 0 0 1px #8ef0c340, 0 12px 30px #8ef0c31a; transform: translateY(-3px); }

/* FAQ side card. */
.faq-side { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 28px; }
.faq-help { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(150deg, #2a2148, #151a30 80%); display: flex; flex-direction: column; gap: 12px; }
.faq-help .faq-help-title { font-size: 20px; font-weight: 700; }
.faq-help p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.faq-help .faq-help-title { color: var(--paper); }
.faq-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.faq-stats div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #ffffff08; }
.faq-stats strong { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.faq-stats span { font-size: 12px; color: var(--text-muted); }

/* Hero image: ambient glow and cursor tilt (tilt values come from effects.js). */
.hero-visual { transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .5s cubic-bezier(.22, 1, .36, 1); animation: ambient 7s ease-in-out infinite; }
@keyframes ambient {
  0%, 100% { box-shadow: 0 22px 66px #0006, 0 0 60px #8b5cf622; }
  50% { box-shadow: 0 22px 66px #0006, 0 0 120px #8b5cf655; }
}

/* Scroll reveal: only active once effects.js marks the page ready. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Reviews marquee on wide screens. */
.reviews-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews-grid.is-marquee { display: flex; width: max-content; padding-right: 16px; animation: marquee 55s linear infinite; }
.reviews-grid.is-marquee .review { flex: none; width: 360px; }
.reviews-viewport:hover .reviews-grid.is-marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cursor spotlight (coordinates come from effects.js). */
.spotlight { position: relative; }
.spotlight::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), #b8a0fa1f, transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.spotlight:hover::after { opacity: 1; }

/* Sticky call to action on phones. */
.sticky-cta { display: none; }

@media (max-width: 800px) {
  .offer-side { gap: 24px; }
  .rollback-number { font-size: 84px; }
  /* Phones: the sticky button and the contact block already cover this card. */
  .faq-side { position: static; }
  .faq-help { display: none; }
  .reviews-viewport { -webkit-mask-image: none; mask-image: none; }
  .reviews-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-grid .review { flex: 0 0 84%; scroll-snap-align: start; }
  .sticky-cta {
    display: flex; position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border-radius: 16px; border: 1px solid var(--line); background: #171a33eb; box-shadow: 0 14px 40px #000a;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 40px)); transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta p { display: flex; flex-direction: column; line-height: 1.2; }
  .sticky-cta strong { font-size: 18px; }
  .sticky-cta span { font-size: 12px; color: var(--text-muted); }
  .sticky-cta .button { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .rollback-reel, .rollback-tabs span, .compare-card, .hero-visual, .sticky-cta { transition: none; }
  .hero-visual { animation: none; }
}

/* Features: what APTV 1.5.12 can do in CarPlay. */
.features { padding-block: 52px; }
.features-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; }
.features-head p { color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.feature-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #ffffff06; display: flex; flex-direction: column; gap: 10px; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: #d2c6ff14; border: 1px solid #d2c6ff2e; margin-bottom: 4px; }
.feature-card h3 { font-size: 18px; letter-spacing: -.01em; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.features-panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; }
.features-panel { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: #ffffff06; display: flex; flex-direction: column; gap: 14px; }
.features-panel h3 { font-size: 20px; }
.m3u-steps { margin: 0; padding: 0; list-style: none; counter-reset: m3u; display: flex; flex-direction: column; gap: 12px; }
.m3u-steps li { counter-increment: m3u; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.m3u-steps li::before { content: counter(m3u); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #d2c6ff1a; color: var(--accent); font-weight: 700; font-size: 14px; }
.features-note { font-size: 13px; color: var(--text-muted); opacity: .8; }
.features-pro { background: linear-gradient(150deg, #3a1f3a, #1b1a30 75%); border-color: #ff4f7a40; }
.pro-head { display: flex; align-items: center; gap: 12px; }
.pro-head strong { font-size: 24px; }
.pro-badge { padding: 4px 9px; border-radius: 7px; background: #e8335f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.features-pro > p:not(.features-note) { color: var(--paper); font-size: 15px; }
.pro-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pro-list li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.pro-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #ff6f91; box-shadow: 0 0 10px #ff6f9180; }
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .features { padding-block: 35px; }
  .features-head { grid-template-columns: 1fr; }
  .features-grid { gap: 12px; margin-top: 24px; }
  .features-panels { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .feature-card, .features-panel { padding: 18px; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
}

.features-panel .features-note { margin-top: auto; }
