/* The landing pages (/, /<lang>) on top of style.css. The legal pages don't load this file. */
:root {
  --wide: 1080px;
  --card: #f6f5f9;
  --card-rule: #e6e4ec;
  --ink-soft: #3d3a45;
  --hero-a: #e9edff;
  --hero-b: #f7efff;
  --pro: #a65f0a;
  --pro-bg: #fff0d9;
  --ok: #1f7a4d;
  --ok-bg: #e2f5ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --card: #1b1a1f;
    --card-rule: #2c2b32;
    --ink-soft: #c9c4d1;
    --hero-a: #161a2b;
    --hero-b: #1e1727;
    --pro: #ffc477;
    --pro-bg: #3a2a14;
    --ok: #7fd8a6;
    --ok-bg: #173126;
  }
}
html { scroll-behavior: smooth; }
body.landing { overflow-x: hidden; }
body.landing main { max-width: none; padding: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
header.site { position: relative; z-index: 2; max-width: var(--wide); margin: 0 auto; padding: 16px 16px 0; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
header.site .brand img { width: 32px; height: 32px; border-radius: 9px; }
.landing section { padding: 56px 0; }
.landing h2 { font-size: clamp(1.5em, 3.4vw, 2em); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Hero */
.landing .hero {
  margin-top: -64px; padding: 104px 0 24px;
  background:
    radial-gradient(900px 480px at 88% 8%, var(--hero-b), transparent 70%),
    linear-gradient(180deg, var(--hero-a), var(--bg));
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1em, 5.2vw, 3.3em); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero .lead { font-size: 1.15em; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-note { color: var(--muted); font-size: 15px; margin: 0; }
.center .cta { justify-content: center; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Google Play badge: Google's own image, shown as is (its clear space is part of it) */
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: opacity 0.15s; }
.play-badge img { display: block; width: auto; height: 65px; }
.play-badge:hover { opacity: 0.85; }
.play-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Works with */
.landing .platforms { padding: 16px 0 8px; }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.platforms h2.label { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 4px 0 0; }
.platforms ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.platforms li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px 8px 14px; border: 1px solid var(--card-rule); border-radius: 999px; background: var(--surface); font-weight: 600; }
.platforms li svg { width: 22px; height: 22px; color: var(--muted); }
.platforms .tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.platforms li.soon { border-style: dashed; color: var(--muted); }
.platforms li.soon .tag { background: var(--hover); color: var(--muted); }
.platforms li.beta .tag { background: var(--hover); color: var(--accent); }
.platforms .more { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 15px; margin: 0; }

/* Features */
.features ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.features li { margin: 0; padding: 22px 22px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-rule); }
.features .icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface); color: var(--accent); border: 1px solid var(--card-rule); margin-bottom: 14px; }
.features .icon svg { width: 24px; height: 24px; }
.features h3 { font-size: 1.05em; line-height: 1.3; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.pro-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; line-height: 1.5; padding: 1px 7px; border-radius: 6px; background: var(--pro-bg); color: var(--pro); vertical-align: 2px; margin-left: 6px; }

/* Styles gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; text-align: center; }
.gallery svg { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 14px 24px var(--shadow)); }
.gallery figcaption { font-weight: 600; }

/* The pager's dots (landing.js adds them; narrow screens only) */
.gallery-dots { display: none; }
.gallery-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gallery-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--rule); transition: width 0.2s, background-color 0.2s; }
.gallery-dots button[aria-current]::before { width: 20px; background: var(--accent); }
.gallery-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Steps */
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { margin: 0; padding: 24px; border-radius: 20px; border: 1px solid var(--card-rule); counter-increment: step; }
.steps li::before { content: counter(step); display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.05em; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Free and Pro */
.plans .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
.plan { padding: 28px; border-radius: 24px; border: 1px solid var(--card-rule); background: var(--card); }
.plan.pro { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); border-color: var(--card-rule); box-shadow: 0 10px 30px var(--shadow); }
.plan h3 { font-size: 1.3em; margin: 0 0 4px; }
.plan .sub { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding-left: 30px; margin: 10px 0; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 13px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plans .note { color: var(--muted); font-size: 15px; margin: 20px 0 0; }

/* FAQ */
.faq .list { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.05em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq .answer { padding: 0 0 18px; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer ul { margin: 0 0 10px; }

/* Closing call to action */
.closing .box { padding: 48px 24px; border-radius: 28px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.closing h2 { margin-bottom: 8px; }
.closing p { color: var(--muted); margin: 0 0 24px; }

body.landing footer { max-width: var(--wide); margin: 16px auto 0; padding: 24px 16px 48px; }
body.landing footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
body.landing footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  /* A pager: one remote at a time in the middle, its neighbours peeking in; landing.js turns it. */
  /* Sizes in % are of the gallery's own width here (flex items), which is the screen's: */
  /* spacers before and after centre the first and last remote. */
  .gallery { --page: min(60%, 280px); position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 0 12px; margin: 0 -16px; scrollbar-width: none; }
  .gallery::before, .gallery::after { content: ""; flex: 0 0 calc((100% - var(--page)) / 2 - 16px); }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery li { flex: 0 0 var(--page); scroll-snap-align: center; }
  .gallery-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
  .steps ol, .plans .cols { grid-template-columns: minmax(0, 1fr); }
  .landing section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play-badge, .faq summary::after, .gallery-dots button::before { transition: none; }
}
