@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

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

:root {
  --g-blue:   #4285f4;
  --g-red:    #ea4335;
  --g-yellow: #fbbc04;
  --g-green:  #34a853;
  --bg:       #000;
  --surface:  rgba(255,255,255,0.08);
  --border:   rgba(255,255,255,0.12);
  --text:     #fff;
  --text-dim: #8c8c8c;
  --radius-lg: 26px;
  --radius-md: 18px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Google Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Prevent zoom on input tap on iOS */
  touch-action: manipulation;
}

/* ── App shell — phone only ─────────────────── */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* On large screens (desktop/tablet), show a "use your phone" message */
@media (min-width: 600px) {
  body::before {
    content: 'Please open this on your phone';
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: #000;
    color: rgba(255,255,255,0.4);
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    z-index: 9999;
  }
}

/* ── Header ────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
}

.header-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.header-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.header-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── Step progress indicator ───────────────── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 24px 32px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
  transition: background 0.3s ease;
}

/* Step states */
.step.completed .step-circle {
  background: var(--g-green);
  border-color: var(--g-green);
  color: #fff;
}
.step.completed .step-label { color: var(--g-green); }
.step.completed + .step-line { background: var(--g-green); }

.step.active .step-circle {
  background: transparent;
  border-color: var(--g-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(52,168,83,0.15);
}
.step.active .step-label { color: #fff; font-weight: 500; }

/* ── CTA Button ─────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  aspect-ratio: 5 / 1;
  border-radius: 26px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'Google Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  cursor: pointer;
  width: 67.5%;
  max-width: 290px;
  align-self: center;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  position: relative;
  z-index: 0;
}

/* Rainbow gradient border via pseudo-element */
.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc04, #34a853, #4285f4);
  z-index: -1;
}

/* Black fill inside the border */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: #000;
  z-index: -1;
  transition: background 0.2s;
}

.btn:hover::after  { background: #1A1A1A; }
.btn:active { transform: scale(0.98); }

.btn-arrow .arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: auto;
  display: flex;
  align-items: center;
  font-size: 0;
}

.btn-secondary::before {
  background: var(--border);
}

.btn-secondary {
  color: var(--text-dim);
}

/* ── Card/Surface ───────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Content area ───────────────────────────── */
.content {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* ── Footer actions ─────────────────────────── */
.footer {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* ── Spinner ────────────────────────────────── */
.spinner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: bounce 1s infinite;
}

.spinner span:nth-child(1) { background: var(--g-blue);   animation-delay: 0s; }
.spinner span:nth-child(2) { background: var(--g-red);    animation-delay: 0.15s; }
.spinner span:nth-child(3) { background: var(--g-yellow); animation-delay: 0.3s; }
.spinner span:nth-child(4) { background: var(--g-green);  animation-delay: 0.45s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-10px); }
}

/* ── Checkmark icon ─────────────────────────── */
.check-icon::before { content: '✓'; }
