/* App pages share the umbrella site's typography and colour preferences. */
.app-page {
  --app-accent: #17665f;
  --app-accent-soft: #e0efe9;
}

.app-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--tech-line);
}

.app-brand {
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.app-nav nav,
.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--soft-ink);
  font-size: 0.92rem;
}

.app-page a:focus-visible,
.app-page summary:focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 6px;
  border-radius: 3px;
}

.app-page a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-intro {
  padding-block: clamp(56px, 9vw, 112px) 54px;
}

.app-eyebrow {
  display: inline-flex;
  margin: 0 0 24px;
  border: 1px solid var(--app-accent);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--app-accent);
  font-size: 0.88rem;
  font-weight: 750;
}

.app-intro h1 {
  max-width: 950px;
  min-height: 0;
  font-size: clamp(3.2rem, 7.8vw, 6.8rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.app-intro h1 em {
  color: var(--app-accent);
  font-style: normal;
}

.app-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
}

.app-release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: 36px;
}

.app-store-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  border: 1px solid var(--warm-ink);
  border-radius: 13px;
  padding: 12px 21px 13px 16px;
  background: var(--warm-ink);
  color: var(--warm-paper);
  font: inherit;
  text-align: left;
}

.app-store-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.app-store-button svg {
  width: 29px;
  height: 34px;
}

.app-store-caption,
.app-store-name {
  display: block;
}

.app-store-caption {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
}

.app-store-name {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.app-release p {
  max-width: 285px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.87rem;
  line-height: 1.6;
}

.app-release-label {
  display: block;
  margin-bottom: 3px;
  color: var(--app-accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.app-promise {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-block: 0 76px;
  border: 1px solid var(--tech-line-strong);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 48px);
  background: var(--app-accent-soft);
}

.app-promise h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.app-promise p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.app-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: clamp(28px, 7vw, 84px);
  border-top: 1px solid var(--tech-line);
  padding-block: 40px;
}

.app-section h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.app-section p {
  max-width: 650px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.08rem;
  line-height: 1.75;
}

.app-section p + p {
  margin-top: 16px;
}

.app-section a,
.app-document a {
  color: var(--app-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.app-note {
  color: var(--soft-ink);
  font-size: 0.94rem;
  line-height: 1.6;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--tech-line);
  margin-top: 40px;
  padding-block: 28px 40px;
}

.app-footer p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.92rem;
}

.app-document {
  max-width: 760px;
  padding-block: 56px 30px;
}

.app-document h1 {
  min-height: 0;
  font-size: clamp(2.75rem, 7vw, 4.4rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.app-document h2 {
  margin: 38px 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.app-document p,
.app-document li {
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.75;
}

.app-document ul,
.app-document ol {
  padding-left: 26px;
}

.app-document li + li {
  margin-top: 9px;
}

.app-document .app-lead {
  font-size: 1.2rem;
}

.app-callout {
  border-left: 3px solid var(--app-accent);
  border-radius: 0 12px 12px 0;
  margin-block: 26px;
  padding: 18px 22px;
  background: var(--app-accent-soft);
}

.app-callout p {
  margin: 0;
}

.app-faq details {
  border-top: 1px solid var(--tech-line);
  padding-block: 20px;
}

.app-faq details:last-child {
  border-bottom: 1px solid var(--tech-line);
}

.app-faq summary {
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.app-faq details p:last-child {
  margin-bottom: 0;
}

.app-skip {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 30;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--warm-ink);
  color: var(--warm-paper);
}

.app-skip:focus {
  top: 12px;
}

@media (prefers-color-scheme: dark) {
  .app-page {
    --app-accent: #a0d9c8;
    --app-accent-soft: #172925;
  }
}

@media (max-width: 680px) {
  .app-wrap {
    width: min(100% - 36px, 1120px);
  }

  .app-nav {
    gap: 16px;
    padding-block: 22px;
  }

  .app-nav nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .app-intro {
    padding-block: 48px 36px;
  }

  .app-intro h1 {
    font-size: clamp(2.65rem, 10.8vw, 4.7rem);
  }

  .app-promise,
  .app-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-promise {
    margin-bottom: 42px;
    padding: 26px;
  }

  .app-section {
    padding-block: 30px;
  }

  .app-document {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
