:root {
  --blue: #0588f0;
  --ink: #0e1b2c;
  --body: #1e2a3b;
  --muted: #5b6575;
  --line: #e6e9ef;
  --move: 340ms cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@property --nav-p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--body);
  font-family: "Be Vietnam Pro", "Avenir Next", "Segoe UI", sans-serif;
  background-color: #f4f8fc;
  background-image:
    url("../landing/hero-dots.svg?v=4"),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  cursor: pointer;
}

.wrap {
  width: min(1200px, calc(100% - 240px));
  margin-inline: auto;
}

.nav {
  --nav-p: 0;
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  pointer-events: none;
  transition: --nav-p 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled {
  --nav-p: 1;
}

.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: calc(18px * var(--nav-p));
  height: calc(78px - 14px * var(--nav-p));
  padding: 0 calc(8px * var(--nav-p)) 0 calc(16px * var(--nav-p));
  border-radius: calc(999px * var(--nav-p));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, calc(0.55 * var(--nav-p))) 0%, rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, calc(0.58 * var(--nav-p)));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(0.75 * var(--nav-p))),
    inset 0 1px 0 rgba(255, 255, 255, calc(0.9 * var(--nav-p))),
    inset 0 -1px 2px rgba(14, 27, 44, calc(0.06 * var(--nav-p))),
    0 10px 30px 0 rgba(14, 27, 44, calc(0.1 * var(--nav-p)));
  backdrop-filter: blur(calc(28px * var(--nav-p)));
  -webkit-backdrop-filter: blur(calc(28px * var(--nav-p)));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-scrolled .nav-bar {
  width: min(1040px, calc(100% - 64px));
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 40px;
  justify-self: start;
  margin-left: calc(-16px * (1 - var(--nav-p)));
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-lockup {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: calc(40px - 18px * var(--nav-p));
  margin-inline: auto;
}

.nav-links a {
  color: var(--body);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--move);
}

.nav-links a:not([href]) {
  cursor: pointer;
}

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

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-chev,
.nav-toggle {
  display: none;
}

.nav-bar > .nav-cta {
  display: none;
}

.nav-panel,
.nav-panel-clip {
  display: contents;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--move), color var(--move), border-color var(--move), transform var(--move);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-login,
.btn-chrome {
  padding: 12px 20px;
  font-size: 15.5px;
}

.btn-login {
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(14, 27, 44, 0.06);
  color: var(--ink);
}

.btn-login:hover,
.btn-chrome:hover {
  transform: scale(1.04);
}

.btn-chrome {
  border: 0;
  background: linear-gradient(180deg, #3aa6f8 0%, #0588f0 46%, #0474d0 100%);
  box-shadow: 0 1px 2px rgba(14, 27, 44, 0.08);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.terms {
  width: min(1200px, calc(100% - 240px));
  margin: 0 auto;
  padding: 128px 0 96px;
}

.terms h1 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.terms-date {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.terms h2 {
  margin: 44px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.terms h3 {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.terms p,
.terms li {
  font-size: 16px;
  line-height: 1.65;
}

.terms p {
  margin: 14px 0 0;
}

.terms a {
  color: var(--blue);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.terms ul {
  margin: 14px 0 0;
  padding: 0 0 0 1.2em;
}

.terms li + li {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .wrap,
  .terms {
    width: calc(100% - 48px);
  }

  .nav-links {
    gap: 22px;
  }

  .brand {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .wrap,
  .terms {
    width: calc(100% - 32px);
  }

  .nav {
    --nav-p: 1;
    height: auto;
    align-items: flex-start;
    padding-top: 12px;
  }

  .nav-bar,
  .nav.is-scrolled .nav-bar {
    width: calc(100% - 32px);
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
      rgba(255, 255, 255, 0.58);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.75),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 2px rgba(14, 27, 44, 0.06),
      0 10px 30px 0 rgba(14, 27, 44, 0.1);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
  }

  .brand {
    order: 1;
    margin-right: auto;
    margin-left: 0;
  }

  .nav-bar > .nav-cta {
    display: inline-flex;
    order: 2;
    padding: 12px 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .nav-toggle {
    position: relative;
    order: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid #e6e9ef;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 1px 0 #fff;
  }

  .nav-toggle-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 8px;
  }

  .nav-toggle-icon span {
    position: absolute;
    left: 0;
    width: 14px;
    height: 1.7px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-toggle-icon span:first-child {
    top: 0;
  }

  .nav-toggle-icon span:last-child {
    top: 6px;
  }

  .nav.is-open .nav-toggle-icon span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav.is-open .nav-toggle-icon span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-panel {
    display: grid;
    grid-template-rows: 0fr;
    order: 4;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
  }

  .nav-panel-clip {
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 12px 0 0;
    padding: 0 4px;
    gap: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8px;
    border-top: 1px solid #eceff3;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
  }

  .nav-links a:last-child {
    border-bottom: 1px solid #eceff3;
  }

  .nav-chev {
    display: block;
    width: 16px;
    height: 16px;
    color: #98a2b3;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 14px;
    padding: 0 4px 2px;
  }

  .nav-actions .btn-login,
  .nav-actions .btn-chrome {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: 16px;
  }

  .nav.is-open .nav-bar {
    padding: 16px 14px 16px;
    border-radius: 28px;
  }

  .nav.is-open .brand {
    margin-right: 0;
  }

  .nav.is-open .nav-cta {
    display: none;
  }

  .nav.is-open .nav-toggle {
    order: 2;
    margin-left: auto;
  }

  .nav.is-open .nav-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    pointer-events: auto;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .brand-lockup {
    height: 36px;
  }

  .terms {
    padding-top: 112px;
  }

  .terms h1 {
    font-size: 34px;
  }
}

@media (max-width: 380px) {
  .brand,
  .brand-lockup {
    height: 32px;
  }

  .btn-login,
  .btn-chrome {
    padding: 9px 10px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav-bar,
  .nav-toggle-icon span,
  .nav-panel,
  .btn {
    transition: none;
  }
}
