/* =========================================================================
   PCLYTICS — Coming Soon
   Fonts:  Steve Sans (headings) · Inter (body)
   Colors: Blue #0b3ea3 · Green #40a52b / #56b746 (from the brand logo)
   ========================================================================= */

/* ---- Steve Sans (headings) -------------------------------------------------
   "Steve Sans" is not a hosted webfont, so it loads from a local file.
   Drop the font file(s) into  coming soon/fonts/  and the headings will
   switch to Steve Sans automatically. Until then they fall back gracefully
   to Inter. Supports woff2/woff — adjust the filenames if yours differ.      */
@font-face {
  font-family: "Steve Sans";
  src:
    url("fonts/SteveSans.woff2") format("woff2"),
    url("fonts/SteveSans.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0b3ea3;
  --blue-deep: #082e78;
  --green: #40a52b;
  --green-light: #56b746;

  --ink: #16202e; /* primary text */
  --muted: #5b6675; /* secondary text */
  --bg: #f7f9f8; /* page background (soft off-white, hint of green) */
  --card: #ffffff;
  --border: rgba(11, 62, 163, 0.12);

  --font-head: "Steve Sans", "Inter", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Background glows ---------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow--blue {
  width: 44rem;
  height: 44rem;
  top: -16rem;
  left: -12rem;
  background: rgba(11, 62, 163, 0.16);
}

.glow--green {
  width: 40rem;
  height: 40rem;
  bottom: -18rem;
  right: -12rem;
  background: rgba(64, 165, 43, 0.16);
}

/* ---- Layout ------------------------------------------------------------- */
.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Logo --------------------------------------------------------------- */
.logo {
  display: inline-flex;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.logo__svg {
  width: clamp(180px, 34vw, 260px);
  height: auto;
  display: block;
}

/* ---- Coming soon badge -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  background: rgba(64, 165, 43, 0.1);
  border: 1px solid rgba(64, 165, 43, 0.28);
  border-radius: 999px;
}

.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ---- Text --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.headline {
  font-family: var(--font-head);
  margin: 0 0 1.1rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--ink);
}

.headline__accent {
  color: var(--blue);
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
}

/* ---- Steps -------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(11, 62, 163, 0.05);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---- Footer ------------------------------------------------------------- */
.footer {
  flex-shrink: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

/* =========================================================================
   Motion — entrance reveals + logo check draw
   ========================================================================= */
/* Content is fully visible by default. Animations are an enhancement that
   only kick in once JS has added `.is-animating` (before paint). If anything
   prevents the animation from running, `.anim-fallback` (a 1.5s safety timer)
   forces everything visible — the page is never left blank. */
.is-animating [data-reveal],
.is-animating .logo__svg {
  opacity: 0;
}
.is-animating [data-reveal] {
  transform: translateY(14px);
}
.is-animating .logo__svg {
  transform: scale(0.96);
}

.is-animating.is-loaded [data-reveal],
.is-animating.is-loaded .logo__svg {
  animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}

/* Staggered delays */
.is-animating.is-loaded .badge {
  animation-delay: 0.15s;
}
.is-animating.is-loaded .eyebrow {
  animation-delay: 0.25s;
}
.is-animating.is-loaded .headline {
  animation-delay: 0.35s;
}
.is-animating.is-loaded .lede {
  animation-delay: 0.45s;
}
.is-animating.is-loaded .steps {
  animation-delay: 0.55s;
}
.is-animating.is-loaded .footer {
  animation-delay: 0.7s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Green check gets a subtle pop after the logo settles */
.logo__check {
  transform-box: fill-box;
  transform-origin: center;
}
.is-animating .logo__check {
  opacity: 0;
}
.is-animating.is-loaded .logo__check {
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

/* Safety net — force everything visible regardless of animation state */
.anim-fallback [data-reveal],
.anim-fallback .logo__svg,
.anim-fallback .logo__check {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@keyframes pop {
  0% {
    transform: scale(0.4) rotate(-8deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal],
  .logo__svg,
  .logo__check {
    opacity: 1 !important;
    transform: none !important;
  }
}
