/* Palette lifted from the Changer 3 skin (Changer/Changer/SkeuoScreen.swift). */
:root {
  --ground-top: #1f1f24;
  --ground: #0a0a0d;
  --well: #0a080d;
  --accent: #9e4deb;
  --lit: #d19eff;
  --chrome-hi: #c7c7d1;
  --chrome-mid: #757582;
  --chrome-lo: #33333b;
  --bar-hi: #4d4d57;
  --bar-mid: #292930;
  --bar-lo: #1a1a1f;
  --ink: #e8e6ee;
  --ink-dim: #a3a1ac;
  --ink-faint: #6b6975;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:
    Menlo, Consolas, "DejaVu Sans Mono", "Lucida Console", monospace;
  --led: "DSEG14", var(--mono);
  --measure: 64ch;
  --radius: 14px;
  color-scheme: dark;
}

@font-face {
  font-family: "DSEG14";
  src: url("fonts/DSEG14Classic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground)
    linear-gradient(180deg, var(--ground-top) 0, var(--ground) 560px)
    no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
a {
  color: var(--lit);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--lit);
  outline-offset: 3px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(1080px, 100% - 2 * clamp(16px, 4vw, 40px));
  margin-inline: auto;
}

/* ---------- materials ---------- */
.brushed {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(
      180deg,
      var(--chrome-hi),
      var(--chrome-mid) 55%,
      var(--chrome-lo)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.65);
}
.barmetal {
  background: linear-gradient(
    180deg,
    var(--bar-hi),
    var(--bar-mid) 55%,
    var(--bar-lo)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 4px 14px rgba(0, 0, 0, 0.6);
}
.well {
  background: var(--well);
  border: 1px solid #000;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.neon {
  border: 3px solid var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 0 7px rgba(158, 77, 235, 0.95),
    0 0 15px rgba(158, 77, 235, 0.7),
    0 0 26px rgba(158, 77, 235, 0.5);
}
.readout {
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--lit);
  text-shadow:
    0 0 4px var(--accent),
    0 0 9px rgba(158, 77, 235, 0.7);
  letter-spacing: 0.06em;
}
.led {
  font-family: var(--led);
  color: var(--lit);
  text-shadow:
    0 0 4px var(--accent),
    0 0 9px rgba(158, 77, 235, 0.7);
  font-variant-numeric: tabular-nums;
}
/* Engraved into the metal: dark ink with a lit lower edge. */
.engraved {
  color: #17171c;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    0 -1px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- faceplate ---------- */
.faceplate {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  border-bottom: 1px solid #000;
}
.faceplate .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: 0.1em;
}
.chip {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
/* The TestFlight invite: a label engraved into the faceplate, then the chip. */
.join {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.join-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.join:hover .chip,
.join:focus-visible .chip {
  color: #fff;
  background: #16101c;
}
@media (max-width: 480px) {
  .join-label {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(48px, 9vw, 112px) clamp(32px, 5vw, 56px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.6),
    0 0 40px rgba(158, 77, 235, 0.25);
}
.hero h1 small {
  display: block;
  font-size: 0.58em;
  font-weight: 700;
  font-style: italic;
  color: var(--lit);
  margin-top: 0.18em;
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  margin-top: 1.4em;
  color: var(--ink);
}
.hero .lede + .lede {
  color: var(--ink-dim);
  margin-top: 0;
}
.disc-art {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
}
.disc-art::before {
  content: "";
  position: absolute;
  inset: 8% 8%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(158, 77, 235, 0.55),
    rgba(158, 77, 235, 0) 70%
  );
  filter: blur(28px);
  z-index: -1;
}
.disc-art img {
  border-radius: 50%;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- the readout strip: the one moving part on the page ---------- */
.strip {
  padding-block: 8px clamp(40px, 6vw, 72px);
}
.strip .panel {
  border-radius: 18px;
  padding: 14px;
}
.strip .well {
  border-radius: 10px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 32px;
  align-items: baseline;
  min-height: 92px;
}
.counter {
  display: grid;
  gap: 2px;
}
.counter .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
.counter .led {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1;
  position: relative;
}
.counter .led .ghost {
  position: absolute;
  inset: 0;
  color: rgba(209, 158, 255, 0.13);
  text-shadow: none;
}
.strip .title {
  font-size: clamp(14px, 1.7vw, 19px);
  line-height: 1.3;
  align-self: center;
}
@media (max-width: 640px) {
  .strip .well {
    grid-template-columns: 1fr 1fr;
  }
  .strip .title {
    grid-column: 1 / -1;
  }
}

/* ---------- sections ---------- */
section {
  padding-block: clamp(36px, 6vw, 84px);
}
section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-variation-settings: "wdth" 110;
  color: #fff;
  margin-bottom: 0.6em;
  text-wrap: balance;
}
h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 0.35em;
  font-variation-settings: "wdth" 105;
}
.muted {
  color: var(--ink-dim);
}

/* how it works: an actual sequence, so it is numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.step {
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 28%,
      rgba(255, 255, 255, 0.5),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--chrome-hi),
      var(--chrome-mid) 55%,
      var(--chrome-lo)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 3px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 14px;
}
.step .n span {
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.step p {
  margin: 0;
  color: var(--ink-dim);
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* spec sheet: the back of the box */
.spec {
  border-radius: var(--radius);
  padding: 10px 0;
  margin-top: 8px;
}
.spec dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
}
.spec dt,
.spec dd {
  margin: 0;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.spec dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding-top: 17px;
}
.spec dd {
  color: var(--ink);
}
.spec dd .muted {
  display: block;
  font-size: 15px;
}
.spec dt:first-of-type,
.spec dt:first-of-type + dd {
  border-top: 0;
}
@media (max-width: 560px) {
  .spec dl {
    grid-template-columns: 1fr;
  }
  .spec dt {
    padding-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .spec dd {
    border-top: 0;
    padding-top: 6px;
  }
}

/* feature prose */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
}
.feature p {
  color: var(--ink-dim);
}
.feature p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* skins: screenshot in a chrome bezel */
.skins .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.phone {
  justify-self: center;
  width: min(100%, 340px);
  border-radius: 44px;
  padding: 10px;
}
.phone img {
  border-radius: 36px;
  background: #000;
}
.phone-cap {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  max-width: none;
}
@media (max-width: 760px) {
  .skins .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- the simple page: pitch + shelf of caddies ---------- */
.pitch {
  padding-block: 0 clamp(24px, 4vw, 48px);
}
.pitch .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 44ch;
}
.pitch .shout {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.25em 0 0.35em;
  max-width: none;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.6),
    0 0 40px rgba(158, 77, 235, 0.25);
}
.pitch .shout em {
  color: var(--lit);
}
.pitch .shout sup {
  font-size: 0.4em;
  font-style: normal;
  color: var(--ink-dim);
  vertical-align: 0.9em;
}
.pitch .footnote {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 2.4em;
}

.shelf {
  padding-block: clamp(16px, 3vw, 32px) clamp(40px, 6vw, 72px);
}
.shelf .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}
.shelf figure {
  margin: 0;
}
.shelf .phone {
  width: 100%;
  border-radius: 30px;
  padding: 7px;
}
.shelf .phone img {
  border-radius: 24px;
}
.shelf figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 15px;
}
@media (max-width: 760px) {
  .shelf .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- footer ---------- */
footer {
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: 28px 40px;
  border-top: 1px solid #000;
  font-size: 15px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  color: #2a2a32;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
footer p {
  margin: 0;
  max-width: none;
}
footer .engraved {
  font-weight: 800;
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .disc-art {
    width: min(70%, 320px);
    order: -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
