/* App-store product sheet: lilac canvas, purple pills, large rounded cards. */

:root {
  --ap-purple: #5b21b6;
  --ap-lilac: #f5f3ff;
  --ap-deep: #2e1065;
  --ap-ink: #1e1233;
  --ap-muted: #5b5270;
  --ap-card: #ffffff;
  --ap-soft: #ede9fe;
  --ap-line: #ddd6fe;
  --ap-chip: #faf8ff;
  --ap-shadow: 0 16px 40px rgba(91, 33, 182, 0.12);
  --ap-radius: 20px;
  --ap-wide: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--ap-lilac);
  color: var(--ap-ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-bottom: 84px;
}

img,
svg {
  display: block;
}

a {
  color: var(--ap-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ap-inner {
  width: 100%;
  max-width: var(--ap-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.ap-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(91, 33, 182, 0.08);
}

.ap-head-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ap-brand {
  color: var(--ap-purple);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ap-brand:hover {
  text-decoration: none;
}

.ap-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ap-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ap-muted);
  font-weight: 600;
}

.ap-nav a:hover,
.ap-nav a.is-on {
  background: var(--ap-soft);
  color: var(--ap-purple);
  text-decoration: none;
}

.ap-hero {
  padding: 48px 0 28px;
  text-align: center;
}

.ap-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.ap-hero h1 {
  max-width: 16.5em;
  margin: 0 auto 14px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 750;
}

.ap-lead {
  max-width: 40em;
  margin: 0 auto 22px;
  color: var(--ap-muted);
  font-size: 17px;
}

.ap-btn-win {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--ap-purple);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--ap-shadow);
}

.ap-btn-win:hover {
  color: #fff;
  text-decoration: none;
  background: #4c1d95;
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ap-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ap-chip);
  border: 1px solid var(--ap-line);
  color: var(--ap-purple);
  font-size: 13px;
  font-weight: 600;
}

.ap-chip:hover {
  background: var(--ap-soft);
  text-decoration: none;
}

.ap-block {
  padding: 28px 0;
}

.ap-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.4;
}

.ap-block > .ap-inner > p,
.ap-prose {
  margin: 0 0 16px;
  color: var(--ap-ink);
}

.ap-card {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 22px 22px 20px;
}

.ap-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ap-tile {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 20px 18px 18px;
}

.ap-tile svg,
.ap-ico {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}

.ap-tile h3,
.ap-quote h3,
.ap-news-card h3,
.ap-faq-card h3,
.ap-os h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.ap-tile p,
.ap-quote p,
.ap-news-card p,
.ap-faq-card p,
.ap-os p,
.ap-step p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ap-os-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ap-os {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 20px 18px;
  text-align: center;
}

.ap-os .ap-chip {
  margin-top: 12px;
}

.ap-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ap-step {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 20px 18px 18px;
}

.ap-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ap-purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ap-table-card {
  overflow: auto;
}

.ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ap-table th,
.ap-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ap-line);
  vertical-align: top;
}

.ap-table th {
  background: var(--ap-soft);
  color: var(--ap-deep);
  font-weight: 700;
}

.ap-table tr:last-child td {
  border-bottom: 0;
}

.ap-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ap-quote {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 20px 18px 18px;
}

.ap-check {
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
}

.ap-who {
  display: block;
  margin-top: 12px;
  color: var(--ap-purple);
  font-size: 13px;
  font-weight: 600;
}

.ap-news {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-news-card {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 18px 20px;
}

.ap-date {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--ap-soft);
  color: var(--ap-purple);
  font-size: 12px;
  font-weight: 700;
}

.ap-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-faq-card {
  background: var(--ap-card);
  border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow);
  padding: 18px 20px;
}

.ap-cta-panel {
  text-align: center;
  padding: 28px 24px;
}

.ap-cta-panel p {
  margin: 0 0 16px;
  color: var(--ap-muted);
}

.ap-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--ap-line);
  box-shadow: 0 -10px 28px rgba(91, 33, 182, 0.1);
}

.ap-dock-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ap-dock-row p {
  margin: 0;
  font-weight: 650;
}

.ap-dock .ap-btn-win {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}

.ap-foot {
  background: var(--ap-deep);
  color: #ddd6fe;
  padding: 36px 0 28px;
  margin-top: 20px;
}

.ap-foot p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
}

.ap-foot p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .ap-hero h1 {
    font-size: 28px;
  }

  .ap-grid-4,
  .ap-os-grid,
  .ap-steps,
  .ap-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ap-head-row,
  .ap-dock-row {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ap-hero {
    padding-top: 28px;
  }

  .ap-hero h1 {
    font-size: 24px;
  }

  .ap-grid-4,
  .ap-os-grid,
  .ap-steps,
  .ap-quotes {
    grid-template-columns: 1fr;
  }

  .ap-dock .ap-btn-win {
    width: 100%;
  }

  body {
    padding-bottom: 120px;
  }
}
