@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/SpaceGrotesk-500.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/SpaceGrotesk-600.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/SpaceGrotesk-700.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --ink: #f6f5f1;
  --muted: #aaa9a6;
  --ground: #101010;
  --surface: #1a1a1a;
  --line: rgba(246, 245, 241, 0.14);
  --red: #fc0f10;
  --blue: #0033fe;
  --yellow: #fed503;
  --turquoise: #00ebb4;
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background: var(--ground);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--ground);
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 4px;
}

::selection {
  color: var(--ground);
  background: var(--yellow);
}

.launcher-shell {
  min-height: 100svh;
}

.launch-view,
.install-view {
  min-height: 100svh;
}

.launch-view {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 30px;
  overflow: hidden;
  padding: calc(env(safe-area-inset-top) + 28px) 28px calc(env(safe-area-inset-bottom) + 28px);
  text-align: center;
}

.ambient-light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(54px);
  transform: translate(-50%, -58%);
  pointer-events: none;
}

.launch-mark {
  position: relative;
  width: min(58vw, 248px);
}

.instagram-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  transform: scale(0.965) translateY(4px);
  filter: saturate(0.94);
  animation: mark-arrival 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chromatic-thread {
  position: absolute;
  z-index: 2;
  bottom: 2.5%;
  left: 12%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 76%;
  height: 5px;
  overflow: hidden;
  transform: scaleX(0);
  transform-origin: left;
  animation: thread-draw 720ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chromatic-thread span:nth-child(1),
.feed-thread i:nth-child(1) {
  background: var(--red);
}

.chromatic-thread span:nth-child(2),
.feed-thread i:nth-child(2) {
  background: var(--blue);
}

.chromatic-thread span:nth-child(3),
.feed-thread i:nth-child(3) {
  background: var(--yellow);
}

.chromatic-thread span:nth-child(4),
.feed-thread i:nth-child(4) {
  background: var(--turquoise);
}

.launch-copy {
  position: relative;
  z-index: 1;
}

.launch-copy h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.launch-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.retry-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: var(--ground);
  background: var(--ink);
  font-weight: 720;
  cursor: pointer;
}

.retry-button {
  position: relative;
  z-index: 1;
}

.install-view {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  width: min(100%, 520px);
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 20px calc(env(safe-area-inset-bottom) + 12px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-header {
  position: relative;
  display: grid;
  width: max-content;
  padding-bottom: 2px;
}

.feed-wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.feed-thread {
  position: absolute;
  top: 18px;
  left: -3px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 91px;
  height: 7px;
}

.brand-name {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tutorial-copy {
  padding-top: clamp(4px, 1.4vh, 14px);
  text-align: center;
}

.tutorial-copy h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(28px, 8.5vw, 36px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.tutorial-copy p {
  min-height: 20px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.tutorial-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.tutorial-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px) scale(0.985);
  transition:
    opacity 240ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-slide.is-before {
  transform: translateX(-28px) scale(0.985);
}

.tutorial-slide.is-after {
  transform: translateX(28px) scale(0.985);
}

.tutorial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.tutorial-edge-nav {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  width: clamp(52px, 15vw, 78px);
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.tutorial-edge-nav.is-previous {
  left: 0;
}

.tutorial-edge-nav.is-next {
  right: 0;
}

.tutorial-edge-nav span {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0;
  transition:
    opacity 140ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-edge-nav.is-previous span {
  left: 16px;
  transform: translate(5px, -50%) rotate(-135deg);
}

.tutorial-edge-nav.is-next span {
  right: 16px;
  transform: translate(-5px, -50%) rotate(45deg);
}

.tutorial-edge-nav:focus-visible span,
.tutorial-edge-nav:active span {
  opacity: 0.82;
}

.tutorial-edge-nav.is-previous:focus-visible span,
.tutorial-edge-nav.is-previous:active span {
  transform: translate(0, -50%) rotate(-135deg);
}

.tutorial-edge-nav.is-next:focus-visible span,
.tutorial-edge-nav.is-next:active span {
  transform: translate(0, -50%) rotate(45deg);
}

.tutorial-edge-nav:disabled {
  pointer-events: none;
}

@media (hover: hover) {
  .tutorial-edge-nav:hover span {
    opacity: 0.52;
  }

  .tutorial-edge-nav.is-previous:hover span {
    transform: translate(0, -50%) rotate(-135deg);
  }

  .tutorial-edge-nav.is-next:hover span {
    transform: translate(0, -50%) rotate(45deg);
  }
}

.phone-demo {
  position: relative;
  align-self: center;
  width: auto;
  height: min(55vh, 450px);
  max-width: min(64vw, 224px);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 4px solid #292929;
  border-radius: 38px;
  color: #fff;
  background: #080808;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.tutorial-instruction {
  width: min(100%, 360px);
  min-height: 40px;
  margin: 8px 0 0;
  text-align: center;
  text-wrap: balance;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.ios-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 159, 70, 0.92), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(122, 91, 255, 0.98), transparent 32%),
    radial-gradient(circle at 45% 78%, rgba(0, 176, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #361b63 4%, #111f54 50%, #082c43 100%);
  transform: scale(1.08);
}

.ios-statusbar {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8.8%;
  padding: 0 10px;
  color: #fff;
  font-size: 7px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ios-statusbar > strong {
  min-width: 28px;
  font-weight: 700;
}

.ios-island {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 34%;
  height: 17px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.ios-system-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ios-cellular {
  width: 11px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 100%, 0 72%, 18% 72%, 18% 100%, 27% 100%, 27% 50%, 45% 50%, 45% 100%, 55% 100%, 55% 27%, 73% 27%, 73% 100%, 82% 100%, 82% 0, 100% 0, 100% 100%);
}

.ios-wifi {
  display: block;
  flex: 0 0 auto;
  width: 11px;
  height: 9px;
  overflow: visible;
}

.ios-wifi path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.75px;
}

.ios-wifi circle {
  fill: currentColor;
}

.ios-battery {
  position: relative;
  width: 13px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.ios-battery::after {
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  content: "";
}

.ios-battery b {
  position: absolute;
  inset: 1px;
  border-radius: 1px;
  background: currentColor;
}

.ios-home-grid {
  position: absolute;
  z-index: 2;
  top: 11%;
  right: 7%;
  left: 7%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 7px;
}

.ios-app {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.ios-app small {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 5.5px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
}

.ios-app-icon {
  position: relative;
  display: block;
  width: 100%;
  max-width: 38px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22%;
  background: #ededed;
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.34),
    0 1px 4px rgba(0, 0, 0, 0.24);
}

.ios-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ios-stock-icon {
  background: transparent;
}

.ios-stock-icon img {
  object-fit: cover;
}

.ios-instagram-app .ios-app-icon {
  background: transparent;
  box-shadow:
    0 0 0 1.5px var(--turquoise),
    0 0 0 4px rgba(0, 235, 180, 0.13),
    0 2px 6px rgba(0, 0, 0, 0.28);
}

.ios-page-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 22.5%;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.ios-page-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.ios-page-dots i.is-current {
  background: #fff;
}

.ios-dock {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 3.7%;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  height: 16%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.25);
  backdrop-filter: blur(18px) saturate(155%);
}

.ios-dock .ios-app-icon {
  width: 76%;
}

.ios-home-indicator {
  position: absolute;
  z-index: 20;
  bottom: 3px;
  left: 50%;
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

.ios-safari-header {
  position: absolute;
  z-index: 5;
  top: 8.8%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  min-height: 11%;
  padding: 0 7px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(18px);
}

.ios-safari-header strong {
  overflow: hidden;
  font-size: 7px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-close,
.ios-page-menu {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(118, 118, 128, 0.28);
}

.ios-close::before,
.ios-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.ios-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ios-page-menu::before {
  position: absolute;
  inset: 6px 5px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
  content: "";
}

.ios-page-menu::after {
  position: absolute;
  right: 6px;
  bottom: 4px;
  left: 6px;
  height: 1.3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.mini-site {
  position: absolute;
  inset: 21% 12px 18%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
}

.mini-site img {
  width: 74%;
  max-width: 116px;
  height: auto;
  object-fit: contain;
}

.mini-site > span:last-child {
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.mini-feed {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mini-feed::after {
  position: absolute;
  right: -2px;
  bottom: 7px;
  left: -2px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--red) 0 25%,
    var(--blue) 25% 50%,
    var(--yellow) 50% 75%,
    var(--turquoise) 75%
  );
  content: "";
}

.ios-safari-footer {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16%;
  padding: 4px 8px 9px;
  background: rgba(15, 15, 15, 0.74);
  backdrop-filter: blur(22px) saturate(150%);
}

.ios-safari-footer svg,
.share-target svg,
.sheet-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ios-tool-circle,
.ios-tool-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(58, 58, 60, 0.78);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.ios-tool-circle {
  width: 34px;
  border-radius: 50%;
}

.ios-tool-pill {
  gap: 8px;
  border-radius: 999px;
  padding: 0 8px;
}

.share-target {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 235, 180, 0.42);
  border-radius: 50%;
  color: var(--turquoise);
  background: rgba(0, 235, 180, 0.08);
}

.share-target i {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 14px;
  height: 13px;
  transform: translateX(-50%);
  animation: share-cue 900ms var(--ease-in-out) infinite alternate;
}

.share-target i::before {
  position: absolute;
  top: 0;
  left: 6px;
  width: 2px;
  height: 8px;
  background: var(--turquoise);
  content: "";
}

.share-target i::after {
  position: absolute;
  bottom: 0;
  left: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--turquoise);
  border-bottom: 2px solid var(--turquoise);
  content: "";
  transform: rotate(45deg);
}

.ios-share-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(1px) saturate(0.7);
}

.share-sheet {
  position: absolute;
  z-index: 10;
  top: 15%;
  right: 4px;
  bottom: 0;
  left: 4px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  padding: 7px 6px 14px;
  border-radius: 23px 23px 0 0;
  background: rgba(39, 39, 41, 0.96);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(150%);
}

.sheet-grabber {
  justify-self: center;
  width: 38px;
  height: 4px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.38);
}

.ios-share-preview {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  gap: 7px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(246, 245, 241, 0.1);
  padding: 3px 5px 7px;
}

.ios-share-preview > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ios-share-preview > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ios-share-preview strong,
.ios-share-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-share-preview strong {
  font-size: 7.5px;
}

.ios-share-preview small {
  color: rgba(235, 235, 245, 0.62);
  font-size: 6.5px;
}

.ios-share-preview .ios-close {
  width: 18px;
  height: 18px;
  color: rgba(235, 235, 245, 0.62);
}

.ios-share-people {
  display: flex;
  justify-content: space-around;
  gap: 3px;
  padding: 8px 2px;
}

.ios-share-people > span {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 24%;
}

.ios-share-people > span > i {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  border-radius: 50%;
}

.ios-share-people small {
  max-width: 100%;
  overflow: hidden;
  font-size: 5.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-share-airdrop {
  border: 1.5px solid #0a84ff;
  background: radial-gradient(circle, #0a84ff 0 10%, transparent 11% 28%, #0a84ff 29% 34%, transparent 35% 52%, #0a84ff 53% 58%, transparent 59%);
}

.ios-share-messages {
  background: linear-gradient(#64ee6d, #16be43);
}

.ios-share-messages::before {
  position: absolute;
  inset: 23% 18% 28%;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.ios-share-mail {
  background: linear-gradient(#55b8ff, #0a84ff);
}

.ios-share-mail::before {
  position: absolute;
  inset: 24% 18%;
  border: 1.5px solid #fff;
  border-radius: 2px;
  content: "";
}

.ios-share-more {
  background: rgba(118, 118, 128, 0.35);
}

.ios-share-more::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: -7px 0 #fff, 7px 0 #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.ios-action-group {
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.16);
}

.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  border-bottom: 1px solid rgba(246, 245, 241, 0.08);
  padding: 0 9px;
  font-size: 7.5px;
  font-weight: 500;
}

.sheet-row:last-child {
  border-bottom: 0;
}

.sheet-row.is-highlighted {
  border: 1px solid rgba(0, 235, 180, 0.34);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(0, 235, 180, 0.08);
}

.sheet-row.is-highlighted svg {
  color: var(--turquoise);
}

.add-header {
  position: absolute;
  top: 8.8%;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 11%;
  border-bottom: 1px solid rgba(246, 245, 241, 0.12);
  padding: 0 8px;
  font-size: 7px;
}

.add-header strong {
  color: #0a84ff;
}

.add-header b {
  max-width: 52%;
  font-size: 7.5px;
  text-align: center;
}

.add-preview {
  position: absolute;
  top: 25%;
  right: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.add-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.add-preview > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.add-preview strong {
  font-size: 10px;
}

.add-preview small {
  overflow: hidden;
  color: rgba(235, 235, 245, 0.58);
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-field {
  position: absolute;
  top: 43%;
  right: 10px;
  left: 10px;
  min-height: 34px;
  border: 1px solid rgba(246, 245, 241, 0.14);
  border-radius: 8px;
  padding: 9px;
  color: #fff;
  background: rgba(118, 118, 128, 0.16);
  font-size: 8px;
}

.add-explanation {
  position: absolute;
  top: 54%;
  right: 12px;
  left: 12px;
  margin: 0;
  color: rgba(235, 235, 245, 0.62);
  font-size: 7px;
  line-height: 1.35;
}

.add-webapp-toggle {
  position: absolute;
  top: 66%;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(246, 245, 241, 0.1);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(118, 118, 128, 0.16);
}

.add-webapp-toggle > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.add-webapp-toggle strong {
  color: #fff;
  font-size: 7.5px;
  font-weight: 600;
}

.add-webapp-toggle small {
  color: rgba(235, 235, 245, 0.58);
  font-size: 6px;
  line-height: 1.25;
}

.ios-switch {
  position: relative;
  flex: 0 0 auto;
  width: 31px;
  height: 18px;
  border-radius: 999px;
  background: #34c759;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.24);
}

.ios-switch b {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.tutorial-footer {
  display: block;
}

.tutorial-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.tutorial-progress button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.tutorial-progress button span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.28);
  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms ease;
}

.tutorial-progress button.is-active span {
  width: 28px;
  background: var(--ink);
}

.launcher-shell[data-view="install"] .launch-view,
.launcher-shell[data-view="launch"] .install-view {
  display: none;
}

.launcher-shell[data-state="failed"] .chromatic-thread {
  animation: none;
  transform: scaleX(1);
  opacity: 0.45;
}

@keyframes mark-arrival {
  0% {
    opacity: 0.7;
    transform: scale(0.92) translateY(12px);
    filter: saturate(0.8) blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(0.965) translateY(4px);
    filter: saturate(0.94) blur(0);
  }
}

@keyframes thread-draw {
  to {
    transform: scaleX(1);
  }
}

@keyframes share-cue {
  from {
    opacity: 0.45;
    transform: translate(-50%, -2px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 2px);
  }
}

@media (max-height: 720px) {
  .install-view {
    gap: 7px;
    padding: calc(env(safe-area-inset-top) + 10px) 18px calc(env(safe-area-inset-bottom) + 8px);
  }

  .feed-wordmark {
    font-size: 25px;
  }

  .feed-thread {
    top: 15px;
    width: 76px;
    height: 6px;
  }

  .brand-name {
    font-size: 13px;
  }

  .tutorial-copy {
    padding-top: 0;
  }

  .tutorial-copy h1 {
    font-size: 28px;
  }

  .tutorial-copy p {
    min-height: 18px;
    margin-top: 3px;
    font-size: 13px;
  }

  .phone-demo {
    width: auto;
    height: min(55vh, 370px);
    max-width: min(58vw, 190px);
    border-radius: 31px;
  }

  .ios-island {
    top: 4px;
    height: 14px;
  }

  .ios-home-grid {
    gap: 9px 5px;
  }

  .ios-app-icon {
    max-width: 30px;
  }

  .mini-site img {
    width: 72%;
    height: auto;
  }

  .tutorial-instruction {
    min-height: 34px;
    margin-top: 5px;
    font-size: 14px;
  }

  .tutorial-progress {
    min-height: 44px;
  }

  .tutorial-progress button {
    height: 44px;
  }

  .share-sheet {
    padding: 5px 5px 12px;
  }

  .sheet-row {
    min-height: 27px;
  }

  .ios-share-preview {
    min-height: 42px;
  }

  .add-preview img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .install-view {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tutorial-instruction {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }

  .tutorial-slide,
  .tutorial-progress button span,
  .tutorial-edge-nav span {
    transition: none;
  }

  .tutorial-slide,
  .tutorial-slide.is-before,
  .tutorial-slide.is-after {
    transform: none;
  }

  .share-target i {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 1px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ios-dock,
  .ios-safari-header,
  .ios-safari-footer,
  .share-sheet {
    background: #232323;
  }
}

@media (prefers-contrast: more) {
  .phone-demo,
  .share-sheet,
  .sheet-row.is-highlighted {
    border-color: var(--ink);
  }

  .brand-name,
  .tutorial-copy p,
  .add-preview small,
  .add-field {
    color: var(--ink);
  }
}
