:root {
  --page: #ffffff;
  --surface: #f6f6f4;
  --ink: #181817;
  --muted: #686866;
  --faint: #92928e;
  --line: rgba(24, 24, 23, 0.13);
  --line-strong: rgba(24, 24, 23, 0.2);
  --accent: #a45f35;
  --blue: #0a84ff;
  --font-display: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #10100f;
    --ink: #f2f2ef;
    --muted: #b0b0ac;
    --faint: #73736f;
    --line: rgba(255, 255, 255, 0.13);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #c98255;
    --blue: #409cff;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color-scheme: light dark;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

img {
  max-width: 100%;
}

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

a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header .brand,
.site-header nav a,
.text-link,
.footer-link,
.acknowledgements-content .project-link a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.site-header nav a,
.footer-link {
  justify-content: center;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #121c21;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-icon img {
  width: 29px;
  height: 29px;
}

.site-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 52px 0 56px;
  background: var(--page);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 5vw, 60px);
  align-items: start;
}

.hero-copy {
  padding-top: 30px;
}

.hero h1 {
  max-width: 470px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(35px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-lede {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.availability {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.app-store-badge {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: clamp(40px, 12vw, 48px);
  object-fit: contain;
  vertical-align: middle;
}

.availability span {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.product-view {
  min-width: 0;
}

.app-window {
  width: 100%;
  margin: 0;
}

.app-window img {
  display: block;
  width: 100%;
  height: auto;
}

.features-section {
  padding: 50px 0 54px;
  border-top: 1px solid var(--line);
  background: var(--page);
}

.section-intro {
  max-width: 680px;
}

.section-intro h2,
.privacy-grid h2 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.section-intro > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list {
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.feature-list article {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 36px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}

.feature-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-list article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.privacy-section {
  padding: 54px 0 58px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: clamp(52px, 8vw, 96px);
  align-items: start;
}

.privacy-grid > div:first-child > p:last-child {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.privacy-detail > p {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.text-link {
  font-size: 13px;
  font-weight: 610;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--faint);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 34px;
  row-gap: 10px;
  align-items: center;
  font-size: 11px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner .apple-legal {
  grid-column: 1 / -1;
  font-size: 10px;
}

.footer-inner strong {
  color: var(--muted);
  font-weight: 620;
}

.footer-link:hover {
  color: var(--ink);
}

/* Privacy policy */

.policy-page {
  padding: 64px 0 88px;
  background: var(--page);
}

.policy-document {
  width: min(720px, calc(100% - 40px));
}

.policy-heading {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.policy-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.policy-date {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.policy-intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.policy-content {
  margin-top: 42px;
}

.policy-content section {
  margin: 0;
}

.policy-content section + section {
  margin-top: 42px;
}

.policy-content h2 {
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.policy-content p {
  margin: 0 0 14px;
}

.policy-content section > :last-child {
  margin-bottom: 0;
}

.policy-content ul {
  padding-left: 1.35em;
  margin: 14px 0 18px;
}

.policy-content li + li {
  margin-top: 4px;
}

.policy-content strong {
  color: var(--ink);
  font-weight: 630;
}

.policy-content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.policy-content code {
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* Open source acknowledgements */

.acknowledgements-content section {
  scroll-margin-top: 88px;
}

.acknowledgements-content section + section {
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.acknowledgements-content .project-link {
  margin: -6px 0 18px;
  font-size: 12px;
  line-height: 1.4;
}

.acknowledgements-content .project-link a {
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: -0.015em;
  text-decoration: none;
}

.acknowledgements-content .project-link a:hover {
  color: var(--ink);
}

.acknowledgements-content .project-link span {
  margin-left: 2px;
  color: var(--faint);
}

.license-text {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 40px, 720px);
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 600px;
  }

  .hero-lede {
    max-width: 620px;
  }

  .privacy-grid {
    gap: 24px;
  }

  .section-intro > p {
    max-width: 600px;
  }

}

@media (max-width: 620px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .site-header nav {
    gap: 14px;
    font-size: 12px;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .availability {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }

  .availability span {
    display: block;
    padding-left: 0;
    border-left: 0;
  }

  .features-section {
    padding: 48px 0 52px;
  }

  .section-intro h2,
  .privacy-grid h2 {
    font-size: 29px;
  }

  .feature-list {
    margin-top: 30px;
  }

  .feature-list article {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .privacy-section {
    padding: 44px 0 46px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .policy-page {
    padding: 40px 0 56px;
  }

  .policy-document {
    width: calc(100% - 32px);
  }

  .policy-heading {
    padding-bottom: 26px;
  }

  .policy-heading h1 {
    font-size: 31px;
  }

  .policy-intro {
    font-size: 17px;
  }

  .policy-content {
    margin-top: 34px;
  }

  .policy-content section + section {
    margin-top: 34px;
  }

  .acknowledgements-content section + section {
    padding-top: 34px;
  }

  .license-text {
    padding: 18px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
