/* 이름추첨기 홈페이지 — 앱 컨셉 color_wheel(흰 바탕·잉크·7색·알약 모양). 글꼴은 페이지 글자만 남긴 하위 집합(fonts.py). */
@font-face { font-family: "NP Sans"; src: url("assets/fonts/np-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NP Sans"; src: url("assets/fonts/np-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NP Display"; src: url("assets/fonts/np-display.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #16161a; --muted: #6b6b75; --bg: #fff; --surface: #f3f3f5; --line: #e4e4e9; --accent: #c8223d;
  --yellow: #ffc400; --green: #12c46b; --blue: #1e9bff; --orange: #ff8a1f; --red: #ff4d5e; --purple: #b46bf0; --indigo: #6c7bf2;
  --sans: "NP Sans", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --display: "NP Display", "NP Sans", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.22; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { line-height: 1.3; letter-spacing: -0.02em; }
p { color: var(--muted); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 돌림판 일곱 색 띠 */
.spectrum { display: grid; grid-template-columns: repeat(7, 1fr); height: 6px; }
.spectrum i:nth-child(1) { background: var(--red); }
.spectrum i:nth-child(2) { background: var(--orange); }
.spectrum i:nth-child(3) { background: var(--yellow); }
.spectrum i:nth-child(4) { background: var(--green); }
.spectrum i:nth-child(5) { background: var(--blue); }
.spectrum i:nth-child(6) { background: var(--indigo); }
.spectrum i:nth-child(7) { background: var(--purple); }

/* 머리글 */
.header { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }
.header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 0.95rem; }
.header nav a { text-decoration: none; white-space: nowrap; }
.header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-download { background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.header nav .nav-download:hover { text-decoration: none; background: #33333b; }

/* 히어로 */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 36px 96px; }
.intro { color: var(--ink); font-weight: 700; margin-bottom: 18px; }
h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.14; }
.lead { font-size: 1.15rem; margin: 26px 0 32px; max-width: 30em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 15px 24px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; }
.store img { filter: invert(1); }
a.store:hover { background: #33333b; }
.store-soon { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.store-soon img { filter: invert(45%); }
.store-note { font-size: 0.85rem; margin-top: 18px; }

/* 체험 */
.pick-demo { background: var(--surface); border-radius: 36px; padding: 22px; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 2px 6px 16px; }
.group-name { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.tabs { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.result-card { --c: var(--yellow); position: relative; overflow: hidden; background: var(--c); border-radius: 28px; min-height: 250px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.result-card::before, .result-card::after { content: ""; position: absolute; border-radius: 50%; }
.result-card::before { width: 260px; height: 260px; right: -70px; top: -110px; background: rgba(255, 255, 255, 0.24); }
.result-card::after { width: 170px; height: 170px; left: -50px; bottom: -80px; background: rgba(22, 22, 26, 0.1); }
.badge { position: relative; z-index: 1; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 5px 16px; border-radius: 999px; transform: rotate(-3deg); }
.result-name { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(3.4rem, 8vw, 5.2rem); line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.pick-demo.is-rolling .result-name { opacity: 0.55; }
.people { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 4px 0; }
.avatars { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-wrap: wrap; row-gap: 4px; }
.avatars li { width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.avatars li.out { background: var(--bg); color: #b9b9c2; text-decoration: line-through; }
.remaining { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.remaining strong { color: var(--ink); font-size: 1.15rem; margin-left: 4px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.draw-button { flex: 1 1 180px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 15px 24px; font-family: var(--display); font-size: 1.35rem; line-height: 1.3; }
.draw-button .arrow { color: var(--yellow); font-family: var(--sans); font-weight: 700; }
.draw-button:hover:not(:disabled) { background: #33333b; }
.reset-button { flex: 0 1 auto; background: var(--bg); border: 0; border-radius: 999px; padding: 15px 22px; font-weight: 700; color: var(--accent); }
.reset-button:hover:not(:disabled) { background: #fbe9ec; }
button:disabled { opacity: 0.45; cursor: default; }
.pick-demo.is-done .draw-button { opacity: 1; background: #55555f; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; }
.pick-demo.is-done .draw-button .arrow { display: none; }
.history-head { margin: 18px 6px 8px; font-size: 0.9rem; font-weight: 700; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; }
.history li { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 5px 16px 5px 5px; font-weight: 700; }
.history li span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 0.85rem; }
.stepper { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 999px; padding: 8px 8px 8px 22px; color: var(--muted); font-weight: 700; }
.stepper-controls { display: inline-flex; align-items: center; gap: 12px; }
.stepper-controls strong { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.25rem; min-width: 3.2em; text-align: center; white-space: nowrap; }
.stepper-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.4rem; line-height: 1; }
.stepper-controls button:hover:not(:disabled) { background: var(--line); }
.shuffle-button { display: block; width: 100%; margin-top: 12px; }
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; min-height: 190px; }
.team { background: var(--bg); border-radius: 22px; padding: 14px; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.team h3 { background: var(--c); color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.05rem; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.team ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.team li { background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.demo-caption { font-size: 0.85rem; text-align: center; margin-top: 14px; }

/* 기능 */
.features { padding-block: 40px 96px; }
.section-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-list li { background: var(--surface); border-radius: 28px; padding: 26px 26px 30px; }
.tag { display: inline-block; font-family: var(--display); font-size: 1.05rem; line-height: 1.5; padding: 2px 16px; border-radius: 999px; margin-bottom: 18px; background: var(--yellow); }
.feature-list li:nth-child(2) .tag { background: var(--green); }
.feature-list li:nth-child(3) .tag { background: var(--blue); }
.feature-list li:nth-child(4) .tag { background: var(--orange); }
.feature-list li:nth-child(5) .tag { background: var(--red); }
.feature-list li:nth-child(6) .tag { background: var(--purple); }
.feature-list h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* 이럴 때 */
.uses-band { background: var(--ink); color: #fff; padding-block: 76px; }
.uses-band h2 { margin-bottom: 32px; }
.use-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.use-list li { color: var(--ink); background: var(--yellow); border-radius: 32px; padding: 16px 28px 18px; }
.use-list li:nth-child(2) { background: var(--green); }
.use-list li:nth-child(3) { background: var(--blue); }
.use-list li:nth-child(4) { background: var(--orange); }
.use-list li:nth-child(5) { background: var(--purple); }
.use-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.4; }
.use-list span { font-size: 0.95rem; }

/* 궁금한 점 */
.faq { padding-block: 96px 40px; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 4px; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:focus-visible { border-radius: 8px; }
.faq-list details p { padding: 0 4px 22px; }
.faq-list a { color: var(--ink); text-underline-offset: 4px; }

/* 다운로드 */
.download { margin-block: 56px 88px; background: var(--surface); border-radius: 40px; padding: 56px 24px; text-align: center; }
.download img { margin-bottom: 16px; border-radius: 24px; }
.download p { margin: 10px 0 28px; }
.download .stores { justify-content: center; }

/* 바닥글 */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 56px; font-size: 0.9rem; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer-brand { font-size: 1.1rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.business-info { margin-top: 24px; }
.business-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.business-name span { font-weight: 400; color: var(--muted); }
.business-details { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; }
.business-details div { display: flex; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.business-details dt::after { content: ":"; }
.business-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copyright { margin-top: 18px; font-size: 0.85rem; }

/* 좁은 화면 */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; }
  .section-title, .faq { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header { min-height: 72px; }
  .header nav a:not(.nav-download):not(.nav-lang) { display: none; }
  .header nav { gap: 14px; }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .pick-demo { padding: 14px; border-radius: 30px; }
  .result-card { min-height: 210px; border-radius: 24px; }
  .store { width: 100%; justify-content: center; }
  .use-list li { flex: 1 1 100%; }
  .download { padding: 44px 20px; border-radius: 32px; }
}
@media (max-width: 360px) {
  .nav-lang { display: none; }
  .brand { font-size: 1.1rem; }
  .teams { grid-template-columns: minmax(0, 1fr); }
}
