:root {
  --bg: #f7f8fb;
  --bg-alt: #eef1f7;
  --card: #ffffff;
  --text: #1b1f2a;
  --muted: #5b6475;
  --line: #dde2ec;
  --accent: #0f6cbd;
  --accent-text: #ffffff;
  --accent-soft: #e3effa;
  --note: #fff6dd;
  color-scheme: light;
}
/* Dark: follows Windows / the phone, unless the header switch chose a theme (html[data-theme], app.js) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171c;
    --bg-alt: #1b1e25;
    --card: #20242c;
    --text: #e8ebf1;
    --muted: #a0a8b8;
    --line: #2f3440;
    --accent: #4ca3f0;
    --accent-text: #0b1420;
    --accent-soft: #1d3247;
    --note: #3a3320;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15171c;
  --bg-alt: #1b1e25;
  --card: #20242c;
  --text: #e8ebf1;
  --muted: #a0a8b8;
  --line: #2f3440;
  --accent: #4ca3f0;
  --accent-text: #0b1420;
  --accent-soft: #1d3247;
  --note: #3a3320;
  color-scheme: dark;
}

/* light / dark switch in the header */
.theme-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 1.05rem;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: .92em; }
h1, h2, h3 { line-height: 1.25; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav { margin-left: auto; margin-right: 18px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 1.2rem; padding: 2px 10px; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text) !important;
  text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 8px;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 14px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }

/* hero */
.hero { padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 2.3rem; margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-logo { width: 100%; max-width: 340px; justify-self: center; }

/* sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 1.7rem; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.card, .version, .guide-body article {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
}
.card h3 { margin: 8px 0 6px; }
.card p { margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.step {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
/* features: short cards, details are in the guide below */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.feature h3 { margin: 10px 0 4px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.45rem;
}

/* supported platforms */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.platforms-label { color: var(--muted); font-size: .92rem; margin-right: 4px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; margin-right: 4px; }

/* coming soon, commitments */
.feature.soon { position: relative; border-style: dashed; }
.soon-badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.feature.soon h3 { margin-top: 8px; }
.promises { grid-template-columns: repeat(4, 1fr); }
.feedback { margin: 18px 0 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; margin-top: 22px; justify-content: center; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px; display: flex; flex-direction: column;
}
.plan-best { border: 2px solid var(--accent); }
.plan-best .badge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: var(--accent-text); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.price { font-size: 2.3rem; font-weight: 700; margin: 6px 0 0; }
/* a plan on sale: the usual price struck through above the sale price */
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; margin: 6px 0 -6px; }
.plan-sale { position: relative; }
.plan-sale .badge-sale { position: absolute; top: -12px; right: 18px; background: #dc2626; color: #fff; }
.price span { font-size: 1.2rem; margin-left: 2px; }
.plan p { margin: 0 0 12px; }
.plan ul { margin: 0 0 20px; padding-left: 20px; flex: 1; }
.plan .btn { text-align: center; }

/* how to buy */
.buy-steps { margin: 16px 0 0; padding-left: 22px; }
.buy-steps li { margin: 8px 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.facts div { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 12px; }
.facts span { color: var(--muted); font-size: .92rem; }

/* guide with its own menu */
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.guide-menu { position: sticky; top: 84px; align-self: start; }
.guide-menu nav { display: flex; flex-direction: column; gap: 2px; }
.guide-menu a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 6px; border-left: 3px solid transparent; }
.guide-menu a:hover { background: var(--card); }
.guide-menu a.active { border-left-color: var(--accent); background: var(--card); color: var(--accent); }
.guide-body { display: flex; flex-direction: column; gap: 16px; }
.guide-body h3 { margin: 0 0 8px; }
.guide-body ol, .guide-body ul { margin: 0; padding-left: 20px; }
.guide-body li { margin: 4px 0; }
.note { background: var(--note); border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; }

/* versions */
.versions { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.version-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.version-head h3 { margin: 0; font-size: 1.25rem; }
.version-head .btn { margin-left: auto; }
.version ul { margin: 12px 0 0; padding-left: 20px; }
.badge { font-size: .75rem; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* text pages (privacy) */
.legal { max-width: 760px; }
.legal h1 { font-size: 2rem; margin: 0 0 4px; }
.legal h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.legal li { margin: 6px 0; }
.legal code { word-break: break-word; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
/* the copyright line alone at the very bottom, under the brand and the links */
.footer-copy { flex-basis: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.small-brand { font-size: 1rem; }

/* phones and small windows */
@media (max-width: 820px) {
  .hero-inner, .cards, .guide { grid-template-columns: 1fr; }
  .features, .promises { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero-logo { max-width: 200px; grid-row: 1; }
  .hero h1 { font-size: 1.8rem; }
  .guide-menu { position: static; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 36px; padding: 0; cursor: pointer; }
  /* the menu opens as a card under the bar, with room around each item */
  .nav {
    display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 8px; background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 14px; border-radius: 8px; }
  .nav a:hover, .nav a:focus-visible { background: var(--bg-alt); color: var(--text); }
  .nav .btn { text-align: center; margin-top: 6px; padding: 11px 14px; }
  .nav .btn:hover { background: var(--accent); color: var(--accent-text); }
  .version-head .btn { margin-left: 0; }
  .section { padding: 36px 0; }
  .hero { padding: 32px 0 24px; }
}
@media (max-width: 520px) {
  .features, .promises { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
  .lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .card, .version, .guide-body article { padding: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
