:root {
  color-scheme: light dark;

  font-size: 17px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;

  --title-color: black;

  --page-max: 72rem;
  --page-pad: clamp(16px, 4vw, 40px);

  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-h1: "Quicksand", system-ui, sans-serif;

  --text-base: 1rem;
  --line-body: 1.6;
  --line-heading: 1.25;

  --hero-gap: 2rem;

  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.12);

  --text: rgba(0, 0, 0, 0.88);
  --text-muted: rgba(0, 0, 0, 0.62);

  --accent: #3a7bd5;

  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 16px 44px rgba(0, 0, 0, 0.10);
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --title-color: white;

    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);

    --text: rgba(255, 255, 255, 0.88);
    --text-muted: rgba(255, 255, 255, 0.64);

    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 16px 44px rgba(0, 0, 0, 0.45);
  }
}

@media screen and (prefers-color-scheme: light) {
  body {
    background-color: #DDDED4;
  }
}

@media screen and (prefers-color-scheme: dark) {
  html {
    background: linear-gradient(to bottom, #292C2F 0%, #0A0A0D 100%);
    background-attachment: fixed;
    min-height: 100%;
  }

  body {
    background: transparent;
    min-height: 100%;
  }
}

@media (max-width: 480px) {
  footer {
    justify-content: center;
  }
}

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

.page {
  margin: 0 auto;
  max-width: var(--page-max);
  padding: var(--page-pad);
}

header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

header .title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--title-color);
}

header .logo {
  max-height: 32px;
  width: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  line-height: var(--line-heading);
  font-weight: 600;
  margin: 0 0 0.75em;
}

h1 {
  font-family: var(--font-h1);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 450;
}

h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p {
  margin: 0 0 1em;
}

body {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-body);
  margin: 0;
}

body .hero-container {
  display: flex;
  align-items: flex-start;
  gap: var(--hero-gap);
  padding: clamp(2rem, 6vw, 4rem)
           clamp(1.5rem, 6vw, 4rem);
}

body .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

.hero-media {
  flex: 0 0 auto;
  margin-top: -3.6rem;
}

.hero-image {
  display: block;
  width: min(560px, 44vw);
  height: auto;
  border-radius: var(--hero-radius);
}

@media (max-width: 720px) {
  body .hero-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .hero-image {
    width: 100%;
    max-width: 560px;
  }

  h2 {
    font-size: 1.25rem;
  }
}

div .badges {
  margin-bottom: 1rem;
}

div .download-badge {
  margin-top: 0.5rem;
  width: auto;
  height: 40px;
  max-width: 100%;
}

body .apple-health {
  margin-top: 0.5rem;
  width: auto;
  height: 40px;
  max-width: 100%;
}

.feature-list ul {
  list-style: none;
  margin: 0;
  padding: 0
           clamp(1.5rem, 6vw, 4rem);

  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .feature-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .feature-list ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.feature-list ul > li {
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 16px;

  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-1, 0 10px 30px rgba(0, 0, 0, 0.06));

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  min-width: 0;
}

.feature-list ul h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: var(--line-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text, rgba(0, 0, 0, 0.88));
}

.feature-list ul > li {
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--text-muted, rgba(0, 0, 0, 0.62));
}

.feature-list h2 + * {
  margin-top: 0.5rem;
}

.feature-list p {
  padding: clamp(2rem, 6vw, 4rem)
           clamp(1.5rem, 6vw, 4rem);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}

footer .page {
  text-align: center;
  margin-inline: auto;
  padding: var(--page-pad);
}

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

footer a:hover {
  text-decoration: underline;
}

.sep {
  opacity: 0.5;
}

