/* Minimal handoff page, mobile-first */

:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #525252;
  --line: #e5e5e5;
  --accent: #00aeef;
  --accent-hover: #0095cf;
  --tap: 48px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: max(0.75rem, env(safe-area-inset-top));
  z-index: 200;
  padding: 0.65rem 1rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 8px;
}

.skip-link:focus {
  left: max(0.75rem, env(safe-area-inset-left));
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
}

.sheet {
  width: 100%;
  max-width: 26rem;
  align-self: center;
}

/* Logos: stack on small screens, 3-column row when wide enough */
.brands {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 22rem) {
  .brands {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.65rem 0.5rem;
  }

  .brands__sep {
    transform: none;
    padding: 0;
  }
}

.brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.brands__img--cf {
  max-height: 44px;
}

.brands__img--lu {
  max-height: 40px;
  max-width: 200px;
}

.brands__sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 0.35rem 0;
}

@media (max-width: 21.99rem) {
  .brands__sep {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

.brands__chev {
  display: block;
}

.title {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.title__brand {
  color: var(--accent);
}

.prose {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--accent-hover);
}

.action {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.countdown {
  --progress: 1;
  margin-bottom: 1rem;
}

.countdown__bar {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.countdown__bar-fill {
  height: 100%;
  width: calc(var(--progress) * 100%);
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
  .countdown__bar-fill {
    transition: none;
  }
}

.countdown__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

#countdown-seconds {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap);
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-align: center;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

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

.btn:active {
  opacity: 0.92;
}

.foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-size: 0.8125rem;
  color: #737373;
  text-align: center;
  line-height: 1.45;
}

.foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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