:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --bg: #fff;
  --panel: #f5f5f7;
  --cell: #fff;
  --separator: #d2d2d7;
  --nav: rgba(255, 255, 255, 0.72);
  --tint: #0071e3;
  --link: #0066cc;
  --red: #ff3b30;
  --green: #34c759;
  --purple: #af52de;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --tertiary: #86868b;
    --bg: #000;
    --panel: #161617;
    --cell: #1c1c1e;
    --separator: #424245;
    --nav: rgba(22, 22, 23, 0.72);
    --tint: #0071e3;
    --link: #2997ff;
    --red: #ff453a;
    --green: #30d158;
    --purple: #bf5af2;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.07;
}

h1 {
  font-size: 56px;
}

.icon {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.art {
  display: block;
  max-width: 100%;
}

/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}

nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

nav a[aria-current="page"] {
  font-weight: 400;
  color: var(--text);
}

nav img {
  width: 20px;
  height: 20px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

main {
  flex: 1;
  width: 100%;
  padding-top: 44px;
}

/* Buttons */

.ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.button {
  padding: 11px 22px;
  border: 1px solid var(--tint);
  border-radius: 980px;
  background: var(--tint);
  color: #fff;
  font-size: 17px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button.outline {
  background: transparent;
  color: var(--tint);
}

.button.light {
  border-color: #fff;
  background: #fff;
  color: #0071e3;
}

.button.light.outline {
  background: transparent;
  color: #fff;
}

/* Home */

.home {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 22px 0;
  overflow: hidden;
  text-align: center;
}

.promo h2 {
  font-size: 56px;
}

.promo .ctas {
  margin-top: 8px;
}

.promo .cards {
  width: 580px;
  margin: 32px 0 48px;
}

.promo .map {
  height: 520px;
  margin: 32px 0 48px;
}






/* App pages */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 22px 0;
  overflow: hidden;
  text-align: center;
}

.hero .icon {
  margin-bottom: 8px;
}

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

.hero .ctas,
.hero .ovals,
.hero .candy {
  margin-top: 8px;
}

.hero .cards {
  width: 580px;
  margin: 40px 0 64px;
}

.hero .map {
  height: 560px;
  margin: 40px 0 64px;
}




/* setset: the card symbols drifting behind everything */

.setset-field {
  background: #f2f2f7 url("/setset/field.svg") 0 0 / 480px;
  animation: drift 60s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .setset-field {
    background-color: #000;
  }
}

@keyframes drift {
  to {
    background-position: 480px 480px;
  }
}

.wordmark span {
  color: var(--c);
}

.wordmark .red {
  --c: var(--red);
}

.wordmark .green {
  --c: var(--green);
}

.wordmark .purple {
  --c: var(--purple);
}



.ovals {
  display: flex;
  gap: 16px;
}

.ovals a {
  padding: 10px 28px;
  border: 3px solid var(--c);
  border-radius: 980px;
  font-weight: 600;
  transition: transform 0.15s;
}

.ovals a:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.ovals .red {
  --c: var(--red);
  background: var(--c);
  color: #fff;
}

.ovals .purple {
  --c: var(--purple);
  background: var(--bg);
  color: var(--c);
}

/* Prefectures: the icon's sky with an atlas grid */

.atlas {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 56px),
    linear-gradient(#6fd0f5, #2fa8e0);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .atlas {
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 56px),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 56px),
      linear-gradient(#0d5f8c, #062f4a);
  }
}

.atlas .icon {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 12px 32px rgba(0, 40, 80, 0.3);
}

.candy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.candy a {
  padding: 8px 22px;
  border-radius: 980px;
  background: linear-gradient(#fff, #e3f3fb);
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #1c8fd0;
  font-weight: 600;
  transition: transform 0.15s;
}

.candy a:hover {
  text-decoration: none;
  transform: scale(1.05);
}

.candy .store {
  background: linear-gradient(#3a3a3c, #000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Legal and support */

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 100px 22px 96px;
}

.wrap h1 {
  font-size: 48px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px -2px;
  font-size: 17px;
}

.back::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}

.back:hover {
  text-decoration: none;
  opacity: 0.7;
}

.updated {
  margin: 8px 0 40px;
  color: var(--tertiary);
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.legal p {
  margin: 0 0 12px;
  max-width: 692px;
}

.group {
  margin: 40px 0 0;
  padding: 0;
  max-width: 692px;
  list-style: none;
  background: var(--cell);
  border: 0.5px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
}

.group a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: var(--text);
}

.group a:hover {
  text-decoration: none;
  background: var(--panel);
}

.group a span {
  color: var(--tertiary);
}

.group a span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-top: 2px solid #c7c7cc;
  border-right: 2px solid #c7c7cc;
  transform: rotate(45deg);
  vertical-align: 1px;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(22px, calc((100% - 936px) / 2));
  background: var(--panel);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--tertiary);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--secondary);
}

@media (prefers-reduced-motion: reduce) {
  .setset-field {
    animation: none;
  }
}

@media (max-width: 734px) {
  h1,
  .promo h2,
  .hero h1 {
    font-size: 48px;
  }

  .promo .map,
  .hero .map {
    height: 380px;
  }

  .candy a {
    padding: 7px 15px;
    font-size: 15px;
  }
}
