:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5e6167;
  --line: #dedfe2;
  --paper: #ffffff;
  --wash: #f5f6f8;
  --page-max: 1600px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

main,
footer {
  width: 100%;
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px max(6vw, calc((100vw - var(--page-max)) / 2 + 96px));
  border-bottom: 1px solid rgba(90, 96, 109, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 30px rgba(42, 48, 59, 0.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 180ms ease, transform 220ms ease, visibility 220ms;
}

.site-header.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.header-mark img {
  width: 44px;
  box-shadow: 0 4px 14px rgba(26, 30, 35, 0.13);
}

/* Sized to sit level with the header mark opposite it. Scoped to .site-header
   so it beats the hero's `.app-store-badge img` height regardless of order. */
.site-header .app-store-badge img {
  height: 48px;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(560px, 1.18fr);
  align-items: start;
  gap: 2vw;
  padding: 50px max(6vw, calc((100vw - var(--page-max)) / 2 + 96px)) 0;
  overflow: visible;
  background:
    radial-gradient(circle at 82% 18%, rgba(188, 218, 255, 0.62), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(255, 224, 190, 0.55), transparent 38%),
    linear-gradient(135deg, #fffaf3 0%, #f4f8ff 50%, #f8f3ff 100%);
}

.hero-copy {
  max-width: 560px;
  padding-top: 150px;
  padding-left: clamp(10px, 3vw, 58px);
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-icon {
  width: 94px;
  box-shadow: 0 10px 30px rgba(26, 30, 35, 0.14);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(72px, 7.2vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 760;
}

.tagline {
  margin: 52px 0 40px;
  font-size: clamp(31px, 3vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 470;
}

.app-store {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Apple requires the badge keep clear space of at least 10% of its height on
   every side, and never be shown below 40px tall. The inline-block wrapper
   keeps the link's hit area exactly the badge, with no baseline gap. */
.app-store-badge {
  display: inline-block;
  /* font-size:0 collapses the newlines around the <img>, which would otherwise
     render as an underlined space alongside the badge. */
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  padding: 6px;
  margin: -6px;
  border-radius: 12px;
}

/* Hero size. The header overrides this with its own, smaller height. */
.app-store-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero-art {
  width: min(66vw, 1080px);
  justify-self: center;
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: -27%;
}

.about {
  border-top: 1px solid var(--line);
  background: var(--wash);
  display: grid;
  grid-template-columns: minmax(450px, 1.14fr) minmax(450px, 0.86fr);
  gap: clamp(70px, 9vw, 155px);
  align-items: center;
  padding: 120px max(8vw, calc((100vw - var(--page-max)) / 2 + 128px)) 130px;
}

.about-copy { max-width: 760px; }

h2 {
  margin-bottom: 48px;
  font-size: clamp(50px, 5.1vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.about-copy p {
  max-width: 700px;
  margin-bottom: 25px;
  color: #3e4146;
  font-size: clamp(19px, 1.45vw, 25px);
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.about-copy p:last-child { margin-bottom: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 30px;
  margin-top: 120px;
}

.feature-card {
  min-height: 270px;
  padding: 36px 30px 28px;
  border: 1px solid #e2e3e6;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(34, 40, 49, 0.06);
}

.feature-card img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 28px;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.feature-card p {
  margin-bottom: 0;
  color: #686b72;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feature-card:nth-child(1) img { filter: invert(42%) sepia(96%) saturate(1904%) hue-rotate(196deg) brightness(101%) contrast(101%); }
.feature-card:nth-child(2) img { filter: invert(54%) sepia(98%) saturate(1613%) hue-rotate(350deg) brightness(102%) contrast(96%); }
.feature-card:nth-child(3) img { filter: invert(60%) sepia(63%) saturate(627%) hue-rotate(93deg) brightness(87%) contrast(91%); }
.feature-card:nth-child(4) img { filter: invert(43%) sepia(73%) saturate(1131%) hue-rotate(226deg) brightness(94%) contrast(94%); }

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 38px max(8vw, calc((100vw - var(--page-max)) / 2 + 128px));
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

footer p { margin-bottom: 0; }
.footer-notes { display: flex; flex-direction: column; gap: 7px; }
footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
footer a { color: var(--ink); font-weight: 560; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.legal-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.legal-page .legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.legal-page .legal-brand img { width: 42px; }
.legal-page h1 { margin: 70px 0 12px; font-size: clamp(48px, 7vw, 72px); }
.legal-page h2 { margin: 44px 0 14px; font-size: 24px; font-weight: 700; }
.legal-page p { color: #484b50; font-size: 19px; line-height: 1.65; }
.legal-page .legal-updated { color: #8a8f96; font-size: 15px; margin: 0 0 34px; }
.legal-page ul { margin: 0; padding-left: 22px; color: #484b50; font-size: 19px; line-height: 1.65; }
.legal-page li { margin-bottom: 10px; }
.legal-page a { color: inherit; }

.legal-page .support-cta {
  display: inline-block;
  margin: 12px 0;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 160ms ease;
}

.legal-page .support-cta:hover { transform: translateY(-2px); }
.legal-page .support-cta:focus-visible { outline: 3px solid #087ff5; outline-offset: 4px; }

@media (max-width: 1100px) {
  .site-header { padding-inline: 44px; }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr 1.15fr;
    padding: 50px 44px 0;
  }
  .hero-copy { padding: 150px 0 0; }
  .hero-art { width: 62vw; justify-self: center; transform: none; margin: 0; }
  .feature-grid { margin-top: 80px; }
  .about {
    grid-template-columns: 1fr;
    padding: 90px max(7vw, 48px) 100px;
  }
  .about-copy { max-width: 820px; }
  .feature-grid { max-width: 760px; width: 100%; }
  footer { padding-inline: max(7vw, 48px); }
}

@media (max-width: 760px) {
  .site-header {
    height: 80px;
    padding: 8px 18px;
  }
  .header-mark { font-size: 20px; }
  .header-mark img { width: 40px; }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
    min-height: 0;
    padding: 200px 24px 0;
    text-align: center;
  }
  .hero-copy { width: 100%; padding: 0; }
  .brand { justify-content: center; gap: 17px; }
  .app-icon { width: 70px; }
  h1 { font-size: clamp(62px, 20vw, 88px); }
  .tagline { margin: 36px 0 30px; font-size: clamp(30px, 8.7vw, 42px); }
  .app-store { justify-content: center; gap: 14px; }
  .app-store-badge img { height: 50px; }
  .site-header .app-store-badge img { height: 40px; }
  .hero-art {
    width: 125%;
    align-self: center;
    transform: none;
    margin: 4px 0 0;
  }
  .about {
    gap: 64px;
    padding: 160px 24px 80px;
  }
  h2 { margin-bottom: 38px; font-size: clamp(43px, 13vw, 62px); }
  .about-copy p { font-size: 18px; line-height: 1.58; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 0; }
  .feature-card { min-height: 0; display: grid; grid-template-columns: 62px 1fr; align-items: center; column-gap: 20px; padding: 27px; text-align: left; }
  .feature-card img { grid-column: 1; grid-row: 1 / span 2; width: 50px; height: 50px; margin-bottom: 0; }
  .feature-card h3 { grid-column: 2; margin-bottom: 7px; font-size: 22px; }
  .feature-card p { grid-column: 2; }
  footer { min-height: 0; flex-direction: column; align-items: flex-start; padding: 32px 24px 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .support-cta { transition: none; }
}
