/* zink.ranax.co: quiet type on pure black, and one Razr that stays put while its screen changes. */
:root {
  --ink: #e2e2e4;
  --ink-2: #a6a6ae;
  --ink-3: #6b6b74;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; color-scheme: dark; overflow-x: clip; scroll-snap-type: y mandatory; }
body {
  font: 300 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-2); -webkit-font-smoothing: antialiased; background: #000;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---- sections: one screen each ---- */
section {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  padding: 12vh 28px; text-align: center; position: relative;
}
.inner { max-width: 640px; will-change: transform, opacity; }

/* Feature sections leave the right half to the phone. */
.wrap { width: min(1040px, 100%); display: flex; }
section.feature .inner { text-align: left; max-width: 420px; }
section.feature p.body { margin-left: 0; }

h1 { font: 300 clamp(72px, 13vw, 132px)/1 Fraunces, Georgia, serif; color: var(--ink); letter-spacing: -.01em; }
h2 { font: 300 clamp(34px, 4.6vw, 52px)/1.12 Fraunces, Georgia, serif; color: var(--ink); }
.lede { margin-top: 22px; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); }
p.body { margin: 22px auto 0; max-width: 34ch; font-size: clamp(17px, 2vw, 19px); }
.kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }

.btn {
  display: inline-block; margin-top: 40px; padding: 14px 30px; border-radius: 999px;
  font: 400 15px/1 Inter, sans-serif; color: #000; background: var(--ink);
  transition: background .4s;
}
.btn:hover { background: #fff; }
.more {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 28px; font-size: 13px; color: var(--ink-3); transition: color .4s;
}
.more:hover { color: var(--ink-2); }
.more svg { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

ol.steps { list-style: none; counter-reset: s; margin: 34px auto 0; max-width: 30ch; text-align: left; }
ol.steps li { counter-increment: s; display: flex; gap: 18px; padding: 12px 0; }
ol.steps li::before { content: counter(s); font: 300 22px/1.3 Fraunces, Georgia, serif; color: var(--ink-3); min-width: 14px; }
ol.steps a { color: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .4s; }
ol.steps a:hover { border-color: var(--ink); }
.fine { margin-top: 26px; font-size: 13px; color: var(--ink-3); }

footer {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 13px; color: var(--ink-3);
}
footer a { transition: color .4s; }
footer a:hover { color: var(--ink); }
footer .made a { color: var(--ink-2); }

/* ---- where you are: a quiet column of dots ---- */
nav.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 3; }
nav.dots a { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .5s, transform .5s; }
nav.dots a.on { background: rgba(255, 255, 255, .8); transform: scale(1.35); }

/* ---- the one Razr: held still, its screen changing with each feature ---- */
.dock {
  position: fixed; top: 50%; left: calc(50% + 70px); z-index: 1; pointer-events: none;
  transform: translate3d(0, -50%, 0); opacity: 0;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.dock.on { opacity: 1; }
.dock.off-up { transform: translate3d(0, calc(-50% - 40px), 0); }
.dock.off-down { transform: translate3d(0, calc(-50% + 40px), 0); }
.device { position: relative; width: min(340px, 32vw, calc(68svh * .819)); aspect-ratio: 616 / 752; }
.device > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.device .screen {
  position: absolute; left: 1.2987%; top: 1.0638%; width: 97.4026%; height: 94.016%;
  border-radius: 8.833% / 7.496%; overflow: hidden; background: #000;
}
.device .screen img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.device .screen img.on { opacity: 1; }
.device .blink { position: absolute; inset: 0; background: #000; opacity: 0; }
.device .blink.go { opacity: 1; }

/* Phones: the Razr sits in the upper part of the screen, the words below it. */
@media (max-width: 800px) {
  nav.dots { right: 10px; gap: 12px; }
  /* The words sit low; the phone is centred in the space above them. --dh is its height. */
  :root { --dh: min(300px, 76vw, 44svh); --mid: calc(45svh - 75px); }
  .dock { left: 50%; top: var(--mid); transform: translate3d(-50%, -50%, 0); }
  .dock.off-up { transform: translate3d(-50%, calc(-50% - 30px), 0); }
  .dock.off-down { transform: translate3d(-50%, calc(-50% + 30px), 0); }
  .device { width: calc(var(--dh) * .819); }
  /* Every section exactly one screen, so each glide lands cleanly. */
  section { height: 100svh; min-height: 0; padding: 8svh 24px; overflow: hidden; }
  section.feature { align-items: flex-end; padding-bottom: 9svh; }
  h2 { font-size: clamp(28px, 8vw, 40px); }
  ol.steps { margin-top: 22px; }
  ol.steps li { padding: 8px 0; }
  section.feature .wrap { justify-content: center; }
  section.feature .inner { text-align: center; }
  section.feature p.body { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .more svg { animation: none; }
  .dock { transition: opacity .2s; }
}

/* ---- documents (privacy): a plain, readable column, normal scrolling ---- */
html.doc { scroll-snap-type: none; }
.home {
  position: fixed; top: 22px; left: 26px; z-index: 2;
  font: 300 24px/1 Fraunces, Georgia, serif; color: var(--ink); opacity: .85; transition: opacity .4s;
}
.home:hover { opacity: 1; }
article.doc { max-width: 640px; margin: 0 auto; padding: 18vh 24px 10vh; }
article.doc h1 { font-size: clamp(40px, 7vw, 60px); line-height: 1.1; }
article.doc .updated { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
article.doc h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 52px 0 14px; }
article.doc p, article.doc li { font-size: 17px; color: var(--ink-2); }
article.doc p { margin-top: 14px; }
article.doc ul { margin: 14px 0 0 1.1em; }
article.doc li { margin-top: 10px; padding-left: 4px; }
article.doc b { font-weight: 400; color: var(--ink); }
article.doc a { color: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .25); }
footer.doc-foot { position: static; border-top: 1px solid #1a1a1a; max-width: 640px; margin: 0 auto; }
