/* 스케치 4차 — 기존 site/ + Replika.
   색: 흰 종이 #F6F5F1 · 잉크 #14141B · 강한 색은 기존 사이트 파랑 #1546FF 하나. 그라데이션 배경 없음(평면 색 + 종이 결).
   수치는 replika.com 실측: 제목 104~120px, 섹션 제목 48/50, 본문 16, 알약 버튼 radius 100 · 24/36, 유리 카드 ~400×600, 좌우 여백 130px. */
:root {
  --blue: #1546FF; --ink: #14141B; --ink-2: rgba(20,20,27,.68); --ink-3: rgba(20,20,27,.46); --rule: rgba(20,20,27,.12);
  --paper: #F6F5F1; --white: #fff;
  --sans: "Wanted Sans Variable", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --side: 130px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---- shared ---- */
.pill { display: inline-flex; align-items: center; gap: 14px; border-radius: 100px; font: 600 16px/1 var(--sans); white-space: nowrap; cursor: pointer; border: 0; transition: transform .2s ease; }
.pill:hover { transform: translateY(-2px); }
.pill .arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 800; }
.pill.white { background: #fff; color: var(--blue); padding: 24px 22px 24px 36px; }
.pill.white .arrow { background: var(--blue); color: #fff; }
.pill.blue { background: var(--blue); color: #fff; padding: 24px 22px 24px 36px; }
.pill.blue .arrow { background: #fff; color: var(--blue); }
.pill.glass { padding: 15px 20px; color: #fff; font-weight: 500; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--blue); }
.eyebrow i { width: 9px; height: 9px; background: var(--blue); }
h2 { font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.side-lede { max-width: 360px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.bub { font-size: 16px; line-height: 1.35; padding: 15px 24px; border-radius: 26px; box-shadow: 0 14px 34px -16px rgba(20,20,27,.28); width: max-content; max-width: 100%; }
.bub.her { background: #fff; color: var(--ink); border-bottom-left-radius: 8px; }
.bub.me { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 8px; }

/* polaroid objects: white frame, flat photo tone, tape, tilt */
.pol { position: relative; background: #FCFCFA; padding: 10px 10px 0; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 34px -18px rgba(20,20,27,.45); }
.pol::before { content: ""; position: absolute; left: 50%; top: -12px; width: 74px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(236,231,220,.82); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pol .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E6E0D3; }
.pol .ph::after { content: ""; position: absolute; inset: 0; opacity: .1; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* 사진은 모두 4:5로 렌더한 파일: 상자도 4:5, object-fit으로 비율 고정 (가로세로를 따로 늘리지 않음) */
.pol .ph img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.pol figcaption { padding: 10px 4px 14px; font-size: 13px; font-weight: 600; color: #3a3a40; line-height: 1.35; }
.pol figcaption .q { font-weight: 400; color: var(--ink-3); }

/* ===== 1–2. scrolly ===== */
.scrolly { position: relative; height: 520vh; }
.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; height: 150px; display: flex; align-items: center; justify-content: space-between; padding: 0 86px; color: #fff; }
.mark img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.center-note { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; line-height: 1.3; }
.center-note b { display: block; font-size: 22px; font-weight: 700; }
.center-note span { font-size: 14px; opacity: .85; }
.sticky { position: sticky; top: 0; height: 100vh; min-height: 720px; overflow: hidden; background: var(--blue); transition: background-color .7s ease; }
.scrolly:not([data-step="0"]) .sticky { background: var(--paper); }
.paper-grid { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  background-image: linear-gradient(rgba(20,20,27,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,27,.05) 1px, transparent 1px); background-size: 88px 88px; }
.scrolly:not([data-step="0"]) .paper-grid { opacity: 1; }
.scrolly:not([data-step="0"]) .grain { opacity: .08; }

.hero-copy { position: absolute; z-index: 5; left: 192px; top: max(200px, 24vh); color: #fff; transition: opacity .5s ease, transform .6s ease; }
h1 { font-size: min(104px, 11vh); line-height: 1; font-weight: 750; letter-spacing: -0.035em; }
.hero-act { display: flex; align-items: center; gap: 26px; margin-top: 44px; }
.daw-note { font-size: 14px; line-height: 1.45; opacity: .85; }
.scrolly:not([data-step="0"]) .hero-copy { opacity: 0; transform: translateY(-40px); pointer-events: none; }

.stage { position: absolute; z-index: 4; left: 54%; top: 0; bottom: 0; width: 600px; }
.card-glass { position: absolute; left: 100px; top: calc(50% - 300px + 40px); width: 400px; height: 600px; border-radius: 44px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); transition: opacity .6s ease; }
.scrolly:not([data-step="0"]) .card-glass { opacity: 0; }
.gl { position: absolute; left: 20px; top: calc(50% - 370px + 30px); width: 560px; height: 740px;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 98%); mask-image: linear-gradient(180deg, #000 82%, transparent 98%); }
.gl canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transition: opacity .6s ease; }
.gl.live .poster { opacity: 0; }
.say { position: absolute; z-index: 6; left: 330px; top: calc(50% - 370px + 30px + var(--say-y, 30px)); width: max-content; max-width: 300px; background: #fff; color: #222; font-size: 15px; font-weight: 500; line-height: 1.4;
  padding: 14px 22px; border-radius: 24px; border-bottom-left-radius: 8px; transform: rotate(-4deg); box-shadow: 0 14px 30px -12px rgba(10,20,80,.35); transition: opacity .25s ease, transform .35s ease; }
.say.swap { opacity: 0; transform: rotate(-4deg) translateY(8px); }
.m-cta, .m-note { display: none !important; }
.hero-pol { position: absolute; z-index: 7; left: -30px; top: calc(50% + 120px); width: 190px; transition: opacity .5s ease, transform .6s ease; }
.scrolly:not([data-step="0"]) .hero-pol { opacity: 0; transform: rotate(-14deg) translateY(40px); }

.steps { position: absolute; z-index: 5; left: var(--side); top: max(120px, 15vh); width: 600px; }
.step { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transform: translateY(30px); transition: opacity .45s ease, transform .55s ease; pointer-events: none; }
.scrolly[data-step="1"] .step[data-i="1"], .scrolly[data-step="2"] .step[data-i="2"], .scrolly[data-step="3"] .step[data-i="3"], .scrolly[data-step="4"] .step[data-i="4"] { opacity: 1; transform: none; pointer-events: auto; }
.step .lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin-top: 18px; max-width: 600px; }
.step .chat { display: grid; gap: 12px; margin-top: 40px; max-width: 460px; }
.step .daw { margin-top: 32px; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,20,27,.5); }
.tabs { position: absolute; z-index: 8; left: 50%; bottom: 34px; transform: translate(-50%, 20px); display: flex; gap: 4px; padding: 10px; border-radius: 100px; background: rgba(236,234,230,.92); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.scrolly:not([data-step="0"]) .tabs { opacity: 1; transform: translate(-50%, 0); }
.tabs button { padding: 13px 18px; border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--ink-3); transition: background .25s, color .25s; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }

/* ===== 3. cast wall ===== */
.cast { position: relative; padding: 140px var(--side) 150px; background: var(--paper); }
.wall { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 44px; margin-top: 70px; }
.wall .pol { transition: transform .35s cubic-bezier(.2,.8,.3,1.2); }
.wall .pol:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); z-index: 2; }
.wall figcaption b { display: block; font-size: 17px; color: var(--ink); }
.wall figcaption .g { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.wall figcaption .l { display: block; margin-top: 6px; font-weight: 400; color: var(--ink-2); font-size: 14px; }

/* ===== 4. features ===== */
.feats { padding: 40px var(--side) 150px; background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.card .vis { position: relative; height: 480px; border-radius: 28px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.card h3 { margin-top: 22px; }
.card > p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 380px; }
.vis.dark { background: var(--ink); }
.vis .panel { width: 82%; height: auto; aspect-ratio: 1413 / 1833; object-fit: contain; border-radius: 6px; transform: translateY(14%); box-shadow: 0 20px 50px -20px #000; }
.vis.key { background: #ECEAE5; align-content: center; gap: 22px; }
.kbd { display: grid; place-items: center; width: 168px; height: 92px; border-radius: 16px; background: #fff; font-size: 20px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 6px 0 #CFCBC3, 0 14px 30px -10px rgba(0,0,0,.25); }
.wave { display: flex; align-items: center; gap: 5px; height: 40px; justify-self: center; }
.wave i { width: 5px; border-radius: 3px; background: var(--blue); height: 30%; animation: wv 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.65s; } .wave i:nth-child(4n) { animation-delay: -.85s; }
@keyframes wv { 0%,100% { height: 22%; } 50% { height: 100%; } }
.vis.key .bub.sm { justify-self: center; font-size: 14px; padding: 11px 18px; }
.vis.outfits { background: #ECEAE5; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; align-content: center; place-items: stretch; padding: 18px; }
.vis.outfits figure { display: grid; gap: 8px; justify-items: center; }
.vis.outfits img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.vis.outfits figcaption { font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ===== 5. beta guide ===== */
.howbeta { position: relative; padding: 140px var(--side) 140px; background: #fff; }
.float-pol { position: absolute; right: 170px; top: 56px; width: 190px; z-index: 2; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 120px; counter-reset: s; }
.flow li { padding: 30px 30px 34px; border-radius: 28px; background: var(--paper); }
.flow b { font-size: 15px; color: var(--blue); }
.flow h3 { margin-top: 40px; font-size: 26px; }
.flow p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-top: 1px solid var(--rule); }
.facts div { padding: 24px 24px 0 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.facts dd { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.facts small { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* ===== 6. FAQ ===== */
.faq { padding: 120px var(--side) 140px; background: var(--paper); display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.faq .sec-head { align-items: flex-start; }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 21px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--ink-3); transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 620px; }

/* ===== 7. beta form (bookend: same flat blue as the hero) ===== */
.beta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 130px var(--side) 130px; background: var(--blue); color: #fff; }
.giant { font-size: 120px; line-height: .96; font-weight: 750; letter-spacing: -0.045em; margin: 0; }
.beta-lede { font-size: 18px; margin-top: 28px; opacity: .9; }
.beta-form { position: relative; z-index: 2; margin-top: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; max-width: 640px; padding: 22px; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0,0,40,.55); }
.beta-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.beta-form em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.beta-form input, .beta-form select { font: 500 16px var(--sans); color: var(--ink); padding: 17px 20px; border-radius: 100px; border: 0; background: var(--paper); -webkit-appearance: none; appearance: none; }
.beta-form .pill { grid-column: 1 / -1; justify-content: center; }
.fine { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); text-align: center; }
.beta-pols { position: relative; height: 560px; }
.pol.big { position: absolute; right: 60px; top: 0; width: 300px; }
.pol.small { position: absolute; left: -40px; bottom: -40px; width: 170px; }
.beta .pol figcaption { color: #3a3a40; }

.foot { display: flex; align-items: center; gap: 28px; padding: 36px var(--side); background: var(--ink); color: rgba(255,255,255,.6); font-size: 14px; }
.foot img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.foot nav { margin-left: auto; display: flex; gap: 22px; }

/* ===== mobile / narrow: no sticky stage; the character is the idle loop (animated webp), sections stack ===== */
@media (max-width: 900px) {
  :root { --side: 20px; }
  .scrolly { height: auto; }
  .sticky { position: relative; height: auto; min-height: 0; overflow: visible; background: var(--paper) !important; }
  .paper-grid { display: none; }
  .bar { height: auto; padding: 22px 20px 0; justify-content: center; }
  .center-note, .bar .pill.glass { display: none; }
  .mark img { height: 26px; }
  .hero-copy { position: relative; left: auto; top: auto; text-align: center; padding: 92px 20px 0; background: var(--blue); opacity: 1 !important; transform: none !important; }
  .hero-copy h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.03em; }
  .hero-copy h1 br:nth-of-type(1), .hero-copy h1 br:nth-of-type(3) { display: none; }
  .hero-act { display: none; }
  .stage { position: relative; left: auto; width: auto; height: 560px; background: var(--blue); }
  .card-glass { left: 50%; top: 70px; width: 290px; height: 420px; margin-left: -145px; opacity: 1 !important; border-radius: 38px; }
  .gl { left: 50%; top: 40px; width: 340px; height: 450px; margin-left: -170px; }
  .say { left: 50%; top: 34px; transform: translateX(-50%) rotate(-3deg); font-size: 13px; padding: 10px 16px; white-space: nowrap; max-width: none; }
  .say.swap { transform: translateX(-50%) rotate(-3deg); }
  .hero-pol { display: none; }
  .stage .m-cta { display: inline-flex !important; position: absolute; z-index: 8; left: 50%; top: 452px; transform: translateX(-50%); }
  .stage .m-note { display: block !important; position: absolute; left: 0; right: 0; top: 528px; text-align: center; font-size: 12px; color: rgba(255,255,255,.85); }
  .stage { height: 600px; }
  .steps { position: relative; left: auto; top: auto; width: auto; padding: 56px 20px 10px; background: var(--paper); }
  .step { position: relative; opacity: 1 !important; transform: none !important; pointer-events: auto; margin-bottom: 64px; }
  .step h2, h2 { font-size: 32px; }
  .step .lede { font-size: 15px; }
  .tabs { display: none; }
  .cast { padding: 70px 20px 80px; }
  .sec-head { display: block; }
  .side-lede { margin-top: 14px; font-size: 15px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 34px 18px; margin-top: 40px; }
  .wall figcaption .l { display: none; }
  .feats { padding: 10px 20px 80px; }
  .cards { grid-template-columns: 1fr; margin-top: 32px; gap: 36px; }
  .card .vis { height: 340px; }
  .howbeta { padding: 80px 20px; }
  .float-pol { position: relative; right: auto; top: auto; width: 170px; margin: 0 0 40px auto; }
  .flow { grid-template-columns: 1fr; margin-top: 32px; gap: 12px; }
  .flow h3 { margin-top: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .faq { display: block; padding: 70px 20px 80px; }
  .qa { margin-top: 20px; }
  .qa summary { font-size: 18px; padding: 20px 0; }
  .beta { display: block; padding: 70px 20px 60px; }
  .giant { font-size: 60px; }
  .beta-lede { font-size: 15px; }
  .beta-form { grid-template-columns: 1fr; padding: 16px; border-radius: 26px; }
  .beta-pols { height: 380px; margin-top: 40px; }
  .pol.big { width: 210px; right: 10px; }
  .pol.small { width: 140px; }
  .foot { flex-wrap: wrap; padding: 28px 20px; gap: 14px; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* 상단 오른쪽: EN 전환 + 베타 신청 */
.bar-r { display: flex; gap: 8px; }
.pill.lang { padding: 15px 16px; font-size: 14px; }
html[lang=en] h1 { letter-spacing: -0.04em; }
@media (max-width: 900px) { .bar-r { display: none; } }
@media (max-width: 900px) { .bar-r { display: flex; position: absolute; right: 16px; top: 16px; } .bar-r a { display: none; } .pill.lang { padding: 10px 13px; font-size: 13px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); } }
@media (max-width: 900px) {
  .bar .pill.lang { display: inline-flex !important; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
  html[lang=en] .hero-copy h1 br { display: none; }
  .hero-copy h1 { text-wrap: balance; }
}

/* 5차: 푸터 상표 문구, 폰에서 히어로 그림이 살짝 숨 쉬듯 */
.foot .tm { font-size: 12px; opacity: .7; }
@media (max-width: 900px) and (pointer: coarse) { .poster { animation: breathe 4.5s ease-in-out infinite; transform-origin: 50% 100%; } }
@keyframes breathe { 50% { transform: translateY(-4px) scale(1.008); } }
@media (max-width: 900px) { .vis.outfits { padding: 18px 12px 12px; gap: 6px; } .card .vis.outfits { height: auto; } }
@media (min-width: 901px) { .vis.outfits img { width: 80%; } .vis.outfits { gap: 8px 10px; } }

/* 5차: 신청 폼 동의·Turnstile·완료, 푸터 메일 */
.beta-form .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.beta-form .consent input { width: 18px; height: 18px; padding: 0; margin-top: 1px; flex: none; accent-color: var(--blue); -webkit-appearance: checkbox; appearance: auto; box-shadow: none; }
.beta-form .consent a { color: var(--blue); text-decoration: underline; }
.beta-form .ts { grid-column: 1 / -1; display: flex; justify-content: center; }
.beta-form .ts:empty { display: none; }
.beta-form .pill:disabled { opacity: .6; cursor: default; }
.beta-form.done .pill { background: var(--ink); }
.fine[data-state="form.ok"] { color: var(--blue); font-weight: 700; font-size: 14px; }
.foot .mail { color: #fff; }
