/* =========================================================================
   1HealthAI Factory — coming-soon landing (coming-soon.html)
   Loaded after styles.css, whose tokens and components it reuses. Served in
   place of the site while COMING_SOON=true — see server.js.
   ========================================================================= */

.soon-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* ------------------------------------------------------------------ hero */

.soon-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding-block: 28px clamp(36px, 4.5vw, 56px);
  background:
    radial-gradient(ellipse 46% 52% at 74% 34%, rgba(4, 168, 199, 0.13), transparent 70%),
    radial-gradient(ellipse 34% 44% at 90% 80%, rgba(88, 176, 0, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 46% at 8% 4%, rgba(7, 88, 247, 0.08), transparent 70%),
    linear-gradient(180deg, #fbfdff 0%, var(--canvas) 72%);
}

/* The scientific wave field, faded in behind everything on the right. */
.soon-hero::before {
  position: absolute;
  inset: 0;
  background: url("../img/wave-field-v2.png") right center / cover no-repeat;
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

.soon-hero > .container {
  position: relative; /* above the field; no z-index, which would isolate the
                         artwork's multiply blend from the background */
}

.soon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.soon-logo {
  width: clamp(170px, 18vw, 230px);
  height: auto;
}

.soon-grid {
  display: grid;
  flex: 1;
  align-items: center;
  gap: 24px 48px;
  padding-block: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* ------------------------------------------------------------------ copy */

.soon-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 16px 7px 12px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 700;
}

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

.soon-pulse::after {
  position: absolute;
  inset: 0;
  background: var(--green);
  border-radius: 50%;
  content: "";
  opacity: 0;
}

.soon-title {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
}

/* The closing words carry the site's blue → cyan → green accent order. */
.soon-title em {
  font-style: italic;
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue), var(--cyan) 55%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.soon-copy .lead {
  max-width: 54ch;
}

.soon-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.soon-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px 5px 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 700;
}

.soon-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 34px 0 0;
  padding-top: 26px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.soon-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.soon-mail:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.soon-mail:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.soon-mail .icon {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- visual */

.soon-visual {
  justify-self: end;
  width: min(100%, 760px);
}

.soon-art {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* ---------------------------------------------------------------- footer */

.soon-footer {
  padding-block: 22px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy-900);
  font-size: 13.5px;
}

.soon-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.soon-footer p {
  margin: 0;
}

.soon-footer a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.soon-footer a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .soon-pulse::after {
    animation: soon-pulse 2.2s var(--ease) infinite;
  }

  .soon-art {
    animation:
      soon-fade 1100ms var(--ease) 200ms both,
      soon-float 9s ease-in-out 1300ms infinite;
  }

  .soon-copy > * {
    animation: soon-rise 700ms var(--ease) both;
  }

  .soon-copy > :nth-child(2) { animation-delay: 80ms; }
  .soon-copy > :nth-child(3) { animation-delay: 160ms; }
  .soon-copy > :nth-child(4) { animation-delay: 240ms; }
  .soon-copy > :nth-child(5) { animation-delay: 320ms; }
  .soon-copy > :nth-child(6) { animation-delay: 400ms; }
  .soon-copy > :nth-child(7) { animation-delay: 480ms; }
}

@keyframes soon-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}

@keyframes soon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes soon-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes soon-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .soon-hero { min-height: 0; }

  .soon-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .soon-visual {
    justify-self: center;
    width: min(100%, 600px);
  }
}

@media (max-width: 680px) {
  .soon-hero { padding-top: 20px; }

  .soon-logo { width: 150px; }

  .soon-pillars li { font-size: 14px; }
}
