/* Dark by default. The orange comes from the application icon. */
:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --soft: #111114;
  --surface: #161619;
  --border: #27272d;
  --text: #f3f3f4;
  --muted: #a4a4ae;
  --accent: #ff7b00;
  --accent-text: #ff942e;
  --accent-soft: rgba(255, 123, 0, 0.13);
  --glow: rgba(255, 123, 0, 0.2);
  --shadow: rgba(0, 0, 0, 0.45);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fbfaf9;
  --soft: #f3f1ee;
  --surface: #ffffff;
  --border: #e5e1dc;
  --text: #17171a;
  --muted: #55555d;
  --accent-text: #a84f00;
  --glow: rgba(255, 123, 0, 0.18);
  --shadow: rgba(60, 35, 10, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 18px; letter-spacing: -0.015em; }
code, pre, kbd { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; }
kbd { padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 19px; font-weight: 700; }
.header nav { display: flex; gap: 24px; margin-right: 12px; }
nav a { color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: #1a0d00;
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; }
.button.ghost { border-color: var(--border); background: var(--surface); color: var(--text); }

.hero { position: relative; isolation: isolate; padding-top: 80px; text-align: center; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -200px 0 auto;
  height: 760px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 13px; }
.hero h1 { max-width: 860px; margin: 26px auto 0; font-size: clamp(40px, 6.6vw, 72px); }
.hero h1 span { display: block; color: var(--accent-text); }
.lede { max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.zoom { display: block; cursor: zoom-in; }
.zoom img { width: 100%; }
.hero-shot { margin-top: 40px; }

.section { padding-top: 120px; }
.head { max-width: 640px; margin: 0 auto; text-align: center; }
.head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 48px 0 0; padding: 0; list-style: none; }
.steps span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: #1a0d00; font-size: 14px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); }

.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; margin-top: 96px; }
.row.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.row.reverse .row-text { order: 2; }
.row h3 { font-size: clamp(24px, 3vw, 32px); }
.row-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.badge { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-size: 20px; }
.points { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.points li { display: flex; gap: 10px; }
.points .icon { margin-top: 5px; color: var(--accent-text); }
.points strong { color: var(--text); font-weight: 600; }

/* The screenshots are dark, so they keep a dark frame in both themes. */
.row .zoom { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #141417; box-shadow: 0 24px 70px var(--shadow); }
.row .zoom.narrow { max-width: 360px; margin-inline: auto; }

.file { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 70px var(--shadow); }
.file-head { padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--soft); color: var(--muted); font: 12px ui-monospace, Menlo, monospace; }
.file pre { margin: 0; padding: 22px; overflow-x: auto; line-height: 1.8; }
.k { color: var(--accent-text); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--soft)); }
.card .badge { width: 36px; height: 36px; margin-bottom: 16px; font-size: 18px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.local { padding: 56px 32px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 26px; background: radial-gradient(600px 260px at 50% 0%, var(--accent-soft), transparent), var(--surface); text-align: center; }
.local p { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }

.download { margin-top: 120px; padding: 80px 0; border-block: 1px solid var(--border); background: var(--soft); }
.tabs { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.tabs button { padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.panel { max-width: 820px; margin: 28px auto 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.panel h3 { margin-bottom: 14px; font-size: 15px; }
.command { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.command pre { flex: 1; min-width: 0; margin: 0; padding-block: 8px; overflow-x: auto; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.note { max-width: 680px; margin: 24px auto 0; color: var(--muted); font-size: 13.5px; text-align: center; }

.footer { padding: 34px 0 44px; color: var(--muted); font-size: 13.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

.lightbox { width: min(1600px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(8, 8, 10, 0.85); backdrop-filter: blur(4px); }
.lightbox button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-out; }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; }

.analytics-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.analytics-settings:hover { color: var(--text); }

.consent {
  position: fixed;
  z-index: 20;
  inset: auto 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  max-width: 700px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
}
.consent > div:first-child { flex: 1 1 320px; }
.consent h2 { font-size: 16px; letter-spacing: -0.01em; }
.consent p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .row, .row.reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 72px; }
  .row.reverse .row-text { order: 0; }
}

@media (max-width: 760px) {
  .header nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .section { padding-top: 80px; }
  .hero { padding-top: 48px; }
  .download { margin-top: 80px; padding: 56px 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .command { flex-direction: column; align-items: stretch; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
