/* Landing page: background, hero, loader. Loaded after style.css on index.html only. */

body.landing {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(45, 212, 191, 0.28), transparent 60%),
    radial-gradient(700px 520px at 92% 92%, rgba(15, 118, 110, 0.6), transparent 60%),
    linear-gradient(160deg, #0b5952 0%, #0a3f3b 55%, #072b29 100%);
  background-attachment: fixed;
}
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  gap: 24px;
  align-content: center;
  justify-items: center;
}

.hero { color: #fff; text-align: center; max-width: 460px; }
.hero-logo { display: inline-block; margin-bottom: 10px; }
.hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.5px; }
.hero-lead { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.hero-points { display: none; list-style: none; margin: 28px 0 0; padding: 0; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
.hero-points .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing .card { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); border-color: transparent; }
.card-title { font-size: 22px; font-weight: 700; color: var(--teal-dark); margin-bottom: 4px; }

.landing-footer { text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.landing-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; margin: 0 8px; }
.landing-footer a:hover { text-decoration: underline; }

@media (min-width: 880px) {
  .landing-shell {
    grid-template-columns: 1.1fr 400px;
    gap: 24px 64px;
    justify-items: stretch;
    align-items: center;
  }
  .hero { text-align: left; max-width: none; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 18px; }
  .hero-points { display: block; }
  .landing-footer { grid-column: 1 / -1; }
}

/* Loader overlay */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(7, 43, 41, 0.97);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.loader.visible { display: flex; }
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Spinner inside a button while it works */
button.loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.google-btn.loading::before { margin-right: 0; border-color: rgba(0, 0, 0, 0.15); border-top-color: var(--teal); }
.google-btn.loading svg { display: none; }

@media (prefers-reduced-motion: reduce) {
  .spinner, button.loading::before { animation-duration: 2.5s; }
}
