:root {
  --brand: #ff7eb3;
  --brand-deep: #ff6aa5;
  --brand-end: #ffb28a;
  --page: #fff5f9;
  --card: rgba(255, 255, 255, 0.68);
  --text: #5a4a55;
  --text-soft: #8e808a;
  --muted: #a99ba4;
  --grad-brand: linear-gradient(135deg, #ff7eb3, #ffb28a);
  --shadow: rgba(255, 126, 179, 0.18);
  --shadow-soft: 0 9px 24px rgba(150, 110, 135, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(125deg, rgba(255, 126, 179, 0.2), transparent 34%),
    linear-gradient(225deg, rgba(197, 181, 255, 0.2), transparent 36%),
    linear-gradient(0deg, rgba(143, 227, 201, 0.16), transparent 42%),
    var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(790px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 20px;
}

.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 2px 0 12px;
}

.top-nav::after,
.site-footer::before {
  content: "";
  display: block;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(243, 230, 238, 0),
    rgba(206, 190, 204, 0.72) 50%,
    rgba(243, 230, 238, 0)
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.top-nav::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(255, 126, 179, 0.18));
}

.logo-link img {
  width: 34px;
  height: 34px;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(243, 230, 238, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 126, 179, 0.06);
}

.back-link:hover {
  color: var(--brand-deep);
}

.page-hero {
  padding: 34px 0 22px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.16;
  text-shadow: 0 10px 28px rgba(255, 126, 179, 0.12);
}

.last-updated,
.page-lede {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.7;
}

.page-lede {
  max-width: 560px;
}

.content-panel,
.video-card {
  border: 1px solid rgba(243, 230, 238, 0.9);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.content-panel {
  padding: 28px 30px;
}

.legal-section {
  margin: 0;
}

.legal-section + .legal-section {
  position: relative;
  margin-top: 24px;
  padding-top: 24px;
}

.legal-section + .legal-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(243, 230, 238, 0),
    rgba(206, 190, 204, 0.64) 50%,
    rgba(243, 230, 238, 0)
  );
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}

.legal-section p {
  margin: 0 0 10px;
  color: #7d717b;
  font-size: 15px;
  font-weight: 430;
  line-height: 1.85;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: transparent;
  background:
    linear-gradient(rgba(255, 126, 179, 0.1), rgba(255, 178, 138, 0.1)),
    var(--grad-brand);
  -webkit-background-clip: padding-box, text;
  background-clip: padding-box, text;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 155, 156, 0.72);
  border-radius: 6px;
  padding: 1px 4px;
}

.legal-section a:hover {
  background:
    linear-gradient(rgba(255, 126, 179, 0.16), rgba(255, 178, 138, 0.16)),
    var(--grad-brand);
  -webkit-background-clip: padding-box, text;
  background-clip: padding-box, text;
}

.support-note p {
  margin: 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 12px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 7px 18px var(--shadow);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.apple-logo {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: -1px;
}

.demo-main {
  display: grid;
  gap: 18px;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 18px 22px;
  align-items: start;
  padding: 22px;
}

.video-card-vertical {
  grid-template-columns: minmax(0, 1fr);
}

.video-card-head {
  grid-column: 1 / -1;
}

.video-card-head h3,
.video-desc h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.video-card-head p,
.video-desc > p {
  margin: 0 0 8px;
  color: #7d717b;
  font-size: 14px;
  font-weight: 430;
  line-height: 1.7;
}

.video-card-head p:last-child,
.video-desc > p:last-child {
  margin-bottom: 0;
}

.video-container {
  width: min(260px, 100%);
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 10px 24px rgba(150, 110, 135, 0.14);
}

.video-card-vertical .video-container {
  width: min(280px, 100%);
  margin: 0 auto;
}

.video-container video {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #000;
}

.steps-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(243, 230, 238, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  scroll-padding-left: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.steps-container::-webkit-scrollbar {
  height: 0;
}

.step-item {
  flex: 0 0 210px;
  max-width: 210px;
  padding: 9px 10px;
  border: 1px solid rgba(243, 230, 238, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: #7d717b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  scroll-snap-align: start;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.step-item:hover,
.step-item.active {
  border-color: rgba(255, 126, 179, 0.42);
  box-shadow: 0 8px 18px rgba(255, 126, 179, 0.12);
  transform: translateY(-1px);
}

.step-item.active {
  color: var(--text);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 8px;
  color: #fff;
  background: var(--grad-brand);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.site-footer {
  margin: 28px auto 0;
  padding: 0 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
}

.site-footer::before {
  width: min(520px, 100%);
  margin: 0 auto 18px;
}

.site-footer p {
  margin: 0;
}

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

  .step-item:hover,
  .step-item.active {
    transform: none;
  }
}

@media (max-width: 790px) {
  .page-shell {
    width: min(360px, calc(100% - 32px));
    padding-top: 10px;
  }

  .top-nav {
    padding-bottom: 11px;
  }

  .logo-link,
  .logo-link img {
    width: 30px;
    height: 30px;
  }

  .back-link {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12px;
  }

  .page-hero {
    padding: 30px 0 20px;
  }

  .page-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .last-updated,
  .page-lede {
    margin-top: 10px;
    font-size: 13px;
  }

  .content-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .legal-section + .legal-section {
    margin-top: 22px;
    padding-top: 22px;
  }

  .legal-section h2 {
    font-size: 17px;
  }

  .legal-section p {
    font-size: 14px;
    line-height: 1.8;
  }

  .video-card,
  .video-card-vertical {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .video-container {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .video-card-head h3,
  .video-desc h3 {
    font-size: 16px;
  }

  .video-card-head p,
  .video-desc > p {
    font-size: 13px;
  }

  .step-item {
    flex-basis: min(210px, 72vw);
  }

  .site-footer {
    margin-top: 24px;
    font-size: 10px;
  }

  .site-footer::before {
    width: min(260px, 72vw);
    margin-bottom: 16px;
  }
}
