:root {
  color-scheme: light;
  --paper: #fffdfb;
  --paper-warm: #fff7f3;
  --ink: #3a3440;
  --muted: #746a7d;
  --line: rgba(102, 86, 112, 0.14);
  --coral: #ff9b8a;
  --rose: #e89bb7;
  --lavender: #b89aef;
  --periwinkle: #8e9bff;
  --font:
    'Figtree', 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper-warm);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
}

main {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 205, 185, 0.56), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(201, 187, 248, 0.52), transparent 36%),
    linear-gradient(145deg, #fffdfb 0%, #fff7f3 48%, #f8f3ff 100%);
}

.orb {
  position: absolute;
  width: clamp(220px, 34vw, 480px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-coral {
  top: -17%;
  left: -10%;
  background: linear-gradient(160deg, #ffd2bd, var(--coral));
}

.orb-lavender {
  right: -12%;
  bottom: -20%;
  background: linear-gradient(160deg, #ded2ff, var(--periwinkle));
}

.link-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: clamp(28px, 5vw, 44px);
  background: rgba(255, 253, 251, 0.82);
  box-shadow:
    0 28px 90px rgba(97, 71, 108, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-header img {
  width: 142px;
  height: auto;
}

.environment-badge {
  display: none;
  padding: 7px 11px;
  border: 1px solid rgba(142, 155, 255, 0.32);
  border-radius: 999px;
  background: rgba(142, 155, 255, 0.1);
  color: #584b9a;
  font-size: 12px;
  font-weight: 700;
}

html[data-environment='staging'] .environment-badge {
  display: inline-flex;
}

.message {
  margin-top: clamp(54px, 9vw, 82px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #8f7188;
  font-size: 11px;
  font-weight: 700;
}

h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.24;
  text-wrap: balance;
}

.lead {
  max-width: 510px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.9;
  text-wrap: pretty;
}

.care-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  margin-top: 38px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.care-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.care-mark {
  position: relative;
  width: 42px;
  height: 28px;
  margin-top: 3px;
}

.care-mark span {
  position: absolute;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.care-mark span:first-child {
  left: 0;
  background: rgba(255, 155, 138, 0.72);
}

.care-mark span:last-child {
  right: 0;
  background: rgba(184, 154, 239, 0.72);
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

nav a:hover {
  transform: translateY(-1px);
}

nav a:focus-visible {
  outline: 3px solid rgba(142, 155, 255, 0.42);
  outline-offset: 3px;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.primary-link:hover {
  background: #211c2a;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
}

.secondary-link:hover {
  background: #fff;
}

/* The same message in the page's other language, for a recipient who does not read this one. */
.translated-note {
  margin-top: 38px;
  padding-left: 18px;
  border-left: 2px solid rgba(184, 154, 239, 0.45);
  color: var(--muted);
}

.translated-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.translated-note .translated-note-title {
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 700;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
  color: #988d9f;
  font-size: 11px;
}

@media (max-width: 520px) {
  .link-panel {
    padding: 28px 24px 30px;
    border-radius: 30px;
  }

  .message {
    margin-top: 50px;
  }

  .care-note {
    grid-template-columns: 1fr;
  }

  nav {
    display: grid;
  }

  nav a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav a {
    transition: none;
  }
}

/*
 * Store availability on /get. Each platform is a row: a link when its listing
 * is live, plain text when it is not, so the page never offers a store that
 * would 404.
 */
.store-status {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-status li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(90, 67, 168, 0.16);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.6);
}

.store-platform {
  font-weight: 600;
  font-size: 0.9375rem;
}

.store-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: #7b5fd0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.store-preparing {
  font-size: 0.875rem;
  color: #6b6273;
}
