:root {
  color-scheme: light;
  --cream: #f0e6d4;
  --midnight: #15272b;
  --teal: #1b6b65;
  --muted: #52605b;
  --line: #15272b28;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--midnight);
  background: var(--cream);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; }
figure, p, h1, h2 { margin: 0; }

.page-width {
  width: min(100% - 6rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  font-size: 2.125rem;
  font-style: italic;
  font-weight: 850;
  letter-spacing: -.055em;
}

.brand span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

.brand-mark {
  width: 84px;
  height: 54px;
  flex-shrink: 0;
  object-fit: cover;
}

.preview-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}

.preview-link span { font-size: 1.25rem; }
.preview-link:hover { color: var(--teal); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-kicker {
  margin-bottom: 1.25rem;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  line-height: 1.5;
}

.hero h1 {
  max-width: 24ch;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero-emphasis { color: var(--teal); }

.hero-description {
  max-width: 41rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-description strong { color: var(--midnight); font-weight: 600; }

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 1.5rem;
  min-height: 52px;
  padding: .9rem 1.4rem;
  border: 1px solid var(--midnight);
  border-radius: 10px;
  background: var(--midnight);
  color: var(--cream);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 140ms, border-color 140ms;
}

.download-link svg { flex-shrink: 0; }
.download-link:hover { background: var(--teal); border-color: var(--teal); }
.experience { scroll-margin-top: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); }

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 72rem;
  margin-inline: auto;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.screen-step { min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.screen-step figcaption { max-width: 24rem; margin-bottom: 1.75rem; }
.step-heading { display: flex; align-items: baseline; gap: .85rem; margin-bottom: .75rem; }
.step-heading > span:last-child { font-size: 2rem; font-weight: 650; letter-spacing: -.045em; }
.step-number { color: var(--teal); font-family: ui-monospace, monospace; font-size: .8rem; }
.screen-step figcaption > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.65; text-wrap: pretty; }

.phone-frame {
  width: min(100%, 19rem);
  align-self: center;
  margin-top: auto;
  overflow: hidden;
  padding: 5px;
  border: 2px solid #51615f;
  border-radius: 36px;
  background: var(--midnight);
  box-shadow: 0 16px 30px -22px #15272b80;
}

.app-screenshot {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 29px;
  background: var(--midnight);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.footer-brand { color: var(--midnight); font-weight: 550; }
.policy { max-width: 44rem; padding-block: 2rem 4rem; line-height: 1.7; }
.policy h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; letter-spacing: -.045em; }
.policy h2 { margin-top: 2rem; font-size: 1.25rem; line-height: 1.4; }
.policy p { margin-top: 1rem; }
.policy a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.site-footer a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; text-underline-offset: .25em; }
#app-store-status { scroll-margin: 2rem; }
#app-store-status:target { outline: 2px solid var(--teal); outline-offset: 8px; border-radius: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }

.skip-link {
  position: fixed;
  z-index: 1;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  border-radius: 6px;
  background: var(--midnight);
  color: var(--cream);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .screenshots { grid-template-columns: minmax(0, 1fr); gap: 3rem; max-width: 24rem; }
  .page-width { width: min(100% - 3rem, 72rem); }
  .desktop-break { display: none; }
  .hero h1 { max-width: 23ch; }
  .phone-frame { border-radius: 29px; }
  .app-screenshot { border-radius: 22px; }
}

@media (max-width: 640px) {
  .site-header { padding-block: 1rem; }
  .brand { font-size: 1.75rem; gap: .35rem; }
  .brand-mark { width: 64px; height: 42px; }
  .preview-link { gap: .4rem; font-size: .8rem; }
  .hero { padding-block: 1.5rem; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.125rem, 8.5vw, 3rem); letter-spacing: -.05em; }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-description { font-size: 1rem; }
  .screenshots { grid-template-columns: minmax(0, 1fr); gap: 3rem; max-width: 24rem; margin-inline: auto; }
  .phone-frame { border-radius: 36px; }
  .app-screenshot { border-radius: 29px; }
  .experience { padding-bottom: 3rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 480px) {
  .preview-link { display: none; }
}

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