@font-face {
  font-family: "LINE Seed JP";
  src: url("/fonts/LINESeedJP-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed JP";
  src: url("/fonts/LINESeedJP-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed JP";
  src: url("/fonts/LINESeedJP-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "LINE Seed JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-synthesis: none;
  --void-blue: #010d6e;
  --accent-blue: #0042af;
  --soft-blue: #4589f7;
  --cream: #fef1d0;
  --white: #ffffff;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--void-blue);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--void-blue);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  place-items: center;
  background: var(--void-blue);
  padding:
    max(32px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.landing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("/blue-concrete-texture.webp") center / cover no-repeat;
  content: "";
  opacity: 0.32;
}

.hero {
  display: flex;
  width: min(100%, 440px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon {
  display: block;
  width: clamp(128px, 30vw, 144px);
  height: auto;
  margin-bottom: clamp(28px, 5vh, 44px);
  border: 1px solid rgba(69, 137, 247, 0.72);
  border-radius: 22%;
}

.app-name {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.tagline {
  margin: clamp(20px, 3.6vh, 28px) 0 0;
  color: var(--cream);
  font-size: clamp(1.05rem, 4.4vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.75;
}

.store-button {
  display: flex;
  width: min(100%, 336px);
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(36px, 6vh, 52px);
  padding: 16px 26px;
  border: 1px solid var(--cream);
  border-radius: 999px;
  background: var(--cream);
  color: var(--void-blue);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.store-button__arrow {
  font-family: system-ui, sans-serif;
  font-size: 1.15em;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.store-button:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.store-button:hover .store-button__arrow {
  transform: translate(2px, -3px);
}

.store-button:active {
  background: var(--soft-blue);
  color: var(--white);
  transform: translateY(1px) scale(0.985);
}

.store-button:focus-visible {
  outline: 3px solid var(--soft-blue);
  outline-offset: 5px;
}

.note {
  margin: 22px 0 0;
  color: rgba(254, 241, 208, 0.76);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.75;
}

.note strong {
  color: var(--cream);
  font-weight: 700;
}

@media (max-height: 680px) {
  .landing {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .app-icon {
    width: 112px;
    margin-bottom: 22px;
  }

  .store-button { margin-top: 28px; }
}

@media (max-width: 380px) {
  .note__break { display: none; }
}
