/* The apps' own pages on zoxo.app: /zoxoscan/, /noisybit/, /zoxot/ and
   their privacy and support pages. The body's class picks the app's look:
   ZoxoScan and Noisybit are warm paper and red, Noisybit with its rainbow
   keys, Zoxot is the terminal of its icon, near-black with teal and gold. */
:root, .zoxoscan, .noisybit {
  --ink: #1d1b2e;
  --soft: #5b5870;
  --paper: #fffaf2;
  --panel: #f6eedf;
  --accent: #e5484d;
  --line: #ece4d6;
  --frame: #1d1b2e;
  --glow: rgba(229, 72, 77, 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root, .zoxoscan, .noisybit {
    --ink: #f4f1ea;
    --soft: #b6b2c4;
    --paper: #17151f;
    --panel: #201d2a;
    --accent: #ff7a7e;
    --line: #2c2938;
    --frame: #050409;
    --glow: rgba(255, 122, 126, 0.16);
    color-scheme: dark;
  }
}
.zoxot {
  --ink: #e8f1ef;
  --soft: #93a6a3;
  --paper: #0c1113;
  --panel: #131b1e;
  --accent: #3fd6c0;
  --gold: #f2c14e;
  --line: #22302f;
  --frame: #000;
  --glow: rgba(63, 214, 192, 0.16);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  .zoxot {
    --ink: #10201e;
    --soft: #4f6461;
    --paper: #f6faf9;
    --panel: #e9f1ef;
    --accent: #0f8a7a;
    --gold: #a86f00;
    --line: #d3e0dd;
    --frame: #0c1113;
    --glow: rgba(15, 138, 122, 0.16);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.noisybit::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #e5484d, #f59e0b, #eab308, #22c55e, #3b82f6, #8b5cf6);
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.wide { max-width: 66rem; }
a { color: var(--accent); }

header { display: flex; align-items: center; gap: 0.8rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
header img { width: 44px; height: 44px; border-radius: 10px; display: block; }
header .name { color: var(--ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
header a { text-decoration: none; font-weight: 600; }
header a[aria-current] { color: var(--ink); }

h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 0.25rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.updated { color: var(--soft); margin-top: 0; }
dt { font-weight: 600; margin-top: 1.1rem; }
dd { margin: 0.2rem 0 0; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre .p { color: var(--accent); user-select: none; }
.note { color: var(--soft); font-size: 0.95rem; }

/* ---- an app's front page */
.phone {
  margin: 0;
  border: 9px solid var(--frame);
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--frame);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}
.hero .icon { width: 84px; height: 84px; border-radius: 20px; display: block; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); letter-spacing: -0.02em; margin: 1.25rem 0 0.4rem; }
.hero .tagline { font-size: 1.35rem; line-height: 1.35; margin: 0; font-weight: 600; }
.hero .lede { color: var(--soft); font-size: 1.08rem; margin: 1rem 0 0; }
.hero .phone { position: relative; }
.hero .phone::after { content: none; }
.hero > figure { filter: drop-shadow(0 0 60px var(--glow)); }
.get { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.get .store img { height: 48px; display: block; }
.get .button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.get .small, .small { color: var(--soft); font-size: 0.92rem; }

.band { border-top: 1px solid var(--line); padding: 3rem 0; }
.band > h2 { font-size: 1.7rem; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.band > .sub { color: var(--soft); margin: 0 0 2rem; max-width: 40rem; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 13.5rem;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  margin: 0 -0.25rem;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .phone { border-width: 7px; border-radius: 1.9rem; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line); }
.gallery figcaption { margin-top: 0.8rem; font-weight: 600; line-height: 1.35; }
.gallery figcaption span { display: block; color: var(--soft); font-weight: 400; font-size: 0.92rem; margin-top: 0.2rem; }

.feature {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1fr) 15rem; }
.feature.flip > figure { order: 2; }
.feature h3 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.feature p { margin: 0 0 0.8rem; }
.feature ul { margin: 0; padding-left: 1.1rem; color: var(--soft); }
.feature li { margin: 0.25rem 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.facts b { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; }
.facts span { color: var(--soft); font-size: 0.95rem; }

footer { margin-top: 3rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.9rem; }
footer .wrap { display: flex; gap: 1.1rem; flex-wrap: wrap; }
footer .right { margin-left: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; }
  .hero > figure { width: 14rem; margin: 0 auto; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .feature > figure, .feature.flip > figure { order: 0; width: 12rem; margin: 0 auto; }
  .gallery { grid-auto-columns: 11rem; }
  header .name { display: none; }
}
