@font-face {
  font-family: "Inter Display";
  src: url("assets/inter-display-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #efede9;
  --ink: #242222;
  --muted: #605a56;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid #78536c;
  outline-offset: 4px;
}

main {
  overflow: hidden;
  padding: 0 0 42px;
  background:
    radial-gradient(ellipse 57% 460px at 21% 13%, #f6f4f0 5%, transparent 94%),
    radial-gradient(ellipse 70% 520px at 87% -8%, #e3dce2, transparent),
    radial-gradient(ellipse 80% 630px at 14% 2%, #e6dfd4, transparent);
}
.intro {
  text-align: center;
  padding: clamp(42px, 6vw, 84px) 20px clamp(34px, 4.5vw, 62px);
}
.logo { display: block; margin: 0 auto 20px; }
h1 {
  margin: 0;
  font-family: "Inter Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(31px, 3.7vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.mac { white-space: nowrap; }
.mac svg {
  width: .64em;
  height: .73em;
  margin-inline-start: .1em;
  margin-inline-end: .04em;
  vertical-align: -.01em;
  fill: currentColor;
}
.intro p {
  margin: 16px auto 23px;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}
.pill {
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid #2422221a;
  border-radius: 999px;
  background: #fdfcfb;
  color: #282524;
  font-size: 14px;
  font-weight: 630;
  box-shadow: 0 1px 2px #2422220a;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.pill:hover { background: white; box-shadow: 0 3px 10px #24222215; }
.pill:disabled { cursor: wait; opacity: .65; }

.preview { width: min(94%, 1260px); margin: 0 auto; }
.screens {
  position: relative;
  aspect-ratio: 1.91;
  overflow: hidden;
  isolation: isolate;
  border-radius: 19px;
  border: 1px solid #37322f;
  background: #070707;
  box-shadow: 0 25px 65px -37px #2c253593, 0 3px 10px #2c253522;
}
.screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.screen--plum {
  opacity: 0;
  animation: preview-crossfade 14s ease-in-out infinite;
}
@keyframes preview-crossfade {
  0%, 45%, 100% { opacity: 0; }
  50%, 95% { opacity: 1; }
}

.tracked-apps { text-align: center; margin: 50px 18px 0; color: var(--muted); }
.tracked-apps h2 { margin: 0 0 17px; font-size: 14px; font-weight: 500; }
.tracked-apps ul {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 19px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tracked-apps img { display: block; }
.tracked-apps li { display: grid; place-items: center; width: 40px; height: 40px; }
.tracked-apps .square-icon { border-radius: 8px; }
footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  width: min(88%, 1100px);
  margin: 0 auto;
  padding: 19px 0 24px;
  border-top: 1px solid #25222216;
}
footer button {
  background: none;
  border: 0;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--muted);
}
footer button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

dialog {
  width: min(420px, calc(100% - 28px));
  padding: 29px;
  border: 1px solid #26222224;
  border-radius: 20px;
  background: #f8f6f3;
  color: var(--ink);
  box-shadow: 0 24px 68px #25222240;
}
dialog::backdrop { background: #26222256; backdrop-filter: blur(5px); }
dialog h2 { margin: 0 29px 12px 0; font-size: 26px; letter-spacing: -.045em; }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
dialog > p:last-child { margin-bottom: 0; }
.close-form { position: absolute; top: 16px; right: 16px; }
.close-form button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2522220c;
  font-size: 21px;
  line-height: 1;
}
#waitlist { padding: 48px clamp(20px, 6vw, 29px) 29px; text-align: center; }
#waitlist-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: clamp(21px, 6vw, 26px);
}
#waitlist-title img { display: block; flex: none; }
#waitlist-note { max-width: 290px; margin: 0 auto; text-wrap: balance; }
#signup { display: grid; gap: 10px; max-width: 300px; margin: 18px auto 0; }
#signup label { text-align: start; font-size: 13px; font-weight: 600; }
#signup input {
  width: 100%;
  height: 44px;
  border: 1px solid #25222236;
  border-radius: 9px;
  background: white;
  padding: 0 12px;
  font-size: 16px;
}
#signup .pill { justify-self: center; margin-top: 4px; }
#signup-result { margin-top: 16px; }
details { border-top: 1px solid #25222220; }
summary { padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
details p { margin: 0 0 12px; }

@media (max-width: 600px) {
  .intro { padding-top: 40px; }
  .logo { width: 66px; height: 66px; margin-bottom: 19px; }
  .desktop-break { display: none; }
  h1 { max-width: 440px; margin: auto; }
  .preview, footer { width: calc(100% - 32px); }
  .screens { aspect-ratio: .86; border-radius: 15px; }
  .screen { height: 123%; object-position: 88% top; }
  .tracked-apps { margin-top: 34px; }
}
@media (max-width: 340px) {
  .tracked-apps ul { display: grid; grid-template-columns: repeat(3, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .screen--plum { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

footer a {
  padding: 6px 2px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

#waitlist-note a, .privacy-page a { color: inherit; text-underline-offset: 3px; }
.privacy-page article {
  max-width: 690px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 68px) 24px 14px;
}
.privacy-page h1 { margin-top: 24px; }
.privacy-page h2 { margin: 26px 0 8px; font-size: 19px; }
.privacy-page p { margin: 0 0 12px; line-height: 1.6; color: var(--muted); }
