:root {
  --bg: var(--ct-bg-root, #090f1a);
  --text: var(--ct-text-main, #edeff2);
  --muted: var(--ct-text-muted, #9ba3af);
  --hero-max: 760px;
  --button-max: 420px;
  --r14: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ct-font-sans, "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif);
  color: var(--text);
  background: transparent;
}

.wrap {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 20px 20px 26px;
}

.access {
  width: min(var(--hero-max), calc(100vw - 40px));
  margin: 0 auto;
  text-align: center;
  transform: translateY(-2.2vh);
}

.hero-logo {
  display: inline-flex;
  width: 114px;
  height: 99px;
  margin: 0 auto 6px;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-wordmark {
  margin: 0 auto 15px;
  color: rgba(155, 163, 175, 0.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  line-height: 1;
}

h1 {
  max-width: var(--hero-max);
  margin: 0 auto;
  color: #edeff2;
  font-size: 78px;
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
}

h1 .line {
  display: block;
}

h1 .line + .line {
  margin-top: 7px;
}

.actions {
  width: min(100%, var(--button-max));
  margin: 56px auto 0;
  display: grid;
  gap: var(--r14);
}

.btn {
  width: 100%;
  border-radius: 16px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
}

.btn-content {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  column-gap: 12px;
  align-items: center;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  justify-self: center;
}

.btn-label {
  justify-self: center;
}

.btn-spacer {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.btn-google {
  background: #fff;
  color: #202124;
  border-color: #dadce0;
}

.btn-apple {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-passkey {
  color: #d8dde4;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-passkey:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.status {
  margin: var(--r14) 2px 0;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.fallback {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  display: none;
  background: rgba(255, 255, 255, 0.02);
}

.fallback.show {
  display: block;
}

.fallback-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #d8dde4;
}

.fallback-copy {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #9ea7b2;
}

.fallback .btn {
  min-height: 44px;
}

[data-anim] {
  opacity: 0;
  transform: translateY(8px);
}

body.ready [data-anim="title"] {
  animation: reveal 500ms ease forwards;
}

body.ready [data-anim="subtitle"] {
  animation: reveal 400ms ease 300ms forwards;
}

body.ready [data-anim="actions"] {
  animation: reveal 300ms ease 600ms forwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1279px) and (min-width: 768px) {
  .access {
    max-width: 640px;
    transform: translateY(-1.2vh);
  }

  .hero-logo {
    width: 104px;
    height: 91px;
    margin-bottom: 6px;
  }

  .hero-wordmark {
    margin-bottom: 19px;
    font-size: 13px;
  }

  h1 {
    max-width: 640px;
    font-size: 64px;
    line-height: 1.1;
  }

  h1 .line + .line {
    margin-top: 6px;
  }

  .actions {
    margin-top: 38px;
  }
}

@media (max-width: 767px) {
  .wrap {
    display: block;
    min-height: calc(100vh - 74px);
    padding: 0 24px;
  }

  .access {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding-top: 14vh;
    padding-bottom: 16px;
    transform: none;
  }

  .hero-logo {
    width: 94px;
    height: 81px;
    margin-bottom: 5px;
  }

  .hero-wordmark {
    font-size: 12px;
    margin-bottom: 16px;
    letter-spacing: 0.16em;
  }

  h1 {
    max-width: 90vw;
    font-size: 46px;
    line-height: 1.15;
  }

  h1 .line + .line {
    margin-top: 8px;
  }

  .actions {
    width: min(100%, 320px);
    margin-top: 56px;
    gap: 12px;
  }
}

@media (max-width: 639px) {
  .actions,
  .btn,
  .btn-content,
  .btn-label {
    min-width: 0;
  }

  .btn-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
