/* Store: shared styles. Light and dark follow the visitor's system setting. */
:root {
  color-scheme: light dark;
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --line: rgba(0, 0, 0, .08);
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --accent: #0067c0;
  --accent-text: #ffffff;
  --accent-soft: rgba(0, 103, 192, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1b;
    --surface: #272727;
    --surface-2: #2f2f2f;
    --line: rgba(255, 255, 255, .08);
    --text: #f2f2f2;
    --muted: #a8a8a8;
    --accent: #4cc2ff;
    --accent-text: #00243a;
    --accent-soft: rgba(76, 194, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand small { color: var(--muted); font-weight: 400; font-size: 14px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- phone banner: these apps install on a Windows PC ---------- */
.phone {
  display: none;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.phone.show { display: block; }
.phone .wrap { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.phone p { flex: 1; }
.phone button { flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 8px;
  background: var(--accent); color: var(--accent-text);
  font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { filter: brightness(.95); }
.btn.big { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn svg { width: 16px; height: 16px; }

/* ---------- home ---------- */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.02em; max-width: 16ch; }
.hero p { margin-top: 14px; max-width: 56ch; color: var(--muted); font-size: 17px; }

.section { padding: 24px 0 48px; }
.section > .wrap > h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-2px); }
.card .head { display: flex; gap: 14px; align-items: center; }
.card .head img { width: 64px; height: 64px; }
.card h3 { font-size: 18px; font-weight: 600; }
.card .cat { color: var(--muted); font-size: 13px; }
.card .blurb { color: var(--muted); flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.card.soon { background: transparent; box-shadow: none; border-style: dashed; }
.card.soon .icon-soon {
  width: 64px; height: 64px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.card.soon .icon-soon svg { width: 30px; height: 30px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.point { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.point h3 { font-size: 16px; font-weight: 600; margin: 10px 0 6px; }
.point p { color: var(--muted); font-size: 14px; }
.point svg { width: 26px; height: 26px; color: var(--accent); }

/* ---------- app page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 28px 0 8px; color: var(--muted); font-size: 14px; }
.back svg { width: 14px; height: 14px; }
.app-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 16px 0 32px; }
.app-head img.icon { width: 128px; height: 128px; }
.app-head h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 700; letter-spacing: -.01em; }
.app-head .tagline { color: var(--muted); font-size: 17px; margin-top: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 20px; color: var(--muted); font-size: 13px; }
.meta b { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions .note { color: var(--muted); font-size: 13px; }

.shot {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 24px 60px rgba(0, 0, 0, .16);
  background: var(--surface);
}
.shot img { width: 100%; height: auto; }
.caption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.panel + .panel { margin-top: 20px; }
.panel p + p { margin-top: 10px; }
.panel p { color: var(--muted); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.features li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%230a84d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.features b { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps li::before {
  content: counter(s);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 13px;
}
.steps li > div { padding-top: 3px; }
.steps .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

table.keys { width: 100%; border-collapse: collapse; font-size: 14px; }
table.keys td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.keys tr:first-child td { border-top: 0; }
table.keys td:first-child { white-space: nowrap; padding-right: 16px; width: 1%; }
kbd {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
  font: 600 12px var(--font);
}

dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .top nav { display: none; }
  .hero { padding: 40px 0 24px; }
  .app-head { grid-template-columns: 1fr; gap: 16px; }
  .app-head img.icon { width: 88px; height: 88px; }
  .cols { grid-template-columns: 1fr; }
  .phone .wrap { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
