:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #5c5c63;
  --line: #e3e3e7;
  --brand: #0b5cad;
  --brand-ink: #ffffff;
  --accent: #2a8fd8;
  --screen: #1f2c40;
  --tile: #ffffff;
  --tile-soft: #dde8f4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --bg-soft: #1b1c1f;
    --text: #f5f5f7;
    --muted: #a1a1a8;
    --line: #2c2d31;
    --brand: #4fa8ee;
    --brand-ink: #06182e;
    --screen: #0a1424;
    --tile: #e9eef0;
    --tile-soft: #93c9f0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* Apple's system font (SF Pro) on Apple devices */
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
nav { display: flex; gap: 22px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 17px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn.secondary:hover { background: var(--bg-soft); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn.soon { cursor: default; }

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px;
}
.hero p.lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Hero demo: a Mac display whose windows tile themselves */
.stage { position: relative; margin: 52px auto 0; width: min(100%, 900px); }
.stage::before {
  content: ""; position: absolute; inset: 8% -6% -4%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(20px);
}
.display {
  padding: 10px; border-radius: 20px; background: #1c1c1e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.45), 0 12px 24px -8px rgba(0, 0, 0, 0.25);
}
.screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 10%, #3f86c9 0%, transparent 55%),
    radial-gradient(90% 80% at 90% 100%, #123f75 0%, transparent 60%),
    linear-gradient(160deg, #2a6aa8, #0d2a4f);
  container-type: inline-size;
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 4.5%; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.6%;
  background: rgba(246, 246, 248, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f; font-size: 1.45cqw;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 1.6cqw; white-space: nowrap; }
.mb-right svg { width: 1.7cqw; height: 1.5cqw; }
.ws-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.1cqw; height: 1.9cqw;
  padding: 0 0.4cqw; border-radius: 0.45cqw; background: #1d1d1f; color: #fff; font-weight: 700; font-size: 1.25cqw;
}

.win {
  position: absolute; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 0.9cqw; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1.2cqw 3cqw -0.8cqw rgba(0, 0, 0, 0.45);
  transition: left .75s cubic-bezier(.2, .85, .25, 1), top .75s cubic-bezier(.2, .85, .25, 1),
              width .75s cubic-bezier(.2, .85, .25, 1), height .75s cubic-bezier(.2, .85, .25, 1);
}
.win.parked { transition-duration: .6s; }
.tb {
  flex: none; height: 2.6cqw; display: flex; align-items: center; gap: 0.8cqw; padding: 0 0.9cqw;
  background: #ececee; border-bottom: 1px solid #dcdce0; color: #4a4a4f; font-size: 1.05cqw; font-weight: 600;
}
.tb .t { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 4cqw; }
.dots { display: flex; gap: 0.45cqw; }
.dots i { width: 0.95cqw; height: 0.95cqw; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.b { flex: 1; padding: 1.4cqw; display: flex; flex-direction: column; gap: 0.9cqw; overflow: hidden; }
.ln { display: block; height: 0.8cqw; border-radius: 1cqw; background: #e4e7ea; flex: none; }
.ln.h { height: 1.3cqw; background: #c9ced4; }
.win.code .tb { background: #2a2b2f; border-color: #1b1c1f; color: #c8c8cc; }
.b.code { background: #1e1f22; }
.ln.c { background: #3c4b52; }
.ln.c:nth-child(3n + 1) { background: #3fb68b; }
.ln.c:nth-child(4n + 2) { background: #7c9cff; }
.b.chat { gap: 1.1cqw; background: #fafafa; }
.bub { display: block; height: 2.6cqw; width: 58%; border-radius: 1.3cqw; background: #e5e5ea; flex: none; }
.bub.r { align-self: flex-end; background: #0b5cad; opacity: .85; }
.bub.s { width: 38%; }
.b.web { padding: 0; gap: 0.9cqw; }
.b.web .addr { display: block; height: 2.2cqw; margin: 1cqw 1.4cqw 0; border-radius: 1.1cqw; background: #eef0f2; flex: none; }
.b.web .hero-blk { display: block; height: 22%; margin: 0 1.4cqw; border-radius: 0.8cqw; background: linear-gradient(120deg, #cfe9fb, #e2e9f8); flex: none; }
.b.web .ln { margin: 0 1.4cqw; }

.focus-ring {
  position: absolute; pointer-events: none; border-radius: 0.9cqw;
  /* Drawn inside the window's edge so screen edges and the menu bar never clip it. */
  box-shadow: inset 0 0 0 0.4cqw var(--accent), inset 0 0 1.6cqw color-mix(in srgb, var(--accent) 35%, transparent);
  transition: left .75s cubic-bezier(.2, .85, .25, 1), top .75s cubic-bezier(.2, .85, .25, 1),
              width .75s cubic-bezier(.2, .85, .25, 1), height .75s cubic-bezier(.2, .85, .25, 1);
}

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.tabs button {
  font: inherit; font-size: 15px; padding: 7px 14px; min-height: 36px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  .win, .focus-ring { transition: none; }
}

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 12px; text-align: center;
}
.sub { text-align: center; color: var(--muted); font-size: 19px; max-width: 640px; margin: 0 auto 44px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35); }
html { scroll-behavior: smooth; }
.feature svg { width: 30px; height: 30px; color: var(--brand); }
.feature h3 { font-size: 19px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.step h3 { font-size: 19px; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; max-width: 760px; margin: 0 auto; }
.keys div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
kbd {
  font: inherit; font-size: 15px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap;
}

.price {
  max-width: 440px; margin: 0 auto; text-align: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 22px; padding: 36px 28px;
}
.price .amount { font-size: 56px; font-weight: 700; letter-spacing: -0.02em; }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; text-align: left; display: inline-block; }
.price li { padding: 5px 0 5px 28px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price .actions { display: flex; flex-direction: column; gap: 10px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site nav { gap: 18px; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.015em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { text-align: left; font-size: 24px; margin: 36px 0 8px; }

@media (max-width: 820px) {
  .features, .steps { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: minmax(0, 1fr); }
  nav.links { display: none; }
  section { padding: 56px 0; }
}
