:root {
  color-scheme: light;
  --color-primary: #536dfe;
  --color-primary-dark: #3d5afe;
  --color-accent: #4ade80;
  --color-accent-dark: #22c55e;
  --color-background: #f8f8fb;
  --color-card: #ffffff;
  --color-text: #111322;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --shadow-soft: 0 15px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui,
    BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100dvh;
  /* Dynamic height handles browser bars correctly */
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
}

#funnel-app {
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-header {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.app-logo {
  height: 28px;
  justify-self: center;
  display: block;
}

.header-spacer {
  width: 70px;
  height: 1px;
}

.app-stage {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px clamp(16px, 5vw, 28px) 0;
  overflow: hidden;
  zoom: 0.85;
  /* Global scale down as requested */
}

.status-card {
  display: none;
  /* Hide to prevent flash during loading */
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-card__eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.status-card__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
}

.status-card__body {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
}

.app-footer {
  width: 100%;
  text-align: center;
  padding: 4px 0 2px;
  font-size: 10px;
  color: var(--color-muted);
  line-height: 1.5;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.footer-company {
  opacity: 0.8;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-text);
}

.shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(83, 109, 254, 0.12);
  color: var(--color-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.brand__title {
  font-size: 18px;
  font-weight: 600;
}

.brand__tagline {
  font-size: 13px;
  color: var(--color-muted);
}

.slug-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #eef2ff;
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 500;
}

.panel {
  background: #f9f9ff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(83, 109, 254, 0.08);
}

.panel__eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.panel__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
}

.panel__body {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
}

.loader {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.2;
  animation: pulse 1.4s infinite ease-in-out;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {

  0%,
  80%,
  100% {
    transform: scale(0.9);
    opacity: 0.2;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* CTA Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.25);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(74, 222, 128, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(83, 109, 254, 0.25);
}

.btn--secondary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(83, 109, 254, 0.35);
}

@media (min-width: 900px) {
  body {
    padding: 32px;
  }

  .shell {
    padding: 32px 40px;
    gap: 24px;
  }

  .panel {
    padding: 32px;
  }
}