/* Critical styles for server-rendered public content and the private bootstrap.
   Loaded in the document head, independently of the React CSS bundle. */
body:has(#seo-fallback), body:has(#app-bootstrap) {
  margin: 0;
  background: #f1f5f9;
}

.branded-loading {
  background: radial-gradient(circle at 50% 0%, #e4efff, #f1f5f9 55%);
}

#seo-fallback, #app-bootstrap {
  box-sizing: border-box;
  min-height: 100vh;
  padding: clamp(24px, 6vh, 72px) 20px;
  background: radial-gradient(circle at 50% 0%, #e4efff, #f1f5f9 55%);
  color: #17233a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

#seo-fallback *, #app-bootstrap * { box-sizing: border-box; }

#seo-fallback .startup-card, #app-bootstrap .startup-card {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(30, 58, 100, .09);
}

#seo-fallback .startup-card { width: min(100%, 980px); }

#seo-fallback .startup-brand, #app-bootstrap .startup-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.35;
  text-decoration: none;
}

#seo-fallback .startup-brand img, #app-bootstrap .startup-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

#seo-fallback .startup-brand small, #app-bootstrap .startup-brand small {
  display: block;
  margin-top: 3px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#seo-fallback h1, #app-bootstrap h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

#app-bootstrap .startup-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 27px;
  border-top: 1px solid #e2e8f0;
}

#app-bootstrap .startup-heading h1 { font-size: 19px; letter-spacing: -.02em; }

#seo-fallback h2 {
  margin: 32px 0 8px;
  color: #1d3455;
  font-size: 21px;
  line-height: 1.3;
}

#seo-fallback p, #app-bootstrap p {
  margin: 0 0 17px;
  color: #475569;
  font-size: 16px;
}

#app-bootstrap p { font-size: 14px; }
#seo-fallback p:last-child, #app-bootstrap p:last-child { margin-bottom: 0; }

#seo-fallback a, #app-bootstrap a {
  color: #0864c5;
  font-weight: 650;
  text-underline-offset: 3px;
}

#seo-fallback a:focus-visible, #app-bootstrap a:focus-visible {
  outline: 2px solid #0864c5;
  outline-offset: 3px;
}

#seo-fallback .startup-pill, #app-bootstrap .startup-pill {
  display: inline-block;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

#seo-fallback .startup-progress, #app-bootstrap .startup-progress, .branded-loading .startup-progress {
  width: 100%;
  height: 5px;
  margin: 20px 0 24px;
  overflow: hidden;
  border-radius: 5px;
  background: #e2eaf5;
}

#seo-fallback .startup-progress span, #app-bootstrap .startup-progress span, .branded-loading .startup-progress span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  animation: startup-load 1.8s ease-in-out infinite alternate;
}

/* A lightweight preview of the workspace, shared by the static and React states. */
#seo-fallback .startup-skeleton, #app-bootstrap .startup-skeleton, .branded-loading .startup-skeleton {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

#seo-fallback .startup-skeleton i, #app-bootstrap .startup-skeleton i, .branded-loading .startup-skeleton i {
  display: block;
  height: 9px;
  border-radius: 6px;
  background: #dce7f5;
  animation: startup-shimmer 1.8s ease-in-out infinite alternate;
}

#seo-fallback .startup-skeleton-top, #app-bootstrap .startup-skeleton-top, .branded-loading .startup-skeleton-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
#seo-fallback .startup-skeleton-top i:first-child, #app-bootstrap .startup-skeleton-top i:first-child, .branded-loading .startup-skeleton-top i:first-child { width: 34%; }
#seo-fallback .startup-skeleton-top i:last-child, #app-bootstrap .startup-skeleton-top i:last-child, .branded-loading .startup-skeleton-top i:last-child { width: 18%; }

#seo-fallback .startup-skeleton-grid, #app-bootstrap .startup-skeleton-grid, .branded-loading .startup-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#seo-fallback .startup-skeleton-grid > div, #app-bootstrap .startup-skeleton-grid > div, .branded-loading .startup-skeleton-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e8eef7;
  border-radius: 10px;
  background: white;
}
#seo-fallback .startup-skeleton-grid i + i, #app-bootstrap .startup-skeleton-grid i + i, .branded-loading .startup-skeleton-grid i + i { margin-top: 10px; }
#seo-fallback .startup-skeleton-grid i:nth-child(2), #app-bootstrap .startup-skeleton-grid i:nth-child(2), .branded-loading .startup-skeleton-grid i:nth-child(2) { width: 65%; height: 18px; }
#seo-fallback .startup-skeleton-grid i:nth-child(3), #app-bootstrap .startup-skeleton-grid i:nth-child(3), .branded-loading .startup-skeleton-grid i:nth-child(3) { width: 80%; height: 6px; }

#app-bootstrap .startup-recovery, #seo-fallback .startup-recovery { margin-top: 24px; }
#app-bootstrap .startup-recovery[hidden], #seo-fallback .startup-recovery[hidden] { display: none; }

#seo-fallback .startup-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}
#seo-fallback .startup-public-loading {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
#seo-fallback .startup-public-loading .startup-skeleton { padding: 9px; }
#seo-fallback .startup-public-loading .startup-skeleton-grid { gap: 5px; }
#seo-fallback .startup-public-loading .startup-skeleton-grid > div { padding: 6px; }
#seo-fallback .startup-public-loading p { margin-top: 16px; font-size: 12px; }

@keyframes startup-load {
  from { transform: translateX(0); }
  to { transform: translateX(190%); }
}
@keyframes startup-shimmer {
  from { opacity: .55; }
  to { opacity: 1; }
}

@media (max-width: 680px) {
  #seo-fallback .startup-public-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #seo-fallback .startup-progress span, #app-bootstrap .startup-progress span, .branded-loading .startup-progress span,
  #seo-fallback .startup-skeleton i, #app-bootstrap .startup-skeleton i, .branded-loading .startup-skeleton i { animation: none; }
}