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

body {
  font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #202124;
  background-color: #ffffff;
  background-image: url('/static/background.png');
  background-repeat: repeat;
  /* Match the mosaic square size baked into the hero lockup:
     both assets share the same native pattern scale, and the hero
     renders at 640px from a 2948px original (~0.217), so the
     1831px-wide tile displays at 1831 x 0.217 = ~398px. */
  background-size: 398px auto;
  min-height: 100vh;
}

.site {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.chip {
  display: inline-block;
  background: linear-gradient(90deg, #188038, #34A853);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 20px;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  margin-bottom: 24px;
}

.hero-lockup {
  margin-bottom: 8px;
}

.hero-lockup img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
}

.hero-desc {
  font-size: 18px;
  color: #5f6368;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ---------- Invite form ---------- */

.invite-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  font-size: 16px;
  font-family: inherit;
  color: #202124;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.email-input:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #4285F4;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
  line-height: 1.2;
}

.btn-primary:hover {
  background: #1a73e8;
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.4);
}

.btn-secondary {
  display: inline-block;
  margin-top: 24px;
  padding: 11px 26px;
  color: #4285F4;
  border: 1.5px solid #4285F4;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #e8f0fe;
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step:nth-child(1) .step-number { background: #4285F4; }
.step:nth-child(2) .step-number { background: #34A853; }
.step:nth-child(3) .step-number { background: #F9AB00; }

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  color: #5f6368;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 48px 0 40px;
  font-size: 14px;
  color: #5f6368;
}

.footer a {
  color: #4285F4;
  font-weight: 600;
  text-decoration: none;
}

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

.footer .sep {
  margin: 0 10px;
  color: #dadce0;
}

.footer-credit {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 13px;
  color: #80868b;
}

/* ---------- Result pages ---------- */

.result-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 32px 0;
}

.result-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(60, 64, 67, 0.10);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 34px;
  margin-bottom: 22px;
}

.result-icon.success { background: #e6f4ea; }
.result-icon.info    { background: #e8f0fe; }
.result-icon.warn    { background: #fef7e0; }
.result-icon.error   { background: #fce8e6; }

.result-card h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}

.result-card p {
  font-size: 15px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 6px;
}

.result-card .btn-primary {
  margin-top: 18px;
}

.result-header {
  text-align: center;
  padding-top: 48px;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .invite-form {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
  }

  .result-card {
    padding: 36px 24px;
  }
}
