/* NatureSnap intro site (design doc D-27): "from the night to the star-land".
   The page follows the song: the guardian's night first, the pet's bright reply at the end.
   Tokens are shared with the app (D-8). Legal and sign-in relay pages use the same file (.doc, .relay). */
:root {
  --bg: #0E0F12; --surface: #1B1D22; --surface-2: #23252C; --line: #2B2E36; --text: #FFFFFF; --muted: #A7ACB8; --dim: #8A909C;
  --accent: #FF4D6D; --accent-soft: #FF8FA3; --night: #141B3C; --dawn: #F6C9B8; --ink: #2A1F3D; --paper: #F4EFE6;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --serif: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: #fff; color: #0E0F12; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* header: plain on the legal pages, fixed and translucent on the home page */
.top { padding-block: 18px; }
.top.wrap, .top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.home .top { position: sticky; top: 0; z-index: 10; padding-block: 12px; background: rgba(14, 15, 18, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand.small { font-size: 15px; }
.top nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 10px 0; transition: color .2s; }
.top nav a:hover { color: var(--text); }
.top nav a.go { color: #0E0F12; background: #fff; font-weight: 700; padding: 8px 16px; border-radius: 999px; align-self: center; }

/* hero: the night */
.hero { position: relative; isolation: isolate; margin-top: -61px; padding: 150px 0 110px; background: linear-gradient(180deg, rgba(14, 15, 18, .18) 0%, rgba(14, 15, 18, .12) 48%, var(--bg) 100%), url(night-hills.webp) center top / cover no-repeat, var(--night); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--accent-soft); }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.15rem, 5.4vw, 3.7rem); line-height: 1.28; letter-spacing: -0.02em; text-shadow: 0 2px 28px rgba(8, 10, 30, .55); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.8; color: #D3D7E2; max-width: 31em; text-shadow: 0 1px 16px rgba(8, 10, 30, .6); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: 27px; font-size: 16.5px; font-weight: 700; text-decoration: none; }
.btn.primary { background: #FFFFFF; color: #0E0F12; }
.btn.soon { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.dark { background: var(--ink); color: #fff; }
.note { font-size: 14.5px; color: #C3C8D4; }
.facts { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 14px 34px; font-size: 14px; color: #C3C8D4; }
.facts li { display: flex; flex-direction: column; gap: 1px; padding-left: 14px; border-left: 2px solid rgba(255, 143, 163, .7); }
.facts b { color: #fff; font-size: 16px; font-weight: 700; }

/* a few slow stars over the painting */
.sky { position: absolute; inset: 0 0 45% 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .55); opacity: .25; animation: twinkle 5s ease-in-out infinite; }
.sky i:nth-child(1) { left: 8%; top: 22%; } .sky i:nth-child(2) { left: 21%; top: 54%; animation-delay: 1.4s; } .sky i:nth-child(3) { left: 37%; top: 16%; animation-delay: 2.6s; width: 2px; height: 2px; }
.sky i:nth-child(4) { left: 52%; top: 40%; animation-delay: .7s; } .sky i:nth-child(5) { left: 63%; top: 13%; animation-delay: 3.3s; width: 2px; height: 2px; } .sky i:nth-child(6) { left: 76%; top: 60%; animation-delay: 2s; }
.sky i:nth-child(7) { left: 88%; top: 24%; animation-delay: 4.1s; } .sky i:nth-child(8) { left: 95%; top: 66%; animation-delay: 1s; width: 2px; height: 2px; }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.8); } 50% { opacity: .95; transform: scale(1.15); } }

/* the hero picture is a now-playing card, the way a finished song looks in the app */
.player { flex: 0 1 372px; min-width: 0; margin-inline: auto; background: rgba(24, 26, 34, .78); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 30px; padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px -20px rgba(4, 6, 24, .85); }
.player > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.player b { font-size: 22px; font-weight: 800; display: block; letter-spacing: -0.01em; }
.player small { color: var(--muted); font-size: 14px; }
.bar { height: 4px; border-radius: 2px; background: #3A3D46; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; background: #fff; border-radius: 2px; transform-origin: left; transform: scaleX(.38); animation: play 24s linear infinite; }
@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lyrics { position: relative; height: 5.2em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lyrics p { position: absolute; inset: auto 0 0 0; opacity: 0; animation: line 24s linear infinite; }
.lyrics p:nth-child(2) { animation-delay: 6s; } .lyrics p:nth-child(3) { animation-delay: 12s; } .lyrics p:nth-child(4) { animation-delay: 18s; }
.lyrics span { color: var(--text); font-weight: 700; display: block; }
.lyrics em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent-soft); margin-bottom: 2px; }
@keyframes line { 0% { opacity: 0; transform: translateY(6px); } 2.5%, 22.5% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-4px); } }

/* sections */
.block { padding-block: 96px 0; display: flex; flex-direction: column; gap: 30px; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }
.head > p:last-child:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* two voices: the guardian's night and the pet's star-land */
.voices { padding-block: 40px 0; }
.voices .wrap { display: flex; flex-direction: column; gap: 30px; }
.duet { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.voice { position: relative; min-height: 380px; border-radius: 28px; overflow: hidden; padding: 30px 30px 28px; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; background-size: cover; background-position: center bottom; }
.voice.night { background-image: linear-gradient(180deg, rgba(10, 14, 40, .35) 0%, rgba(10, 14, 40, 0) 70%), url(night-home.webp); background-position: 80% bottom; }
.voice.star { background-image: linear-gradient(180deg, rgba(255, 244, 240, .28) 0%, rgba(255, 240, 232, 0) 70%), url(star-meadow.webp); color: var(--ink); }
.who { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 10px; }
.voice.star .who { background: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .8); color: var(--ink); }
.voice blockquote { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.6; letter-spacing: -0.01em; text-shadow: 0 2px 18px rgba(6, 8, 30, .7); }
.voice.star blockquote { text-shadow: 0 1px 14px rgba(255, 246, 240, .9); }
.cap { font-size: 14.5px; color: #D3D7E2; }
.voice.star .cap { color: #4A3B5C; font-weight: 500; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.n { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent-soft); margin-bottom: 6px; }
.steps p, .card p, .points p, .plain, .faq p { font-size: 15.5px; line-height: 1.7; color: var(--muted); }

/* what you get */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 3; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card.ending { grid-column: span 6; padding: 0; overflow: hidden; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0; }
.card.ending .txt { flex: 1 1 260px; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.scene { flex: 2 1 380px; min-height: 340px; background: url(star-path.webp) center / cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 30px 20px; }
.print { display: block; width: min(46%, 210px); background: var(--paper); padding: 9px; border-radius: 4px; transform: rotate(-2.5deg); box-shadow: 0 18px 40px -12px rgba(60, 30, 70, .55); }
.print img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; filter: brightness(1.04) saturate(1.03); }
.line { font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.3rem); color: #fff; text-align: center; text-shadow: 0 0 10px rgba(40, 20, 60, .85), 0 2px 18px rgba(40, 20, 60, .7); }
.tag { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--accent-soft); border: 1px solid rgba(255, 143, 163, .5); border-radius: 999px; padding: 1px 9px; }

/* points */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.points > div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.points .big { font-weight: 800; font-size: 40px; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.points .big small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plain { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* questions */
.faq { max-width: 48em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 22px; max-width: 42em; }

/* closing: the star-land */
.closing { margin-top: 110px; padding: 150px 0 130px; text-align: center; color: var(--ink); background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 15, 18, 0) 26%), url(star-clouds.webp) center bottom / cover no-repeat, var(--dawn); }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.say { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.5; letter-spacing: -0.02em; text-shadow: 0 1px 22px rgba(255, 246, 240, .9); }
.sub { font-size: 1.1rem; font-weight: 600; color: #4A3B5C; margin-bottom: 10px; }

.foot { background: #0A0B0E; }
.foot.wrap, .foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-block: 30px; font-size: 14px; color: var(--muted); }
.foot.wrap { background: none; padding-block: 64px 32px; }
.foot a { color: var(--muted); }
.fine { flex-basis: 100%; font-size: 13px; color: var(--dim); }

/* sections arrive softly; only when the script has marked the page */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .duet .reveal:nth-child(2) { transition-delay: .1s; } .steps .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 760px) {
  .top nav a:not(.go) { display: none; }
  .hero { padding: 116px 0 72px; }
  .block { padding-block: 72px 0; }
  .card, .card.ending { grid-column: span 6; }
  .voice { min-height: 320px; padding: 24px; }
  .closing { margin-top: 80px; padding: 120px 0 100px; }
  .facts { gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky i, .bar span { animation: none; }
  .sky i { opacity: .6; }
  .lyrics p { animation: none; }
  .lyrics p:first-child { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* legal pages and the sign-in relay pages */
.doc { max-width: 760px; padding-block: 24px 64px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 2rem; text-shadow: none; }
.doc h2 { font-family: var(--sans); font-size: 1.25rem; margin-top: 18px; }
.doc p, .doc li { color: #D5D8DE; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc .note { background: var(--surface); border-radius: 12px; padding: 12px 16px; }
.relay { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
.relay h1 { font-size: 1.6rem; text-shadow: none; }
.relay p { color: var(--muted); }
