:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --fg: #14161a;
  --fg-muted: #5c6470;
  --line: #e2e5ea;
  --accent: #2f6df6;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-alt: #14171c;
    --fg: #f2f4f7;
    --fg-muted: #9aa3b0;
    --line: #23272e;
    --accent: #6f9dff;
    --card: #14171c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 840px; margin: 0 auto; padding: 0 24px; }

/* Header and navigation */
header { border-bottom: 1px solid var(--line); }
header .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; flex: none;
}
.mark svg { width: 15px; height: 15px; fill: #fff; }
.wordmark { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

nav.main { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
nav.main a { color: var(--fg-muted); }
nav.main a:hover { color: var(--accent); }
nav.main a[aria-current="page"] { color: var(--fg); font-weight: 600; }
@media (max-width: 620px) {
  header .wrap { padding-bottom: 16px; }
  nav.main { margin-left: 0; width: 100%; gap: 16px; padding-top: 4px; }
}

/* Hero */
.hero .wrap { padding-top: 60px; padding-bottom: 48px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 700; }
.lede { font-size: 18px; color: var(--fg-muted); margin: 0 0 16px; max-width: 34em; }
.lede:last-child { margin-bottom: 0; }

/* Sections */
section { border-top: 1px solid var(--line); }
section .wrap { padding-top: 44px; padding-bottom: 44px; }
h2 {
  font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--fg-muted); margin: 0 0 24px;
}
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 8px; }
h4 { font-size: 16px; font-weight: 650; margin: 28px 0 6px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.prose p, .prose li { color: var(--fg); }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose > p, .prose > ul, .prose > h4, .app > p, .app > ul { max-width: 40em; }
.prose li { margin-bottom: 6px; }
.muted { color: var(--fg-muted); }
.updated { font-size: 14px; color: var(--fg-muted); }

/* Product cards */
.products { display: grid; gap: 16px; }
.product {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 22px 24px;
}
.product p { color: var(--fg-muted); }
.platforms { font-size: 13px; color: var(--fg-muted); }
.platforms strong { color: var(--fg); font-weight: 600; }

/* App detail blocks */
.app { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
.app:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.app h3 { font-size: 22px; margin-bottom: 10px; }
ul.features { margin: 0 0 18px; padding-left: 22px; }
ul.features li { margin-bottom: 6px; }
.links { font-size: 15px; display: flex; gap: 18px; flex-wrap: wrap; }

/* Definition lists */
dl.details { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 12px 24px; }
dl.details dt { color: var(--fg-muted); font-size: 14px; }
dl.details dd { margin: 0; font-size: 15px; }
@media (max-width: 560px) {
  dl.details { grid-template-columns: 1fr; gap: 4px 0; }
  dl.details dd { margin-bottom: 14px; }
  h1 { font-size: 28px; }
}

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
footer .wrap { padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--fg-muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---- Product accents ---- */
:root {
  --pod: #6ABF6A;
  --pod-2: #6D3A3A;
  --smp: #03A7F1;
  --tint: 0.075;
  --shot-shadow: 0 1px 2px rgba(16, 20, 28, 0.08), 0 12px 32px -8px rgba(16, 20, 28, 0.22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --pod-2: #d09a9a;
    --tint: 0.11;
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px -10px rgba(0, 0, 0, 0.7);
  }
}

/* Screenshots: rounded, softly shadowed, no fake bezel art */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: var(--bg-alt);
}

/* ---- Home hero ---- */
h1 { font-size: 42px; }
@media (max-width: 560px) { h1 { font-size: 30px; } }

.hero-split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 40px;
  align-items: center;
}
.hero-split .hero-copy { min-width: 0; }
.hero-shots {
  position: relative;
  padding-bottom: 44px;
  padding-right: 28px;
}
.hero-shots img { width: 66%; }
.hero-shots img:first-child { position: relative; z-index: 2; }
.hero-shots img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
}
@media (max-width: 760px) {
  .hero-split .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-shots { max-width: 320px; }
}

/* ---- Home product bands ---- */
.band { border-top: 1px solid var(--line); }
.band .wrap { padding-top: 44px; padding-bottom: 44px; }
.band-pod { background: color-mix(in srgb, var(--pod) calc(var(--tint) * 100%), var(--bg)); }
.band-smp { background: color-mix(in srgb, var(--smp) calc(var(--tint) * 100%), var(--bg)); }

.band-copy { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 36px; align-items: start; }
@media (max-width: 700px) {
  .band-copy { grid-template-columns: 1fr; gap: 24px; }
  .band-shot { max-width: 260px; }
}

/* Icon beside a product heading */
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.app-head img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app-head h3 { margin: 0; }
.band-pod .app-head h3, .head-pod h3 { color: var(--pod-2); }
.band-smp .app-head h3, .head-smp h3 { color: var(--smp); }

ul.points { margin: 0 0 18px; padding-left: 22px; }
ul.points li { margin-bottom: 6px; }
ul.points strong { font-weight: 650; }

/* ---- Apps page screenshot rows ---- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}
@media (max-width: 620px) {
  .shots {
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .shots > img { scroll-snap-align: start; }
}
/* Small inline icon in running text */
.inline-icon {
  width: 40px; height: 40px; border-radius: 9px;
  vertical-align: -12px; margin-right: 10px;
}
