@import url("fonts.css");

:root {
  --page-width: 1200px;
  --radius: 60px;
  --muted: #737373;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: black;
  color: white;
  font: 16px/1.5 Woday, system-ui, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #4986ff;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1, h2, p {
  margin: 0;
}
h1, h2 {
  line-height: 1.05;
  letter-spacing: -.055em;
}
h1 {
  font-size: clamp(44px, 6vw, 80px);
  max-width: 760px;
}
h2 {
  font-size: clamp(32px, 4vw, 60px);
}
.topbar, main, footer {
  width: min(calc(100% - 60px), var(--page-width));
  margin-inline: auto;
}
.topbar nav {
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand, .nav-links, footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  justify-self: start;
}
.brand .app-icon {
  width: 40px;
  border-radius: 10px;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
}
.light {
  color: black;
  background: white;
  justify-self: end;
  padding: 9px 16px;
}
.dark {
  color: white;
  background: black;
}
.apple::before, .light::before {
  content: '';
  width: 18px;
  height: 20px;
  background: currentColor;
  mask: url('../images/apple.svg') center / contain no-repeat;
}
.panel {
  background: white;
  color: black;
  border-radius: var(--radius);
  padding: 60px;
  overflow: hidden;
}
.hero, .closing, .download, .overview {
  text-align: center;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 30px 0;
}
.hero .app-icon {
  width: 80px;
  border-radius: 18px;
}
.eyebrow {
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}
.lead, .feature p, .overview article p, .closing p {
  max-width: 730px;
  font-size: 20px;
  color: var(--muted);
}
.rating {
  color: var(--muted);
  font-size: 14px;
}
.rating span {
  color: orange;
  font-size: 20px;
}
.tags, .integrations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero .tags {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.hero-preview {
  width: min(100%, 1000px);
  margin-top: 20px;
}
.overview, .feature, .closing, .download, .faq {
  margin-block: 48px;
}
.statement {
  font-size: clamp(22px, 3vw, 36px);
  text-align: center;
  max-width: 760px;
  margin: 64px auto 24px;
}
.overview article {
  margin-top: 48px;
}
.overview article > *, .closing > * {
  margin: 20px auto;
}
.overview .tags {
  margin-block: 16px;
}
.integrations img {
  width: 32px;
  margin: 0 auto 6px;
}
.integrations small {
  color: #aaa;
}
.feature {
  display: grid;
  gap: 40px;
}
.feature h2, .feature .tags {
  margin-block: 18px;
}
.feature .tags {
  justify-content: start;
}
.feature li {
  background: #f3f3f3;
  padding: 4px 12px;
  border-radius: 20px;
}
.calendar, .notes, .launcher {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
}
.feature img {
  width: 100%;
}
.download p {
  font-size: 22px;
  margin-block: 14px;
}
.faq {
  max-width: 800px;
  margin-inline: auto;
}
.faq h2 {
  margin-bottom: 30px;
}
details {
  border-radius: 18px;
  padding: 18px 24px;
  margin: 10px 0;
  background: #181818;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin-top: 12px;
  color: #ddd;
}
footer {
  border-top: 1px solid #333;
  padding: 40px 0;
}
footer nav {
  flex-wrap: wrap;
  margin-block: 22px;
}
footer small {
  color: #aaa;
}
.legal {
  max-width: 800px;
  margin-bottom: 48px;
}
.legal h2 {
  margin: 32px 0 12px;
  font-size: 26px;
}
.legal p + p {
  margin-top: 16px;
}
.legal a {
  text-decoration: underline;
}

@media (max-width: 809px) {
  :root {
    --radius: 30px;
  }
  .topbar, main, footer {
    width: calc(100% - 32px);
  }
  .topbar nav {
    height: 68px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    gap: 6px;
  }
  .brand .app-icon {
    width: 30px;
  }
  .nav-links {
    gap: 8px;
    font-size: 14px;
  }
  .light {
    font-size: 14px;
    padding: 7px 10px;
  }
  .panel {
    padding: 30px 20px;
  }
  .hero {
    padding-bottom: 0;
  }
  .hero .app-icon {
    width: 60px;
  }
  .calendar, .notes, .launcher {
    grid-template-columns: 1fr;
  }
  .lead, .feature p, .overview article p, .closing p {
    font-size: 17px;
  }
}

#measurement-choice { position: fixed; z-index: 20; bottom: 1rem; left: 1rem; right: 1rem; max-width: 32rem; background: white; color: black; padding: 1.25rem; border: 1px solid #aaa; border-radius: 16px; }
#measurement-choice button, #measurement-settings { padding: .5rem 1rem; margin: .5rem .3rem 0 0; cursor: pointer; }
