.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #f2f3f7;
  border-bottom: 1px solid rgba(20, 22, 40, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand:visited {
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
}

.site-nav a:not(.button) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
}

.site-nav a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.button:visited {
  color: #fff;
}

.button:hover {
  background: var(--blue-press);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-small {
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
}

.button-block {
  width: 100%;
}

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p,
.footer-base p {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer nav a {
  color: var(--ink);
  text-underline-offset: 3px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.site-footer nav a:visited {
  color: var(--ink);
}

.site-footer nav a:hover {
  color: var(--link);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-base p {
  margin: 0;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

span.store-cta,
a.store-cta {
  text-align: center;
  text-wrap: balance;
  line-height: 1.2;
  padding-top: 10px;
  padding-bottom: 10px;
}

span.store-cta {
  cursor: default;
}

@media (max-width: 700px) {
  .join .store-cta {
    width: 100%;
  }
}

.phone {
  width: min(100%, 320px);
  margin-inline: auto;
}

.phone-bezel {
  background: #0c0d10;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(20, 22, 40, 0.16);
}

.phone-screen {
  background: var(--surface);
  border-radius: 36px;
  overflow: hidden;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 10px 16px 0;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

.island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

.status-glyphs {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.glyph-battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.glyph-battery::before {
  content: "";
  position: absolute;
  inset: 1.5px 6px 1.5px 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.glyph-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 1px;
}

.glyph-signal {
  width: 14px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 6px / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 4px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 2px / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 0 / 2px 10px no-repeat;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 22, 40, 0.08);
    z-index: 50;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .button {
    width: 100%;
    margin-top: 8px;
  }

  .footer-grid,
  .footer-base {
    grid-template-columns: 1fr;
    display: grid;
  }
}
