:root {
  color-scheme: light;
  --table: #fff7e8;
  --card: #ffffff;
  --navy: #212b54;
  --navy-soft: #515977;
  --coral: #fa5c54;
  --coral-ink: #c43b36;
  --line: #d9d1c2;
  --shadow: rgba(0, 0, 0, 0.14);
  --page-gutter: clamp(1.25rem, 5vw, 4.5rem);
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--table);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--navy);
  background: var(--table);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
.brand,
.pitch,
.hero-card figcaption,
summary,
.store-placeholder {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--coral);
}

a:focus-visible,
summary:focus-visible {
  outline: 0.2rem solid var(--coral-ink);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.site-header,
.site-footer,
.hero,
.reading-page {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.5rem var(--page-gutter);
}

.brand {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
}

.site-header nav {
  font-size: 0.9rem;
  font-weight: 650;
}

.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.site-header [aria-current="page"]:not(.brand) {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.16rem;
  text-underline-offset: 0.35rem;
}

.hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 10.5rem);
  padding: clamp(2rem, 4vw, 4.5rem) var(--page-gutter) clamp(3rem, 6vw, 6rem);
}

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

.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4rem, 17vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.pitch {
  max-width: 23ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.35rem, 6vw, 2.15rem);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.store-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  margin-top: 2rem;
  padding: 0.65rem 1.15rem 0.7rem;
  color: var(--table);
  background: var(--navy);
  border-radius: 0.85rem;
  box-shadow: 0 0.45rem 0.9rem rgba(33, 43, 84, 0.18);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.store-placeholder small {
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 247, 232, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.store-placeholder:hover {
  box-shadow: 0 0.6rem 1.2rem rgba(33, 43, 84, 0.22);
  text-decoration: none;
}

.store-placeholder[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

.trust-line {
  max-width: 32ch;
  margin: 1.35rem 0 0;
  color: var(--navy-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.card-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 3.5rem;
}

.card-stage::after {
  position: absolute;
  z-index: -1;
  width: 75%;
  height: 2.2rem;
  bottom: -0.6rem;
  content: "";
  background: rgba(33, 43, 84, 0.12);
  border-radius: 50%;
  filter: blur(1rem);
}

.hero-card {
  display: grid;
  grid-template-rows: 1fr auto;
  width: min(72vw, 19rem);
  aspect-ratio: 3 / 4;
  margin: 0;
  padding: 12% 9% 8%;
  overflow: hidden;
  background: var(--card);
  border-radius: 13%;
  box-shadow: 0 0.875rem 1.75rem var(--shadow);
}

.hero-card img {
  align-self: center;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: apple-breathe 2.4s ease-in-out infinite;
}

.hero-card figcaption {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 11vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
}

.reading-page {
  max-width: 48rem;
  padding: clamp(3rem, 7vw, 6rem) var(--page-gutter) clamp(4rem, 8vw, 7rem);
}

.page-heading {
  margin-bottom: 4.5rem;
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--coral-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-heading h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.9rem, 12vw, 5.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  color: var(--navy-soft);
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  line-height: 1.55;
}

.updated {
  margin: 1.25rem 0 0;
  color: var(--navy-soft);
  font-size: 0.875rem;
}

.reading-page section {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.reading-page section:first-of-type {
  border-top-color: var(--coral);
}

.reading-page h2 {
  max-width: 25ch;
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.reading-page p {
  max-width: 70ch;
}

.reading-page section p {
  margin: 0;
}

.reading-page section a,
.page-heading a {
  font-weight: 750;
}

.support-page .page-heading {
  margin-bottom: 3.5rem;
}

.faq h2 {
  margin-bottom: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex: 0 0 auto;
  content: "+";
  color: var(--coral-ink);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--navy-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem var(--page-gutter) 2rem;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.reading-footer {
  max-width: 48rem;
}

@keyframes apple-breathe {
  0%,
  100% {
    transform: scale(0.98);
  }
  50% {
    transform: scale(1.03);
  }
}

@media (min-width: 48rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
    gap: clamp(3rem, 8vw, 7rem);
  }

  .card-stage {
    margin-top: 0;
  }

  .hero-card {
    width: min(30vw, 24rem);
  }

  .hero-card figcaption {
    font-size: clamp(2.75rem, 5vw, 4rem);
  }
}

@media (max-width: 30rem) {
  .site-header {
    min-height: 4.25rem;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card img {
    animation: none;
  }
}
