:root {
  color-scheme: light;
  --cream: #fff8ee;
  --cream-muted: rgb(255 248 238 / 0.76);
  --cream-soft: rgb(255 248 238 / 0.56);
  --line-light: rgb(255 255 255 / 0.22);
  --glass: rgb(255 255 255 / 0.1);
  --glass-line: rgb(255 255 255 / 0.2);
  --night: #111322;
  --container: min(1180px, calc(100% - 48px));
  --todayos-day-gradient:
    linear-gradient(
      180deg,
      color(display-p3 0.4469 0.6472 0.7828) 0%,
      color(display-p3 0.4286 0.6390 0.7896) 3.125%,
      color(display-p3 0.4103 0.6259 0.7844) 6.25%,
      color(display-p3 0.3918 0.6127 0.7791) 9.375%,
      color(display-p3 0.3733 0.5995 0.7738) 12.5%,
      color(display-p3 0.3577 0.5870 0.7670) 15.625%,
      color(display-p3 0.3498 0.5764 0.7564) 18.75%,
      color(display-p3 0.3419 0.5658 0.7458) 21.875%,
      color(display-p3 0.3342 0.5556 0.7356) 25%,
      color(display-p3 0.3303 0.5501 0.7299) 28.125%,
      color(display-p3 0.3362 0.5531 0.7269) 31.25%,
      color(display-p3 0.3431 0.5566 0.7234) 34.375%,
      color(display-p3 0.3504 0.5599 0.7197) 37.5%,
      color(display-p3 0.3681 0.5564 0.7055) 40.625%,
      color(display-p3 0.3858 0.5528 0.6914) 43.75%,
      color(display-p3 0.4061 0.5507 0.6753) 46.875%,
      color(display-p3 0.4377 0.5542 0.6507) 50%,
      color(display-p3 0.4691 0.5577 0.6263) 53.125%,
      color(display-p3 0.5003 0.5600 0.5974) 56.25%,
      color(display-p3 0.5312 0.5600 0.5597) 59.375%,
      color(display-p3 0.5617 0.5600 0.5223) 62.5%,
      color(display-p3 0.6309 0.5142 0.4032) 65.625%,
      color(display-p3 0.7191 0.3997 0.2788) 68.75%,
      color(display-p3 0.5113 0.2571 0.3783) 71.875%,
      color(display-p3 0.1980 0.1440 0.3080) 75%,
      color(display-p3 0.0903 0.0768 0.1637) 78.125%,
      color(display-p3 0.0800 0.0700 0.1500) 81.25%,
      color(display-p3 0.0800 0.0700 0.1500) 100%
    );
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  color: var(--cream);
  background-color: rgb(13 12 26);
  background-image: var(--todayos-day-gradient);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

a,
button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

section {
  padding: 96px 0;
}

.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--cream);
  background: var(--night);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-light);
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.nav {
  display: flex;
  width: var(--container);
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 22px 28px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 16px;
  font-weight: 780;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--cream-muted);
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(21 24 39 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.76);
}

.language-switcher button {
  appearance: none;
  min-width: 44px;
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: rgb(21 24 39 / 0.7);
  background: transparent;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--cream);
  background: var(--night);
}

/* Shared type */

h2 {
  color: var(--cream);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.04;
}

.section-header {
  display: grid;
  max-width: 820px;
  gap: 18px;
  margin-bottom: 56px;
}

.section-header.center {
  justify-items: center;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header p {
  color: var(--cream-muted);
  font-size: 19px;
  line-height: 1.7;
  white-space: pre-line;
}

/* App Store badges and CTA */

.app-store-badge-stack {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.app-store-badge {
  width: auto;
  height: 54px;
}

.app-store-support-copy {
  color: var(--cream-muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.4;
  text-align: center;
}

.cta-section {
  padding: 72px 0;
}

.cta-section .section-inner {
  display: flex;
  justify-content: center;
}

.app-store-cta-link {
  display: grid;
  width: fit-content;
  justify-items: center;
  gap: 16px;
  border-radius: 12px;
  color: var(--cream);
  text-align: center;
  text-decoration: none;
}

.cta-lockup {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.cta-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgb(17 19 34 / 0.2);
}

.cta-title {
  display: inline-block;
  padding-block: 20px;
  font-size: 42px;
  font-weight: 820;
  line-height: 1.08;
  white-space: nowrap;
}

/* Note and footer */

.site-note {
  padding: 20px 0 0;
}

.note-inner {
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.note-inner h2 {
  font-size: 1rem;
  line-height: 1.4;
}

.note-inner p {
  max-width: 760px;
  color: var(--cream-muted);
  font-size: 18px;
  line-height: 1.72;
}

.site-footer {
  padding: 44px 0 58px;
  color: rgb(255 248 238 / 0.72);
}

.footer-inner {
  display: flex;
  width: var(--container);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: inherit;
  font-weight: 720;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 640ms ease,
    transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 36px, 1180px);
  }

  .nav {
    flex-wrap: wrap;
    padding: 8px 0 10px;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    gap: 10px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  section {
    padding: 64px 0;
  }

  .app-store-badge {
    height: 50px;
  }

  .cta-app-icon {
    width: clamp(64px, 18vw, 72px);
    height: clamp(64px, 18vw, 72px);
  }

  .cta-title {
    padding-block: clamp(14px, 4.5vw, 20px);
    font-size: clamp(28px, 9.5vw, 42px);
  }

  .note-inner {
    gap: 10px;
    padding: 24px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
