/* Landing page (index.html) on top of site.css tokens. */
:root {
  --bezel: #0b0c14;
  --hero-glow: rgba(8, 11, 56, 0.08);
  --shadow: 0 24px 60px -24px rgba(8, 11, 56, 0.35);
  --store-bg: #0b0c14;
  --store-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bezel: #2a2c3d;
    --hero-glow: rgba(145, 152, 255, 0.14);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    --store-bg: #ffffff;
    --store-fg: #0b0c14;
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.landing main { padding: 0; overflow-x: clip; }
.wrap.wide { max-width: 1100px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.lp-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.lp-top .wrap { flex-wrap: nowrap; }
.lp-nav { display: flex; gap: 24px; margin-left: auto; }
.lp-nav a { color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.lp-nav a:hover { color: var(--text); }
.lp-actions { display: flex; align-items: center; gap: 10px; }
.lang-select select {
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.lang-select select option { color: #111827; }
.button.small { padding: 7px 14px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 720px) { .lp-nav { display: none; } .lp-actions { margin-left: auto; } }
@media (max-width: 400px) { .lp-actions .button.small { display: none; } }

.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}

/* Hero */
.lp-hero { position: relative; padding: 56px 0 24px; }
.lp-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(60% 60% at 70% 40%, var(--hero-glow), transparent 70%);
}
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.07; letter-spacing: -0.025em; margin: 0 0 16px; overflow-wrap: normal; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 540px; margin: 0 0 28px; }
.fine { color: var(--text-2); font-size: 14px; margin: 14px 0 0; }

.lp-hero-shots { position: relative; height: 560px; }
.lp-hero-shots .phone { position: absolute; width: 250px; }
.lp-hero-shots .front { right: 28%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.lp-hero-shots .back { right: 2%; top: 56px; transform: rotate(6deg); opacity: 0.95; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lp-hero-shots .front { animation: none; } }

@media (max-width: 860px) {
  .lp-hero { padding-top: 36px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .lp-hero-shots { height: 440px; max-width: 360px; width: 100%; margin: 0 auto; }
  .lp-hero-shots .phone { width: 190px; }
  .lp-hero-shots .front { right: auto; left: 8%; }
  .lp-hero-shots .back { right: 4%; top: 44px; }
}

/* Phone frame */
.phone {
  display: block; height: auto; max-width: 100%;
  border: 7px solid var(--bezel); border-radius: 30px;
  background: var(--bezel); box-shadow: var(--shadow);
}

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: var(--store-bg); color: var(--store-fg); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.store b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
html[data-os="android"] .store-play { order: -1; }

/* Year grid */
.lp-year { padding: 40px 0 16px; }
.year-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow);
}
.year-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.year-head h2 { margin: 0 0 4px; font-size: 22px; }
.year-head p { margin: 0; color: var(--text-2); max-width: 560px; }
.legend { display: flex; gap: 4px; }
.legend i, .year-grid i { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--g0); }
.legend .l1, .year-grid .l1 { background: var(--g1); }
.legend .l2, .year-grid .l2 { background: var(--g2); }
.legend .l3, .year-grid .l3 { background: var(--g3); }
.legend .l4, .year-grid .l4 { background: var(--g4); }
.year-scroll { overflow-x: auto; scrollbar-width: none; }
.year-scroll::-webkit-scrollbar { display: none; }
.year-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px; gap: 4px; width: max-content; margin: 0 auto;
}
.year-grid i { transition: background-color .3s ease; }

.stats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats li { margin: 0; text-align: center; padding: 16px 8px; border-radius: 16px; background: var(--accent-soft); }
.stats b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.stats span { color: var(--text-2); font-size: 14px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Showcase */
.lp-showcase { padding: 48px 0 8px; }
.sc-row { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; margin: 0 auto 72px; max-width: 900px; }
.sc-row .phone { width: 100%; }
.sc-row:nth-child(even) { grid-template-columns: 1fr 300px; }
.sc-row:nth-child(even) .phone { order: 2; }
.sc-text h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.sc-text p:not(.eyebrow) { font-size: 18px; color: var(--text-2); margin: 0; }
@media (max-width: 760px) {
  .sc-row, .sc-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; text-align: center; margin-bottom: 56px; }
  .sc-row .phone, .sc-row:nth-child(even) .phone { order: 2; width: 230px; margin: 0 auto; }
}

/* Feature grid */
.lp-features { padding: 24px 0 40px; }
.lp-features h2, .lp-gallery h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; margin: 0 0 28px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.fcard strong { display: block; font-size: 17px; margin: 12px 0 4px; }
.fcard p { margin: 0; color: var(--text-2); font-size: 15px; }
.ficon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.ficon svg { width: 22px; height: 22px; fill: none; stroke: #111827; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ficon.g1 { background: var(--g1); } .ficon.g1 svg { stroke: #fff; }
.ficon.g2 { background: var(--g2); }
.ficon.g3 { background: var(--g3); }
.ficon.g4 { background: var(--g4); }

/* Gallery */
.lp-gallery { padding: 32px 0 24px; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100vw - 1100px) / 2 + 16px)) 32px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 210px; margin: 0; scroll-snap-align: center; text-align: center; }
.gallery figcaption { margin-top: 12px; font-weight: 600; font-size: 15px; }

/* CTA */
.lp-cta { padding: 24px 0 32px; }
.cta-card {
  text-align: center; padding: 48px 24px; border-radius: 28px;
  background: radial-gradient(80% 120% at 50% 0%, var(--hero-glow), transparent 70%), var(--surface);
  border: 1px solid var(--border);
}
.cta-card img { border-radius: 16px; }
.cta-card h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em; margin: 16px 0 8px; }
.cta-card p { color: var(--text-2); font-size: 18px; margin: 0 0 24px; }
.cta-card .stores { justify-content: center; }

.lp-links { padding: 8px 0 40px; }
.lp-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .fcard { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .fcard .ficon { grid-row: span 2; }
  .fcard strong { margin: 0 0 2px; }
}
