/*
 * Kysten landing page.
 * Visual values mirror the design tokens in apps/mobile/lib/theme.ts —
 * if those change, mirror them here in the same commit.
 */

:root {
  --colour-bg: #fafaf8;
  --colour-card: #f2f0ec;
  --colour-text-primary: #2a2724;
  --colour-text-secondary: #5c5853;
  --colour-text-tertiary: #8a857c;
  --colour-brand-primary: #1f3a5f;
  --colour-brand-accent: #c66b3d;
  --colour-border: #e0ddd5;

  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --colour-bg: #0e0e0d;
    --colour-card: #171614;
    --colour-text-primary: #e0ddd5;
    --colour-text-secondary: #a8a39a;
    --colour-text-tertiary: #6b6660;
    --colour-brand-primary: #7aa5d0;
    --colour-brand-accent: #e89b6f;
    --colour-border: #2a2724;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--colour-text-primary);
  background: var(--colour-bg);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  text-align: center;
  max-width: 560px;
}

.wordmark {
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--colour-brand-primary);
}

.tagline {
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--colour-text-secondary);
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.status {
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--colour-brand-accent);
}

footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--colour-text-tertiary);
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--colour-border);
  padding-bottom: 1px;
  transition: color 120ms ease;
}

footer a:hover {
  color: var(--colour-brand-primary);
  border-bottom-color: var(--colour-brand-primary);
}

@media (prefers-reduced-motion: no-preference) {
  .wordmark,
  .tagline,
  .status {
    animation: fade-up 600ms ease-out backwards;
  }

  .tagline {
    animation-delay: 80ms;
  }

  .status {
    animation-delay: 160ms;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
