/* Poppins: SIL Open Font License 1.1, see fonts/OFL.txt */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-700.woff2") format("woff2");
}

:root {
  --cream-top: #FAF6EC;
  --cream-bottom: #F1EAD8;
  --sage: #A8C3A0;
  --moss: #CFDDBF;
  --sand: #EADBB8;
  --forest: #2F5D3A;
  --forest-hover: #3A7048;
  --ink: #1F3A2B;
  --muted: #5B6B5E;
}

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

html, body { margin: 0; height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bottom) 100%) fixed;
  background-color: var(--cream-top);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Drifting glows ---------- */
.glows {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.glow--sage {
  width: 55vmax; height: 55vmax;
  top: -18vmax; left: -15vmax;
  background: var(--sage);
  opacity: .45;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.glow--moss {
  width: 50vmax; height: 50vmax;
  bottom: -20vmax; right: -14vmax;
  background: var(--moss);
  opacity: .5;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.glow--sand {
  width: 38vmax; height: 38vmax;
  top: 30%; left: 55%;
  background: var(--sand);
  opacity: .35;
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-7vmax, -5vmax) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-10vmax, 4vmax) scale(.92); } }

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 560px;
  padding: 32px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mascot {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(190px, 26vw, 290px);
  height: auto;
  margin-bottom: -28px; /* overlaps the card's top edge */
  filter: drop-shadow(0 14px 18px rgba(47, 93, 58, .14));
  animation: float 4.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------- Glass card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 52px 40px 40px;
  border-radius: 24px;
  border: 1px solid rgba(47, 93, 58, .12);
  box-shadow: 0 20px 60px rgba(47, 93, 58, .12);
  /* Fallback: more solid when backdrop-filter isn't supported */
  background: rgba(255, 253, 246, .9);
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .card {
    background: rgba(255, 253, 246, .55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

h1 {
  margin: 0 0 28px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* ---------- Button ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream-top);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(47, 93, 58, .18);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cta:hover {
  background: var(--forest-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47, 93, 58, .35);
}
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
.cta svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  padding: 8px 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.leaves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.leaves::before, .leaves::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--sage);
}
.leaves span {
  width: 6px; height: 6px;
  border-radius: 0 50% 0 50%; /* tiny leaf */
  background: var(--sage);
}
.leaves span:nth-child(2) { background: var(--forest); opacity: .55; }

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  main { padding-top: 20px; }
  .mascot { width: clamp(170px, 52vw, 210px); margin-bottom: -22px; }
  .card { padding: 40px 20px 28px; border-radius: 22px; }
  h1 { font-size: clamp(24px, 7.8vw, 30px); }
  h1 { margin-bottom: 24px; }
  .cta { width: 100%; padding: 0 24px; }
}
/* Short screens: shrink the mascot so everything fits */
@media (max-height: 640px) {
  .mascot { width: 160px; }
  main { padding-top: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cta:hover { transform: none; }
}
