:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.72);
  --line: rgba(17, 17, 17, 0.12);
  --green: #2fbf71;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body::before {
  content: none;
}

.page {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.wordmark {
  display: block;
  width: min(180px, 40vw);
  height: auto;
  filter: brightness(0);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 34px;
  padding-bottom: 36px;
  min-height: calc(100vh - 100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  max-width: 560px;
}

.instruction-card {
  width: min(100%, 460px);
  padding: 22px 22px 18px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.instruction-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: rgba(93, 64, 240, 0.12);
  color: #5d40f0;
  font-size: 20px;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
  max-width: 10ch;
}

.instruction-lede {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.76);
}

.instruction-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.instruction-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: rgba(17, 17, 17, 0.88);
}

.instruction-list li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.instruction-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.98rem;
  color: rgba(17, 17, 17, 0.56);
}

.hero-visual {
  position: relative;
  width: min(100%, 720px);
  margin: 4px auto 0;
  padding-top: 26px;
}

.app-shot-wrap {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.app-shot-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(86vw, 700px);
  height: min(36vw, 290px);
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #6a4ff7 0%, #5d40f0 100%);
  z-index: 0;
}

.app-shot {
  position: relative;
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
}

.pointer-callout {
  position: absolute;
  top: -88px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.pointer-arrow {
  width: 78px;
  height: 78px;
  color: #5d40f0;
  transform-origin: 76% 80%;
  animation: point 1.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.pointer-arrow svg {
  width: 100%;
  height: 100%;
}

.pointer-arrow-stroke,
.pointer-arrow-head,
.pointer-arrow-dot {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.75;
}

.pointer-arrow-head {
  stroke-width: 5.5;
}

.pointer-arrow-dot {
  fill: currentColor;
  stroke: none;
}

.pointer-bubble {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #2fbf71;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 18px 26px rgba(47, 191, 113, 0.22);
}

.mobile-tip {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.mobile-tip-inner {
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.96rem;
  line-height: 1.45;
}

@keyframes point {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(10deg);
  }
  50% {
    transform: translate3d(-6px, 4px, 0) rotate(2deg);
  }
}

[data-state="tiktok"] .pointer-bubble {
  opacity: 1;
}

@media (max-width: 920px) {
  .page {
    width: min(100% - 28px, 980px);
  }

  .hero-copy {
    padding-top: 18px;
    max-width: 100%;
  }

  .instruction-card {
    width: min(100%, 520px);
  }

  .hero-visual {
    width: min(100%, 720px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 980px);
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.7rem);
    max-width: 11ch;
  }

  .instruction-card {
    width: 100%;
    padding: 18px 18px 16px;
  }

  .pointer-callout {
    top: -84px;
    right: 0;
  }

  .pointer-bubble {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .pointer-arrow {
    width: 62px;
    height: 62px;
  }
}
