:root {
  color-scheme: dark;
  --ink: #eaf3ec;
  --ground: #0a1716;
  --accent: #93cdbb;
  --gold: #ffe0a4;
  --x: 0;
  --y: 0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
p {
  max-width: 62ch;
  margin-bottom: 1.2em;
}
h1,
h2 {
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(44px, 5.2vw, 78px);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  margin-bottom: 28px;
}
h3 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 18px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  font: inherit;
  color: inherit;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 6px;
}
img,
video {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(1320px, calc(100% - 112px));
  margin-inline: auto;
}
.eyebrow {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.035em;
  margin-bottom: 22px;
}
.detail,
.input-note,
figcaption,
.legal {
  font-size: 16px;
  line-height: 1.55;
}
.detail {
  margin-top: 26px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  padding: 12px;
  background: #eaf3ec;
  color: #0a1716;
  z-index: 50;
}
.skip:focus {
  top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 54px;
  padding: 11px 25px;
  border: 1px solid var(--accent);
  border-radius: 40px;
  box-shadow: 0 0 0 5px var(--ground), 0 0 0 6px var(--accent);
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, background-color 140ms ease;
}
.button:hover {
  transform: translateY(-3px);
  background: #17352e;
}
.button:active {
  transform: translateY(0) scale(0.97);
}
.primary {
  background: #e2f1d4;
  color: #10251c;
  border-color: #e2f1d4;
}
.primary:hover {
  background: #f0f6e2;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}
.actions {
  display: flex;
  gap: 18px 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-block: 30px;
}
.wordmark {
  font-size: clamp(36px, 4.25vw, 60px);
  width: max-content;
  --hue: 155;
  margin: 14px 14px 44px;
}
.wordmark .nb {
  letter-spacing: -0.033333em;
  animation: none !important;
}
.opening {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #081612;
}
.pattern {
  position: absolute;
  inset: -7%;
  background: url("../images/pdeli-looks/tie-dye.webp") center/cover;
  z-index: -2;
  transform: translate(calc(var(--x) * 1.3%), calc(var(--y) * 1.3%)) scale(1.07);
  transition: transform 110ms ease-out;
}
.opening:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(5, 19, 15, 0.97) 0%,
      rgba(5, 19, 15, 0.95) 32%,
      rgba(5, 19, 15, 0.9) 46%,
      rgba(5, 19, 15, 0.46) 70%,
      rgba(5, 19, 15, 0.25)
    ),
    linear-gradient(0deg, #081612, transparent 30%);
}
.hero-inner {
  padding-block: 38px 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  align-items: center;
  gap: 38px;
  min-height: 560px;
}
.hero-copy {
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
}
.hero-deck {
  max-width: 43ch;
  font-size: 20px;
}
.input-note {
  max-width: 52ch;
}
.family {
  min-width: 0;
}
.family-stage {
  width: 100%;
  isolation: isolate;
}
.family figcaption {
  color: #f1f5ed;
  background: #0a1716;
  padding: 7px 12px;
  width: fit-content;
  margin: 14px auto 0;
  border-radius: 4px;
}
.choose-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  font-size: 16px;
  border-top: 1px solid #7da28c;
  padding-top: 18px;
}
.device-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.device-choices a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 800;
}
.device-choices a[aria-current="true"] {
  border-color: var(--accent);
  background: #173429;
}
.device-choices a:hover {
  background: #173429;
}
.all-devices {
  margin-left: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 15px;
}
#nav-sentinel {
  height: 1px;
  margin-bottom: -1px;
}
.site-header {
  color: var(--nav-ink, #eaf3ec); --accent: var(--nav-accent, #93cdbb);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-ground, #0b1b18);
  transition: box-shadow 180ms ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 900;
  font-size: 21px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.site-header .nav-action {
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 30px;
}
.nav-rails {
  height: 13px;
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.nav-rails i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #689c8c;
}
.nav-rails i:nth-child(2) {
  top: 5px;
  left: 10%;
  width: 80%;
  background: #b6c8a3;
  transform: translateX(calc(var(--x) * 35px));
}
.nav-rails i:nth-child(3) {
  top: 11px;
  left: 27%;
  width: 46%;
  background: #6a9f87;
  transform: translateX(calc(var(--x) * -50px));
}
.is-stuck {
  box-shadow: 0 8px 25px #06100ccc;
}
.is-stuck .nav-inner {
  animation: nav-enter 180ms ease-out;
}
.menu-toggle {
  display: none;
}
.section-intro {
  padding-block: 95px 35px;
}
.section-intro p:last-child {
  max-width: 52ch;
}
.device-story {
  --ground: #0b211d;
  --accent: #9fd0b0;
  background: var(--ground);
  color: #e9f4e7;
  padding-block: 90px;
  overflow: hidden;
}
.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 110px;
}
.story-copy p {
  max-width: 47ch;
}
.story-copy .button {
  margin-top: 10px;
}
.product-portrait {
  position: relative;
  padding: 26px 0;
  min-width: 0;
}
.product-portrait:before,
.product-portrait:after {
  content: "";
  position: absolute;
  inset: -12px -28px 12px;
  border: 1px solid var(--accent);
  border-radius: 48px;
  pointer-events: none;
  /* --px/--py belong to this portrait: apple.js sets them only while the pointer is
     over it, in its own coordinates. The page-wide --x/--y moved every portrait's
     rings at once. */
  transform: translate(calc(var(--px, 0) * 3px), calc(var(--py, 0) * 3px));
  transition: transform 110ms ease-out;
}
.product-portrait:after {
  inset: -24px -40px 0;
  border-color: #648c70;
  border-radius: 60px;
  transform: translate(calc(var(--px, 0) * -5px), calc(var(--py, 0) * -5px));
}
.product-portrait figcaption {
  margin-top: 32px;
  padding-inline: 6px;
}
.product-portrait .device-mac {
  margin-inline: 15px;
}
.story-iphone {
  --ground: #181326;
  --accent: #c8b5ea;
  color: #f0e7ff;
}
.story-iphone .product-portrait {
  width: 64%;
  justify-self: center;
}
.story-iphone .product-portrait .device-iphone {
  width: 68%;
  margin-inline: auto;
}
.story-iphone .product-portrait:after {
  border-color: #8f72ad;
}
.story-ipad {
  --ground: #1b2010;
  --accent: #c7d89a;
  color: #f0f3df;
}
.story-ipad .product-portrait {
  padding: 30px 12px;
}
.story-tv {
  --ground: #0e1a2b;
  --accent: #a8c4ea;
  color: #e7f0ff;
}
.story-tv .product-portrait {
  padding-bottom: 34px;
}
.story-tv .product-portrait figcaption {
  margin-top: 45px;
}
.story-tv .product-portrait:after {
  border-color: #759acb;
}
.device-story:nth-child(even) .product-portrait {
  grid-column: 2;
  grid-row: 1;
}
.device-story:nth-child(even) .story-copy {
  grid-column: 1;
  grid-row: 1;
}
.section-space {
  padding-block: 100px;
}
.listening {
  background: #ece4d1;
  color: #182a25;
  --ground: #ece4d1;
  --accent: #315549;
}
.listening-heading {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 75px;
  align-items: start;
}
.listening-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  margin-top: 45px;
  padding-block: 28px;
  border-top: 1px solid #647368;
}
.listening-pair > div {
  position: relative;
  padding-left: 55px;
}
.signal {
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 38px;
}
.looks {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #090e1c;
  --ground: #090e1c;
  --accent: #a4bfeb;
  color: #e9efff;
}
.looks-pattern {
  position: absolute;
  inset: -7%;
  background: linear-gradient(
      90deg,
      rgba(9, 14, 28, 0.98),
      rgba(9, 14, 28, 0.92)
    ),
    url("../images/pdeli-looks/blue-ringed-octopus.webp") center/cover;
  z-index: -1;
  transform: translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) scale(1.04);
  transition: transform 110ms;
}
.looks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.orbit {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 65px;
}
.orbit-crop {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  overflow: hidden;
}
.orbit-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(calc(var(--x) * 2%), calc(var(--y) * 2%))
    rotate(calc(var(--x) * 2deg)) scale(1.13);
  transition: transform 110ms;
}
.orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #a8c6ef;
  stroke-width: 1;
  transform: rotate(calc(var(--x) * 4deg));
  transition: transform 110ms;
}
.orbit circle:nth-child(1) {
  stroke-dasharray: 26 5 11 3 47 8;
}
.orbit circle:nth-child(2) {
  stroke: #f3dba4;
  stroke-dasharray: 17 3 31 4 10 5 27 3;
}
.orbit circle:nth-child(3) {
  stroke: #a3d6cf;
  stroke-dasharray: 9 4 37 3 26 6 12 3;
}
.orbit figcaption {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  margin-top: 18px;
  text-align: center;
}
.room {
  background: #17150c;
  --ground: #17150c;
  --accent: #e5c98b;
  color: #f5edd7;
}
.room-heading {
  max-width: 760px;
  margin-bottom: 55px;
}
.lights-vid video {
  width: 100%;
  border-radius: 28px;
  border: 1px solid #cbb777;
  box-shadow: 0 0 0 9px #17150c, 0 0 0 10px #867e55;
  aspect-ratio: 16/9;
}
.lights-vid figcaption {
  max-width: 85ch;
  margin-top: 30px;
}
.pricing {
  background: #0c211d;
  --ground: #0c211d;
  --accent: #99c9b1;
}
.price-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-block: 45px;
}
.price-columns > div {
  border-top: 1px solid #7ba38d;
  padding-top: 28px;
}
.price-label {
  font-size: 20px;
  font-weight: 900;
  color: #f0e2af;
}
.android {
  padding-block: 45px;
}
.android details {
  border-block: 1px solid #6a8d7d;
  padding-block: 20px;
}
.android summary {
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  min-height: 44px;
}
.android details p {
  margin-top: 20px;
}
.android .text-link {
  margin-right: 30px;
}
.notice {
  padding-block: 25px;
}
.notice p {
  max-width: 92ch;
  font-size: 16px;
}
footer {
  padding-block: 40px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 30px;
}
.footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.legal {
  max-width: 92ch;
}
@keyframes nav-enter {
  from {
    transform: translateY(-5px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1550px) {
  .hero-grid {
    min-height: 620px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 72px);
  }
  .hero-grid {
    gap: 25px;
    grid-template-columns: 1fr 1fr;
  }
  .hero-deck {
    font-size: 18px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav a {
    font-size: 16px;
  }
  .brand span {
    display: none;
  }
  .story-inner {
    gap: 80px;
  }
  .product-portrait:before {
    inset: -10px -15px 14px;
  }
  .product-portrait:after {
    inset: -20px -25px 4px;
  }
  .looks-grid {
    gap: 50px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 90px;
  }
  .wrap {
    width: calc(100% - 44px);
  }
  h1 {
    font-size: clamp(40px, 8.6vw, 62px);
  }
  h2 {
    font-size: clamp(34px, 7.5vw, 48px);
  }
  .hero-inner {
    padding-top: 14px;
  }
  .wordmark {
    font-size: 40px;
    margin: 18px 13px 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero-deck {
    max-width: 50ch;
  }
  .opening:after {
    background: linear-gradient(
      180deg,
      rgba(5, 19, 15, 0.96),
      rgba(5, 19, 15, 0.94) 46%,
      rgba(5, 19, 15, 0.9) 74%,
      #081612
    );
  }
  .actions {
    margin-block: 28px;
    gap: 20px;
  }
  .input-note {
    max-width: 60ch;
  }
  /* Phone order: headline, the lead device, the install button, then the deck. The
     first phone-sized viewport shows Psychodeli before it asks for the install and
     still holds the button. display: contents lets the copy's children and the
     figure share one column. The links keep their DOM order (store, browser), and
     the deck and note hold no links, so focus order is unchanged. */
  .hero-copy {
    display: contents;
  }
  .hero-copy > .eyebrow {
    order: 1;
    margin-bottom: 16px;
  }
  .hero-copy > h1 {
    order: 2;
    margin-bottom: 18px;
  }
  .family {
    order: 3;
    width: min(580px, 100%);
    margin: 4px auto 0;
  }
  .hero-copy > .actions {
    order: 4;
    margin-block: 22px 26px;
  }
  .hero-copy > .hero-deck {
    order: 5;
  }
  .hero-copy > .input-note {
    order: 6;
  }
  .family-stage {
    gap: 22px;
  }
  .family .device {
    display: none;
  }
  body[data-audience="mac"] .family .device-mac,
  body[data-audience="iphone"] .family .device-iphone,
  body[data-audience="ipad"] .family .device-ipad,
  body[data-audience="tv"] .family .device-tv {
    display: block;
  }
  body[data-audience="iphone"] .family .device-iphone {
    width: min(112px, 32%);
  }
  body[data-audience="iphone"] .family .device-iphone .device-screen {
    border-width: 5px;
    border-radius: 20px;
  }
  body[data-audience="iphone"] .family .device-iphone .device-screen:after {
    height: 7px;
    top: 3px;
  }
  body[data-audience="ipad"] .family .device-ipad {
    width: min(360px, 88%);
  }
  body[data-audience="tv"] .family-stage {
    row-gap: 18px;
  }
  body[data-audience="tv"] .family .device-tv {
    width: 92%;
  }
  /* Sits a little higher so the listener card below clears it. */
  body[data-audience="tv"] .family .tv-box {
    bottom: -5%;
  }
  body[data-audience="tv"] .listener {
    max-width: 100%;
    gap: 14px;
    padding: 8px 16px 8px 12px;
  }
  .listener p {
    font-size: 16px;
  }
  .listener-phone {
    width: 26px;
    border-width: 3px;
    border-radius: 8px;
  }
  .listener-mic {
    width: 14px;
  }
  .listener-waves {
    width: 22px;
    right: -5px;
    top: -25px;
  }
  .family figcaption {
    display: none;
  }
  /* One line on a phone-sized Mac screen; the deck below carries the rest. */
  .player-card {
    gap: 10px;
    max-width: 92%;
    padding: 8px 14px 12px 8px;
    border-radius: 11px;
    white-space: nowrap;
  }
  .player-card p {
    font-size: 16px;
  }
  .player-card p span {
    display: none;
  }
  .player-note {
    width: 30px;
    padding: 5px;
    border-radius: 8px;
  }
  .player-progress {
    left: 8px;
    right: 14px;
    bottom: 5px;
  }
  .choose-row {
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 28px;
  }
  .choose-row > span {
    width: 100%;
    font-weight: 900;
  }
  .device-choices {
    gap: 3px;
    width: 100%;
    justify-content: space-between;
  }
  .device-choices a {
    padding: 8px 12px;
  }
  .all-devices {
    margin-left: 0;
  }
  .nav-inner {
    min-height: 70px;
  }
  .brand span {
    display: block;
    font-size: 20px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    background: transparent;
    border: 1px solid #8eb6a3;
    border-radius: 24px;
    padding: 7px 16px;
    font-size: 16px;
    font-weight: 800;
  }
  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 16px 22px 26px;
    background: var(--nav-ground, #0b1b18);
    border-bottom: 1px solid #8eb6a3;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
  }
  .site-header.menu-open nav {
    display: grid;
    animation: nav-enter 180ms ease-out;
  }
  .site-header nav .nav-action {
    grid-column: 1/-1;
    justify-content: center;
    margin-top: 8px;
  }
  .section-intro {
    padding-block: 65px 20px;
  }
  .device-story {
    padding-block: 60px;
  }
  .story-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .device-story .product-portrait,
  .device-story:nth-child(even) .product-portrait {
    grid-column: 1;
    grid-row: 2;
  }
  .device-story .story-copy,
  .device-story:nth-child(even) .story-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .story-copy p {
    max-width: 62ch;
  }
  .product-portrait {
    width: calc(100% - 32px);
    justify-self: center;
  }
  .story-iphone .product-portrait {
    width: min(320px, 80%);
  }
  .story-iphone .product-portrait .device-iphone {
    width: 66%;
  }
  .product-portrait:before {
    inset: -10px -10px 14px;
    border-radius: 35px;
  }
  .product-portrait:after {
    inset: -20px -20px 4px;
    border-radius: 45px;
  }
  .product-portrait figcaption {
    font-size: 16px;
  }
  .section-space {
    padding-block: 65px;
  }
  .listening-heading,
  .listening-pair,
  .looks-grid,
  .price-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .listening-pair {
    margin-top: 20px;
    gap: 35px;
  }
  .looks-grid {
    gap: 35px;
  }
  .orbit {
    width: min(450px, 100%);
    margin: 0 auto 65px;
  }
  .price-columns {
    gap: 32px;
  }
  .room-heading {
    margin-bottom: 38px;
  }
  .lights-vid video {
    border-radius: 14px;
  }
  .footer-links {
    gap: 10px 20px;
  }
  .remote:after {
    box-shadow: 0 5px #303a3a, 0 10px #303a3a;
  }
}
@media (max-width: 380px) {
  .wordmark {
    font-size: 35px;
  }
  .button {
    padding-inline: 20px;
    gap: 15px;
  }
  .device-choices a {
    padding-inline: 9px;
  }
  .brand span {
    font-size: 18px;
  }
  .menu-toggle {
    padding-inline: 12px;
  }
  .orbit-crop {
    inset: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .pattern,
  .looks-pattern,
  .orbit svg,
  .product-portrait:before,
  .product-portrait:after,
  .nav-rails i {
    transform: none !important;
  }
  .orbit-crop img {
    transform: scale(1.13);
  }
  .button:hover {
    transform: none;
  }
}
.opening,
.looks,
.device-story {
  overflow: clip;
}
@media (max-width: 280px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .wordmark {
    font-size: 29px;
    margin-inline: 10px;
  }
  .device-choices {
    justify-content: flex-start;
  }
  .brand span {
    display: none;
  }
  .button {
    gap: 8px;
    padding-inline: 12px;
  }
  .family figcaption {
    padding-inline: 4px;
  }
}
