:root {
  color-scheme: dark;
  --ground: #0a1716;
  --ink: #eaf3ec;
  --accent: #a1decb;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 600 18px/1.6 Nunito, system-ui, sans-serif;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(56px, 7.5vw, 108px);
  margin: 22px 0;
}
h2 {
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 26px;
}
h3 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 18px;
}
p {
  max-width: 58ch;
  margin-bottom: 1.1em;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}
.section {
  padding: 96px 0;
  overflow: clip;
}
.eyebrow {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.055em;
  margin-bottom: 28px;
}
.lead,
.deck {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.5;
}
.note,
figcaption {
  font-size: 16px;
  line-height: 1.6;
}
.note {
  max-width: 75ch;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: var(--ground);
  z-index: 50;
}
.skip:focus {
  top: 15px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-size: 16px;
  text-decoration: none;
  padding-block: 10px;
}
nav a:hover {
  text-decoration: underline;
}
.open-app {
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 10px 20px;
}
.intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #061617;
}
.intro-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(6, 22, 23, 0.98) 0%,
      rgba(6, 22, 23, 0.94) 35%,
      rgba(6, 22, 23, 0.2) 100%
    ),
    url("../images/pdeli-looks/tree-python.webp") right center/cover;
}
.intro-inner {
  padding-block: 85px 80px;
}
.wordmark {
  font-size: clamp(32px, 4.7vw, 64px);
  width: max-content;
  margin: 0 0 60px 15px;
  --hue: 158;
}
.wordmark .nb {
  animation: none;
}
.intro .eyebrow {
  margin: 0;
}
.pill,
.replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1.5px solid currentColor;
  border-radius: 60px;
  padding: 12px 24px;
  min-height: 48px;
  text-decoration: none;
  background: var(--ground);
  color: var(--ink);
  font-weight: 800;
}
.pill:hover,
.replay:hover {
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 5px currentColor;
}
.start {
  --ground: #f0e4c9;
  --ink: #192a26;
  --accent: #274d40;
  background: var(--ground);
  color: var(--ink);
  color-scheme: light;
}

.first-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  counter-reset: steps;
  gap: 38px;
  margin: 42px 0 26px;
}
.first-steps li {
  counter-increment: steps;
  border-top: 1px solid #7b897a;
  padding-top: 22px;
}
.first-steps li:before {
  content: "0" counter(steps);
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 900;
}
.first-steps b {
  font-size: 23px;
}
.first-steps p {
  margin-top: 12px;
}
kbd {
  font: 800 16px Nunito, system-ui, sans-serif;
  border: 1px solid currentColor;
  border-bottom-width: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.text-link {
  display: inline-block;
  padding: 12px 0;
  font-weight: 900;
}
.hands {
  --ground: #090f21;
  --ink: #e4efff;
  --accent: #a3cfff;
  background: var(--ground);
  color: var(--ink);
}
.lesson {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
}
.lesson-copy p {
  max-width: 40ch;
}
.aside {
  margin-top: 30px;
  color: var(--accent);
  font-weight: 900;
}
.demo {
  min-width: 0;
}
.demo-stage {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
  perspective: 1000px;
  margin-bottom: 24px;
}
.gesture-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  max-width: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.gesture-orbit i {
  position: absolute;
  inset: -13px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0.65;
}
.gesture-orbit i + i {
  inset: -26px;
  border-style: solid;
  opacity: 0.3;
}
.demo-device {
  position: relative;
  width: 226px;
  height: 326px;
  border: 3px solid #aec7c3;
  border-radius: 32px;
  background: #061010;
  padding: 9px;
  box-shadow: 6px 9px 0 #020505, 0 0 0 2px #061010;
  transform-style: preserve-3d;
}
.demo-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #020505;
}
.demo-pattern {
  position: absolute;
  width: 480px;
  height: 480px;
  left: 50%;
  top: 50%;
  margin: -240px;
  background-position: center;
  background-size: cover;
}
.screen-shade {
  position: absolute;
  inset: 0;
  background: #02091555;
}
.device-notch {
  position: absolute;
  top: 16px;
  left: calc(50% - 28px);
  width: 56px;
  height: 10px;
  border-radius: 8px;
  background: #071410;
}
.gesture-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #f6f2cf;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}
.gesture-path .path-arrow {
  stroke-dasharray: none;
}
.finger {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px;
  background: #fff8da;
  border: 3px solid #102029;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff8da99;
}
.diagram-label {
  position: absolute;
  bottom: 0;
  font-size: 16px;
  font-weight: 900;
  background: var(--ground);
  padding: 4px 14px;
}
.demo figcaption {
  min-height: 52px;
  margin-bottom: 20px;
}
.demo-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.replay {
  font-size: 16px;
  padding: 10px 19px;
  min-width: 172px;
}
.scrubber {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  font-size: 16px;
  white-space: nowrap;
}
input[type="range"] {
  width: 100%;
  min-width: 70px;
  height: 44px;
  accent-color: var(--accent);
  cursor: pointer;
}
.bands-lesson {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
  margin-top: 90px;
  padding-top: 60px;
  border-top: 1px solid #536279;
}
.band-map {
  border: 2px solid var(--accent);
  border-radius: 26px;
  padding: 22px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(#090f21cc, #090f21ee),
    url("../images/pdeli-looks/blue-ringed-octopus.webp") center/cover;
}
.band-map div {
  text-align: center;
  border-right: 1px dashed var(--accent);
  padding: 5px;
}
.band-map div:last-child {
  border: 0;
}
.band-map span {
  display: block;
  font-size: 44px;
  line-height: 1.4;
}
.band-map b {
  font-size: 18px;
}
.bands figcaption {
  text-align: center;
  padding-top: 12px;
}
.quick-gestures {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 50px;
}
.quick-gestures p {
  margin: 0;
}
.quick-gestures b,
.quick-gestures span {
  display: block;
}
.motion {
  --ground: #101c17;
  --ink: #eaf5d8;
  --accent: #c4e9b0;
  background: var(--ground);
  color: var(--ink);
}
.motion > .wrap > .lead {
  max-width: 60ch;
}
.motion-lesson {
  margin-top: 70px;
}
.motion-lesson h3:not(:first-child) {
  margin-top: 36px;
}
[data-demo="wrist"] .gesture-path,
[data-demo="wrist"] .finger,
[data-demo="marble"] .gesture-path,
[data-demo="marble"] .finger {
  display: none;
}
.marble-lesson {
  --ground: #291412;
  --ink: #fff0d4;
  --accent: #ffceaa;
  margin-top: 96px;
  padding-top: 80px;
  border-top: 1px solid #668072;
}
.marble-lesson .diagram-label {
  background: #101c17;
}
.marble-lesson .demo-device {
  width: 260px;
  height: 310px;
}
.marble-track,
.marble,
.low-edge {
  display: none;
}
[data-demo="marble"] .marble-track {
  display: block;
  position: absolute;
  width: 176px;
  height: 176px;
  top: 50%;
  left: 50%;
  margin: -88px;
  border: 2px dashed #fff0d4;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #291412bb, inset 0 0 0 7px #291412bb;
}
[data-demo="marble"] .marble {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  margin: -12.5px;
  background: radial-gradient(
    circle at 30% 28%,
    #fff 0 10%,
    #bfeef5 20%,
    #346773 70%,
    #102927
  );
  border: 2px solid #fff8e2;
  border-radius: 50%;
  box-shadow: 3px 6px 5px #0009;
}
[data-demo="marble"] .low-edge {
  display: block;
  position: absolute;
  inset: 4px;
  border: 4px solid transparent;
  border-right-color: #fff0d4;
  border-radius: 18px;
}
.menu-section {
  --ground: #eee4cd;
  --ink: #1c2b2c;
  background: var(--ground);
  color: var(--ink);
  color-scheme: light;
}
.menu-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10%;
}
.menu-notes {
  border-left: 1px solid #6f817a;
  padding-left: 36px;
  align-self: center;
}
dl {
  margin: 0;
}
dt {
  font-weight: 900;
}
dd {
  margin: 4px 0 22px;
}
.troubleshooting details {
  border-top: 1px solid #638379;
  padding: 0;
}
summary {
  cursor: pointer;
  font-weight: 900;
  padding: 22px 0;
  min-height: 48px;
}
details p,
details dl {
  padding: 0 0 20px;
}
.keys {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.keys dd {
  margin: 0;
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-block: 45px;
  border-top: 1px solid #638379;
  font-size: 16px;
}
footer a {
  padding-block: 10px;
}
footer p {
  width: 100%;
}
@media (min-width: 1500px) {
  .intro-pattern {
    background-size: auto, 75% auto;
    background-repeat: no-repeat;
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  nav {
    gap: 16px;
  }
  nav .open-app {
    display: none;
  }
  .first-steps {
    gap: 24px;
  }
  .lesson {
    gap: 5%;
  }
  .demo-stage {
    height: 380px;
  }
  .gesture-orbit {
    width: 280px;
    height: 280px;
  }
  .demo-device {
    width: 205px;
    height: 300px;
  }
  .demo-controls {
    gap: 8px;
  }
  .scrubber {
    flex-basis: 100%;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .masthead {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  .intro-inner {
    padding-block: 56px;
  }
  .intro-pattern {
    background-image: linear-gradient(90deg, #061617f5, #061617e3),
      url("../images/pdeli-looks/tree-python.webp");
  }
  .wordmark {
    margin-bottom: 48px;
  }
  .section {
    padding-block: 60px;
  }

  .first-steps,
  .lesson,
  .bands-lesson,
  .menu-layout {
    grid-template-columns: 1fr;
  }
  .first-steps {
    margin-top: 30px;
    gap: 12px;
  }
  .first-steps li {
    padding-top: 16px;
  }
  .first-steps li:before {
    float: left;
    margin: 4px 14px 0 0;
  }
  .lesson {
    gap: 28px;
  }
  .demo {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }
  .demo-stage {
    height: 395px;
  }
  .demo-device {
    width: 220px;
    height: 320px;
  }
  .demo-controls {
    gap: 10px;
  }
  .demo figcaption {
    min-height: 0;
  }
  .bands-lesson {
    margin-top: 55px;
    padding-top: 36px;
    gap: 16px;
  }
  .quick-gestures {
    margin-top: 32px;
    display: grid;
  }
  .motion-lesson {
    margin-top: 42px;
  }
  .marble-lesson {
    margin-top: 56px;
    padding-top: 44px;
  }
  .menu-notes {
    margin-top: 34px;
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid #6f817a;
  }
  .keys {
    grid-template-columns: 90px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.music-option {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #7b897a;
}
.music-option p {
  max-width: 70ch;
}

.app-glance {
  background: #08131a;
  color: #eaf3ec;
}
.app-glance .wrap {
  width: min(1440px, calc(100% - 64px));
}
.glance-frame {
  margin-top: 36px;
  border: 1px solid #a1decb;
  border-radius: 24px;
  overflow: clip;
  box-shadow: 0 0 0 6px #08131a, 0 0 0 7px #597d78;
  background: #080f14;
}
.glance-frame iframe {
  display: block;
  width: 100%;
  height: clamp(560px, 76svh, 860px);
  border: 0;
}
.glance-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
}
.glance-caption .note {
  margin: 0;
}
.glance-caption .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 700px) {
  .app-glance .wrap {
    width: calc(100% - 32px);
  }
  .glance-frame {
    border-radius: 16px;
  }
  .glance-frame iframe {
    height: 620px;
    height: clamp(500px, 78svh, 680px);
  }
}
