:root {
  --sky-high: #bfdcf5;
  --sky-low: #eef6fd;
  --text: #1c3350;
  --muted: #4a6584;
  --crystal: #2ea6de;
  --crystal-deep: #1073b0;
  --crystal-ice: #9adcf9;
  --coral: #ee6f6d;
  --coral-deep: #d05360;
  --gold: #c8a36c;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 115, 176, 0.18);
  --line-strong: rgba(16, 115, 176, 0.32);
  --shadow: 0 24px 60px rgba(28, 81, 130, 0.18);
  --radius-lg: 30px;
  --radius-md: 20px;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.8), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(238, 111, 109, 0.14), transparent 30%),
    radial-gradient(circle at 70% 88%, rgba(46, 166, 222, 0.18), transparent 36%),
    linear-gradient(180deg, var(--sky-high) 0%, var(--sky-low) 55%, #f7fbff 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--crystal);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--crystal-deep);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Splash (home) — full-screen key art with a single "Coming soon" mark
--------------------------------------------------------------------------- */

.splash-body {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
}

.splash__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.splash__soon {
  position: absolute;
  left: 50%;
  bottom: clamp(1.75rem, 7vh, 4rem);
  transform: translateX(-50%);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 38px rgba(28, 81, 130, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--crystal-deep);
  font-weight: 700;
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  animation:
    soon-rise 900ms ease 250ms both,
    soon-breathe 4.5s ease-in-out 1.5s infinite;
}

@keyframes soon-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes soon-breathe {
  0%,
  100% {
    box-shadow:
      0 12px 38px rgba(28, 81, 130, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  50% {
    box-shadow:
      0 12px 44px rgba(46, 166, 222, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* ---------------------------------------------------------------------------
   Policy document — standalone legal page shown inside app webviews
--------------------------------------------------------------------------- */

.policy-doc-body {
  overflow-x: clip;
}

.policy-doc {
  width: min(47rem, 100% - 1.5rem);
  margin: clamp(1.25rem, 4vw, 3rem) auto;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 24%),
    var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.policy-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.policy-doc__meta {
  margin-top: 0.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--crystal-deep);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.policy-doc h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.policy-doc h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--crystal-deep);
}

.policy-doc p,
.policy-doc li {
  color: var(--muted);
}

.policy-doc p + p {
  margin-top: 0.85rem;
}

.policy-doc ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
  padding-left: 1.25rem;
}

.policy-doc li::marker {
  color: var(--crystal);
}

.policy-doc li strong,
.policy-doc p strong {
  color: var(--text);
}

.policy-doc a {
  color: var(--crystal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(46, 166, 222, 0.5);
  text-underline-offset: 3px;
}

.policy-doc a:hover {
  text-decoration-color: var(--crystal-deep);
}

.policy-doc__fill {
  color: var(--coral-deep);
  background: rgba(238, 111, 109, 0.12);
  border: 1px dashed rgba(238, 111, 109, 0.55);
  border-radius: 0.5rem;
  padding: 0.1rem 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .splash__soon {
    animation: none;
  }
}

@media (max-width: 640px) {
  :root {
    --radius-lg: 22px;
  }
}
