/* ═══════════════════════════════════════════════════════════════════
   SCROLLSERVE — coming soon · page-specific styles
   Reuses the landing3 design system (styles.css); this file only adds
   the centered single-card layout and the waitlist form.
   ═══════════════════════════════════════════════════════════════════ */

.soon {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: clamp(1.5rem, 4vh, 3rem);
}

.soon-card {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(2.2rem, 6vw, 3.6rem) clamp(1.6rem, 5vw, 3.4rem);
  border-radius: calc(var(--r-lg) + 6px);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85);
}

.soon-brand {
  position: relative;
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}

.soon-brand img {
  filter: drop-shadow(0 0 14px rgba(111, 230, 168, 0.45));
}

.soon-title {
  position: relative;
  margin: 1.5rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.soon-sub {
  position: relative;
  max-width: 30em;
  margin: 1.3rem auto 0;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
}

/* ── form ──────────────────────────────────────────────────────────── */

.soon-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 440px;
  margin: 2.1rem auto 0;
  padding: 0.55rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border-strong);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.soon-form:focus-within {
  border-color: rgba(111, 230, 168, 0.5);
  box-shadow: 0 0 0 4px rgba(111, 230, 168, 0.12);
}

.soon-form.error {
  border-color: rgba(255, 120, 113, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 120, 113, 0.1);
  /* keep the form visible and level: the shake animation replaces the
     reveal animation whose `forwards` fill was holding opacity at 1
     and transform at none */
  opacity: 1;
  transform: none;
  animation: form-shake 0.4s ease;
}

.soon-form[hidden] {
  display: none;
}

@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  50%      { transform: translateX(4px); }
  75%      { transform: translateX(-2px); }
}

.soon-input {
  flex: 1;
  min-width: 0;
  padding: 0.85em 1.2em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: center;
}

.soon-input::placeholder {
  color: var(--text-faint);
}

.soon-input:focus {
  outline: none;
}

.soon-form .btn {
  flex: none;
  justify-content: center;
}

/* ── feedback line ─────────────────────────────────────────────────── */

.soon-feedback {
  position: relative;
  margin: 1.1rem auto 0;
  color: var(--text-faint);
}

.soon-feedback.ok {
  color: var(--green);
}

.soon-feedback.err {
  color: #ff7871;
}

/* ── success state ─────────────────────────────────────────────────── */

.soon-success {
  position: relative;
  margin-top: 2.1rem;
  animation: rise 0.7s var(--ease);
}

.soon-check {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #04120b;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 0 40px -6px rgba(111, 230, 168, 0.65);
}

.soon-success-title {
  margin: 1.1rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
}

.soon-success-sub {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
}

/* ── why scrollserve ───────────────────────────────────────────────── */

.why {
  max-width: 56ch;
}

.why summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  cursor: pointer;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.why summary::-webkit-details-marker {
  display: none;
}

.why summary::after {
  content: "+";
  transition: transform 0.3s var(--ease);
}

.why summary:hover,
.why summary:focus-visible {
  color: var(--green);
}

.why summary:focus-visible {
  outline: 2px solid rgba(111, 230, 168, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
}

.why[open] summary::after {
  transform: rotate(45deg);
}

.why-body {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
}

.why-body p + p {
  margin-top: 0.9em;
}

.why-creed {
  color: var(--text);
}

.why-ref {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}

.why-ref:hover,
.why-ref:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.why-sup {
  font-size: 0.65em;
}

.why-sup a {
  padding: 0 0.05em;
}

.why-foot {
  font-size: 0.72rem;
}

@keyframes why-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.why[open] .why-body {
  animation: why-reveal 0.45s var(--ease);
}

/* ── helpers ───────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

