/* 오키토키 소개 홈페이지 모양: 앱 보라색 첫 화면, 신호등 체험, 친구 선반, 밤색 타로 구역 */
@font-face { font-family: "Gmarket Sans"; font-weight: 700; font-display: swap; src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff"); }

:root {
  --violet: #5a48e6;
  --violet-deep: #3b2bb8;
  --ink: #1e1b2e;
  --sub: #5f5b76;
  --mist: #f3f1ff;
  --yellow: #ffe45c;
  --night: #1b1245;
  --red: #ef4444;
  --amber: #facc15;
  --green: #22c55e;
  --head: "Gmarket Sans", "Pretendard Variable", "Malgun Gothic", sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  --gap: clamp(72px, 10vw, 136px);
  color-scheme: light;
}
html[lang="ja"] {
  --head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 500 17px/1.65 var(--body); word-break: keep-all; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%; }
html[lang="ja"] body { word-break: normal; }
h1, h2, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; text-wrap: balance; }
html[lang="ja"] :is(h1, h2) { font-weight: 900; letter-spacing: 0; word-break: auto-phrase; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9; background: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }

/* 제목 강조: 밝은 구역은 형광펜, 어두운 구역은 노란 글자 */
mark { color: inherit; background: linear-gradient(transparent 64%, var(--yellow) 64% 94%, transparent 94%); }
.friends mark { background: linear-gradient(transparent 64%, #ffb0cd 64% 94%, transparent 94%); }
:is(.hero, .fortune, .last) mark { background: none; color: var(--yellow); }

/* 위쪽 줄 */
.top { position: absolute; inset: 0 0 auto; z-index: 3; color: #fff; }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 700 19px/1 var(--head); text-decoration: none; }
.logo img { border-radius: 10px; }
.lang { display: flex; gap: 4px; }
.lang a { display: grid; place-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; text-decoration: none; border-radius: 22px; }
.lang a[aria-current] { background: rgba(255, 255, 255, 0.2); font-weight: 700; }

/* 첫 화면 */
.hero { position: relative; background: linear-gradient(168deg, #4733d2 0%, var(--violet) 46%, #9152dd 78%, #ec6fb0 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: clamp(30px, 5vw, 70px); background: #fff; clip-path: ellipse(50% 100% at 50% 100%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; min-height: min(860px, 100svh); padding: 110px 0 120px; }
.hero h1 { font-size: clamp(42px, 6.3vw, 80px); line-height: 1.16; }
html[lang="ja"] .hero h1 { font-size: calc(28px + min(2.6vw, 34px)); word-break: keep-all; text-wrap: wrap; }
.lead { margin-top: 24px; max-width: 25em; font-size: clamp(17px, 1.7vw, 20px); color: #efecff; }
.install { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; min-height: 60px; padding: 0 30px 0 26px; background: var(--yellow); color: #2a1670; border-radius: 30px; font: 700 18px/1.2 var(--head); text-decoration: none; transition: background 0.15s; }
.install:hover { background: #fff1a0; }
html[lang="ja"] .install { font-weight: 900; }
.hero-note { margin-top: 16px; font-size: 15px; color: #dcd7ff; }
.hero-stage { position: relative; }
.watch { display: inline-flex; align-items: center; gap: 6px; min-height: 60px; margin: 34px 0 0 22px; font-weight: 700; font-size: 17px; text-underline-offset: 5px; }
.float { position: absolute; z-index: 1; display: flex; align-items: center; gap: 6px; animation: sway 4.5s ease-in-out infinite alternate; }
.typing { left: 2%; top: 13%; padding: 15px 18px; background: #fff; border-radius: 22px 22px 22px 6px; }
.typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: typing 1.3s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
.heart { right: 2%; top: 27%; padding: 8px 16px 8px 12px; background: #ff5f97; border-radius: 24px; font: 700 19px/1.2 var(--head); animation-delay: -2s; }
@keyframes sway { from { transform: translateY(8px) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.mascot { width: 66%; margin: 0 auto -19%; animation: sway 6s ease-in-out infinite alternate; }
.notifs { position: relative; display: grid; gap: 14px; }
.notifs li { display: flex; align-items: center; gap: 14px; width: min(400px, 100%); padding: 12px 18px 12px 12px; background: #fff; color: var(--ink); border-radius: 24px; box-shadow: 0 14px 34px rgba(32, 16, 120, 0.3); animation: drop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.35s + var(--i) * 0.42s); }
.notifs li:nth-child(even) { justify-self: end; }
.notifs img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #e7e2ff; object-fit: cover; }
.notifs li > div { flex: 1; min-width: 0; }
.n-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.n-head span { font-size: 13px; color: #6f6b85; }
.notifs p { font-size: 15.5px; line-height: 1.4; }
@keyframes drop { from { opacity: 0; transform: translateY(-56px) scale(0.9); } }

/* 숏츠 */
.shorts { padding: calc(var(--gap) * 0.7) 0 0; scroll-margin-top: 0; }
.shorts-in { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 90px); align-items: center; }
.shorts-copy > p { margin-top: 20px; color: var(--sub); }
.shorts-copy .shorts-note { margin-top: 8px; font-size: 14px; }
.reels { display: grid; grid-template-columns: repeat(2, clamp(230px, 25vw, 300px)); gap: 28px; }
.reel:nth-child(2) { margin-top: 64px; }
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: var(--night); box-shadow: 0 24px 50px rgba(59, 30, 150, 0.28); }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; padding-bottom: 16px; color: #fff; }
.play svg { box-sizing: content-box; width: 28px; height: 28px; padding: 15px 14px 15px 16px; border-radius: 50%; background: var(--yellow); color: #2a1670; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.play:hover svg { transform: scale(1.12); }
.play span { padding: 2px 12px; border-radius: 12px; background: rgba(20, 12, 60, 0.72); font-size: 14px; font-weight: 700; }
.play[hidden] { display: none; }
.play:focus-visible { outline-offset: -8px; border-radius: 34px; }
.reel figcaption { display: grid; margin-top: 16px; padding-inline: 8px; line-height: 1.45; }
.reel figcaption b { font-size: 18px; }
.reel figcaption span { color: var(--sub); font-size: 15px; }

/* 기억 */
.memory { padding-top: var(--gap); overflow: hidden; }
.memory-in { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 9vw, 130px); align-items: center; }
.phone { position: relative; isolation: isolate; }
.phone::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: 128%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: linear-gradient(160deg, #cfc6ff, #ffc6de); }
.phone img { rotate: -3deg; width: 100%; border: 10px solid var(--ink); border-radius: 42px; }
.phone figcaption { margin-top: 28px; text-align: center; font-size: 14px; color: var(--sub); }
.points { margin-top: 40px; display: grid; gap: 28px; max-width: 30em; }
.points > div { position: relative; padding-left: 40px; }
.points > div::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; background: var(--violet); }
.points > div:nth-child(2)::before { background: #ff5f97; }
.points > div:nth-child(3)::before { background: #f2b705; }
.points > div:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 36px; bottom: -26px; border-left: 2px dotted #c9c1fb; }
.points dt { font-weight: 800; font-size: 20px; }
.points dd { color: var(--sub); margin-top: 4px; }

/* 신호등 */
.signal { padding: var(--gap) 0; }
.signal-in { display: grid; grid-template-columns: 1fr 460px; gap: clamp(36px, 7vw, 100px); align-items: center; }
.signal-copy > p { margin-top: 20px; max-width: 28em; color: var(--sub); }
.helpers { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.helpers dt { font-weight: 800; }
.helpers dd { font-size: 15.5px; line-height: 1.55; color: var(--sub); }
.demo { background: var(--mist); border-radius: 36px; padding: 26px; transition: box-shadow 0.4s; }
.demo:has(.lamp[data-on="red"]) { box-shadow: 0 18px 60px rgba(239, 68, 68, 0.38); }
.demo:has(.lamp[data-on="yellow"]) { box-shadow: 0 18px 60px rgba(250, 204, 21, 0.5); }
.demo:has(.lamp[data-on="green"]) { box-shadow: 0 18px 60px rgba(34, 197, 94, 0.38); }
html[lang="ja"] .demo { background: #a9bedb; }
.demo-room { min-height: 178px; display: flex; flex-direction: column; gap: 14px; }
.demo-from { display: flex; gap: 10px; }
.demo-from img { width: 48px; height: 48px; border-radius: 50%; background: #d9f3e6; object-fit: cover; }
.demo-from b { font-size: 14px; }
.bubble { width: fit-content; max-width: 290px; padding: 10px 15px; margin-top: 2px; background: #fff; border-radius: 6px 20px 20px 20px; font-size: 16px; line-height: 1.45; }
.demo-mine { display: flex; justify-content: flex-end; }
.bubble.mine { background: var(--violet); color: #fff; border-radius: 20px 6px 20px 20px; }
html[lang="ja"] .bubble.mine { background: #9ee07c; color: var(--ink); }
.lamp { display: flex; align-items: center; gap: 14px; min-height: 68px; margin: 10px 0 16px; }
.lamps { display: flex; gap: 7px; flex: none; padding: 9px 11px; background: #1b1440; border-radius: 30px; }
.lamps i { width: 24px; height: 24px; border-radius: 50%; opacity: 0.22; transition: opacity 0.2s, box-shadow 0.2s; }
.lamps .r { background: var(--red); color: var(--red); }
.lamps .y { background: var(--amber); color: var(--amber); }
.lamps .g { background: var(--green); color: var(--green); }
.lamp[data-on="red"] .r, .lamp[data-on="yellow"] .y, .lamp[data-on="green"] .g { opacity: 1; box-shadow: 0 0 16px currentColor; }
.lamp p { font-size: 15px; line-height: 1.45; font-weight: 600; }
.replies { display: grid; gap: 8px; }
.replies button { min-height: 50px; padding: 10px 18px; text-align: left; background: #fff; border: 2px solid transparent; border-radius: 16px; font-size: 16px; line-height: 1.4; }
.replies button:hover { border-color: #c9c1fb; }
.replies button[aria-pressed="true"] { border-color: var(--violet); }
.demo-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #4f4a68; }
html[lang="ja"] .demo-note { color: #26304a; }

/* 친구 선반 */
.friends { position: relative; background: #ffe9a8 radial-gradient(circle, #ffe398 5px, transparent 5.5px) 0 0 / 44px 44px; padding: calc(var(--gap) + 24px) 0 calc(var(--gap) * 0.8); overflow: hidden; }
.lights { position: absolute; top: 0; left: 0; width: 100%; height: 62px; }
.lights::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 100% at 50% 0, transparent calc(100% - 3px), #a4762f calc(100% - 2px) 100%, transparent) 0 0 / 25% 46px repeat-x; }
.lights i { position: absolute; width: 16px; height: 20px; margin: -2px 0 0 -8px; border-radius: 50% 50% 46% 46%; background: #fff3c4; box-shadow: 0 0 16px 5px rgba(255, 190, 60, 0.75); animation: twinkle 2.6s ease-in-out infinite alternate; }
.lights i:nth-child(3n + 1) { background: #ff9ec2; box-shadow: 0 0 16px 4px rgba(255, 120, 170, 0.55); animation-delay: -0.9s; }
.lights i:nth-child(3n + 2) { background: #b9adff; box-shadow: 0 0 16px 4px rgba(120, 100, 250, 0.45); animation-delay: -1.8s; }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }
.friends-lead { margin-top: 18px; max-width: 34em; }
.say { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 64px; margin-top: 28px; padding: 8px 24px 8px 10px; background: #fff; border-radius: 32px 32px 32px 8px; }
.say img { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #efebff; object-fit: cover; }
.say b { flex: none; }
.say span { line-height: 1.4; }
.shelf-scroll { overflow-x: auto; margin-top: 28px; padding-bottom: 14px; scrollbar-color: #b9893c transparent; }
.shelves { width: max-content; min-width: min(1120px, 100% - 40px); margin-inline: auto; padding-inline: 20px; }
.shelf { display: flex; justify-content: space-between; gap: 8px; }
.shelf + .shelf { margin-top: 26px; }
.shelf button { width: 148px; flex: none; display: flex; flex-direction: column; align-items: center; }
.shelf button > img { width: 132px; height: 132px; object-fit: contain; object-position: bottom; transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: bottom; }
.shelf button:hover > img, .shelf button[aria-pressed="true"] > img { transform: scale(1.1); }
.shelf button[aria-pressed="true"] > img { animation: hop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes hop { 40% { transform: translateY(-16px) scale(1.1); } }
.plate { position: relative; width: calc(100% + 8px); min-height: 78px; padding: 22px 6px 0; border-top: 14px solid #c98f3f; background: linear-gradient(#a4702a 5px, rgba(120, 76, 10, 0.28) 5px, transparent 17px) padding-box; text-align: center; display: grid; align-content: start; line-height: 1.35; }
.plate b { font-size: 15.5px; word-break: keep-all; }
.plate small { font-size: 13px; color: #5d4a1c; }
.plate em { position: absolute; top: -7px; left: 50%; translate: -50% 0; padding: 1px 10px; border-radius: 10px; background: var(--violet-deep); color: #fff; font: 700 12px/18px var(--body); white-space: nowrap; }
.friends-foot { font-size: 15px; color: #5d4a1c; margin-top: 12px; }

/* 타로 */
.fortune { position: relative; background: radial-gradient(ellipse 60% 80% at 78% 50%, #4a2c8c, transparent), linear-gradient(#150d38, #2a1661); color: #fff; padding: var(--gap) 0; overflow: hidden; }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #efe9ff; animation: twinkle 2.8s ease-in-out infinite alternate; }
.stars i:nth-child(4n) { background: #ffdf8a; }
.fortune-in { z-index: 1; }
.fortune-in { position: relative; display: grid; grid-template-columns: 1fr 500px; gap: clamp(36px, 6vw, 90px); align-items: center; }
.fortune-copy { position: relative; }
.fortune-copy > p { margin-top: 20px; max-width: 27em; color: #d8d1fb; }
.fortune-list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; max-width: 27em; font-weight: 700; color: #ffdf8a; }
.fortune-copy .fortune-note { font-size: 14px; color: #b9b0e6; }
.teller { position: absolute; right: 516px; bottom: calc(var(--gap) * -1); width: 190px; }
.fortune-copy { padding-bottom: 60px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 1200px; }
.card { aspect-ratio: 2 / 3; border-radius: 14px; }
.card { position: relative; }
.card::before { content: ""; position: absolute; inset: -26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 223, 138, 0.75), transparent); opacity: 0; transition: opacity 0.7s; }
.card[aria-pressed="true"]::before { opacity: 1; }
.card:nth-child(1) { rotate: -5deg; translate: 0 14px; }
.card:nth-child(3) { rotate: 5deg; translate: 0 14px; }
.card-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.3, 0.9, 0.3, 1); }
.card:hover .card-in { transform: translateY(-8px); }
.card[aria-pressed="true"] .card-in { transform: rotateY(180deg); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; backface-visibility: hidden; }
.card .front { transform: rotateY(180deg); }
.card-text { min-height: 60px; margin-top: 42px; text-align: center; color: #d8d1fb; }
.card-text b { display: block; color: #ffdf8a; font-size: 20px; }

/* 그 밖의 기능 */
.more { padding: var(--gap) 0; }
.more-list { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 64px; }
.more-list > div { display: flex; gap: 18px; align-items: flex-start; }
.more-list img { box-sizing: border-box; width: 92px; height: 92px; padding: 16px; flex: none; border-radius: 30px; background: var(--tint, #ece7ff); transition: rotate 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.more-list > div:hover img { rotate: -7deg; }
.more-list > div:nth-child(2) { --tint: #ffe1ec; }
.more-list > div:nth-child(3) { --tint: #fff0b8; }
.more-list > div:nth-child(4) { --tint: #dcf4e4; }
.more-list > div:nth-child(5) { --tint: #ddecff; }
.more-list > div:nth-child(6) { --tint: #ffe6d3; }
.more-list dt { font-weight: 800; font-size: 19px; }
.more-list dd { color: var(--sub); }

/* 알아 두기 */
.know { background: var(--mist); padding: calc(var(--gap) * 0.7) 0; }
.know-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 60px; }
.know h2 { font-size: clamp(24px, 2.6vw, 32px); }
.know li { padding-left: 20px; position: relative; }
.know li + li { margin-top: 12px; }
.know li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* 끝 */
.last { background: linear-gradient(170deg, #4733d2, var(--violet) 40%, #9152dd 72%, #ec6fb0); color: #fff; padding: calc(var(--gap) * 0.8) 0 0; text-align: center; overflow: hidden; }
.last-in { display: flex; flex-direction: column; align-items: center; }
.last-in img { width: 190px; }
.crowd { display: flex; justify-content: center; margin: 48px 0 -5px; }
.crowd img { width: clamp(96px, 13vw, 180px); height: clamp(96px, 13vw, 180px); flex: none; margin-inline: -8px; object-fit: contain; object-position: bottom; }
.last h2 { margin-top: 12px; }
.foot { background: var(--violet-deep); color: #e6e1ff; padding: 36px 0 44px; font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .tm { font-size: 13px; color: #c9c1f5; }

@media (max-width: 1000px) {
  .signal-in, .fortune-in, .shorts-in { grid-template-columns: 1fr; }
  .reels { justify-content: center; }
  .demo { max-width: 560px; }
  .cards-area { max-width: 500px; width: 100%; }
  .demo, .cards-area { justify-self: center; width: 100%; }
  .teller { right: 0; bottom: auto; top: 20px; }
  .fortune-copy { padding-bottom: 0; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; padding: 104px 0 92px; min-height: 0; }
  .mascot { width: min(300px, 78%); margin-bottom: -60px; }
  .heart { top: 90px; right: 0; }
  .notifs { gap: 12px; }
  .notifs li { width: min(330px, 94%); padding: 10px 16px 10px 10px; }
  .notifs img { width: 48px; height: 48px; }
  .memory-in { grid-template-columns: 1fr; }
  .memory-copy { order: -1; }
  .phone { width: min(290px, 100%); margin-inline: auto; }
  .more-list, .know-in { grid-template-columns: 1fr; }
  .shelf button { width: 116px; }
  .shelf button > img { width: 104px; height: 104px; }
  .teller { display: none; }
}
@media (max-width: 620px) {
  .reels { grid-template-columns: repeat(2, min(74vw, 300px)); gap: 16px; justify-content: start; margin-inline: -20px; padding: 0 20px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 20px; }
  .reel { scroll-snap-align: start; }
  .reel:nth-child(2) { margin-top: 0; }
  .more-list img { width: 72px; height: 72px; padding: 12px; border-radius: 24px; }
  .lights { width: 200%; }
  .screen { box-shadow: 0 8px 18px rgba(59, 30, 150, 0.25); }
}
@media (max-width: 480px) {
  .watch { margin: 10px auto 0; display: flex; width: fit-content; min-height: 48px; }
  .hero-note { margin-top: 4px; text-align: center; }
  .install { width: 100%; justify-content: center; padding-inline: 12px; font-size: clamp(16px, 4.6vw, 18px); }
  .helpers { grid-template-columns: 1fr; gap: 16px; }
  .demo { padding: 20px 16px; border-radius: 28px; }
  .bubble { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
