:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --ink: #1d2a33;
  --muted: #5d6870;
  --line: #e8dfd0;
  --accent: #c9a24a;
  --link: #1f5f8b;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181b;
    --surface: #1d2328;
    --ink: #ece6dc;
    --muted: #a3aab0;
    --line: #2e353b;
    --link: #8cc4ec;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 14px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs a {
  padding: 6px 12px; border-radius: 999px; font-size: 15px;
  color: var(--muted); text-decoration: none;
}
.tabs a:hover { color: var(--ink); background: var(--surface); }
.tabs a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--accent) 28%, transparent); font-weight: 600; }

/* Hero */
.hero { display: flex; gap: 28px; align-items: center; padding: 56px 0 24px; }
.hero-icon { border-radius: 26px; box-shadow: 0 12px 30px rgb(0 0 0 / .14); flex: none; }
.hero h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.tagline { font-size: 21px; margin: 6px 0 4px; }
.hero-meta { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.store-button {
  display: inline-block; padding: 11px 20px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.store-button:hover { opacity: .88; }
@media (max-width: 560px) { .hero { flex-direction: column; align-items: flex-start; padding-top: 32px; } }

.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.updated { color: var(--muted); margin: 6px 0 0; }

/* Content */
.content { padding-bottom: 48px; }
.content h2 { font-size: 26px; margin: 44px 0 10px; letter-spacing: -.01em; }
.content h3 { font-size: 19px; margin: 28px 0 6px; }
.content li { margin: 4px 0; }
.lead { font-size: 20px; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 14px 18px; margin: 20px 0;
}
.callout p { margin: 0; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

/* Screenshot strip */
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 2px 18px; margin: 8px -20px 0; padding-left: 20px; padding-right: 20px;
}
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { font-size: 22px; line-height: 1; margin-bottom: 8px; display: block; }

/* Illustrations */
.figure { margin: 24px 0; text-align: center; }
.figure svg, .figure img { max-width: 100%; height: auto; }
.figure figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.steps figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.steps figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; text-align: center; }

/* Facts */
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 18px; margin-top: 44px; }
.facts h2 { margin-top: 18px; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .facts dl { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; } }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; padding-right: 28px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer p { margin: 8px 0 0; }

/* App cards on the hub */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 24px 0; }
.app-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; }
.app-card:hover { border-color: var(--accent); }
.app-card img { border-radius: 18px; flex: none; width: 72px; height: 72px; align-self: flex-start; }
.app-card h2 { margin: 0; font-size: 21px; }
.app-card p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0 40px; font-size: 15px; }
.footer p { margin: 4px 0; }
.home-link {
  font-size: 15px; color: var(--muted); text-decoration: none;
  padding: 6px 12px 6px 0; border-right: 1px solid var(--line); white-space: nowrap;
}
.home-link:hover { color: var(--ink); }
