/* MacAccel */

:root{
  --paper:#fbfbfd;
  --panel:#ffffff;
  --ink:#1d1d1f;
  --body:#4b4b52;
  --muted:#6e6e73;
  --line:#e3e3e8;
  --soft:#f5f5f7;
  --accent:#e8461c;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth;color-scheme:light;background:var(--paper)}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

::selection{background:#ffd9cd}

a{color:inherit}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

section[id]{scroll-margin-top:72px}

/* ---------- nav ---------- */

.nav{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:28px;
  height:56px;
  padding:0 28px;
  background:rgba(251,251,253,.86);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.wordmark{
  font-size:16px;
  font-weight:600;
  letter-spacing:-.02em;
}

.nav-links{
  display:flex;
  gap:26px;
  margin-left:auto;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}

.nav-links a:hover{color:var(--ink)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:999px;
  font-weight:500;
  letter-spacing:-.01em;
  transition:transform .15s ease, background .15s ease, opacity .15s ease;
}

.btn-small{
  padding:7px 15px;
  font-size:14px;
  background:var(--ink);
  color:#fff;
}

.btn-small:hover{background:#000}

.btn-solid{
  padding:13px 22px;
  font-size:16px;
  background:var(--ink);
  color:#fff;
}

.btn-solid:hover{background:#000;transform:translateY(-1px)}

.link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding-bottom:2px;
}

.link:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- hero ---------- */

.hero{
  max-width:1080px;
  margin:0 auto;
  padding:84px 28px 64px;
  display:grid;
  grid-template-columns:1.04fr .96fr;
  gap:56px;
  align-items:center;
}

.kicker{
  margin:0 0 18px;
  font-size:14px;
  color:var(--muted);
}

h1{
  margin:0 0 22px;
  font-size:48px;
  line-height:.96;
  letter-spacing:-.045em;
  font-weight:700;
}

.lede{
  margin:0;
  max-width:30em;
  font-size:20px;
  line-height:1.52;
  color:var(--body);
}

.cta{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  margin-top:30px;
}

.fine{
  margin:22px 0 0;
  max-width:34em;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}

.hero-figure{
  margin:0;
  padding:18px 18px 14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.diagram{display:block;width:100%;height:auto}

.diagram-labels{
  position:relative;
  height:38px;
  margin-top:2px;
}

.diagram-labels div{
  position:absolute;
  top:0;
  transform:translateX(-50%);
  text-align:center;
  white-space:nowrap;
}

.diagram-labels div:first-child{left:20.6%}
.diagram-labels div:last-child{left:79.4%}

.diagram-labels b{
  display:block;
  font-size:14px;
  font-weight:600;
}

.diagram-labels span{
  display:block;
  font-size:12px;
  color:var(--muted);
}

.hero-figure figcaption{
  margin:12px 4px 2px;
  font-size:12px;
  line-height:1.45;
  color:var(--muted);
  text-align:center;
}

/* ---------- stats strip ---------- */

.strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--panel);
}

.strip dl{
  max-width:1080px;
  margin:0 auto;
  padding:26px 28px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.strip dt{
  font-size:24px;
  font-weight:600;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}

.strip dd{
  margin:3px 0 0;
  font-size:14px;
  color:var(--muted);
}

/* ---------- sections ---------- */

.section{
  max-width:1080px;
  margin:0 auto;
  padding:92px 28px;
}

.section-alt{
  max-width:none;
  padding:0;
  background:var(--soft);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.detection{
  max-width:1080px;
  margin:0 auto;
  padding:84px 28px;
}

.section-head{max-width:640px;margin-bottom:40px}

.section-head h2{
  margin:0 0 12px;
  font-size:32px;
  line-height:1.04;
  letter-spacing:-.035em;
  font-weight:650;
}

.section-head p{
  margin:0;
  font-size:18px;
  line-height:1.55;
  color:var(--body);
}

/* gestures */

.gesture-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}

.gesture{
  border-top:1px solid var(--ink);
  padding-top:22px;
}

.dots{display:flex;gap:7px;margin-bottom:18px}

.dots i{
  width:9px;height:9px;
  border-radius:50%;
  background:var(--ink);
}

.gesture h3{
  margin:0 0 8px;
  font-size:20px;
  letter-spacing:-.02em;
  font-weight:600;
}

.gesture p{
  margin:0;
  font-size:16px;
  line-height:1.6;
  color:var(--body);
}

.note{
  margin:34px 0 0;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
}

/* detection */

.detection .section-head{margin-bottom:34px}

.detection-body{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:64px;
}

.prose p{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.68;
  color:var(--body);
  max-width:56ch;
}

.prose p:last-child{margin-bottom:0}

.spec-list{margin:0;display:grid;gap:0;align-content:start}

.spec-list div{
  padding:16px 0;
  border-top:1px solid var(--line);
}

.spec-list div:last-child{border-bottom:1px solid var(--line)}

.spec-list dt{
  font-size:24px;
  font-weight:600;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}

.spec-list dd{
  margin:3px 0 0;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
}

/* install */

.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  margin:0;
  padding:0;
  list-style:none;
}

.steps li{
  border-top:1px solid var(--ink);
  padding-top:20px;
}

.step-no{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  margin-bottom:14px;
}

.steps h3{
  margin:0 0 8px;
  font-size:20px;
  letter-spacing:-.015em;
  font-weight:600;
}

.steps p{
  margin:0;
  font-size:16px;
  line-height:1.62;
  color:var(--body);
}

code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:14px;
  padding:1px 4px;
  border-radius:4px;
  background:var(--soft);
  border:1px solid var(--line);
}

/* faq */

.faq{border-top:1px solid var(--line)}

.faq details{border-bottom:1px solid var(--line)}

.faq summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 8px;
  font-size:18px;
  font-weight:500;
  letter-spacing:-.01em;
  cursor:pointer;
  list-style:none;
}

.faq summary::-webkit-details-marker{display:none}

.faq summary::after{
  content:"+";
  font-size:20px;
  font-weight:400;
  color:var(--muted);
  transition:transform .18s ease;
}

.faq details[open] summary::after{transform:rotate(45deg)}

.faq p{
  margin:0 0 22px;
  padding:0 8px;
  max-width:70ch;
  font-size:16px;
  line-height:1.68;
  color:var(--body);
}

/* footer */

.footer{
  border-top:1px solid var(--line);
  padding:30px 28px 44px;
  background:var(--panel);
}

.footer-inner{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:16px;
}

.footer-note{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

.footer-links{
  display:flex;
  gap:22px;
  margin-left:auto;
}

.footer-links a{
  font-size:14px;
  color:var(--muted);
  text-decoration:none;
}

.footer-links a:hover{color:var(--ink)}

/* ---------- responsive ---------- */

@media (min-width:901px){
  h1{font-size:64px}
}

@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
    gap:44px;
    padding-top:56px;
  }
  .hero-figure{order:2}
  .lede{font-size:18px}
  .section-head h2{font-size:24px}
  .detection-body{grid-template-columns:1fr;gap:36px}
  .steps{grid-template-columns:1fr;gap:30px}
  .gesture-grid{gap:32px}
}

@media (max-width:700px){
  .nav{padding:0 20px;gap:16px}
  .nav-links{display:none}
  .btn-small{margin-left:auto}
  .brand .wordmark{font-size:14px}
  .hero,.section,.detection,.strip dl{padding-left:20px;padding-right:20px}
  .strip dl{grid-template-columns:1fr 1fr;gap:18px}
  .gesture-grid{grid-template-columns:1fr}
  .footer-inner{gap:14px}
  .footer-links{margin-left:0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
}
