/* Bruno Gröning — app-links landing (Cloudflare Pages) */
:root {
  --brand: #006875;
  --brand-deep: #004d57;
  --brand-soft: #1a8a98;
  --ink: #171d1e;
  --ink-muted: #3f484a;
  --mist: #e9eff0;
  --foam: #f5fafc;
  --white: #ffffff;
  --cta-radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  color: var(--ink);
  background: var(--foam);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric full-bleed field */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 15% 10%, rgba(0, 104, 117, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 90% 85%, rgba(0, 131, 147, 0.14), transparent 50%),
    linear-gradient(165deg, #f7fcfd 0%, #e4eef1 48%, #d5e6ea 100%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006875' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.composition {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  text-align: center;
}

.brand {
  margin: 0;
  font-family: Quattrocento, "Quattrocento Sans", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 8vw, 3.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--brand-deep);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) 0.08s forwards;
}

.headline {
  margin: 1rem 0 0;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.22s forwards;
}

.lede {
  margin: 0.65rem 0 0;
  font-size: 1.02rem;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.34s forwards;
}

.preview {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1.35rem 0 0;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: riseScale 1s var(--ease) 0.28s forwards;
  box-shadow: 0 12px 40px rgba(0, 77, 87, 0.12);
}

.preview.is-visible {
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.85s var(--ease) 0.48s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 9.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--cta-radius);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease;
}

.cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.cta--primary {
  background: var(--brand);
  color: var(--white);
}

.cta--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.cta--secondary {
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid rgba(0, 104, 117, 0.45);
}

.cta--secondary:hover {
  background: rgba(0, 104, 117, 0.08);
  transform: translateY(-1px);
}

.store-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.status {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  opacity: 0;
  animation: fade 0.8s var(--ease) 0.7s forwards;
}

.status[hidden] {
  display: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseScale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .headline,
  .lede,
  .preview,
  .cta-row,
  .status {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .composition {
    width: min(100%, 30rem);
  }
}
