:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f7f8fb;
  --muted: rgba(247, 248, 251, .56);
  --soft: rgba(247, 248, 251, .36);
  --line: rgba(255, 255, 255, .14);
  --panel: rgba(255, 255, 255, .07);
  --panel-strong: rgba(255, 255, 255, .11);
  --blue: #3187ff;
  --cyan: #27c8d9;
  --violet: #965af5;
  --green: #2ee66b;
  --rose: #ff3367;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(49, 135, 255, .12), transparent 24rem),
    radial-gradient(circle at 46% 32%, rgba(150, 90, 245, .1), transparent 18rem),
    #000;
}

.view {
  display: none;
  min-height: 100svh;
}

.view.active {
  display: grid;
}

.landing-view {
  grid-template-columns: minmax(360px, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
  gap: clamp(28px, 5vw, 78px);
  padding: 44px 0 56px;
}

.center-wrap {
  justify-self: center;
  width: min(100%, 500px);
  text-align: center;
}

.glow-pill {
  width: 136px;
  height: 34px;
  padding: 0;
  margin: 0 auto 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), #3c8cff 52%, #26c7d6);
  box-shadow: 0 0 42px rgba(39, 200, 217, .28), 0 0 120px rgba(150, 90, 245, .14);
}

.glow-pill span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #3c8cff 52%, #26c7d6);
  animation: pillBreath 3.8s ease-in-out infinite;
}

h1,
h2 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 5.8vw, 5rem);
  line-height: .92;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1;
}

.subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 1.05rem;
  font-weight: 600;
}

.summary {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--soft);
  line-height: 1.45;
}

.actions {
  display: grid;
  gap: 14px;
  margin: 38px auto 0;
  width: min(100%, 340px);
}

.ios-button,
.verify-button,
.continue-button {
  min-height: 58px;
  border-radius: var(--radius);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
}

.ios-button {
  background: #fff;
  color: #050505;
}

.apple-mark {
  width: 18px;
  height: 21px;
  display: inline-block;
  background: currentColor;
  border-radius: 48% 48% 46% 46%;
  position: relative;
}

.apple-mark::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 8px;
  right: 1px;
  top: -6px;
  border-radius: 9px 0 9px 0;
  background: currentColor;
  transform: rotate(-22deg);
}

.apple-mark::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 8px;
  right: -2px;
  top: 6px;
  border-radius: 50%;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.feature-tile {
  min-height: 94px;
  padding: 16px;
  text-align: left;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line);
}

.feature-tile.active {
  border-color: rgba(39, 200, 217, .55);
  box-shadow: 0 0 38px rgba(39, 200, 217, .12);
}

.feature-tile span,
.feature-tile small {
  display: block;
}

.feature-tile span {
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.phone-stage {
  display: grid;
  justify-items: center;
  perspective: 1200px;
}

.phone {
  width: min(100%, 560px);
  aspect-ratio: 742 / 520;
  border-radius: 36px;
  padding: 0;
  background: #070707;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .72);
  overflow: hidden;
  transform: rotateX(2deg) rotateY(-4deg);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #10131b;
}

.wallpaper,
.curve {
  position: absolute;
  inset: 0;
}

.wallpaper {
  background: linear-gradient(90deg, #c983aa 0 44%, #ddd5dc 44% 47%, #6f68e5 47% 100%);
}

.curve-pink {
  width: 56%;
  height: 160%;
  left: -18%;
  top: -28%;
  border-radius: 50%;
  background: rgba(247, 184, 204, .62);
  transform: rotate(-17deg);
}

.curve-cream {
  width: 34%;
  height: 138%;
  left: 32%;
  top: -18%;
  border-radius: 50%;
  background: rgba(255, 234, 230, .78);
  transform: rotate(14deg);
}

.curve-blue {
  width: 62%;
  height: 130%;
  right: -15%;
  top: -18%;
  border-radius: 45%;
  background: linear-gradient(145deg, rgba(150, 124, 255, .86), rgba(42, 51, 160, .95));
}

.dynamic-notch {
  --notch-w: 118px;
  --notch-h: 34px;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: var(--notch-w);
  height: var(--notch-h);
  border: 0;
  border-radius: 0 0 28px 28px;
  transform: translateX(-50%);
  transform-origin: top center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14), transparent 34%),
    linear-gradient(180deg, #171717, #020202);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -12px 28px rgba(255, 255, 255, .035),
    0 22px 38px rgba(0, 0, 0, .58);
  overflow: hidden;
  transition:
    width .72s cubic-bezier(.16, 1, .24, 1),
    height .72s cubic-bezier(.16, 1, .24, 1),
    border-radius .72s cubic-bezier(.16, 1, .24, 1),
    box-shadow .72s cubic-bezier(.16, 1, .24, 1);
}

.dynamic-notch[data-mode="mini"] {
  --notch-w: min(488px, calc(100% - 88px));
  --notch-h: 108px;
  border-radius: 0 0 34px 34px;
  animation: miniPop .82s cubic-bezier(.16, 1, .24, 1);
}

.dynamic-notch[data-mode="expanded"] {
  --notch-w: min(500px, calc(100% - 94px));
  --notch-h: 122px;
  border-radius: 0 0 36px 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -16px 42px rgba(255, 255, 255, .045),
    0 0 42px rgba(46, 230, 107, .13),
    0 34px 56px rgba(0, 0, 0, .65);
  animation: expandPop .82s cubic-bezier(.16, 1, .24, 1);
}

.notch-glow {
  position: absolute;
  inset: -25%;
  opacity: 0;
  background: radial-gradient(circle at 84% 42%, rgba(46, 230, 107, .34), transparent 24%);
  transition: opacity .42s ease;
}

.dynamic-notch[data-mode="expanded"] .notch-glow {
  opacity: 1;
  animation: glowPulse 1.9s ease-in-out infinite;
}

.notch-shine {
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .23), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

.dynamic-notch[data-mode="expanded"] .notch-shine {
  opacity: 1;
  animation: shineSweep 2.2s ease-in-out infinite;
}

.speaker {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 156px;
  height: 22px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 5px rgba(255, 255, 255, .18), inset 0 -7px 14px rgba(0, 0, 0, .65);
}

.mini-content,
.expanded-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.mini-content {
  justify-content: space-between;
  padding: 38px 44px 22px;
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition: opacity .24s ease, transform .42s cubic-bezier(.16, 1, .24, 1);
}

.dynamic-notch[data-mode="mini"] .mini-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.expanded-content {
  gap: 14px;
  padding: 40px 30px 18px;
  opacity: 0;
  transform: translateY(20px) scale(.92);
  transition: opacity .25s ease .16s, transform .55s cubic-bezier(.16, 1, .24, 1) .12s;
}

.dynamic-notch[data-mode="expanded"] .expanded-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.airpods-3d {
  width: 58px;
  height: 58px;
  position: relative;
  flex: 0 0 auto;
  display: block;
  transform-style: preserve-3d;
  animation: rotateAirpodsHorizontal 2.15s cubic-bezier(.45, 0, .25, 1) infinite;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .55));
}

.mini-airpods {
  width: 50px;
  height: 50px;
}

.big-airpods {
  width: 54px;
  height: 54px;
}

.airpods-3d .band {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 62%;
  height: 58%;
  border: 7px solid var(--rose);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 11px rgba(255, 51, 103, .72));
}

.airpods-3d .ear {
  position: absolute;
  bottom: 1px;
  width: 31%;
  height: 40%;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 28%, #ffb4c5, #cf4162 62%, #7c1834);
  box-shadow: 0 8px 16px rgba(255, 51, 103, .34);
}

.airpods-3d .ear.left {
  left: 12%;
}

.airpods-3d .ear.right {
  right: 12%;
}

.mini-battery,
.battery-ring {
  border-radius: 50%;
  background: conic-gradient(var(--green) 72%, rgba(46, 230, 107, .12) 0);
  box-shadow: 0 0 18px rgba(46, 230, 107, .34);
}

.mini-battery {
  width: 56px;
  height: 56px;
  position: relative;
}

.mini-battery::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #070707;
}

.battery-ring {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  animation: batteryPulse 1.35s ease-in-out infinite;
}

.battery-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #070707;
}

.battery-ring span {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.expanded-copy {
  min-width: 0;
  flex: 1;
  text-align: left;
  overflow: hidden;
}

.expanded-copy small,
.expanded-copy strong {
  display: block;
}

.expanded-copy small {
  color: rgba(255, 255, 255, .54);
  font-size: clamp(.9rem, 1.9vw, 1.18rem);
  line-height: 1;
  font-weight: 800;
}

.expanded-copy strong {
  margin-top: 6px;
  color: #fff;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  line-height: .95;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activation-view {
  place-items: center;
  padding: 32px 20px;
}

.activation-card {
  width: min(100%, 590px);
  text-align: center;
}

.account-form {
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 60px;
  padding: 0 54px 0 18px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  outline: 0;
}

.input-wrap input:focus {
  border-color: rgba(39, 200, 217, .7);
  box-shadow: 0 0 0 4px rgba(39, 200, 217, .1);
}

.input-wrap span {
  position: absolute;
  right: 19px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  transform: translateY(-50%);
}

.input-wrap span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 18px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, .34);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.verify-button {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .76);
}

.verify-button:hover,
.verify-button:focus {
  background: rgba(255, 255, 255, .14);
}

.progress-panel,
.final-panel {
  display: none;
}

.activation-card[data-step="progress"] .account-form,
.activation-card[data-step="progress"] .summary,
.activation-card[data-step="final"] .account-form,
.activation-card[data-step="final"] .summary {
  display: none;
}

.activation-card[data-step="progress"] .progress-panel,
.activation-card[data-step="final"] .final-panel {
  display: grid;
}

.progress-panel {
  margin-top: 54px;
  gap: 24px;
  text-align: left;
}

.progress-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.15rem, 2.7vw, 1.55rem);
  font-weight: 600;
}

.progress-step p {
  margin: 0;
}

.progress-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid rgba(49, 135, 255, .26);
  border-top-color: #3c8cff;
  animation: spin .9s linear infinite;
}

.progress-step.complete span {
  border: 0;
  animation: none;
  position: relative;
}

.progress-step.complete span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 10px;
  height: 17px;
  border: solid #42f282;
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.final-panel {
  margin-top: 42px;
  gap: 30px;
}

.notice-box {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  text-align: left;
  padding: 28px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .055);
}

.notice-box > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 3px solid #ffe02b;
  border-radius: 50%;
  color: #ffe02b;
  font-weight: 900;
}

.notice-box strong {
  color: #ffe02b;
  font-size: 1.05rem;
}

.notice-box p {
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.45;
  text-align: center;
}

.continue-button {
  width: 100%;
  min-height: 76px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  box-shadow: 0 22px 70px rgba(39, 200, 217, .2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes pillBreath {
  50% {
    filter: brightness(1.16) saturate(1.24);
  }
}

@keyframes miniPop {
  0% {
    transform: translateX(-50%) scaleY(.58);
  }
  60% {
    transform: translateX(-50%) scaleY(1.05);
  }
  100% {
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes expandPop {
  0% {
    transform: translateX(-50%) translateY(-22px) scale(.76);
  }
  62% {
    transform: translateX(-50%) translateY(0) scale(1.035);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes glowPulse {
  50% {
    opacity: .66;
    filter: saturate(1.4);
  }
}

@keyframes shineSweep {
  0%, 38% {
    transform: translateX(0) skewX(-18deg);
  }
  76%, 100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

@keyframes batteryPulse {
  50% {
    box-shadow: 0 0 30px rgba(46, 230, 107, .72);
    filter: brightness(1.18);
  }
}

@keyframes rotateAirpodsHorizontal {
  0% {
    transform: rotateY(-48deg) rotateX(5deg) rotateZ(-3deg) translateY(0) scale(1);
  }

  28% {
    transform: rotateY(0deg) rotateX(2deg) rotateZ(0deg) translateY(-2px) scale(1.05);
  }

  56% {
    transform: rotateY(54deg) rotateX(-3deg) rotateZ(3deg) translateY(0) scale(1);
  }

  78% {
    transform: rotateY(14deg) rotateX(2deg) rotateZ(0deg) translateY(-1px) scale(1.03);
  }

  100% {
    transform: rotateY(-48deg) rotateX(5deg) rotateZ(-3deg) translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .landing-view {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .phone {
    width: min(100%, 680px);
  }
}

@media (max-width: 620px) {
  .landing-view {
    width: min(100% - 26px, 1180px);
  }

  .actions,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    aspect-ratio: 390 / 560;
    border-radius: 24px;
  }

  .dynamic-notch[data-mode="mini"] {
    --notch-w: calc(100% - 34px);
    --notch-h: 94px;
  }

  .dynamic-notch[data-mode="expanded"] {
    --notch-w: calc(100% - 36px);
    --notch-h: 122px;
  }

  .speaker {
    width: 106px;
    height: 18px;
  }

  .mini-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .expanded-content {
    gap: 10px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .big-airpods {
    width: 44px;
    height: 44px;
  }

  .battery-ring {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .battery-ring span {
    font-size: 18px;
  }

  .notice-box {
    grid-template-columns: 1fr;
  }

  .notice-box p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
