/* Nyummy landing: shared by ko/ and jp/. Mobile first (390px), scales up from 720px and 1080px. */
:root {
  --cream: #fbf4ec;
  --cream-2: #f6e9de;
  --rose: #e9c9c4;
  --rose-deep: #b9817e;
  --lavender: #e7e3ee;
  --dusk: #7d74a8;
  --ink: #4a3b3d;
  --ink-soft: #7a6668;
  --leaf: #5f9a6e;
  --leaf-soft: #e3efe3;
  --white: #ffffff;
  --radius-lg: 32px;
  --radius-md: 22px;
  --gutter: 20px;
  --font-head: "AndongKaturi", "Pretendard", system-ui, sans-serif;
  --font-body: "Pretendard", "Gowun Dodum", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="ja"] {
  --font-head: "Yusei Magic", "Zen Maru Gothic", system-ui, sans-serif;
  --font-body: "Zen Maru Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] { word-break: normal; line-break: strict; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- top nav */
.nav {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 12px) calc(env(safe-area-inset-right) + var(--gutter)) 12px calc(env(safe-area-inset-left) + var(--gutter));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 10px rgba(60, 40, 70, .25); }
.brand span { font-family: var(--font-head); font-size: 22px; text-shadow: 0 1px 8px rgba(60, 40, 80, .45); }
.lang { display: flex; gap: 4px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--white); text-decoration: none; font-size: 14px; border-radius: 999px;
  text-shadow: 0 1px 6px rgba(60, 40, 80, .5);
}
.lang a[aria-current="page"] { background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #8f86b8; color: var(--white); }
.hero__art, .hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: 50% 70%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__art img { animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 70%; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::after { /* soft veil so white type reads on the sky */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(70, 58, 120, .35) 0%, rgba(70, 58, 120, .08) 42%, rgba(70, 58, 120, 0) 60%, rgba(60, 40, 60, .25) 100%);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero__copy {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 13vh);
  padding: 0 calc(env(safe-area-inset-right) + var(--gutter)) 0 calc(env(safe-area-inset-left) + var(--gutter));
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(38px, 10.5vw, 84px); line-height: 1.22; letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(70, 50, 100, .25), 0 6px 28px rgba(70, 50, 100, .45);
}
.hero__sub {
  margin-top: 14px; max-width: 30em; font-size: clamp(15px, 4vw, 19px); line-height: 1.6;
  text-shadow: 0 1px 10px rgba(60, 40, 90, .6);
}
.actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  color: var(--white); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgba(60, 40, 90, .18);
  transition: background .2s ease;
}
a.pill:hover, a.pill:focus-visible { background: rgba(255, 255, 255, .34); }
a.pill:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill--soon { cursor: default; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); font-weight: 500; opacity: .92; }
.ios-note { margin-top: 12px; font-size: 14px; text-shadow: 0 1px 8px rgba(60, 40, 90, .6); }
.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); opacity: .85;
}
.scroll-hint svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(60, 40, 90, .5)); }

/* ---------- sections */
main { position: relative; }
.intro {
  padding: 64px var(--gutter) 8px; text-align: center;
  background: linear-gradient(180deg, #efe3ea 0%, var(--cream) 100%);
}
.intro p { font-family: var(--font-head); font-size: clamp(22px, 6vw, 34px); line-height: 1.45; color: var(--ink); }
.intro small { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 15px; color: var(--ink-soft); }

.features { list-style: none; margin: 0 auto; padding: 40px var(--gutter) 72px; max-width: 1120px; display: grid; gap: 28px; }
.feature {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 40px rgba(150, 110, 110, .12);
}
.feature:nth-child(4n+1) { background: #fff8f2; }
.feature:nth-child(4n+2) { background: #f7f1f8; }
.feature:nth-child(4n+3) { background: #fdf3f0; }
.feature:nth-child(4n+4) { background: #f1f6ef; }
.feature__art { position: relative; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; aspect-ratio: 800 / 750; background: var(--cream-2); }
.feature__art > img { width: 100%; height: 100%; object-fit: cover; }
.feature__shot {
  position: absolute; right: 14px; bottom: 14px; width: 30%; max-width: 128px;
  border-radius: 18px; overflow: hidden; border: 4px solid var(--white);
  box-shadow: 0 10px 28px rgba(80, 50, 60, .28); background: var(--white);
}
.feature__shot img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.feature__text { padding: 22px 24px 28px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--leaf-soft); color: #3f6f4b; font-size: 13px; font-weight: 600;
}
.feature h2 { margin-top: 12px; font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 7vw, 36px); line-height: 1.3; color: var(--ink); }
.feature p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }

/* ---------- closing CTA */
.closing { position: relative; overflow: hidden; color: var(--white); text-align: center; background: #8f86b8; }
.closing__art, .closing__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__art img { object-fit: cover; object-position: 50% 78%; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(70, 58, 120, .5), rgba(70, 58, 120, .15) 60%, rgba(60, 40, 60, .3)); }
.closing__inner { position: relative; z-index: 2; padding: 88px var(--gutter) 300px; }
.closing h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 7.4vw, 52px); line-height: 1.35; text-shadow: 0 4px 22px rgba(70, 50, 100, .5); }

/* ---------- footer */
.footer {
  background: #3f3340; color: #e8dcdc; font-size: 14px;
  padding: 32px calc(env(safe-area-inset-right) + var(--gutter)) calc(env(safe-area-inset-bottom) + 32px) calc(env(safe-area-inset-left) + var(--gutter));
}
.footer__in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.footer nav { display: flex; gap: 4px; margin-left: -10px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

/* gentle fade-in: only when JS has marked the page, so content is never hidden without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- tablet */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero__copy { top: calc(env(safe-area-inset-top) + 15vh); }
  .features { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 48px; }
  .feature__text { padding: 24px 28px 32px; }
  .closing__inner { padding: 120px var(--gutter) 340px; }
}
/* ---------- desktop: alternating wide rows */
@media (min-width: 1080px) {
  .hero__art img { object-position: 50% 60%; }
  .hero__copy { top: 16vh; }
  .features { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 104px; }
  .feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .feature__art { margin: 14px; }
  .feature:nth-child(even) .feature__art { order: 2; }
  .feature__text { padding: 40px 56px; }
  .feature h2 { font-size: 40px; }
  .feature p { font-size: 18px; }
  .intro { padding-top: 96px; }
  .closing__art img { object-position: 50% 62%; }
  .closing__inner { padding: 140px var(--gutter) 300px; }
}

/* ---------- wide screens: lift the headline into the sky, above the cats' heads */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .hero__copy { top: 0; padding-top: 6vh; }
  .hero__art { height: 112%; } /* art runs a bit past the fold so the cats sit lower */
  .hero__sub br { display: none; }
  .hero h1 { font-size: clamp(42px, 4.8vw, 72px); line-height: 1.16; }
  .hero__sub { margin-top: 10px; }
  .actions { margin-top: 18px; }
  .hero__copy::before { /* subtle darkening behind the text */
    content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(900px, 80vw); height: 100%;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(60, 45, 100, .22), rgba(60, 45, 100, 0));
  }
}
