/* PAGE: Coming-soon landing. Layout, styling and entrance. */
.zg-landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px;
  clip-path: inset(50% 0 50% 0);    /* opened by the perimeter lines */
}
.zg-landing.is-open { clip-path: none; }

/* Header */
.zg-landing__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}
.zg-landing__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--zg-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zg-dim);
}
.zg-landing__dot {
  width: 7px; height: 7px;
  background: var(--zg-lime);
  animation: zg-landing-blink 1.6s steps(1) infinite;
}
@keyframes zg-landing-blink { 50% { opacity: 0.15; } }

/* Main */
.zg-landing__main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding: 48px 0;
}

.zg-landing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--zg-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zg-lime);
  margin-bottom: 28px;
}
.zg-landing__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--zg-lime); }

.zg-landing__title {
  font-weight: 500;
  font-size: clamp(40px, 5.1vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.015em;   /* opened up slightly */
}
.zg-landing__line { display: block; overflow: hidden; padding-bottom: 0.36em; margin-bottom: -0.3em; white-space: nowrap; }   /* room for descenders (g, p, y) without changing line spacing */
.zg-landing__line > span { display: inline-block; }

.zg-landing__sub {
  margin-top: 28px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--zg-dim);
}
.zg-landing__sub + .zg-landing__sub { margin-top: 12px; }   /* paragraphs after the first sit closer */

/* Call to action above the email field */
.zg-landing__cta {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--zg-lime);
}

/* Logo plate — official horizontal logo, unaltered */
.zg-landing__plate { position: relative; justify-self: end; width: min(100%, 400px); }
.zg-landing__platecard { background: #fff; padding: 7%; }   /* desktop: tight artwork file, slim white border */
.zg-landing__platecard img { width: 100%; height: auto; }
.zg-landing__caption {
  margin-top: 24px;   /* clears the bottom corner marks */
  font-family: var(--zg-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.zg-landing__tick {
  position: absolute;
  width: 18px; height: 18px;
  border: 0 solid var(--zg-lime);
}
.zg-landing__tick--tl { top: -12px; left: -12px; border-top-width: 1px; border-left-width: 1px; }
.zg-landing__tick--tr { top: -12px; right: -12px; border-top-width: 1px; border-right-width: 1px; }
.zg-landing__tick--bl { bottom: -12px; left: -12px; border-bottom-width: 1px; border-left-width: 1px; }
.zg-landing__tick--br { bottom: -12px; right: -12px; border-bottom-width: 1px; border-right-width: 1px; }
/* The corner marks are positioned against the white box itself, so all four sit exactly 12px out */
.zg-landing__frame { position: relative; }

/* Footer */
.zg-landing__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--zg-faint);
  font-family: var(--zg-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Entrance: everything slides into place after the edge animation ---------- */
.zg-landing__head    { opacity: 0; transform: translateY(-40px); }
.zg-landing__eyebrow { opacity: 0; transform: translateX(-80px); }
.zg-landing__line > span { transform: translateY(170%); }
.zg-landing__sub     { opacity: 0; transform: translateX(-80px); }
.zg-landing__cta     { opacity: 0; transform: translateX(-80px); }
.zg-signup           { opacity: 0; transform: translateX(-80px); }
.zg-landing__plate   { opacity: 0; transform: translateX(120px); }
.zg-landing__platecard { clip-path: inset(0 0 100% 0); }
.zg-landing__tick    { opacity: 0; transform: scale(0.4); }
.zg-landing__caption { opacity: 0; transform: translateY(12px); }
.zg-landing__foot    { opacity: 0; transform: translateY(40px); }

.zg-landing.is-in .zg-landing__head,
.zg-landing.is-in .zg-landing__eyebrow,
.zg-landing.is-in .zg-landing__sub,
.zg-landing.is-in .zg-landing__cta,
.zg-landing.is-in .zg-signup,
.zg-landing.is-in .zg-landing__plate,
.zg-landing.is-in .zg-landing__caption,
.zg-landing.is-in .zg-landing__foot {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.zg-landing.is-in .zg-landing__line > span { transform: none; transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1); }
.zg-landing.is-in .zg-landing__platecard { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(0.77, 0, 0.18, 1) 0.55s; }
.zg-landing.is-in .zg-landing__tick { opacity: 1; transform: none; transition: opacity 0.5s ease 1.5s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s; }

.zg-landing.is-in .zg-landing__head    { transition-delay: 0.1s; }
.zg-landing.is-in .zg-landing__plate   { transition-delay: 0.15s; }
.zg-landing.is-in .zg-landing__eyebrow { transition-delay: 0.25s; }
.zg-landing.is-in .zg-landing__line:nth-child(1) > span { transition-delay: 0.35s; }
.zg-landing.is-in .zg-landing__line:nth-child(2) > span { transition-delay: 0.45s; }
.zg-landing.is-in .zg-landing__line:nth-child(3) > span { transition-delay: 0.55s; }
.zg-landing.is-in .zg-landing__sub     { transition-delay: 0.7s; }
.zg-landing.is-in .zg-landing__cta     { transition-delay: 0.75s; }
.zg-landing.is-in .zg-signup           { transition-delay: 0.8s; }
.zg-landing.is-in .zg-landing__foot    { transition-delay: 0.9s; }
.zg-landing.is-in .zg-landing__caption { transition-delay: 1.6s; }

/* Desktop: the plate holds perfectly still while the white box wipes on
   (fade only, no slide), and the corner marks flash, pop and settle */
@media (min-width: 901px) {
  .zg-landing__plate { transform: none; }
  .zg-landing.is-in .zg-landing__plate { transition: opacity 0.6s ease 0.15s; }
  .zg-landing.is-in .zg-landing__tick {
    opacity: 1; transform: none; transition: none;
    animation: zg-landing-tickpop 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
  }
  .zg-landing__tick--tl { transform-origin: 0 0; }
  .zg-landing__tick--tr { transform-origin: 100% 0; }
  .zg-landing__tick--bl { transform-origin: 0 100%; }
  .zg-landing__tick--br { transform-origin: 100% 100%; }
}
@keyframes zg-landing-tickpop {
  0%   { opacity: 0; transform: scale(0.4); }
  18%  { opacity: 1; transform: scale(1.9); }
  28%  { opacity: 0.15; }
  38%  { opacity: 1; transform: scale(1.5); }
  48%  { opacity: 0.25; }
  58%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Desktop: a larger left column so the page is fuller and less empty in the middle */
@media (min-width: 901px) {
  .zg-landing__plate { width: min(100%, 340px); }   /* logo box 15% smaller than before (400px) */
  .zg-landing__main { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); }
  .zg-landing__eyebrow { font-size: 14px; margin-bottom: 32px; }
  .zg-landing__eyebrow::before { width: 44px; }
  .zg-landing__title { font-size: clamp(48px, 6vw, 108px); }
  .zg-landing__sub { font-size: clamp(18px, 1.45vw, 23px); max-width: 600px; margin-top: 34px; }
  .zg-landing__cta { font-size: clamp(16px, 1.2vw, 19px); margin-top: 26px; }
}

/* Skip: land on the finished page without the entrance */
.zg-landing.is-final * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .zg-landing *, .zg-landing { transition: none !important; animation: none !important; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .zg-landing { padding: 20px 20px 18px; }
  .zg-landing__head { justify-content: flex-start; min-height: 0; }
  .zg-landing__main { grid-template-columns: 1fr; gap: 44px; padding: 40px 0 32px; }
  .zg-landing__platecard { padding: 12% 12% 10%; }   /* phone: unchanged */
  .zg-landing__plate { order: -1; justify-self: start; width: min(56vw, 260px); margin-left: 12px; }
  .zg-landing__title { font-size: clamp(38px, 10.5vw, 64px); }
  .zg-landing__line { white-space: normal; }
  .zg-landing__sub { font-size: 16px; }
  .zg-landing__cta { font-size: 15px; transform: translateX(-40px); }
  .zg-landing__plate { transform: translateX(60px); }
  .zg-landing__eyebrow, .zg-landing__sub, .zg-signup { transform: translateX(-40px); }
}
